Philips LPC213 Series User Manual page 117

Table of Contents

Advertisement

Philips Semiconductors
Volume 1
The synchronization logic will synchronize the serial clock generator with the clock pulses
on the SCL line from another device. If two or more master devices generate clock pulses,
the "mark" duration is determined by the device that generates the shortest "marks," and
the "space" duration is determined by the device that generates the longest "spaces".
Figure 28
A slave may stretch the space duration to slow down the bus master. The space duration
may also be stretched for handshaking purposes. This can be done after each bit or after
a complete byte transfer. the I
been transmitted or received and the acknowledge bit has been transferred. The serial
interrupt flag (SI) is set, and the stretching continues until the serial interrupt flag is
cleared.
11.6.6 Serial clock generator
This programmable clock pulse generator provides the SCL clock pulses when the I
block is in the master transmitter or master receiver mode. It is switched off when the I
block is in a slave mode. The I
via the I
registers for details. The output clock pulses have a duty cycle as programmed unless the
bus is synchronizing with other SCL clock sources as described above.
11.6.7 Timing and control
The timing and control logic generates the timing and control signals for serial byte
handling. This logic block provides the shift pulses for I2DAT, enables the comparator,
generates and detects start and stop conditions, receives and transmits acknowledge bits,
controls the master and slave modes, contains interrupt request logic, and monitors the
2
I
11.6.8 Control register, I2CONSET and I2CONCLR
The I
and restart of a serial transfer, termination of a serial transfer, bit rate, address recognition,
and acknowledgment.
User manual
shows the synchronization procedure.
SDA Line
SCL Line
1. Another device pulls the SCL line low before this I
effectively determines the (shorter) high period.
2. Another device continues to pull the SCL line low after this I
2
SCL. The I
C clock generator is forced to wait until SCL goes high. The other device effectively determines
the (longer) low period.
3. The SCL line is released and the clock generator begins timing the high time.
Fig 28. Serial clock synchronization
2
C Clock Control Registers. See the description of the I2CSCLL and I2CSCLH
C-bus status.
2
C control register contains bits used to control the following I
Rev. 01 — 24 June 2005
(1)
(3)
(2)
High
Low
period
period
2
C has timed a complete high time. The other device
2
C has timed a complete low time and released
2
C block will stretch the SCL space duration after a byte has
2
C output clock frequency and duty cycle is programmable
UM10120
2
Chapter 11: I
C interfaces
(1)
2
C block functions: start
© Koninklijke Philips Electronics N.V. 2005. All rights reserved.
2
C
2
C
117

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lpc2131Lpc2132Lpc2134Lpc2136Lpc2138

Table of Contents