Re: APP001實驗版使用I2C傳輸的問題
|
||||
---|---|---|---|---|
新會員
|
Hi 你好,我也是碰到一樣的問題,讀出來都是 0xFF。請問你說送兩次位址是什麼意思呢?是 Read 的時候嗎?
發表於: 2008/11/27 10:53
|
|||
|
Re: APP001實驗版使用I2C傳輸的問題
|
||||
---|---|---|---|---|
中級會員
|
Hi ALL
知道原因了 因為跟EEPROM的位址跟MANUAL講的不一樣 不是A0而是AE 還有因為是新版的APP001 REV2 所以...必須送兩次位址.... 以上便是測試的結果...
發表於: 2007/3/29 10:22
|
|||
|
APP001實驗版使用I2C傳輸的問題
|
||||
---|---|---|---|---|
中級會員
|
各位大大,我試著使用W401 C18 Workshop裡面的 ANS 6-2
的I2C程式想要來玩玩I2C的模式。 可是很奇怪,好像寫不進去,所以在讀取的時候全部讀到的值都是0XFFFF,導致我LCD都變成顯示那個資料。 我已經把 JUMP 10改成 1-2,3-4啦! 還有哪邊要做更動嗎 我所使用的是PIC18F452 我還需要作哪些設定嗎 麻煩有經驗的大大請告知.... 我是著使用ICD2 去抓看程式HOLD在哪邊 發現在送出CTRL的訊號時 while(SSPCON2bits.ACKSTAT); // wait until received the Acknowledge from EEPROM 這裡便被HOLD住了,我想就算是EEPROM是24LC32A的原因也不該再送出CTRL就掛掉了。 題外話,範例裡的ADDR只有送一次,但是我看了EEPROM的SPEC,他需要12BIT的ADDRESS,這是不是代表我應該要送兩次ADDR啊,但這個問題應該是要能夠成功的送資料為前提。 不知道有沒有高手可以回答啊~~~~
發表於: 2007/3/27 16:01
|
|||
|