Professional Documents
Culture Documents
Introduction (1)
I²C enables the communication between MCUs and their peripheral devices.
Vcc
Slave Device Slave Device
Address: 1101001 Address: 0100111
Pull-up R1 Pull-up R2
SDA
Master Device SCL
I²C Pins
The pins connected to SDA and SCL lines should be configured as open-drain.
The pull-up resistor within the processor is too large, in order of 100 kΩ.
To reduce the rise time of I²C lines, smaller resistors, such as 3 kΩ, are often used.
I²C Protocol (1)
The communication begins with START bit (S) and terminates with STOP bit (P)
The I²C interfacing HW of all peripherals devices is capable of detecting START and STOP.
After the START bit, the master begins to send data byte by byte.
The transmitter releases the SDA line during the ACK clock period (nineth clock period).
I²C Protocol (2)
The communication begins with START bit (S) and terminates with STOP bit (P)
The I²C interfacing HW of all peripherals devices is capable of detecting START and STOP.
After the START bit, the master begins to send data byte by byte.
The transmitter releases the SDA line during the ACK clock period (nineth clock period).