Another Physical Layer – I2C

Slides:



Advertisements
Similar presentations
I2C bus Inter Integrated Circuits bus by Philips Semiconductors
Advertisements

ECT 357 Ch 18 UART. Today’s Quote: Be careful that your marriage doesn’t become a duel instead of a duet. Be careful that your marriage doesn’t become.
Serial Buses. Serial Bus Features Allows several devices to be connected to a set of common signal wires Reduces inter-connections and complexity Asynchronous.
CSE 466 – Fall Introduction - 1 COMMANDS RESPONSES Master/Slave Software Architecture Master void master() _task_ MAST{ Button(mode); // enq(cmd)
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.
Lecture 8: Serial Interfaces
Serial Peripheral Interface (SPI)
I2CI2C CS-423 Dick Steflik. Inter-Integrated Circuit Developed and patented by Philips for connecting low speed peripherals to a motherboard, embedded.
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.
INPUT-OUTPUT ORGANIZATION
MSP432™ MCUs Training Part 5: Digital Peripherals
MODES OF Details of Pins Pin 1 –Connected Ground Pins 2-16 –acts as both input/output. Outputs address at the first part of the cycle and outputs.
Embedded Bus – i2c David E. Culler Lab 2 Feb 2, 2015
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.
 Project Description & Goals  Hardware Used  Circuitry & Connections  Communication  Software & Programming  End Result.
Lecture 20: Communications Lecturers: Professor John Devlin Mr Robert Ross.
Advanced Microprocessor1 I/O Interface Programmable Interval Timer: 8254 Three independent 16-bit programmable counters (timers). Each capable in counting.
 8251A is a USART (Universal Synchronous Asynchronous Receiver Transmitter) for serial data communication.  Programmable peripheral designed for synchronous.
MODES OF Details of Pins Pin 1GND –Connected Ground Pins 2-16 AD14-AD0–acts as both input/output. Outputs address at the first part of the cycle.
8259A PROGRAMMABLE INTERRUPT CONTROLLER. CONTINUE…. The 8259A consist of eight data bus lines from D0-D7 The data bus is the path over which data are.
OCRP RF Control WINLAB – Rutgers University Date : June Authors : Prasanthi Maddala, Khanh Le,
©2008 R. Gupta, UCSD COSMOS Summer 2008 Peripheral Interfaces Rajesh K. Gupta Computer Science and Engineering University of California, San Diego.
GBT SCA overview Slide 1-5 Work status Slide 6-10 Shuaib Ahmad Khan.
OCRP RF Control WINLAB – Rutgers University Date : June Authors : Prasanthi Maddala, Khanh Le,
 The Programmable Interrupt Controller (PlC) functions as an overall manager in an Interrupt-Driven system. It accepts requests from the peripheral equipment,
Computer Networks & Digital Lab project. In cooperation with Mellanox Technologies Ltd. Guided by: Crupnicoff Diego & Gurewitz Omer. Students: Cohen Erez,
BIRLA VISHVAKARMA MAHAVIDYALAY SUBJECT: SPI PROTOCOL & MAX7221 DISPLAY INTERFACING SUBMITTED BY: KISHAN AVASTHI( ) MANSI CHANDEGARA( )
Memory Mapped IO (and the CerfBoard). The problem How many IO pins are available on the 8051? What if you are using interrupts, serial, etc…? We want.
Lab 9 Multiprocessor, Buses, SPI, I2C. Multiprocessors Why multiprocessors? The structure of multiprocessors. Elements of multiprocessors: – Processing.
Computer Organization and Design
8255 Programmable Peripheral Interface
Outline Analog to digital conversion (ADC) of NuMaker TRIO
Serial Communication Buses: I2C and SPI
Two Wire Interface Another popular serial peripheral interface bus
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
Introduction An interrupt is an event which informs the CPU that its service (action) is needed. Sources of interrupts: Internal fault (e.g.. divide by.
UNIT – Microcontroller.
Diagram of microprocessor interface with IO devices
I/O Memory Interface Topics:
EE3541 Introduction to Microprocessors
(Inter-IC bus) By Tejaswini Gadicherla
1 Input-Output Organization Computer Organization Computer Architectures Lab Peripheral Devices Input-Output Interface Asynchronous Data Transfer Modes.
Two Wire Interface (TWI)
8259-programmable interrupt controller
I2C Synchronous Serial Two wire communications (plus ground)
Presentation On 8259 Made by Md Shabbir Hasan.
E3165 DIGITAL ELECTRONIC SYSTEM
Programmable Interrupt Controller 8259
Programmable Interrupt Controller 8259
Interrupt.
I2C PROTOCOL SPECIFICATION
Communication Lines Fundamentals.
BJ Furman ME 106 Fundamentals of Mechatronics 15NOV2012
EEPROM Comparison – Parallel or Serial
Pulse Width Modulation (PWM)
Computer Organization and Design
Timers.
Architecture & Support Components
I2C and RTC Chapter 18 Sepehr Naimi
X1 & X2 These are also called Crystal Input Pins.
8259 Programmable Interrupt Controller
Programmable Data Communication Blocks
Serial Communication 19th Han Seung Uk.
Programmable Interval Timer
Chapter 13: I/O Systems.
The Programmable Peripheral Interface (8255A)
Presentation transcript:

Another Physical Layer – I2C Multi-mastered Send and receive Two wire (plus ground) Serial CSE 466 – Fall 2000 - Introduction - 1

CSE 466 – Fall 2000 - Introduction - 2 Terminology CSE 466 – Fall 2000 - Introduction - 2

CSE 466 – Fall 2000 - Introduction - 3 Physical Interface wired-and configuration CSE 466 – Fall 2000 - Introduction - 3

CSE 466 – Fall 2000 - Introduction - 4 Bit Transfer Transmitter (master or slave) sampled on both edges Master CSE 466 – Fall 2000 - Introduction - 4

CSE 466 – Fall 2000 - Introduction - 5 Who gets to be master The one who initiates a frame: A frame is: <Start><addr><data>…<data><Stop> OR <Start><addr><data>…<data><R_Start><addr><data>…<Stop> CSE 466 – Fall 2000 - Introduction - 5

CSE 466 – Fall 2000 - Introduction - 6 An I2C Byte Transfer MSB First MSB……………….LSB slave slave Tx Device Rx Device master CSE 466 – Fall 2000 - Introduction - 6

CSE 466 – Fall 2000 - Introduction - 7 A Complete Frame MSB……..LSB Addresses are 7 bits, LSB of address byte is Read/Write control. Determines whether master or slave becomes the transmitter CSE 466 – Fall 2000 - Introduction - 7

CSE 466 – Fall 2000 - Introduction - 8 Arbitration It is up to the failed master to try again when the bus is not busy. Seems like high address devices are low priority receivers…but I haven’t read this anywhere CSE 466 – Fall 2000 - Introduction - 8

CSE 466 – Fall 2000 - Introduction - 9 Interfacing to the Bus 8051 Electrical connection is fine. But the software is complex CSE 466 – Fall 2000 - Introduction - 9

CSE 466 – Fall 2000 - Introduction - 10 An alternative 8051 addr (1bit) A0 PCF 8584 I2C Bus Controller data (8 bits) P0 DB rst CK2 \CS \RD \WR Memory mapped device that handles bit level interface. Only do byte level stuff in software CSE 466 – Fall 2000 - Introduction - 10

Using the Bus Interface CSE 466 – Fall 2000 - Introduction - 11

CSE 466 – Fall 2000 - Introduction - 12 Slave Flow CSE 466 – Fall 2000 - Introduction - 12

CSE 466 – Fall 2000 - Introduction - 13 Slave Receiver Mode CSE 466 – Fall 2000 - Introduction - 13