(Inter-IC bus) By Tejaswini Gadicherla

Slides:



Advertisements
Similar presentations
Bus arbitration Processor and DMA controllers both need to initiate data transfers on the bus and access main memory. The device that is allowed to initiate.
Advertisements

IO Interfaces and Bus Standards. Interface circuits Consists of the cktry required to connect an i/o device to a computer. On one side we have data bus.
I2C bus Inter Integrated Circuits bus by Philips Semiconductors
INPUT-OUTPUT ORGANIZATION
Embedded Systems I2CI2C. Feature 3 wire GND SCL(clock) SDA(data) All devices share the same bus wire Using wire and, each device gain access to bus (become.
Serial Interfaces, Part Deux -I 2 C and SPI December 4, 2002 Presented by Eugene Ho.
Lecture 8: Serial Interfaces
PH4705 ET4305 Interface Standards A number of standard digital data interfaces are used in measurement systems to connect instruments and computers for.
I2CI2C CS-423 Dick Steflik. Inter-Integrated Circuit Developed and patented by Philips for connecting low speed peripherals to a motherboard, embedded.
Lecture 27: LM3S9B96 Microcontroller – Inter- Integrated Circuit (I 2 C) Interface.
Haptic Belt team Informational Presentation.  I 2 C is a form of control bus (multi-master) which allows communication between multiple integrated circuits.
INPUT-OUTPUT ORGANIZATION
1 EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Lecture 10: Serial buses Oct 6, 2011.
SERIAL BUS COMMUNICATION PROTOCOLS
1 © Unitec New Zealand I2C Lecture 10 Date: - 2 Nov, 2011 Embedded Hardware ETEC 6416.
Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses 11/06/20141Input/Output.
Lecture 111 Lecture 11: Lab 3 Overview, the ADV7183B Video Decoder and the I 2 C Bus ECE 412: Microcomputer Laboratory.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
VERIFICATION OF I2C INTERFACE USING SPECMAN ELITE By H. Mugil Vannan Experts Mr. Rahul Hakhoo, Section Manager, CMG-MCD Mr. Umesh Srivastva, Project Leader.
Embedded Bus – i2c David E. Culler Lab 2 Feb 2, 2015
I2C UNIT 23 로봇 SW 교육원 조용수. 학습 목표 I2C I2C Protocol 구조 N051 I2C 동작 I2C Register 2.
4.0 rtos implementation part II
7/23 Inter-chip Serial Communication: SPI and I 2 C Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee.
1 SERIAL PORT INTERFACE FOR MICROCONTROLLER EMBEDDED INTO INTEGRATED POWER METER Mr. Borisav Jovanović, Prof.dr Predrag Petković, Prof.dr. Milunka Damnjanović,
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
Computer Architecture Lecture10: Input/output devices Piotr Bilski.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
Interrupts, Buses Chapter 6.2.5, Introduction to Interrupts Interrupts are a mechanism by which other modules (e.g. I/O) may interrupt normal.
1 Synchronous Serial IO Send a separate clock line with data –SPI (serial peripheral interface) protocol –I 2 C (or I2C) protocol Encode a clock with data.
ENTC-489 Embedded Real Time Software Development Embedded Real Time Software Development Week 4 Review.
Refer to Chapter 15 in the reference book
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
S4525A Peripherals & Enhanced FLASH 1 © 1999 Microchip Technology Incorporated. All Rights Reserved. S4525A Peripherals & Enhanced FLASH 1 Peripherals.
Essentials of Communication This simple model requires many guarantees. Sender Receiver Communication Link Data.
میکرو کنترلرهای AVR Serial Interfaces, I2C and SPI
Lab 9 Multiprocessor, Buses, SPI, I2C. Multiprocessors Why multiprocessors? The structure of multiprocessors. Elements of multiprocessors: – Processing.
Interconnection Structures
Serial Communication Originally created by Anurag Dwidedi and Rudra Pratap Suman.
Outline Analog to digital conversion (ADC) of NuMaker TRIO
I/O SYSTEMS MANAGEMENT Krishna Kumar Ahirwar ( )
Serial Communication Buses: I2C and SPI
The I2C Bus.
Two Wire Interface Another popular serial peripheral interface bus
Inter-IC Bus (I C) 2.
Chapter 11: Inter-Integrated Circuit (I2C) Interface
I/O Memory Interface Topics:
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
EE 107 Fall 2017 Lecture 7 Serial Buses – I2C Direct Memory Access
SERIAL PERIPHERAL INTERFACE
I2C Synchronous Serial Two wire communications (plus ground)
I2C Protocol and RTC Interfacing
I2C PROTOCOL SPECIFICATION
Communication Lines Fundamentals.
BJ Furman ME 106 Fundamentals of Mechatronics 15NOV2012
DIGITAL DATA COMMUNICATION TECHNIQUES
EEPROM Comparison – Parallel or Serial
Computer Organization and Design
Interfacing Memory Interfacing.
Asynchronous Serial Communications
Serial Communication Interface: Using 8251
Serial EEPROM (Atmel 24C-512)
Jeremy Reed ATMEL AT24C512 2-wire Serial EPROM Jeremy Reed
I2C and RTC Chapter 18 Sepehr Naimi
Преглед Начин функционисања Имплементације
Overview of Computer Architecture and Organization
X1 & X2 These are also called Crystal Input Pins.
Another Physical Layer – I2C
Chapter 9 Transmission Modes
Serial Communication 19th Han Seung Uk.
William Stallings Computer Organization and Architecture
Presentation transcript:

(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/markets/mms/protocols/i2c/facts/ http://www.embedded.com/story/OEG20010718S0073 http://www.mcc-us.com/i2chowto.htm