Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Mr.Tejas Dave Chovatiya Ravi Jitendra Edle Sachin Nigam Prepared by:- Guide by:- “ I2C Bus Protocol Implementation” THAKUR...
<ul><li>Shorthand for an “Inter-integrated circuit” bus </li></ul><ul><li>Developed by Philips Semiconductor for TV sets i...
Addr 000 Addr 001 Addr 011 Addr 100 Addr 101 Addr 110 SDA SCL Internal structure I2C  Master Core  WISHBORN Interface Pres...
External connection
Register List Status Register R 8 100 SR Command Register W 8 011 CR Receive Register R 8 110 RXR Transmit Register W 8 10...
  Control register
Transmit Register Receive Register
Command Register
Status Register
I 2 C Bus Configuration <ul><li>2-wire serial bus – Serial data (SDA) and Serial clock (SCL) </li></ul><ul><li>Half-duplex...
I2C Protocol  1. Master sends start condition (S) and controls the clock signal 2. Master sends a unique 7-bit slave devic...
I 2 C Protocol (cont.) 6. Receiver issues an ACK bit for the byte received 7. Repeat 5 and 6 if more bytes need to be tran...
<ul><li>Start – high-to-low transition of the SDA line while SCL line is high </li></ul><ul><li>Stop – low-to-high transit...
  Bit Command Controller I
A B I 2 C Signals C D I
Write 1 byte of data  to a slave <ul><li>Generate start command </li></ul><ul><li>Write slave address+write bit </li></ul>...
Read 1 byte of data  to a slave  <ul><li>Generate start command </li></ul><ul><li>Write slave address+write bit </li></ul>...
<ul><li>Receive acknowledge from slave </li></ul><ul><li>Generate repeated start signal </li></ul><ul><li>Write slave addr...
I 2 C Features <ul><li>“ Clock stretching” – when the receiver needs more time to process a bit, it can pull SCL low to ke...
Clock Synchronization <ul><li>If two or more masters simultaneously try to control the bus, a clock synchronization proced...
<ul><li>Master :- Initiate a message  </li></ul><ul><li>Slave :-  Response to message </li></ul>Multiple Devices
<ul><li>Master detect arbitration loss </li></ul>Multi-Master Support
<ul><li>Reduce IC Pins, Cost and Area  </li></ul><ul><li>Reduce PCB Size And Cost </li></ul>Advantages Of I2C
Addr 000 Addr 001 Addr 011 Addr 100 Addr 101 Addr 110 SDA SCL Internal structure I2C  Master Core  WISHBORN Interface Pres...
References <ul><li>I 2 C: </li></ul><ul><li>http://www-us2.semiconductors.philips.com/acrobat/various/ </li></ul><ul><li>I...
Thank you
Upcoming SlideShare
Loading in …5
×

I2C

18,647 views

Published on

This is my DVLSI Project Presentation on I2C Protocol.

  • Sex in your area is here: ♥♥♥ http://bit.ly/2ZDZFYj ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Dating for everyone is here: ♥♥♥ http://bit.ly/2ZDZFYj ♥♥♥
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD FULL BOOKS, INTO AVAILABLE FORMAT ......................................................................................................................... ......................................................................................................................... 1.DOWNLOAD FULL. PDF eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. doc eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. PDF eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. EPUB eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... 1.DOWNLOAD FULL. doc eBook here { https://tinyurl.com/y3nhqquc } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, eBooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here

I2C

  1. 1. Mr.Tejas Dave Chovatiya Ravi Jitendra Edle Sachin Nigam Prepared by:- Guide by:- “ I2C Bus Protocol Implementation” THAKUR INSTITUTE OF CAREER ADVANCEMENT
  2. 2. <ul><li>Shorthand for an “Inter-integrated circuit” bus </li></ul><ul><li>Developed by Philips Semiconductor for TV sets in the 1980’s </li></ul><ul><li>I 2 C devices include EEPROMs, thermal sensors, and real-time clocks </li></ul><ul><li>Used as a control interface to signal processing devices that have separate data interfaces, e.g. RF tuners, video decoders and encoders, and audio processors. </li></ul><ul><li>I 2 C bus has three speeds: </li></ul><ul><ul><li>Slow (under 100 Kbps) </li></ul></ul><ul><ul><li>Fast (400 Kbps) </li></ul></ul><ul><ul><li>High-speed (3.4 Mbps) – I 2 C v.2.0 </li></ul></ul><ul><li>Limited to about 10 feet for moderate speeds </li></ul>What is I2C?
  3. 3. Addr 000 Addr 001 Addr 011 Addr 100 Addr 101 Addr 110 SDA SCL Internal structure I2C Master Core WISHBORN Interface Prescale Register Command Register Transmit Register Status Register Receiver Register Data IO Shift Register Bit & Byte Controller Clock Generator
  4. 4. External connection
  5. 5. Register List Status Register R 8 100 SR Command Register W 8 011 CR Receive Register R 8 110 RXR Transmit Register W 8 101 TXR Control Register RW 8 Null CTR Clock Prescale Register Hi-byte RW 8 001 PRERhi Clock Prescale Register Lo-byte RW 8 000 PRERlo Description Access Width Address Name
  6. 6. Control register
  7. 7. Transmit Register Receive Register
  8. 8. Command Register
  9. 9. Status Register
  10. 10. I 2 C Bus Configuration <ul><li>2-wire serial bus – Serial data (SDA) and Serial clock (SCL) </li></ul><ul><li>Half-duplex, synchronous, multi-master bus </li></ul><ul><li>No chip select or arbitration logic required </li></ul><ul><li>Lines pulled high via resistors, pulled down via open-drain drivers (wired-AND) </li></ul>
  11. 11. I2C Protocol 1. Master sends start condition (S) and controls the clock signal 2. Master sends a unique 7-bit slave device address 3. Master sends read/write bit (R/W) – 0 - slave receive, 1 - slave transmit 4. Slave with matching 7-bit device address always sends acknowledge bit (ACK) 5. Transmitter (slave or master) transmits 1 byte of data
  12. 12. I 2 C Protocol (cont.) 6. Receiver issues an ACK bit for the byte received 7. Repeat 5 and 6 if more bytes need to be transmitted 8. Master always sends stop condition (P) a. For write transaction (master transmitting), master issues stop condition (P) after last byte of data. b. For read transaction (master receiving), master does not acknowledge final byte, just issues stop condition (P) to tell the slave the transmission is done
  13. 13. <ul><li>Start – high-to-low transition of the SDA line while SCL line is high </li></ul><ul><li>Stop – low-to-high transition of the SDA line while SCL line is high </li></ul><ul><li>Ack – While transmitter allows SDA to float, the receiver pulls SDA low throughout the entire next clock pulse on SCL. </li></ul><ul><li>Data – transition takes place while SCL is low and is valid while SCL is high </li></ul>I 2 C Signals
  14. 14. Bit Command Controller I
  15. 15. A B I 2 C Signals C D I
  16. 16. Write 1 byte of data to a slave <ul><li>Generate start command </li></ul><ul><li>Write slave address+write bit </li></ul><ul><li>Receive acknowledge from slave </li></ul><ul><li>Write data </li></ul><ul><li>Receive acknowledge from slave </li></ul><ul><li>Generate stop command </li></ul>
  17. 17. Read 1 byte of data to a slave <ul><li>Generate start command </li></ul><ul><li>Write slave address+write bit </li></ul><ul><li>Receive acknowledge from slave </li></ul><ul><li>Write data </li></ul><ul><li>Receive acknowledge from slave </li></ul><ul><li>Generate stop command </li></ul>
  18. 18. <ul><li>Receive acknowledge from slave </li></ul><ul><li>Generate repeated start signal </li></ul><ul><li>Write slave address + read bit </li></ul><ul><li>Receive acknowledge from slave </li></ul><ul><li>Read byte from slave </li></ul><ul><li>Write no acknowledge to slave,indicationg end of transfer </li></ul><ul><li>Generate stop signal </li></ul>
  19. 19. I 2 C Features <ul><li>“ Clock stretching” – when the receiver needs more time to process a bit, it can pull SCL low to keep it from going high a bit longer. This technique is called clock stretching . On SDL low, the transmitter can send its next data value, but this value will not be interpreted as a valid data symbol by the receiver until after the slave is ready to release SCL to go high. </li></ul><ul><li>“ General call” broadcast – addresses every device on the bus </li></ul><ul><li>10-bit extended addressing for new designs. 7-bit addresses all exhausted </li></ul>
  20. 20. Clock Synchronization <ul><li>If two or more masters simultaneously try to control the bus, a clock synchronization procedure determines the bus clock. </li></ul><ul><li>Because of the wired-AND connection of the I2C signals a high to low transition affects all devices connected to the bus. </li></ul>
  21. 21. <ul><li>Master :- Initiate a message </li></ul><ul><li>Slave :- Response to message </li></ul>Multiple Devices
  22. 22. <ul><li>Master detect arbitration loss </li></ul>Multi-Master Support
  23. 23. <ul><li>Reduce IC Pins, Cost and Area </li></ul><ul><li>Reduce PCB Size And Cost </li></ul>Advantages Of I2C
  24. 24. Addr 000 Addr 001 Addr 011 Addr 100 Addr 101 Addr 110 SDA SCL Internal structure I2C Master Core WISHBORN Interface Prescale Register Command Register Transmit Register Status Register Receiver Register Data IO Shift Register Bit & Byte Controller Clock Generator
  25. 25. References <ul><li>I 2 C: </li></ul><ul><li>http://www-us2.semiconductors.philips.com/acrobat/various/ </li></ul><ul><li>I2C_BUS_SPECIFICATION_1995.pdf </li></ul><ul><li>http://www.esacademy.com/faq/i2c/index.htm </li></ul><ul><li>http://www.embedded.com/story/OEG20020528S0057 </li></ul>
  26. 26. Thank you

×