Beruflich Dokumente
Kultur Dokumente
Agenda
Need of I2C
Features of I2C
The I2C Protocol
Electrical Interface
Physical Layer / Signalling
Data Link Layer
Bus Arbitration
Clock Synchronization
References
Need of I2C
Maximize hardware efficiency
Circuit Simplicity
Efficient Inter IC Control
Hence solve interfacing problems encountered
during designing digital control circuits
Features of I2C
Only 2 lines are required SDA and
SCL
Each device connected to the bus is
software addressable by a unique
address
True multi-master bus including
collision detection and arbitration
Can provide data speeds ranging
from 100kbps to 3.4Mbps depending
on modes
Slave
Receive
r
Slave
Receiver/ Transmitter
Master 2
I C Electrical Interface
2
I C Physical Layer
2
Data Validity
Data format
Acknowledgement
Conditions of NACK
No receiver is present on the bus with
the transmitted address
Receiver is busy in some other task
Receiver gets data/ commands that it
doesnt understand
Receiver cannot accept more data bytes
Master receiver must signal end of
transfer to slave transmitter
Transferred byte
Bus Arbitration
Is performed when multiple masters
are operating
Clock Synchronization
SCL decided with longest LOW period and shortest HIGH period
References
UM10204 I2C bus specification and user
manual
http://www.robot-electronics.co.uk/i2c-tutor
ial
http://www.byteparadigm.com/applications/i
ntroduction-to-i2c-and-spi-protocols/
Understanding I2C Bus, Texas Instruments