I2C Code on 52223 EVB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

I2C Code on 52223 EVB

1,843 Views
PopsStack
Contributor I
Has anyone written any routines for I2C - hoping to avoid having to reinvent the wheel.
Labels (1)
0 Kudos
2 Replies

349 Views
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 Kudos

349 Views
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 Kudos