You are on page 1of 13

2C I

Inter Integrated Circuits bus

R. DHARSHANI (11MO32) P. GOWRISHANKAR (11MO33)

Basic Characteristics
two-wired bus originally to interact within small number of devices (radio/TV tuning) speeds: 100 kbps (standard mode) 400 kbps (fast mode) 3.4 Mbps (high-speed mode) data transfers: serial, 8-bit oriented, bi-directional master/slave relationships with multi-master option master can operate as transmitter or receiver addressing: 7bit or 10bit unique addresses
2

Wires and Signals


two-wired bus serial data line (SDA) serial clock line (SCL) voltage levels HIGH 1 LOW 0 not fixed, depends on associated level of voltage bit transfer (level triggered) SCL = 1 SDA = valid data one clock pulse per data bit stable data during high clocks data change during low clocks
3

Wired-AND connection
bus is free SDA and SCL are high by pull-up resistors device output is ANDed with signal on bus

Masters and Slaves


Master device controls the SCL starts and stops data transfer controls addressing of other devices Slave device device addressed by master Transmitter/Receiver master or slave master-transmitter sends data to slave-receiver master-receiver requires data from slave-transmitter
5

Complete I2C Transfer

Master Writes to Slave (transmitter)

Master Reads from Slave (receiver)

Advantages


Only two bus lines are required to establish full-fledged bus. Each slave device connected is uniquely addressable using slave addresses Can choose a short 7 bit or 10 bit addressing No strict baud rate specified since the clock is driven directly by the master True multimaster support with up to 8 masters in a single bus system. Inexpensive Supports up to 3.4 Mbits/sec transfer speeds.
9

Limitations


7 bit addressing supports only a very small number of devices. Different devices from different manufacturers come with hard coded slave address or address will be configurable in a small range only. This can lead to address clashes sometimes. No automatic bus configuration or plug and play.

10

ATMEGA16
 

High performance, Low power AVR 8-bit

RISC Microcontroller.

11

12

THANK YOU

You might also like