EasyManuals Logo
Home>Renesas>Microcontrollers>M16C/29 Series

Renesas M16C/29 Series User Manual

Renesas M16C/29 Series
501 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #302 background imageLoading...
Page #302 background image
16. MULTI-MASTER I
2
C bus INTERFACE
puorG92/C61M
page 276
854fo7002,03.raM21.1.veR
2110-1010B90JER
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 I
2
C 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 (I
2
C 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 I
2
C 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 I
2
C 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 (Unit: ms)
16.7.4 Bits 3,4,5: I
2
C System Clock Select Bits (ICK2-4)
Bits ICK4 to ICK2, and bits ICK1 and ICK0 in the S3D0 register, and the PCLK0 bit in the PCLKR register
select the system clock (VIIC) of the I
2
C 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 I
2
C bus
interface interrupt is generated by detecting the STOP condition. When this bit is set to 0 by program, it
becomes 0. However, no change occurs even if it is set to 1.
VIIC(MHz) Long time mode Short time mode
4 16.4 4.1
2 32.8 8.2
1 65.6 16.4

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Renesas M16C/29 Series and is the answer not in the manual?

Renesas M16C/29 Series Specifications

General IconGeneral
BrandRenesas
ModelM16C/29 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals