bluelasers
Advanced Member level 4
![Full Member level 1](/styles/images/ranks/elevel1.gif)
Can anybody help me with code of Master and Slave i2c programming ?
See this is the part that actually confuses me the most. I2C code is a fairly straight forward protocol and the hardware interface is fairly minimal and well documented. I am pretty sure that you could google it. Also microchip implements hardware routines for things like the I2C bus on most all of the processors supported by the C compilers. So you could just use those or dissect them for implementation or clues.
Now if you have never used I2C, my guess is there is some confusion over things like start vs restart, addressing, etc. A good detail of this is documented in detail online.