MC81F4x16
25. SLAVE IIC
IIC is used to communicate between some devices with 2 lines which are SDA(Serial Data Line) and
SCL(Serial Clock Line). Both two lines are bidirectional open drain lines which are pulled up with
registers.
IIC provides „standard mode‟ (max 100Kbps) and „fast mode‟ (max 400Kbps).
25.1 Roles
There are two roles in an IIC communication. Which are „master‟ and „slave‟.
-
-
Master : that generates the clock and transfer slave‟s address.
Slave : that receives the clock and matched with message‟s slave address.
Note: MC81F4x16 provides the slave mode only.
25.2 Registers
Address Register
(IICAR)
Compare
IIC-Bus
Control Logic
(IICSCR)
SCL
Interrupt
SDA
Data Shifter
(IICDSR)
Data Bus
Figure 25-1 Registers for IIC
162
October 19, 2009 Ver.1.35