• slider image 442
  • slider image 483
  • slider image 484
  • slider image 485
  • slider image 486
  • slider image 487
  • slider image 488
  • slider image 491
:::


Browsing this Thread:   1 Anonymous Users






Re: EEPROM疑問?
#4
版主
版主


查看用戶資訊
恭喜!

發表於: 2009/9/16 11:02
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: EEPROM疑問?
#3
初級會員
初級會員


查看用戶資訊
成功嚕~我根據版主的說法修改EERandomRead這個function動作就正常了,多謝版主的指點迷津!

發表於: 2009/9/16 10:00
God grant me the serenity To accept the things I cannot change; Courage to change the things I can; And wisdom to know the difference.
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


Re: EEPROM疑問?
#2
版主
版主


查看用戶資訊
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
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部


EEPROM疑問?
#1
初級會員
初級會員


查看用戶資訊
請教一下唷~
我目前用p18f4525的mcu來控制24fc1025,我是用mcc18裡i2c.h檔EERandomRead方式要讀出24fc1025裡存的資料,但是我發現讀出來的資料有誤,(我是丟到txreg上顯示出來,uart部份可以show出正確的資訊出來。)

有誤的地方情況是我EERandomRead(0XA0,0x00)但是show出來卻是0x01的資料,不然就是同一個位置讀兩次後會出錯。

想請問是哪個部份會造成這樣的問題嗎? 還是小弟我哪邊有疏失

發表於: 2009/9/15 11:53
Twitter Facebook Google Plus Linkedin Del.icio.us Digg Reddit Mr. Wong 頂部







You can view topic.
不可以 發起新主題
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.
You cannot use topic type.
You cannot use HTML syntax.
You cannot use signature.
You cannot create PDF files.
You cannot get print page.

[進階搜尋]


:::

Microchip連結

https://www.facebook.com/microchiptechnologytaiwan/
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=13
https://mu.microchip.com/page/tmu
http://elearning.microchip.com.tw/modules/tad_link/index.php?cate_sn=1
https://page.microchip.com/APAC-PrefCenters-TW.html
http://www.microchip.com/
http://www.microchip.com/treelink
http://www.microchipdirect.com/
http://www.microchip.com.cn/newcommunity/index.php?m=Video&a=index&id=103
http://www.microchip.com.tw/modules/tad_uploader/index.php?of_cat_sn=2
http://www.microchip.com.tw/Data_CD/eLearning/index.html
http://www.microchip.com.tw/RTC/RTC_DVD/
https://www.microchip.com/development-tools/
https://www.youtube.com/user/MicrochipTechnology
[ more... ]

教育訓練中心

!開發工具購買
辦法說明 [業界客戶] [教育單位]
----------------------------------
!校園樣品申請
辦法說明 [教師資格] [學生資格]
----------------------------------