I2C Between SX28 and Propeller (Help!)
SailerMan
Posts: 337
Can someone please help me with a little code.. I want to set up an I2C Link between an SX28 and a Propeller.
I have tried and failed, mostly because I don't understand completely... I2C functionality.
I just want to send 1 byte from the SX28 and receive it on the Propeller.
Can anyone help?
I have tried and failed, mostly because I don't understand completely... I2C functionality.
I just want to send 1 byte from the SX28 and receive it on the Propeller.
Can anyone help?
Comments
Ray
No I don't specifically need I2C, I just thought that after trying to keep time with·Serial comms that I would try something Syncronous(sp) I2C Came to mind... Tell me more about SPI.
Eric
The select line is brought usually from a HIGH to a LOW where it remains throughout the transfer. The clock line is taken from HIGH to LOW to HIGH. Depending on the device, the data line is read just before the HIGH to LOW transition or the LOW to HIGH transition. Similarly, if there's a data out line, it must be stable at either the HIGH to LOW transition or the LOW to HIGH transition. Since you have control of both ends of the connection, you can define whatever convention you want.
Very often, the device always outputs data and inputs data so there's an interchange of a byte with each transfer. Again, you don't have to do that if you don't want it.