English
Language : 

M16C28 Datasheet, PDF (291/423 Pages) Renesas Technology Corp – 16-BIT SINGLE-CHIP MICROCOMPUTER M16C FAMILY / M16C/Tiny SERIES
M16C/28 Group (M16C/28, M16C/28B)
16. MULTI-MASTER I2C bus INTERFACE
16.7.1 Bit0: Time-Out Detection Function Enable Bit (TOE)
The TOE bit enables the time-out detection function. When the TOE bit is set to "1", time-out is detected
and the I2C bus interface interrupt request is generated when the following conditions are met.
1) the BB flag in the S10 register is set to "1" (bus busy)
2) the SCL clock stops for time-out detection period while high-level ("H") signal is maintained (see
Table 16.7)
The internal counter measures the time-out detection time and the TOSEL bit selects between two
modes, long time and short time. When time-out is detected, set the ES0 bit to "0" (I2C bus interface
disabled) and reset the counter.
16.7.2 Bit1: Time-Out Detection Flag (TOF )
The TOF flag indicates the time-out detection. If the internal counter which measures the time-out
period overflows, the TOF flag is set to “1” and the I2C bus interface interrupt request is generated at the
same time.
16.7.3 Bit2: Time-Out Detection Period Select Bit (TOSEL)
The TOSEL bit selects time-out detection period from long time mode and short time mode. When the
TOSEL bit is set to "0", long time mode is selected. When it is set to "1", short time mode is selected,
respectively. The internal counter increments as a 16-bit counter in long time mode, while the counter
increments as a 14-bit counter in short time mode, based on the I2C system clock (VIIC) as a counter
source. Table 16.7 shows examples of time-out detection period.
Table 16.7 Examples of Time-out Detection Period
VIIC(MHz)
Long time mode
4
16.4
2
32.8
1
65.6
(Unit: ms)
Short time mode
4.1
8.2
16.4
16.7.4 Bits 3,4,5: I2C System Clock Select Bits (ICK2-4)
The ICK4 to 2 bits, ICK1 and ICK0 bits in the S3D0 register, and the PCLK0 bit in the PCLKR register
select the system clock (VIIC) of the I2C bus interface circuit. See Table 16.6 for the setting values.
16.7.5 Bit7: STOP Condition Detection Interrupt Request Bit (SCPIN)
The SCPIN bit monitors the stop condition detection interrupt. The SCPIN bit is set to “1” when the I2C
bus interface interrupt is generated by detecting the STOP condition. When this bit is set to "0" by pro-
gram, it becomes "0". However, no change occurs even if it is set to "1".
Rev. 2.00 Jan. 31, 2007 page 271 of 385
REJ09B0047-0200