R01UH0136EJ0210 Rev.2.10
Page 540 of 800
Jul 31, 2012
M16C/64A Group
25. Multi-master I
2
C-bus Interface
•
Bits AAS2 to AAS0 in the S11 register: 0 (slave address not matches)
•
The TOF bit in the S4D0 register: 0 (timeout not detected)
ALS (Data format select bit) (b4)
The ALS bit is enabled in slave mode. When the ALS bit is 0 (addressing format), the slave address
match detection is performed.
When a slave address stored to bits SAD6 to SAD0 in the S0Di register (i = 0 to 2) is compared and
matched with the calling address by a master, or when a general call address is received, the IR bit in
the IICIC register becomes 1 (interrupt requested).
When the ALS bit is 1 (free data format), the slave address match detection is not performed.
Therefore, the IR bit in the IICIC register becomes 1 (interrupt requested), regardless of the calling
address by a master.
IHR (I
2
C-bus interface reset bit) (b6)
The IHR bit resets the I
2
C interface if there is an anomaly during transmission/reception. When the ES0
bit in the S1D0 register is 1 (I
2
C interface enabled) and then the IHR bit is set to 1 (reset), the I
2
C
interface becomes as follows:
•
S10 register
ADR0 bit: 0 (general call not detected)
AAS bit: 0 (slave address not matched)
AL bit: 0 (arbitration lost not detected)
PIN bit: 1 (No I
2
C-bus interrupt request)
BB bit: 0 (bus free)
TRX bit: 0 (receive mode)
MST bit: 0 (slave mode)
•
Bits AAS2 to AAS0 in the S11 register: 0 (slave address not matches)
•
TOF bit in the S4D0 register: 0 (timeout not detected)
When the IHR bit is set to 1, the I
2
C interface is reset and the IHR bit becomes 0 automatically. It takes
a maximum of 2.5 fVIIC cycles to complete the reset sequence.
Figure 25.3 shows the I
Figure 25.3
I
2
C Interface Reset Timing
TISS (I
2
C-bus interface pin input level select bit) (b7)
Set the TISS bit to select the input level of the SCLMM pin and SDAMM pin for the I
2
C interface.
IHR bit in the S1D0 register
I
2
C interface reset signal
2.5 fVIIC cycles
Set to 1 by a program
Summary of Contents for M16C/60 Series
Page 853: ...M16C 64A Group R01UH0136EJ0210...