130
AT94KAL Series FPSLIC
Rev. 1138G–FPSLI–11/03
2-wire Serial
Interface
(Byte Oriented)
The 2-wire Serial Bus is a bi-directional two-wire serial communication standard. It is designed
primarily for simple but efficient integrated circuit (IC) control. The system is comprised of two
lines, SCL (Serial Clock) and SDA (Serial Data) that carry information between the ICs con-
nected to them. Various communication configurations can be designed using this bus.
Figure 68 shows a typical 2-wire Serial Bus configuration. Any device connected to the bus
can be Master or Slave.
Figure 68.
2-wire Serial Bus Configuration
The 2-wire Serial Interface provides a serial interface that meets the 2-wire Serial Bus specifi-
cation and supports Master/Slave and Transmitter/Receiver operation at up to 400 kHz bus
clock rate. The 2-wire Serial Interface has hardware support for the 7-bit addressing, but is
easily extended to 10-bit addressing format in software. When operating in 2-wire Serial
mode, i.e., when TWEN is set, a glitch filter is enabled for the input signals from the pins SCL
and SDA, and the output from these pins are slew-rate controlled. The 2-wire Serial Interface
is byte oriented. The operation of the serial 2-wire Serial Bus is shown as a pulse diagram in
Figure 69, including the START and STOP conditions and generation of ACK signal by the
bus receiver.
Figure 69.
2-wire Serial Bus Timing Diagram
The block diagram of the 2-wire Serial Bus interface is shown in Figure 70.
Device 1
Device 2
Device 3
Device n
.......
V
CC
R1
R2
SCL
SDA
SDA
SCL
MSB
R/W
BIT
STOP CONDITION
START
CONDITION
REPEATED START CONDITION
1
2
7
8
9
1
2
8
9
ACK
ACK
ACKNOWLEDGE
FROM RECEIVER