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.

Slides:



Advertisements
Similar presentations
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.
Advertisements

I2C bus Inter Integrated Circuits bus by Philips Semiconductors
Chapter Three: Interconnection Structure
Input/Output Organization Asynchronous Bus
I/O Unit.
Serial Interfaces, Part Deux -I 2 C and SPI December 4, 2002 Presented by Eugene Ho.
Lecture 8: Serial Interfaces
FIU Chapter 7: Input/Output Jerome Crooks Panyawat Chiamprasert
Serial Communication Buses: I 2 C and SPI By Brody Dunn.
4-1 ECE 424 Design of Microprocessor-Based Systems Haibo Wang ECE Department Southern Illinois University Carbondale, IL Hardware Detail of Intel.
Configuration. Mirjana Stojanovic Process of loading bitstream of a design into the configuration memory. Bitstream is the transmission.
I2CI2C CS-423 Dick Steflik. Inter-Integrated Circuit Developed and patented by Philips for connecting low speed peripherals to a motherboard, embedded.
Input/Output and Communication
Two Wire Interface Another popular serial peripheral interface bus -More flexible than SPI -Master and slave modes supported -7-bit slave address -400khz.
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.
Synchronous Serial IO Send a separate clock line with data
1 EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Lecture 10: Serial buses Oct 6, 2011.
SERIAL BUS COMMUNICATION PROTOCOLS
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
1 © Unitec New Zealand I2C Lecture 10 Date: - 2 Nov, 2011 Embedded Hardware ETEC 6416.
Computer Architecture Lecture 08 Fasih ur Rehman.
Serial Peripheral Interface (SPI) Bus. SPI Bus There is no official specification for the SPI bus. It is necessary to consult the data sheets of the devices.
Serial Peripheral Interface Module MTT M SERIAL PERIPHERAL INTERFACE (SPI)
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.
Embedded Bus – i2c David E. Culler Lab 2 Feb 2, 2015
7/23 Inter-chip Serial Communication: SPI and I 2 C Computer Science & Engineering Department Arizona State University Tempe, AZ Dr. Yann-Hang Lee.
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
I/O Example: Disk Drives To access data: — seek: position head over the proper track (8 to 20 ms. avg.) — rotational latency: wait for desired sector (.5.
DEVICES AND COMMUNICATION BUSES FOR DEVICES NETWORK
PCA9557: REMOTE 8-BIT I 2 C AND SMBus LOW- POWER I/O EXPANDER.
I2C Master Core Simulation Environment. I2C Master Core Requirements Coverage (*) Requirement I2C IP RS-906: The I2C IP shall define the period of time,
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.
© 2009, Renesas Technology America, Inc., All Rights Reserved 1 Course Introduction  Purpose:  This course provides an overview of the serial communication.
PS/2 Mouse/Keyboard Port
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.
CS 478: Microcontroller Systems University of Wisconsin-Eau Claire Dan Ernst Bus Protocols and Interfacing Bus basics I/O transactions MPC555 bus Reference:
Bus Protocols and Interfacing (adopted Steven and Marios’s slides) Bus basics I/O transactions MPC823 bus Reference: Chapter 13 of “White Book”
Input Output Techniques Programmed Interrupt driven Direct Memory Access (DMA)
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
Embedded Communication Protocols Don Heer 10/18/10 1.
The World Leader in High Performance Signal Processing Solutions SD/SDIO Introduction Cliff Cai.
BIRLA VISHVAKARMA MAHAVIDYALAY SUBJECT: SPI PROTOCOL & MAX7221 DISPLAY INTERFACING SUBMITTED BY: KISHAN AVASTHI( ) MANSI CHANDEGARA( )
میکرو کنترلرهای AVR Serial Interfaces, I2C and SPI
MICROCONTROLLER AND INTERFACING Presented by: Shefali Jethva ( ) Shivali Panchal ( ) Komal Soni ( ) Roll no. :- 14EC308.
Serial Communication Originally created by Anurag Dwidedi and Rudra Pratap Suman.
Chapter 6 Input/Output Organization
Outline Analog to digital conversion (ADC) of NuMaker TRIO
Serial Communication Buses: I2C and SPI
The I2C Bus.
Two Wire Interface Another popular serial peripheral interface bus
Input/Output and Communication
Inter-IC Bus (I C) 2.
Chapter 11: Inter-Integrated Circuit (I2C) Interface
(Inter-IC bus) By Tejaswini Gadicherla
Two Wire Interface (TWI)
EE 107 Fall 2017 Lecture 7 Serial Buses – I2C Direct Memory Access
HCP – Holub’s Communication Protocol
I2C PROTOCOL SPECIFICATION
Communication Lines Fundamentals.
BJ Furman ME 106 Fundamentals of Mechatronics 15NOV2012
Siemens Step 7 Project with Controllere in 7 Steps: Step 1
Serial EEPROM (Atmel 24C-512)
I2C and RTC Chapter 18 Sepehr Naimi
Presentation transcript:

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 bus master) by arbiter protocol Speed Standard——100Kbps Fast-mode——400Kbps High-speed mode——3.Mbsp

Wire and structure

Connection of devices Single Master Multiple Master

Master/Slave Master is the initiator of data Tx/Rx Master drive the SCL Slave passively receive command and execute command sent by master, can only control SDA Signal

Start/Stop of data transfer SCL=H, falling edge of SDA indicates start of transmission SCL=H, rising edge of SDA indicates stop of transmission When transmitting data, SDA can only change when SCL=0 MSB transmitted first

Mast write operation Slave Acknowledge: Host Release SDA, Slave pull SDA down Slave pulldown Slave pullup if error

Master Write operation (detail) 1.Master generate specific start signal ( SCL = H , SDA = H  L ) inform all devices, that master will transfer data 2.Master put target device address to the IIC bus, 7 -bit address + 1-bit read/write flag( 1  Read, 0  Write) 3.Master release SDA waiting for target device response. 4.Target device (device with matched address) pulldown SDA for response 5.Master see response on SDA, continue transmitting data on SDA Line 6.Master release SDA after transmitting each byte, waiting for response from the target device 7.Device pulldown SDA indicating that data received correctly 8.Master continue sending data until end of data 9.Master send specific data to inform end of transmission ( SCL = H , SDA = L  H )

Master read operation

Mastre read operation (detail) 1.Master generate specific start signal ( SCL = H , SDA = H  L ) inform all devices, that master request data from slave 2.Master put target device address to the IIC bus, 7 -bit address + 1-bit read/write flag( 1  Read, 0  Write) 3.Master release SDA waiting for target device response. 4.Target device (device with matched address) pulldown SDA for response 5.Master receive data when target response. 6.Target send data via SDA, After sending each byte, slave release SDA, waiting for master response. 7.Master pull down SDA to response to slave that data is received correctly 8.After receiving all data. Master send specific data to inform end of transmission ( SCL = H , SDA = L  H )

Design Example ( EEPROM )

Desing Example ( IO Expansion )