Re: 12C碰撞問題
|
||||
---|---|---|---|---|
高級會員
|
補充一下,我是使用24hj64gp210
問題已解決,因為我是做一寫一讀的動作測試,在讀取最後一筆資料時,因為資料讀取長度判斷導致沒有送NOACK的動作,才會發生碰撞問題!!
發表於: 2007/9/19 18:12
|
|||
|
Re: 12C碰撞問題
|
||||
---|---|---|---|---|
版主
|
I2C Bus 碰撞後,PIR2<BCLIF> 會設為 "1" , 這時需用軟體方式清除為 "0"。 請參考 Data Sheet I2C 有關 I2C Bus Collision Occurrped 的時序圖及 PIR2 & PIE2 暫存器的說明。
發表於: 2007/9/19 17:34
|
|||
|
12C碰撞問題
|
||||
---|---|---|---|---|
高級會員
|
小弟最近寫了一個24XX256的程序,經過幾次的測試發現只要有重置的情況下,就會發生碰撞(只有剛送電執行的第一次不會有問題),在SDA/SDL有加提升電阻2.2k.
請問發生碰撞後要如何解決?
發表於: 2007/9/19 17:03
|
|||
|