14.2.3 Initialization
The I2C peripheral can be initialized in the user application software by configuring the I2C Control register and SOFT_RESET_CR system registry. The initialization sequence is as follows:
- Release the I2C from reset by using SOFT_RESET_CR system registry (Table 14-1).
- Enable I2C by writing ‘1’ to the ENS1 bit of 14.4.1 Control Register.
- Configure the serial clock rate by using CR0, CR1, and CR2 bits of 14.4.1 Control Register.
- Set the slave address to Slave0 Address Register (14.4.4 Slave0 Address Register).