24.5.2.4 Acknowledge Generation
User software should configure an Acknowledge sequence using ACKC bits
(I2CxCON2[23:22]). When ACKC is configured with "00
", setting the ACKEN
bit (I2CxCON1[4]) enables the generation of a host Acknowledge sequence.
Note: The lower five bits of the I2CxCON or
I2CxCONL register must be ‘
0
’ (host logic inactive) before attempting to
set the ACKEN bit.Figure 24-10 illustrates an ACK sequence, and Figure 24-11 illustrates a NACK sequence. The ACKDT bit (I2CxCON1[5] specifies an ACK or NACK sequence.
After two baud periods, the ACKEN bit is automatically cleared and the module generates the I2CxIF interrupt, if the HACKSIE(I2CxINTC[11]) bit and HSTIE(I2CxINTC[13]) are enabled.