Figure 24-19 through Figure 24-27 are procedure flow charts for programming the F/S and HS I2C modes.
Table 24-13 Subprocess Call Summary for Sequence – I2C Setup ProcedureSubprocess Name | Cross-Reference |
---|
Pad configuration | See PAD Configuration Registers in Control Module |
Table 24-14 HS I2C Register Call Summary for Sequence – Setup ProcedureRegister Name | Register Name | Register Name |
---|
I2Ci.I2C_PSC (1) | I2Ci.I2C_CON (1) | I2Ci.I2C_BUF (1) |
I2Ci.I2C_SCLL (1) | I2Ci.I2C_SA (1) | I2Ci.I2C_IRQENABLE_SET
(1) |
I2Ci.I2C_SCLH (1) | I2Ci.I2C_CNT (1) | I2Ci.I2C_OA (1) |
(1) i = 1 to 5
Note: The FIFO clearing can be made when the module is configured as transmitter, the receiver send a NACK in the middle of the transfer, and there is still data in the FIFO.
Note: In HS mode, the Sr condition and clock frequency switching are automatically generated by the multimaster HS I2C controller.
Table 24-15 HS I2C Register Call Summary for Sequence – Master Transmitter Mode, Polling Method, in F/S and HS ModesRegister Name | Register Name | Register Name |
---|
I2Ci.I2C_IRQSTATUS_RAW
(1) | I2Ci.I2C_DATA (1) | I2Ci.I2C_CON (1) |
I2Ci.I2C_BUFSTAT (1) | I2Ci.I2C_CON (1) | I2Ci.I2C_BUF (1) |
(1) i = 1 to 5
Table 24-16 HS I2C Register Call Summary for Sequence – Master Receiver Mode, Polling Method, in F/S and HS ModesRegister Name | Register Name | Register Name |
---|
I2Ci.I2C_IRQSTATUS_RAW
(1) | I2Ci.I2C_BUFSTAT (1) | I2Ci.I2C_BUF (1) |
I2Cii.I2C_CON (1) | I2Ci.I2C_DATA (1) | |
(1) i = 1 to 5
Note: The FIFO clearing can be made when the module is configured as transmitter, the receiver send a NACK in the middle of the transfer, and there is still data in the FIFO.
Note: In HS mode, the Sr condition and clock frequency switching are automatically generated by the multimaster HS I2C controller.
Table 24-17 HS I2C Register Call Summary for Sequence – Master Transmitter Mode, Interrupt Method, in F/S and HS ModesRegister Name | Register Name | Register Name |
---|
I2Ci.I2C_IRQSTATUS_RAW
(1) | I2Ci.I2C_BUFSTAT (1) | I2Ci.I2C_BUF (1) |
I2Ci.I2C_CON (1) | I2Ci.I2C_DATA (1) | |
(1) i = 1 to 5
Table 24-18 HS I2C Register Call Summary for Sequence – Master Receiver Mode, Interrupt Method, in F/S and HS ModesRegister Name | Register Name | Register Name |
---|
I2Ci.I2C_IRQSTATUS_RAW
(1) | I2Ci.I2C_BUFSTAT (1) | I2Ci.I2C_BUF (1) |
I2Ci.I2C_CON (1) | I2Ci.I2C_DATA (1) | |
(1) i = 1 to 5
Note: The FIFO clearing can be made when the module is configured as transmitter, the receiver send a NACK in the middle of the transfer, and there is still data in the FIFO.
Note: In HS mode, the Sr condition and clock frequency switching are automatically generated by the multimaster HS I2C controller.
Table 24-19 HS I2C Register Call Summary for Sequence – Master Transmitter Mode, DMA Method in F/S and HS ModesRegister Name | Register Name |
---|
I2Ci.I2C_IRQSTATUS_RAW
(1) | I2Ci.I2C_BUFSTAT (1) |
I2Ci.I2C_CON (1) | I2Ci.I2C_DATA (1) |
(1) i = 1 to 5
Table 24-20 HS I2C Register Call Summary for Sequence – Master Receiver Mode, DMA Method in F/S and HS ModesRegister Name | Register Name |
---|
I2Ci.I2C_IRQSTATUS_RAW
(1) | I2Ci.I2C_BUFSTAT (1) |
I2Ci.I2C_CON (1) | I2Ci.I2C_DATA (1) |
(1) i = 1 to 5
Table 24-21 HS I2C Register Call Summary for Sequence – Slave Transmitter/Receiver Mode, PollingRegister Name | Register Name |
---|
I2Ci.I2C_IRQSTATUS_RAW
(1) | I2Ci.I2C_BUFSTAT (1) |
I2Ci.I2C_DATA (1) | I2Ci.I2C_BUF (1) |
(1) i = 1 to 5
Table 24-22 HS I2C Register Call Summary for Sequence – Slave Transmitter/Receiver Mode, InterruptRegister Name | Register Name |
---|
I2Ci.I2C_IRQSTATUS_RAW
(1) | I2Ci.I2C_BUFSTAT (1) |
I2Ci.I2C_DATA (1) | I2Ci.I2C_BUF (1) |
(1) i = 1 to 5