R01UH0823EJ0100 Rev.1.00
Page 1185 of 1823
Jul 31, 2019
RX23W Group
35. I
2
C-bus Interface (RIICa)
Figure 35.41
SMBus Timeout Measurement
35.12.2
Packet Error Code (PEC)
This MCU incorporates a CRC calculator. The CRC calculator enables transmission of a packet error code (PEC) or
checking the received data of the SMBus in data communication of the RIIC. For the CRC generating polynomials of the
CRC calculator, refer to
section 39, CRC Calculator (CRC)
.
The PEC data in master transmit mode can be generated by writing all transmit data to the CRC data input register
(CRCDIR) in the CRC calculator.
The PEC data in master receive mode can be checked by writing all receive data to CRCDIR in the CRC calculator and
comparing the obtained value in the CRC data output register (CRCDOR) with the received PEC data.
To send ACK or NACK according to the match or mismatch result when the final byte is received as a result of the PEC
code check, set the ICMR3.RDRFS bit to 1 before the rising edge of the eighth SCL clock cycle during reception of the
final byte, and hold the SCL0 line low at the falling edge of the eighth clock cycle.
35.12.3
SMBus Host Notification Protocol (Notify ARP Master Command)
In communications over an SMBus, a slave device can temporarily act as a master device to notify the SMBus host (or
ARP master) of its own slave address or to request its own slave address from the SMBus host.
For a product of this MCU to operate as an SMBus host (or ARP master), the host address (0001 000b) sent from the
slave device must be detected as a slave address, so the RIIC has a function for detecting the host address. To detect the
host address as a slave address, set the ICMR3.SMBS bit and the ICSER.HOAE bit to 1. Operation after the host address
has been detected is the same as normal slave operation.
S
1
1
P
9
9
8
R/W
7
7-bit slave address
2
9
7
Data
2
8
7
2
8
7
2
8
7
Data
2
8
1
Start
Stop
Clk
ACK
T
LOW:SEXT
Clk
ACK
T
LOW:MEXT
T
LOW:MEXT
Clk
ACK
T
LOW:MEXT
TEND
TDRE
BBSY
RDRF
START
STOP
RDRFS
T
LOW:MEXT
T
LOW:SEXT
: Total clock low-level extended period (slave device)
T
LOW:MEXT
: Total clock low-level extended period (master device)
SMBus specification
ACK
ACK
A/NA
SCL0
SDA0
Measured with the MTU or TMR