bluelasers
Advanced Member level 4
- Joined
- May 20, 2014
- Messages
- 115
- Helped
- 33
- Reputation
- 66
- Reaction score
- 33
- Trophy points
- 28
- Activity points
- 1,086
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.