Serial Communications

Similar documents
Serial Communications

RINGDALE USB (UNIVERSAL SERIAL BUS) HID RELAY CONTROLLER (1543)

UC20 WinCE USB Driver

Understand USB (in Linux)

PL-2303X Edition (Chip Rev A) USB to Serial Bridge Controller Product Datasheet

Real-Time Embedded Systems. CpE-450 Spring 06

PL-2507 Hi-Speed USB 2.0 to IDE Bridge Controller Preliminary Datasheet

Serial Communication. Spring, 2018 Prof. Jungkeun Park

Sender Receiver Sender

Application Note. 32-bit Cortex -M0 MCU NuMicro Family. Application Note of NUVOTON 32-bit NuMicro Family

Serial Communication. Simplex Half-Duplex Duplex

USB INTERFACE SPECIFICATION

S1R72U06 Technical Manual

Chapter 11: Input/Output Organisation. Lesson 05: Asynchronous RS232C Serial Port data transfer

Universal Serial Bus Device Class Definition for Mass Storage Devices

PL-2305 USB to Printer Bridge Controller (Chip Rev I) Product Datasheet

PL-2507C Hi-Speed USB 2.0 to IDE Bridge Controller Product Datasheet

CM6327A USB Single-Chip Audio Solution for Mono Microphone

PL-2533 Hi-Speed USB MS PRO / MS / SD / MMC Card Reader Controller IC Product Datasheet

PL-25A1 Hi-Speed USB Host-to-Host Bridge Controller (Chip Revision B) Product Datasheet

ARM Cortex core microcontrollers

AN2554. Creating a Multi-LUN USB Mass Storage Class Device Using the MPLAB Harmony USB Device Stack INTRODUCTION CONTROL TRANSFERS

Serial Communication. Simplex Half-Duplex Duplex

TP-Link USB Port Hub Model UH700 Power 12V==2A

AN USB HID Intermediate with PSoC 3 and PSoC 5LP. Contents. 1 Introduction

Future Technology Devices International Ltd. Application Note AN_168. Vinculum-II USB Slave. Customizing an FT232 Device

T24 Technical Manual Programming guide & advanced documentation. User Manual mantracourt.com

Using the HT66FB5x0 for 2D Joystick Applications C Language Example

CM6327A USB Audio Single Chip Solution for Mono Microphone

ELE492 Embedded System Design

EZ-USB AT2LP USB 2.0 to ATA/ATAPI Bridge

Module Introduction. PURPOSE: The intent of this module, is to explain several of the important features of Freescale s i.mx1 applications processor.

Select a Data Communication Interface

EZL-200F Application Notes (003) Serial Interface (RS232/RS422/RS485)

Embedded USB Drive. Preliminary Release. Revision History. July 14, 2006

Learn how to communicate

USB-2COM-BB USER S MANUAL

Dariusz Makowski Department of Microelectronics and Computer Science tel

Revision History. Rev Date Details A October 14, 2008 New release of Short and Legacy eusb Spec with SM325AC controller

Amarjeet Singh. January 30, 2012

USS-720 Instant USB USB-to-IEEE* 1284 Bridge

Device Wire Adapter (DWA) Test Specification. Designed using the Certified Wireless USB Base Specification, Revision 1.0

More on IO: The Universal Serial Bus (USB)

Serial Interfacing. Asynchronous Frame

Human Interface Devices: Using Control and Interrupt Transfers

Application Note AN_164. Vinculum-II USB Slave. Writing a Function Driver

Universal Serial Bus Device Class Definition For Content Security Devices

BeagleBone Black USB Expansion RS232 Module Cape Coolgear, Inc. Version 1.1 September 2017 Model Number:

Preliminary. PACKAGE - 28-pin MLP (5mm X 5mm) Example Circuit Diagram CP V. 48MHz Oscillator. USB Function Controller 512B EEPROM

Raspberry Pi - I/O Interfaces

Application Note: AN00136 USB Vendor Specific Device

Part 1 - Introduction to USB

MCS7820. USB-2.0 to Two Serial Ports

Data Communications & Computer Networks. Digital Data Communications Techniques

CM6307A USB Audio Single Chip with Array Microphone

Designing A Low Cost USB-PS/2 Combination Interface Mouse with the Cypress Semiconductor CY7C63723 encore USB Microcontroller

Serial Interfaces Part 1. ECE 153B Sensor & Peripheral Interface Design Winter 2016

Hacking the Kinect. Created by lady ada. Last updated on :21:33 AM UTC

Serial I/O. 4: Serial I/O. CET360 Microprocessor Engineering. J. Sumey

HS-100 USB Audio Single Chip

Homework. Reading. Continue mp1. Labs. Tokheim, Section Questions? Continue labs with your assigned section

SMART MODULAR eusb Drive

Serial Communication Prof. James L. Frankel Harvard University. Version of 2:30 PM 6-Oct-2015 Copyright 2015 James L. Frankel. All rights reserved.

Course 10: Interfaces Agenda

3.1 I-7560 Pin Assignment and Specifications: Introduction

OC-DK212. USB 2.0 Wireless-G LAN Dock. Specification

Revealing Embedded Fingerprints: Deriving Intelligence from USB Stack Interactions

EZ-USB AT2 USB 2.0 To ATA/ATAPI Bridge

Creating a USB Audio Device on a PIC32 MCU Using MPLAB Harmony

USB to RS-232/RS422/485. URK-228-I USB To Serial Operation Manual

Universität Dortmund. IO and Peripheral Interfaces

SyncLink USB Serial Adapter

Universal Serial Bus Device Class Definition for Printing Devices

USB to RS-232/RS422/485. US-101-I USB To Serial Operation Manual

USART. USART stands for Universal Synchronous Asynchronous Receiver Transmitter. Full-duplex NRZ asynchronous serial data transmission

Universal Asynchronous Receiver Transmitter Communication

Input/Output Organization. Outline

Microprocessors LCD Parallel Port USB Port

CLD SC58x CDC Library v.1.00 Users Guide Users Guide Revision For Use With Analog Devices ADSP-SC58x Series Processors. Closed Loop Design, LLC

Lecture 25 March 23, 2012 Introduction to Serial Communications

LM048 Bluetooth v2.0, v2.1 RS232 Serial Adapter Standalone (With Embedded Bluetooth v2.0 / v2.1 Stack)

or between microcontrollers)

Product Manual. USB to Optical Adapter Industrial Isolated RS- 232/422/485. Coolgear, Inc. Version 2.1 December 2018 Model Number: USB-COMi-Si-M

CY4611B FX2LP USB to ATA/CF Reference Design Notes

BLE232: Manual Copyright 2014 taskit GmbH

Universal Serial Bus - USB 2.0

USER GUIDE EDBG. Description

EDBG. Description. Programmers and Debuggers USER GUIDE

Creating a USB to Serial Bridge Solution using Cypress Low and Full-speed M8 USB Devices

Galep-Adapter DIL-40 => ISP-ASYNC/SYNC Article-No.:

SyncLink GT2E/GT4E Serial Adapter

E1 and T1 RJ-48 Cable Pinouts on page 208. Fast Ethernet 12-port Cable Pinouts on page 211

Bluetooth V4.1 BLE RS-232 Serial Adapter Model: BLE-232B Bluetooth V4.2 BLE RS-232 Serial Adapter Model: BLE-232C

PCI-SIO8BXS-SYNC. Features:

EMERALD-MM-8P. 8-Channel Software Programmable Protocol. Serial Port PC/104 TM Module. User Manual V1.20

CLD BF70x CDC Library v.1.3 Users Guide Users Guide Revision 1.3. For Use With Analog Devices ADSP-BF70x Series Processors. Closed Loop Design, LLC

ISDN OEM1. DesignGuide V1.2

UNC20 Module. User's Manual. D Breisach, Germany D Breisach, Germany Fax +49 (7667)

Interfacing Techniques in Embedded Systems

HT42B534-x USB to UART Bridge IC

Transcription:

Serial Communications p. 1/2 Serial Communications Prof. Stephen A. Edwards sedwards@cs.columbia.edu Columbia University Spring 2007

Early Serial Communication Serial Communications p. 2/2

Data Terminal Equipment Serial Communications p. 3/2 Later Serial Communication Data Communications Equipment

Serial Communications p. 4/2 RS-232 Defined in early 1960s Serial, Asynchronous, Full-duplex, Voltage-based, point-to-point, 100 ft+ cables +12V +3V 3V 12V SPACE = 0 MARK = 1 Idle Start LSB B1 B2 B3 B4 B5 B6 MSB Stop Tx ÀÀÀ ÄÄ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎÆÀÀÀ

Serial Communications p. 5/2 RS-232 Signals Signal DB-9 DTE... Meaning pin DCE RxD 2 Data received by DTE TxD 3 Data sent by DTE SG 5 Ground DSR 6 Data Set Ready (I m alive) DTR 4 Data Terminal Ready (me, too) DCD 1 Carrier Detect (hear a carrier) RTS 7 Request To Send (Yo?) CTS 8 Clear To Send (Yo!) RI 9 Ring Indicator

Serial Communications p. 6/2 Receiving RS-232 Idle Start LSB B1 B2 B3 B4 B5 B6 MSB Stop Rx ÀÀÀ ÄÄ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎÆÀÀÀ Rx ÀÀ ÄÄÄÄÄÄÄÄÄÄÄÄÄÄ ÎÎÎÎÎÎÎÎÎÎÎÎÎÎ ÎÎÎÎÎÎÎÎÎÎÎÎÎ 4 Clk Ä Start Sample Sample Sample Most UARTs actually use 16 clocks

Serial Communications p. 7/2 Variants Parity bit: (Even = true when even number of 1s) Idle Start LSB B1 B2 B3 B4 B5 B6 Parity Stop Tx ÀÀÀ ÄÄ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎÆÀÀÀ Two stop bits: Idle Start LSB B1 B2 B3 B4 B5 B6 MSB Stop Stop Tx ÀÀÀ ÄÄ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎ ÎÎÆÀÀÀÀÀÀÀ

Serial Communications p. 8/2 Baud Rate Baud: bits per second Baud Application 110 ASR-33 Teletype 300 Early acoustic modems 1200 Direct-coupled modems c. 1980 2400 Modems c. 1990 9600 Serial terminals 19200 38400 Typical maximum

Serial Communications p. 9/2 Physical Variants Connectors: DB-25, DB-9, Mini DIN-8 RS-422: Differential signaling RS-485: Bus-like

Serial Communications p. 10/2 The I 2 C Bus Philips invented the Inter-IC bus c. 1980 as a very cheap way to communicate slowly among chips E.g., good for setting control registers 100, 400, and 3400 khz bitrates SCL: Clock, generated by a single master SDA: Data, controlled by either master or slaves

Serial Communications p. 11/2 I 2 C Bus Transaction SCL Idle Start 0 1 Ack Stop ÀÀÀÀÀÀ¹ÀÀÀ Ä¹Ä Ä¹Ä Ä¹ÄÄ ÀÀ¹ÀÀÀÀÀÀ SDA ÀÀÀÀÀÀ¹À ÄÄĹÄÄÄÄÄĹ ÀÀ ¹ÄÄÄÄÄĹÄÄ ÀÀ

Serial Communications p. 12/2 USB: Universal Serial Bus 1.5 Mbps, 12 Mbps, and 480 Mbps (USB 2.0) Point-to-point, differential, twisted pair 3 5m maximum cable length

USB Connectors Serial Communications p. 13/2

Serial Communications p. 14/2 USB signaling NRZI: 0 = toggle, 1 = no change Bit stuffing: 0 automatically inserted after six consecutive 1s Each packet prefixed by a SYNC field: 3 0s followed by two 1s Low- vs. full-speed devices identified by different pull-ups on D+/D- lines

Serial Communications p. 15/2 USB Packets Always start with SYNC Then 4-bit type, 4-bit type complemented 2 bits distinguish Token, Data, Handshake, and Special, other two bits select sub-types Then data, depending on packet type Data checked using a CRC Addresses (1-128) assigned by bus master, each with 16 possible endpoints

Serial Communications p. 16/2 USB Bus Protocol Polled bus: host initiates all transfers. Most transactions involve three packets: Token packet from host requesting data Data packet from target Acknowledge from host Supports both streams of bytes and structured messages (e.g., control changes).

Serial Communications p. 17/2 USB Data Flow Types Control For configuration, etc. Bulk Data Arbitrary data stream: bursty Interrupt Data Timely, reliable delivery of data. Usually events. Isochronous Data For streaming real-time transfer: prenegotiated bandwidth and latency

Layered Architecture Serial Communications p. 18/2

Serial Communications p. 19/2 USB: Flash Card Device Bus 001 Device 002: ID 05e3:0760 Genesys Logic, Inc. bcdusb 2.00 bmaxpacketsize0 64 idvendor 0x05e3 Genesys Logic, Inc. idproduct 0x0760 bcddevice 1.14 imanufacturer 2 Genesys iproduct 3 Flash Reader iserial 4 002364 Configuration Descriptor: bnuminterfaces 1 MaxPower 300mA Interface Descriptor: bnumendpoints 2 binterfaceclass 8 Mass Storage binterfacesubclass 6 SCSI binterfaceprotocol 80 Bulk (Zip) Endpoint Descriptor: bendpointaddress 0x81 EP 1 IN bmattributes 2 Transfer Type Bulk Synch Type none wmaxpacketsize 64 Endpoint Descriptor: blength 7 bdescriptortype 5 bendpointaddress 0x02 EP 2 OUT bmattributes 2 Transfer Type Bulk Synch Type none wmaxpacketsize 64 Language IDs: (length=4) 0409 English(US)

Serial Communications p. 20/2 USB: Mouse Device Bus 002 Device 002: ID 04b4:0001 Cypress Semiconductor Mouse Device Descriptor: bcdusb 1.00 idvendor 0x04b4 Cypress Semiconductor idproduct 0x0001 Mouse bcddevice 4.90 imanufacturer 1 Adomax Sem. iproduct 2 USB Mouse iserial 0 Configuration Descriptor: bnuminterfaces 1 bmattributes 0xa0 Remote Wakeup MaxPower 100mA Interface Descriptor: bnumendpoints 1 binterfaceclass 3 Human Interface Devices binterfacesubclass 1 Boot Interface Subclass binterfaceprotocol 2 Mouse iinterface 5 EndPoint1 Interrupt Pipe HID Device Descriptor: bdescriptortype 34 Report wdescriptorlength 52 Endpoint Descriptor: bendpointaddress 0x81 EP 1 IN bmattributes 3 Transfer Type Interrupt Synch Type none wmaxpacketsize 4 binterval 10 Language IDs: (length=4) 0409 English(US)

Philips ISP1362 USB 2.0 Controller Serial Communications p. 21/2

Serial Communications p. 22/2 Philips ISP1362 USB 2.0 Controller On the DE2, one downstream port, one host Operates at 12 or 480 Mbps speeds Two control endpoints + 14 user endpoints 4096 (host) + 2462 (device) bytes buffer memory Supports DMA data transfers Many configuration and status registers 150-page data sheet + 99-page embedded programming guide