Re: EEPROM疑問?
|
||||
---|---|---|---|---|
版主
|
恭喜!
發表於: 2009/9/16 11:02
|
|||
|
Re: EEPROM疑問?
|
||||
---|---|---|---|---|
版主
|
EERandomRead(0XA0,0x00) 這個函數是讀取 2048 bits 所寫的,再加上8 Block ( B0~B3 Block Select) 的選擇最大只能定到 24LC16 (16k bits) 的 EEPROM.
所已超過 24LC16 以上的大小如 24LC32,LC64,....24LC1025/LC1024 都需要再多傳送一次 address byte,其格式應為: Control Byte + High Address + Low Address + Data 也就是要多傳送一個 Address。 有關此項命令參考 24LC1025 Data Sheet 裡的說明。 http://www.microchip.com/wwwproducts/ ... es.aspx?dDocName=en024636 所以原先 EEPROM 的函數都要改寫後才可以使用在 24LC1025。 建議使用 24LC1024 來取代 24LC1205。
發表於: 2009/9/15 13:54
Edited by Ryang on 2009年09月15日 14:18:51
|
|||
|
EEPROM疑問?
|
||||
---|---|---|---|---|
初級會員
|
請教一下唷~
我目前用p18f4525的mcu來控制24fc1025,我是用mcc18裡i2c.h檔EERandomRead方式要讀出24fc1025裡存的資料,但是我發現讀出來的資料有誤,(我是丟到txreg上顯示出來,uart部份可以show出正確的資訊出來。) 有誤的地方情況是我EERandomRead(0XA0,0x00)但是show出來卻是0x01的資料,不然就是同一個位置讀兩次後會出錯。 想請問是哪個部份會造成這樣的問題嗎? 還是小弟我哪邊有疏失
發表於: 2009/9/15 11:53
|
|||
|