SlideShare a Scribd company logo
1 of 14
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

Similar to I2C PRESENTATION.PPT

I2C-Bus Design and Verification Specs
I2C-Bus Design and Verification SpecsI2C-Bus Design and Verification Specs
I2C-Bus Design and Verification SpecsMostafa Khamis
 
I2C protocol and DS1307 RTC interfacing
I2C protocol and DS1307 RTC interfacingI2C protocol and DS1307 RTC interfacing
I2C protocol and DS1307 RTC interfacingBhargav Kakadiya
 
Implementation of I2C Master Bus Protocol on FPGA
Implementation of I2C Master Bus Protocol on FPGAImplementation of I2C Master Bus Protocol on FPGA
Implementation of I2C Master Bus Protocol on FPGAIJERA Editor
 
Serial peripheral Interface - Embedded System Protocol
Serial peripheral Interface - Embedded System ProtocolSerial peripheral Interface - Embedded System Protocol
Serial peripheral Interface - Embedded System ProtocolAditya Porwal
 
Part-2: Mastering microcontroller with embedded driver development
Part-2: Mastering microcontroller with embedded driver developmentPart-2: Mastering microcontroller with embedded driver development
Part-2: Mastering microcontroller with embedded driver developmentFastBit Embedded Brain Academy
 
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDLDesign &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDLIJERA Editor
 
Serial Peripheral Interface
Serial Peripheral InterfaceSerial Peripheral Interface
Serial Peripheral InterfaceChirag Parikh
 
serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdfKiranG731731
 
Serial Communication
Serial CommunicationSerial Communication
Serial CommunicationUshaRani289
 
Inter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocolInter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocolRevathi Subramaniam
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication InterfaceSandesh Agrawal
 
EXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxEXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxNaveenK365392
 

Similar to I2C PRESENTATION.PPT (20)

I2C-Bus Design and Verification Specs
I2C-Bus Design and Verification SpecsI2C-Bus Design and Verification Specs
I2C-Bus Design and Verification Specs
 
I2C
I2CI2C
I2C
 
I2C protocol and DS1307 RTC interfacing
I2C protocol and DS1307 RTC interfacingI2C protocol and DS1307 RTC interfacing
I2C protocol and DS1307 RTC interfacing
 
Implementation of I2C Master Bus Protocol on FPGA
Implementation of I2C Master Bus Protocol on FPGAImplementation of I2C Master Bus Protocol on FPGA
Implementation of I2C Master Bus Protocol on FPGA
 
Isa bus nptel
Isa bus nptelIsa bus nptel
Isa bus nptel
 
Introduction to embedded systems
Introduction to embedded systemsIntroduction to embedded systems
Introduction to embedded systems
 
Serial peripheral Interface - Embedded System Protocol
Serial peripheral Interface - Embedded System ProtocolSerial peripheral Interface - Embedded System Protocol
Serial peripheral Interface - Embedded System Protocol
 
I2C introduction
I2C introductionI2C introduction
I2C introduction
 
Part-2: Mastering microcontroller with embedded driver development
Part-2: Mastering microcontroller with embedded driver developmentPart-2: Mastering microcontroller with embedded driver development
Part-2: Mastering microcontroller with embedded driver development
 
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDLDesign &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
Design &Implementation of I2C Master Controller Interfaced With RAM Using VHDL
 
Serial Peripheral Interface
Serial Peripheral InterfaceSerial Peripheral Interface
Serial Peripheral Interface
 
serial-200505101453.pdf
serial-200505101453.pdfserial-200505101453.pdf
serial-200505101453.pdf
 
Serial Communication
Serial CommunicationSerial Communication
Serial Communication
 
Inter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocolInter intergrated circuits-communication protocol
Inter intergrated circuits-communication protocol
 
I2 c
I2 cI2 c
I2 c
 
Universal Serial Communication Interface
Universal Serial Communication InterfaceUniversal Serial Communication Interface
Universal Serial Communication Interface
 
The I2C Interface
The I2C InterfaceThe I2C Interface
The I2C Interface
 
Lpc2148 i2c
Lpc2148 i2cLpc2148 i2c
Lpc2148 i2c
 
USART
USARTUSART
USART
 
EXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptxEXIDE PPT TEMPLATE.pptx
EXIDE PPT TEMPLATE.pptx
 

Recently uploaded

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):comworks
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 

Recently uploaded (20)

Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):CloudStudio User manual (basic edition):
CloudStudio User manual (basic edition):
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 

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