I2C Code on 52223 EVB

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

I2C Code on 52223 EVB

2,420件の閲覧回数
PopsStack
Contributor I
Has anyone written any routines for I2C - hoping to avoid having to reinvent the wheel.
ラベル(1)
タグ(1)
0 件の賞賛
返信
2 返答(返信)

926件の閲覧回数
PopsStack
Contributor I
Apologies JediM - won't bombard the forum - quite understand the X thread issue.
 
I am trying to hook 2 x  52223EVB's  together using the I2C lines. I am a little confused about the I2Cinit() and Send and Receive routines and the definition of which one becomes the Master and the Slave using the rotuines provided by CW. My understanding is that one has to specifically give the Slave and Address (is this the ID referred to in the CW code).
 
Am I correct in saying that if one board is initialized as a Slave and the other the Master one can use the code provided, by simply polling on the Slave side until the flag indicates the slave has been addressed correctly?
 
Many thanks
 
PS
0 件の賞賛
返信

926件の閲覧回数
J2MEJediMaster
Specialist I
You may want to check out this forum thread, which discusses I2C for ColdFire and provides a link to some sample code.

---Tom
0 件の賞賛
返信