Embedded Communication Protocols Don Heer 10/18/10 1.

Slides:



Advertisements
Similar presentations
Anurag Dwivedi Rudra Pratap Suman. Scope of Communica tion Telephones and Cell Phones.
Advertisements

ELECTRONIC SYSTEMS NESI NanoRacks Embedded System Integration Board HARDWARE Functional Design.
ECE 371 Unit 13 - Part 1 Serial Peripheral Interface (SPI)
Serial Buses. Serial Bus Features Allows several devices to be connected to a set of common signal wires Reduces inter-connections and complexity Asynchronous.
1 EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Guest Lecturer Pat Pannuto Lecture 10: Serial buses Oct 6, 2011.
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.
SPI Serial Peripheral Interface. SPI Serial Peripheral Interface is communication between two devices, one bit at a time sequential one bit at time over.
Lecture 8: Serial Interfaces
EECS 373 Design of Microprocessor-Based Systems Prabal Dutta
PH4705 ET4305 Interface Standards A number of standard digital data interfaces are used in measurement systems to connect instruments and computers for.
Serial Communication Buses: I 2 C and SPI By Brody Dunn.
Spring EE 316 Computer Engineering Junior Lab Serial Ports.
Serial Peripheral Interface (SPI)
SPISPI Term Dr Abdelhafid Bouhraoua Term Dr Abdelhafid Bouhraoua.
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
ECE 353 Introduction to Microprocessor Systems Michael G. Morrow, P.E. Week 13.
Haptic Belt team Informational Presentation.  I 2 C is a form of control bus (multi-master) which allows communication between multiple integrated circuits.
Interfaces A practical approach. Lesson 2 I2C and SPI
SPI By Alexander Maroudis. Outline What is SPI? SPI Configuration SPI Operation Master Slave Setup SPI Transactions SPI Digital Potentiometer Example.
1 EECS 373 Design of Microprocessor-Based Systems Prabal Dutta University of Michigan Lecture 10: Serial buses Oct 6, 2011.
Computer Architecture Lecture 08 Fasih ur Rehman.
LSU 10/22/2004Serial I/O1 Programming Unit, Lecture 5.
4.0 rtos implementation part II
Arduino Josh Villbrandt February 4, Digital Circuits Analog versus digital – What’s the difference? – How to represent an analog signal in a computer?
Input/Output mechanisms
UART and UART Driver B. Ramamurthy.
Teachers Name : Suman Sarker Telecommunication Technology Subject Name : Microcontroller & Embedded System Subject Code : 6871 Semester : 7th Department.
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.
ECE 353 Introduction to Microprocessor Systems Michael Schulte Week 13.
Embedded System Design Laboratory October 4, 2002Stanford University - EE281 Lecture #3#1 Lecture #3 Outline Announcements AVR Processor Resources –UART.
MICROPROCESSOR AND MICRO CONTROLLER LAB
MICROPROCESSOR AND MICRO CONTROLLER
Atmel Atmega128 Overview ALU Particulars RISC Architecture 133, Mostly single cycle instructions 2 Address instructions (opcode, Rs, Rd, offset) 32x8 Register.
Network and Systems Laboratory nslab.ee.ntu.edu.tw se.
EECS 373 Design of Microprocessor-Based Systems Prabal Dutta
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.
智慧電子應用設計導論(1/3) Arduino MEGA 2560
OCRP RF Control WINLAB – Rutgers University Date : June Authors : Prasanthi Maddala, Khanh Le,
Essentials of Communication This simple model requires many guarantees. Sender Receiver Communication Link Data.
Revised: Aug 1, ECE263 Embedded System Design Lessons 27, 28 Serial Peripheral Interface.
Communicating. The ATmega16 communicates through one of the following ways: Serial Peripheral Interface (SPI) Universal Synchronous and Asynchronous serial.
Synchronous vs asynchornous communication. What is a USART A USART (Universal Synchronous/Asynchronous Receiver/Transmitter) is a microchip that facilitates.
CE-2810 Dr. Mark L. Hornick 1 Serial Communications Sending and receiving data between devices.
PlayStation 2 DualShock 2 Controller Ryan O’Keefe, Kabir Singh and Adrian Padin 1.
Microcontroller basics Embedded systems for mortals.
Networked Embedded Systems Sachin Katti & Pengyu Zhang EE107 Spring 2016 Lecture 9 Serial Buses – SPI, I2C.
BIRLA VISHVAKARMA MAHAVIDYALAY SUBJECT: SPI PROTOCOL & MAX7221 DISPLAY INTERFACING SUBMITTED BY: KISHAN AVASTHI( ) MANSI CHANDEGARA( )
Networked Embedded Systems Pengyu Zhang EE107 Spring 2016 Lecture 8 Serial Buses.
میکرو کنترلرهای AVR Serial Interfaces, I2C and SPI
MICROCONTROLLER AND INTERFACING Presented by: Shefali Jethva ( ) Shivali Panchal ( ) Komal Soni ( ) Roll no. :- 14EC308.
1 Serial Peripheral Interface What is it? Basic SPI Capabilities Protocol Pros and Cons Uses Serial Peripheral Interface
Lab 9 Multiprocessor, Buses, SPI, I2C. Multiprocessors Why multiprocessors? The structure of multiprocessors. Elements of multiprocessors: – Processing.
ECE 3430 – Intro to Microcomputer Systems
Serial Communication Buses: I2C and SPI
Microcontroller basics
EE 107 Fall 2017 Lecture 5 Serial Buses – UART & SPI
Atmega32 Serial Programming Basics
I2C PROTOCOL SPECIFICATION
Communication Lines Fundamentals.
BJ Furman ME 106 Fundamentals of Mechatronics 15NOV2012
EEPROM Comparison – Parallel or Serial
EECS 373 Design of Microprocessor-Based Systems Mark Brehob
SPI Protocol Sepehr Naimi
Serial Communication 19th Han Seung Uk.
Presentation transcript:

Embedded Communication Protocols Don Heer 10/18/10 1

2 Overview What is a protocol? Synchronous vs. Asynchronous Serial Peripheral Interface I 2 C Universal Asynchronous Receiver/Transmitter Gotchas

What is a protocol? Common agreed on communication Serial or Parallel Often Standardized Designed for specific purposes 3

Synchronous vs. Asynchronous Clocked vs. Non-clocked Why? 4

Serial Peripheral Interface Synchronous Master Out Slave In (MOSI) Master In Slave Out (MISO) Clock (SCLK) Chip Select Technically not part of protocol 5

SPI Modes ModeClock 0Clock normally Low. Data Read on Rising Edge. Data Changed on Falling Edge 1Clock Normally Low. Data Read on Falling Edge. Data Changed on Rising Edge 2Clock Normally High. Data Read on Falling Edge. Data Changed on Rising Edge 3Clock normally High. Data Read on Rising Edge. Data Changed on Falling Edge 6 Modes exist to allow for flexibility

SPI Waveform Mode 0 Mode 2 7

Example Devices 8 Microcontrollers ATMEGA128 EEPROM Memory AT25020

I2CI2C Two wire interface Addressing Scheme Open Drain Bus Drivers Multi-Master 9

I 2 C Waveform ACK = Target holds SDA low NAK = Target lets SDA float (pulls up) 10

I 2 C Example Devices Clocks PCF8563T (Page 21) PCF8563T Digital Resistors MCP4541T-103E 11

Universal Asynchronous Receiver/Transmitter RS232 vs. ‘UART’ Speed 12

UART Waveform 8N1 (8 bits, No Parity, 1 Start and Stop) NOTE: LSB is first 13

Example Devices Motor Controllers RoboteQ ax

Gotchas Watch that you don’t swizzle lines Watch your voltages! Intermittent connections Long wires Resets vs. Chip Selects 15

Summary Protocols help to ensure that everything works together Use them if at all possible 16