Scl Synchronization Circuit - Renesas RX100 Series User Manual

32-bit mcu
Hide thumbs Also See for RX100 Series:
Table of Contents

Advertisement

RX13T Group
24.4

SCL Synchronization Circuit

In generation of the SCL clock, the RIIC starts counting out the value for width at high level specified in the ICBRH
register when it detects a rising edge on the SCL0 line and drives the SCL0 line low once counting of the width at high
level is complete. When the RIIC detects the falling edge of the SCL0 line, it starts counting out the width at low level
period specified in the ICBRL register, and then stops driving the SCL0 line (releases the line) once counting of the
width at low level is complete. The SCL clock is thus generated.
If multiple master devices are connected to the I
another master device. In such cases, the master devices have to synchronize their SCL signals. Because this
synchronization of SCL signals must be bit by bit, the RIIC is equipped with a facility (the SCL synchronization circuit)
to obtain bit-by-bit synchronization of the SCL clock signals by monitoring the SCL0 line while in master mode.
When the RIIC has detected a rising edge on the SCL0 line and thus started counting out the width at high level specified
in the ICBRH register, and the level on the SCL0 line falls because an SCL signal is being generated by another master
device, the RIIC stops counting when it detects the falling edge, drives the level on the SCL0 line low, and starts
counting out the width at low level specified in the ICBRL register. When the RIIC finishes counting out the width at low
level, it stops driving the SCL0 line to the low level (i.e. releases the line). At this time, if the width at low level of the
SCL clock signal from the other master device is longer than the width at low level set in the RIIC, the width at low level
of the SCL signal will be extended. Once the width at low level for the other master device has ended, the SCL signal
rises because the SCL0 line has been released. When the RIIC finishes outputting the low-level period of the SCL clock,
the SCL0 line is released and the SCL clock rises. That is, in cases of contention of SCL signals from more than one
master, the width at high level of the SCL signal is synchronized with that of the clock having the narrower width, and
the width at low level of the SCL signal is synchronized with that of the clock having the broader width. However, such
synchronization of the SCL signal is only enabled when the ICFER.SCLE bit is set to 1.
[SCL clock generation]
(Counter clear, low-drive start)
ICBRH
SCL0
Falling of SCL0 detected
(Low-level period count start)
[SCL synchronization]
Counter clear
ICBRH
SCL0
2
ICBRH: I
C-bus bit rate high-level register (SCL clock high-level period counter)
2
ICBRL: I
C-bus bit rate low-level register (SCL clock low-level period counter)
Figure 24.21
Generation and Synchronization of the SCL Signal from the RIIC
R01UH0822EJ0100 Rev.1.00
Jul 31, 2019
2
C-bus, a collision of SCL signals may arise due to contention with
Compare match
Rising of SCL detected
(High-level period count start)
ICBRL
(Counter clear, SCL0 line released)
Low-level output of
other master device
ICBRL
ICBRH
Compare match
Counter clear
ICBRH
ICBRL
2
24. I
C-bus Interface (RIICa)
ICBRH
ICBRL
Low-level output of
ICBRH
other master device
Page 772 of 1041
ICBRL

Advertisement

Table of Contents
loading

Table of Contents