I2C BUS

Titolo

In this form it is possible to plan the peripheral MSSP for the communication with other devices I2C. The commands that interest this peripheral are: . Commands: I2C [ Put],[ Get],[Init],[Disable]

Configuration I2C Master

1. Operational formality of the peripheral MSSP
2. Enable/Disable of the peripheral
3. Enable/Disable Multy Master on the BUS.
4. Formulation of the speed of the clock
5. Rx buffer Size
6. Byte of addressing slave (1 or 2 byte)
7. Device Address.
8. Configuration of the device (ES: for the 24c01 they are the Pin 1,2,3,4).
9. Address complete.
10.Addition of another slave on the BUS.

Configuration I2C Slave

The management of the peripheral I2C Slave happens through interrupt

1. Operational formality of the peripheral MSSP
2. Enable/Disable of the peripheral
3. Address.
4. Enable/Disable General Call (only 10Bit Address)
5. Buffer of transmission (1-128)Byte
6. Buffer of receipt (1-128)Byte
7. Selection of the timer for the management of the errors.
8. Address monitor.