SlideShare a Scribd company logo
2
Most read
9
Most read
10
Most read
I2C
(Inter-IC bus)
By
Tejaswini Gadicherla
(tgadiche@uncc.edu)
Topics Discussed….
 What is I2C ???
 Why has it endured?
 Bus transfer terminology
 How does it work?
Introduction to I2C
 I2C is a control bus providing
communications link between integrated
circuits in a system.
 Developed by Philips in the early 1980s.
 Examples of I2C-compatible devices
found in embedded systems include
EEPROMs, thermal sensors and real-time
clock.
Why I2C has endured?
 Bus has kept pace with performance
and today offers 3 levels of data
transfer rate
 100kbps in standard mode
 400kbps in Fast mode
 3.4 Mbps in high-speed mode
Why I2C has endured?
 Reliable performance using software-
controlled collision detection and
arbitration.
 Ease of use. 2 lines connect all ICs in
a system.
 Software controlled addressing
scheme eliminating need for address-
decoding hardware.
What does I2C consist of?
I2C is a 2 wire serial bus as shown above. The 2 signals are
SDA Serial Data
SCL  Serial Clock
Together these signals make it possible to support serial transmission.
I2C BUS
 The device that initiates the transaction on the I2C
bus is termed the master. The master normally
controls the clock signal.
 A device being addressed by the master is called
the slave.
 There needs to be at least one master( a
microcontroller or a DSP) on the bus, but there can
be more than one master. All the masters on a bus
have equal priority.
 Every device on the I2C bus has a
unique 7 bit (or 10 bit) I2C address.
 Typically the 4 most significant bits are
fixed and assigned to specific
categories of devices. Ex: 1010 is
assigned to serial EEPROM.
 The lower 3 bits are programmable
allowing 8 devices of one kind to be
present on a single I2C bus.
Terminology for bus transfer
SCL and SDA are bi-directional !
 F(free) – Bus is idle or free. Both SDA and SCL are in a high
state
 S(Start) or R(Restart) – SDA changes from high to low with
the SCL line remaining high. All data transfers begin with
S(Start) condition.
 C(Change) – SCL line is low. Data bit to be transferred is
applied to the SDA line.
 D(Data) – high or low bit of information on SDA line is valid
during the high level of the SCL line.
 P(Stop) – SDA line changes from low to high with SCL line
remaining high. All data transfers end with P(Stop) condition.
Data transfer
• Data is transferred in sequences of 8 bits.
•Bits are placed on SDA line with MSB first.
•SCL line is then pulsed high and then low.
•For every 8 bits transferred, the device receiving the
data sends back an acknowledge bit.
Data transfer(contd)
 If the receiving device sends back an low ACK bit,
then it has received the data and is ready to accept
another byte.
 If it sends back a high ACK, then the device is
indicating that it cannot accept any further data and
the master should terminate the transfer by sending
a stop sequence.
Writing to a slave device
 Master sends a start sequence. This alerts all the
slave devices to an impending transaction and they
should listen , in case its for them.
 Next the master sends out the device address with
read/write bit low. The slave that matches this
address will continue the transaction , while others
ignore.
 Master can now send data byte(s).
 Master sends the stop sequence.
Reading from a slave
 Master sends a start sequence.
 Master sends the device address with read/write bit high.
 Master reads data from the device.
 Master sends the stop sequence
References
 http://www.semiconductors.philips.com/m
arkets/mms/protocols/i2c/facts/
 http://www.embedded.com/story/OEG200
10718S0073
 http://www.mcc-us.com/i2chowto.htm

More Related Content

PPT
PPTX
Digital Electronics Registers and Counters.pptx
PPTX
I2C Protocol
PPTX
I2c protocol - Inter–Integrated Circuit Communication Protocol
PPTX
I2C Protocol
PPTX
spi-180501092933-converted.pptx
PPTX
I2C introduction
PPTX
I2 c protocol
Digital Electronics Registers and Counters.pptx
I2C Protocol
I2c protocol - Inter–Integrated Circuit Communication Protocol
I2C Protocol
spi-180501092933-converted.pptx
I2C introduction
I2 c protocol

What's hot (20)

PPTX
PPT
I2C Protocol
PPT
Serial Peripheral Interface(SPI)
PDF
SPI Protocol
ODP
PPT
SPI Bus Protocol
PDF
I2C Bus (Inter-Integrated Circuit)
PDF
Serial Peripheral Interface
PDF
I2C BUS PROTOCOL
PPTX
SPI introduction(Serial Peripheral Interface)
PPTX
PPT
PDF
The I2C Interface
PPTX
I2C-Bus Design and Verification Specs
PPTX
Spi in arm7(lpc2148)
PPTX
Memory Management in RTOS.pptx
PPT
I2C And SPI Part-23
PPTX
Part-2: Mastering microcontroller with embedded driver development
PPTX
Register Organization and Instruction cycle
PPTX
Deepu Kumar Shah.pptx
I2C Protocol
Serial Peripheral Interface(SPI)
SPI Protocol
SPI Bus Protocol
I2C Bus (Inter-Integrated Circuit)
Serial Peripheral Interface
I2C BUS PROTOCOL
SPI introduction(Serial Peripheral Interface)
The I2C Interface
I2C-Bus Design and Verification Specs
Spi in arm7(lpc2148)
Memory Management in RTOS.pptx
I2C And SPI Part-23
Part-2: Mastering microcontroller with embedded driver development
Register Organization and Instruction cycle
Deepu Kumar Shah.pptx
Ad

Similar to I2C PRESENTATION.PPT (20)

PDF
communication interfaces-Embedded real time systems
PPTX
embedded system on board communication.pptx
PPTX
embedded system on board communication.pptx
PPTX
embedded system on board communication.pptx
PPTX
Communication Protocols in Embedded Systems.pptx
PPTX
UNI T 6- SPI_I2C_Lecture8.pptx
PDF
Raspberry Pi - Lecture 3 Embedded Communication Protocols
PDF
An Implementation of I2C Slave Interface using Verilog HDL
PPTX
COM_BASIC.pptx
PDF
Embedded Networking - Serial Bus Communication Protocols – I2C Bus
PDF
EJ5I Embedded system chapter 2 of diploma Chapter 3.pdf
PPT
I2C protocol and DS1307 RTC interfacing
PDF
Implementation of I2C Master Bus Protocol on FPGA
PDF
Isa bus nptel
PPT
Introduction to embedded systems
PPTX
Serial peripheral Interface - Embedded System Protocol
PDF
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
PPTX
Serial Communication
PDF
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
PPTX
Inter intergrated circuits-communication protocol
communication interfaces-Embedded real time systems
embedded system on board communication.pptx
embedded system on board communication.pptx
embedded system on board communication.pptx
Communication Protocols in Embedded Systems.pptx
UNI T 6- SPI_I2C_Lecture8.pptx
Raspberry Pi - Lecture 3 Embedded Communication Protocols
An Implementation of I2C Slave Interface using Verilog HDL
COM_BASIC.pptx
Embedded Networking - Serial Bus Communication Protocols – I2C Bus
EJ5I Embedded system chapter 2 of diploma Chapter 3.pdf
I2C protocol and DS1307 RTC interfacing
Implementation of I2C Master Bus Protocol on FPGA
Isa bus nptel
Introduction to embedded systems
Serial peripheral Interface - Embedded System Protocol
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Serial Communication
PA UNIT 4 (FR INFORMATION TECHNOLOGY) SPPU
Inter intergrated circuits-communication protocol
Ad

Recently uploaded (20)

PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Approach and Philosophy of On baking technology
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
cuic standard and advanced reporting.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
Empathic Computing: Creating Shared Understanding
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PPT
Teaching material agriculture food technology
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Modernizing your data center with Dell and AMD
Understanding_Digital_Forensics_Presentation.pptx
Approach and Philosophy of On baking technology
Building Integrated photovoltaic BIPV_UPV.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Digital-Transformation-Roadmap-for-Companies.pptx
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
MYSQL Presentation for SQL database connectivity
Encapsulation_ Review paper, used for researhc scholars
cuic standard and advanced reporting.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
Empathic Computing: Creating Shared Understanding
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Teaching material agriculture food technology
Advanced methodologies resolving dimensionality complications for autism neur...
Network Security Unit 5.pdf for BCA BBA.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Diabetes mellitus diagnosis method based random forest with bat algorithm
Modernizing your data center with Dell and AMD

I2C PRESENTATION.PPT

  • 2. Topics Discussed….  What is I2C ???  Why has it endured?  Bus transfer terminology  How does it work?
  • 3. Introduction to I2C  I2C is a control bus providing communications link between integrated circuits in a system.  Developed by Philips in the early 1980s.  Examples of I2C-compatible devices found in embedded systems include EEPROMs, thermal sensors and real-time clock.
  • 4. Why I2C has endured?  Bus has kept pace with performance and today offers 3 levels of data transfer rate  100kbps in standard mode  400kbps in Fast mode  3.4 Mbps in high-speed mode
  • 5. Why I2C has endured?  Reliable performance using software- controlled collision detection and arbitration.  Ease of use. 2 lines connect all ICs in a system.  Software controlled addressing scheme eliminating need for address- decoding hardware.
  • 6. What does I2C consist of? I2C is a 2 wire serial bus as shown above. The 2 signals are SDA Serial Data SCL  Serial Clock Together these signals make it possible to support serial transmission.
  • 7. I2C BUS  The device that initiates the transaction on the I2C bus is termed the master. The master normally controls the clock signal.  A device being addressed by the master is called the slave.  There needs to be at least one master( a microcontroller or a DSP) on the bus, but there can be more than one master. All the masters on a bus have equal priority.
  • 8.  Every device on the I2C bus has a unique 7 bit (or 10 bit) I2C address.  Typically the 4 most significant bits are fixed and assigned to specific categories of devices. Ex: 1010 is assigned to serial EEPROM.  The lower 3 bits are programmable allowing 8 devices of one kind to be present on a single I2C bus.
  • 9. Terminology for bus transfer SCL and SDA are bi-directional !  F(free) – Bus is idle or free. Both SDA and SCL are in a high state  S(Start) or R(Restart) – SDA changes from high to low with the SCL line remaining high. All data transfers begin with S(Start) condition.  C(Change) – SCL line is low. Data bit to be transferred is applied to the SDA line.  D(Data) – high or low bit of information on SDA line is valid during the high level of the SCL line.  P(Stop) – SDA line changes from low to high with SCL line remaining high. All data transfers end with P(Stop) condition.
  • 10. Data transfer • Data is transferred in sequences of 8 bits. •Bits are placed on SDA line with MSB first. •SCL line is then pulsed high and then low. •For every 8 bits transferred, the device receiving the data sends back an acknowledge bit.
  • 11. Data transfer(contd)  If the receiving device sends back an low ACK bit, then it has received the data and is ready to accept another byte.  If it sends back a high ACK, then the device is indicating that it cannot accept any further data and the master should terminate the transfer by sending a stop sequence.
  • 12. Writing to a slave device  Master sends a start sequence. This alerts all the slave devices to an impending transaction and they should listen , in case its for them.  Next the master sends out the device address with read/write bit low. The slave that matches this address will continue the transaction , while others ignore.  Master can now send data byte(s).  Master sends the stop sequence.
  • 13. Reading from a slave  Master sends a start sequence.  Master sends the device address with read/write bit high.  Master reads data from the device.  Master sends the stop sequence