This code example shows how to use I2C module in slave mode. To demonstrate it, dsPIC33E is used as I2C slave device. The master I2C device uses the slave I2C device as RAM. Thus master I2C device can read/write particular RAM area of I2C slave device.
- Explorer 16/32 Development Board (https://www.microchip.com/DM240001-2)
- dsPIC33EP512GM710 PIM (https://www.microchip.com/ma330035) or dsPIC33EP512MU810 PIM (https://www.microchip.com/MA330025-1) or dsPIC33EP256GP506 PIM (https://www.microchip.com/MA330030)
- MPLAB® X IDE v6.00 or newer (https://www.microchip.com/mplabx)
- MPLAB® XC16 v2.00 or newer (https://www.microchip.com/xc)