0% found this document useful (0 votes)
44 views15 pages

Presented By: Hemal M. Chevli Vishal Sharma Guided By: MR - Prasad Joshi

The document discusses the I2C (Inter-Integrated Circuit) interface, which is a two-wire communication protocol used to connect devices inside electronic systems. It describes I2C as having been invented by Philips to provide a simple way for integrated circuits to communicate using a minimum number of pins. The key aspects covered include I2C using just two bidirectional lines for clock and data; being a multi-master system with arbitration; addressing of devices through unique codes; and following a simple protocol for starting/stopping communication and transferring data bit-by-bit or byte-by-byte. Advantages noted are the ease of adding/removing devices and upgrading applications using the standardized I2C interface.

Uploaded by

Hemal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views15 pages

Presented By: Hemal M. Chevli Vishal Sharma Guided By: MR - Prasad Joshi

The document discusses the I2C (Inter-Integrated Circuit) interface, which is a two-wire communication protocol used to connect devices inside electronic systems. It describes I2C as having been invented by Philips to provide a simple way for integrated circuits to communicate using a minimum number of pins. The key aspects covered include I2C using just two bidirectional lines for clock and data; being a multi-master system with arbitration; addressing of devices through unique codes; and following a simple protocol for starting/stopping communication and transferring data bit-by-bit or byte-by-byte. Advantages noted are the ease of adding/removing devices and upgrading applications using the standardized I2C interface.

Uploaded by

Hemal
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 15

Presented By: Hemal M.

Chevli
Vishal Sharma
Guided by: Mr.Prasad Joshi
1
Introduction

 I2C- Inter Integrated Circuit


 Two wire interface
 Invented by Philips
 Used for communication for on board devices

2
What is I2C
 Originally, bus defined by providing a simple way to talk
between IC’s by using a minimum number of pins
 A set of specifications to build a simple universal bus
guaranteeing compatibility of parts (ICs) from different
manufacturers:–
 Simple Hardware standards
 Simple Software protocol standard
 No specific wiring or connectors -most often it’s just
PCB tracks
 Has become a recognised standard throughout our
industry and is used now by ALL major IC manufacturers
3
 Simple bi-directional 2-wire bus:
 serial data (SDA)
 serial clock (SCL)
 Has become a worldwide industry standard and used by all
major IC manufacturers
 Multi-master capable bus with arbitration feature
 Master-Slave communication; Two-device only
communication
 Each IC on the bus is identified by its own address code
 The slave can be a:
 receiver-only device
 transmitter with the capability to both receive and send data

4
I2C bus
 Simple procedures that allow communication to start, to
achieve data transfer, and to stop
 Described in the Philips protocol (rules)
 Message serial data format is very simple
 Often generated by simple software in general purpose micro
 Dedicated peripheral devices contain a complete interface
 Multi-master capable with arbitration feature
 Each IC on the bus is identified by its own address code
 Address has to be unique
 The master IC that initiates communication provides the
clocksignal (SCL)
 There is a maximum clock frequency but NO MINIMUM SPEED

5
I2C implementation

6
START/STOP conditions

 Exceptions are the START and STOP


conditions

7
START/STOP conditions

 Data on SDA must be stable when SCL is


High

8
Addressing Scheme

 Each device is addressed individually by software.


 Unique address per device: fully fixed or with a
programmable partthrough hardware pin(s).
 Programmable pins mean that several same
devices can share thesame bus
 Address allocation coordinated by the I2C-bus
committee
 112 different types of devices max with the 7-bit
format (others reserved)

9
7-bit Addressing scheme

10
10-bit addressing scheme

11
Read/Write Operations

 Write to slave

 Read from slave

12
Ways to drive I2C

With a Microcontroller with on-chip I2C Interface


 Bit oriented -CPU is interrupted after every bit
transmission
 (Example: 87LPC76x)
 Byte oriented-CPU can be interrupted after every byte
transmission
 (Example: 87C552)
With ANY microcontroller: 'Bit Banging’
 The I2C protocol can be emulated bit by bit via any bi-
directional open drain port
With a microcontroller in conjunction with bus controller like
the PCF8584 or PCA9564 parallel to I2C bus interface IC
13
Advantages
 Simple Hardware standard
 Simple protocol standard
 Easy to add / remove functions or devices (hardware and software)
 Easy to upgrade applications
 Simpler PCB: Only 2 traces required to communicate between
devices
 Very convenient for monitoring applications
 Fast enough for all “Human Interfaces” applications
 Displays, Switches, Keyboards
 Control, Alarm systems
 Large number of different I2C devices in the semiconductors
business
 Well known and robust bus

14
Thank you
15

You might also like