R01UH0136EJ0210 Rev.2.10
Page 549 of 800
Jul 31, 2012
M16C/64A Group
25. Multi-master I
2
C-bus Interface
TOSEL (Timeout detect time select bit) (b2)
Set the TOSEL bit to select a timeout detection period. The TOSEL bit is enabled when the TOE bit is 1
(timeout detect function enabled).
When long time is selected, the internal counter increments fVIIC as a 16-bit counter. When short time
is selected, the internal counter increments fVIIC as a 14-bit counter. Therefore, the timeout detect time
is as follows:
When the TOSEL bit is set to 0 (long time)
When the TOSEL bit is set to 1 (short time)
Table 25.9 lists Timeout Detect Time.
Rewrite this bit when the TOE bit is 0.
ICK4-ICK2 (I
2
C-bus system clock select bit) (b5-b3)
Rewrite bits ICK4 to ICK2 when the ES0 bit in the S1D0 register is 0 (I
2
C interface disabled).
fVIIC is selected by setting all the bits ICK4 to ICK2, bits ICK1 to ICK0 in the S3D0 register, and the
PCLK0 bit in the PCLKR register. Refer to Table 25.8 “I
2
C-bus System Clock Select Bits” and 25.3.1.2
MSLAD (Slave address control bit) (b6)
The MSLAD bit is enabled when the ALS bit in the S1D0 register is set to 0 (addressing format). The
MSLAD bit is used to select the S0Di register (i = 0 to 2) used for slave address match detection.
SCPIN (Stop condition detect interrupt request bit) (b7)
The SCPIN bit is enabled when the SIM bit in the S3D0 register is set to 1 (enable I
2
C-bus interrupt by
stop condition detection).
Condition to become 0:
•
Writing 0 by a program.
Condition to become 1:
•
Stop condition is detected
(This bit cannot be set to 1 by a program.)
Table 25.9
Timeout Detect Time
fVIIC
Timeout Detect
TOSEL bit: 0 (Long time)
TOSEL bit: 1 (Short time)
4 MHz
16.4 ms
4.1 ms
2 MHz
32.8 ms
8.2 ms
1 MHz
65.6 ms
16.4 ms
65536
1
fVIIC
--------------
×
16384
1
fVIIC
--------------
×
Содержание M16C/60 Series
Страница 853: ...M16C 64A Group R01UH0136EJ0210...