I2C_C2 field descriptions (continued)Field Description3RMENRange Address Matching EnableThis bit controls the slave address matching for addresses between the values of the A1 and RA registers.When this bit is set, a slave address matching occurs for any address greater than the value of the A1register and less than or equal to the value of the RA register.0 Range mode disabled. No address matching occurs for an address within the range of values of theA1 and RA registers.1 Range mode enabled. Address matching occurs when a slave receives an address within the range ofvalues of the A1 and RA registers.AD[10:8] Slave AddressContains the upper three bits of the slave address in the 10-bit address scheme. This field is valid onlywhile the ADEXT bit is set.21.4.7 I2C Stop Control and Status Register (I2C_SCS)Address: 18B0h base + 6h offset = 18B6hBit 7 6 5 4 3 2 1 0Read SHEN STOPF SSIE STARTF 0Write w1c w1cReset 0 0 0 0 0 0 0 0I2C_SCS field descriptionsField Description7SHENStop Hold EnableSet this bit to hold off entry to stop mode when any data transmission or reception is occurring.The following scenario explains the holdoff functionality:1. The I2C module is configured for a basic transfer, and the SHEN bit is set to 1.2. A transfer begins.3. The MCU signals the I2C module to enter stop mode.4. The byte currently being transferred, including both address and data, completes its transfer.5. The I2C slave or master acknowledges that the in-transfer byte completed its transfer andacknowledges the request to enter stop mode.6. After receiving the I2C module's acknowledgment of the request to enter stop mode, the MCUdetermines whether to shut off the I2C module's clock.If the SHEN bit is set to 1 and the I2C module is in an idle or disabled state when the MCU signals to enterstop mode, the module immediately acknowledges the request to enter stop mode.If SHEN is cleared to 0 and the overall data transmission or reception that was suspended by stop modeentry was incomplete: To resume the overall transmission or reception after the MCU exits stop mode,software must reinitialize the transfer by resending the address of the slave.If the I2C Control Register 1's IICIE bit was set to 1 before the MCU entered stop mode, system softwarewill receive the interrupt triggered by the I2C Status Register's TCF bit after the MCU wakes from the stopmode.Table continues on the next page...Chapter 21 Inter-Integrated Circuit (I2C)MC9S08SU16 Reference Manual, Rev. 5, 4/2017NXP Semiconductors 371