Shop OBEX P1 Docs P2 Docs Learn Events
Propeller P8X32A IIC Help — Parallax Forums

Propeller P8X32A IIC Help

Can someone point me in the direction of operating Propeller C code that implements bi-directional communication on the IIC communication bus?
Sincerely,
Discovery.

Comments

  • Google "Propellor i2c C"
  • The Tutorial did not show how to obtain addresses from peripheral devices and insert them into a functioning program. I will keep looking.
    Discovery
  • The second page of the DIY I2C tutorial tells you exactly how to obtain a device address.To quote:"So, how would you go about finding out details like the EEPROM’s I2C address? Or the number of bytes that you have to send it to pick one of its internal memory addresses?  Read the device’s datasheet.  They are usually written for industry professionals, so you might need to read and re-read certain sections and write pieces of test code to check how the device replies.  But with time and persistence, you will succeed, and it gets easier with practice. " 
    and unquote.
    For reasons known only to the select few that actually write the datasheets, a device's I2C address is always buried deep in some dark, musty crevice of the data sheet. Instead of proudly proclaiming  at the beginning of the data sheet "This device's I2C 8 bit address is 0xA0 and in 7 bit format it is 0x50, they bury it near the end, most often in a binary image in the I2C protocol section. I guess its like where the grocery stores put the milk in the far corners so you have to go through the whole store (datasheet in this case) to get what you need. 
  • Oh...
    Discovery
Sign In or Register to comment.