I2C Code on 52223 EVB

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I2C Code on 52223 EVB

2,379 次查看
PopsStack
Contributor I
Has anyone written any routines for I2C - hoping to avoid having to reinvent the wheel.
标签 (1)
标记 (1)
0 项奖励
回复
2 回复数

885 次查看
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 项奖励
回复

885 次查看
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 项奖励
回复