Microprocessors LCD Parallel Port USB Port

Similar documents
More on IO: The Universal Serial Bus (USB)

Chapter 11: Input/Output Organisation. Lesson 17: Standard I/O buses USB (Universal Serial Bus) and IEEE1394 FireWire Buses

SERIAL BUS COMMUNICATION PROTOCOLS USB

David Harrison, Design Engineer for Model Sounds Inc.

Universal Serial Bus - USB 2.0

STUDY, DESIGN AND SIMULATION OF FPGA BASED USB 2.0 DEVICE CONTROLLER

Course 10: Interfaces Agenda

Computer Organization

ECE 471 Embedded Systems Lecture 30

Universal Serial Bus Host Interface on an FPGA

Input/Output Organization. Outline

ID 221C: USB for Embedded Systems Viewed from the Embedded Target Side

Interrupt transfers & USB 2.0 & USB 3.0. Group Members Mehwish Awan Mehwish Kiran

Computer Organization

CHAPTER 2: SETUP...5 CHAPTER 1: GENERAL INFORMATION...3 USB HUB BACKGROUND...6 CASCADING LIMITATION...7 USB BACKGROUND...6 DESCRIPTION...

USB Compliance Checklist


Master thesis performed in Electronics Systems By

SP5301. Universal Serial Bus Transceiver

Serial Communications

Compliance test method and detailed spec for - USB2.0. Tektronix Korea YJ.PARK

M Tech credit seminar report, Electronic Systems group, EE Dept, IIT Bombay, submitted Nov 2002 UNIVERSAL SERIAL BUS

USB: Features and Circuits Manoj Purohit ( ) Supervisor: Prof P.C.Pandey

Smart cards and smart objects communication protocols: Looking to the future. ABSTRACT KEYWORDS

or between microcontrollers)

Joseph D. Cornwall, CTS-D, CTS-I Technology Evangelist

USB Complete. The Developer's Guide Fifth Edition. Jan Axelson. Lakeview Research LLC Madison, WI 53704

USB-COMi-TB USB to Industrial Single RS-422 / 485 Adapter Manual. Specifications and Features

Serial Communications

Data Communications & Computer Networks. Digital Data Communications Techniques

ECE 485/585 Microprocessor System Design

Module 6: INPUT - OUTPUT (I/O)

Computer Architecture CS 355 Busses & I/O System

USB (Universal Serial Bus) Presentation to UCHUG - 2/06/08 G. Skalka

PDF created with pdffactory Pro trial version How USB Ports Work by Marshall Brain. Introduction to How USB Ports Work

Buses, Video, and Upgrades

Introduction to USB/LPC23xx

USB. The Universal Serial Bus. Most of the material is taken from Jan Axelsson: USB Complete, third edition Lakeview Research ISBN:

USB INTERFACE AND DRIVER Mentor: Dr. Yann Hang Lee Team Members: Jubin Mehta, Koshik Samota (jmehta3,

Using the Intel 8x930Ax USB Microcontroller

Connectivity. Module 2.2. Copyright 2006 EMC Corporation. Do not Copy - All Rights Reserved. Connectivity - 1

Serial Communication. Spring, 2018 Prof. Jungkeun Park

Raspberry Pi - I/O Interfaces

4 Multiplexer. Y Fig Keyboard Scan Matrix

Design Of Linux USB Device Driver For LPC2148 Based Data Acquisition System Including GSM.

Signals and Encoding

ARM Cortex core microcontrollers

Hubs: the Link between Devices and the Host

Organisasi Sistem Komputer

AN PSoC 3 and PSoC 5LP Introduction to Implementing USB Data Transfers. Contents

Agenda. Introduction Market trend and application 1394 Market Analysis Data 1394 and industry Applications. Other Technologies USB DVI

This 4-port RS-422/485 Adapter is provided with an external switching power adapter in the package.

Intel Thunderbolt. James Coddington Ed Mackowiak

SERIAL I/O PRODUCTS SEALEVEL I/O FAMILY NEW PRODUCT. RS-422/485 Serial I/O. RS-422/485 Specification

Troubleshooting USB 2.0 Problems with Your Oscilloscope APPLICATION NOTE

Essential Components for Today s Industrial Connections

Designing a USB Keyboard with the Cypress Semiconductor CY7C63413 USB Microcontroller

Digital Logic Level. Buses PCI (..continued) PTE MIK MIT

The D igital Digital Logic Level Chapter 3 1

CS330: Operating System and Lab. (Spring 2006) I/O Systems

Input/Output Problems. External Devices. Input/Output Module. I/O Steps. I/O Module Function Computer Architecture

Computers Are Your Future

Computer Peripherals

FT245 USB Modual. - Ver FT245 Module Features

Wireless USB Periodic Transfer Models. Dan Froelich Intel

Inside the Computer System

Unit 3 and Unit 4: Chapter 4 INPUT/OUTPUT ORGANIZATION

USB Compliance Checklist Hubs (Excluding Root Hubs) USB Device Product Information

Certified Wireless USB Wire Adapter Model

ECE 485/585 Microprocessor System Design

Product Guide. USB and KVM Extenders & Accessories. Icron Technologies

IEEE 1284 Interface Design Solutions

USB-16COMi-M 16-Port RS-422/485 USB Serial Adapter User Manual. Features and Specifications. Power Supply

Unbridled Raw Hex,

Chapter 8. A Typical collection of I/O devices. Interrupts. Processor. Cache. Memory I/O bus. I/O controller I/O I/O. Main memory.

USB Framework, IP Core and related software Tropea S.E., Melo R.A.

An Introduction to Universal Serial Bus

Module objectives. Integrated services. Support for real-time applications. Real-time flows and the current Internet protocols

Installation Guide of Hi-Speed USB to Industrial I/O Adapter

USB for Embedded Devices. Mohit Maheshwari Prashant Garg

Hello, and welcome to this presentation of the STM32L4 USB 2.0 Full Speed interface. It covers the features of this interface, which is widely used

INPUT/OUTPUT DEVICES Dr. Bill Yi Santa Clara University

Controller IP for a Low Cost FPGA Based USB Device Core

Bus Example: Pentium II

UFC3212V. Version 1.0

Module Introduction. Purpose This training module covers 68K/ColdFire Ethernet and USB

2. THE PCI EXPRESS BUS

Chapter 5: The Data Link Layer. Chapter 5 Link Layer and LANs. Ethernet. Link Layer. Star topology. Ethernet Frame Structure.

USB2.0 - Device. Universal Serial Bus Measurement

The EZ-USB TM Integrated Circuit. Technical Reference

ULTRA2 SCSI WHITE PAPER

This process is a fundamental step for every USB device, fore without it, the device would never be able to be used by the OS.

Chapter Four. Making Connections. Data Communications and Computer Networks: A Business User s Approach Seventh Edition

Physical Layer. Medium Access Links and Protocols. Point-to-Point protocols. Modems: Signaling. Modems Signaling. Srinidhi Varadarajan

Introduction to the PCI Interface. Meeta Srivastav

Computer Communication Networks

Design and Performance Evaluation of a New Spatial Reuse FireWire Protocol. Master s thesis defense by Vijay Chandramohan

Introduction to Embedded System I/O Architectures

ADVANCED OPERATING SYSTEMS USB in a microkernel based operating system

Introduction Electrical Considerations Data Transfer Synchronization Bus Arbitration VME Bus Local Buses PCI Bus PCI Bus Variants Serial Buses

Transcription:

Microprocessors LCD Parallel Port USB Port H. Abdoli Bu-Ali Sina University 1

New LCDs Interfacing Lower prices Display numbers, characters, graphics Integrated refreshing controller Ease of programming H. Abdoli Bu-Ali Sina University 2

Pin Description H. Abdoli Bu-Ali Sina University 3

Command Codes H. Abdoli Bu-Ali Sina University 4

Example H. Abdoli Bu-Ali Sina University 5

LCD Timing H. Abdoli Bu-Ali Sina University 6

LCD Instructions H. Abdoli Bu-Ali Sina University 7

Printer Connection H. Abdoli Bu-Ali Sina University 8

IO Base Address for LPT H. Abdoli Bu-Ali Sina University 9

Printer s Ports H. Abdoli Bu-Ali Sina University 10

USB Universal Serial Bus H. Abdoli Bu-Ali Sina University 11

Motivations Connection of the PC to Telephone The USB provides a link that can be used across a wide range of PC-to-telephone interconnects. Ease of use Hot plug Port expansion The lack of a bi-directional, low-cost, low-to-mid speed peripheral bus has held back the creative proliferation of peripherals such as telephone/fax/modem adapters, answering machines, scanners, PDA s, keyboards, mice, etc. H. Abdoli Bu-Ali Sina University 12

USB Fast Bi-directional low-cost dynamically attachable serial interface consistent with the requirements of the PC platform of today and tomorrow H. Abdoli Bu-Ali Sina University 13

Goals for USB The following criteria were applied in defining the architecture for the USB: Ease-of-use for PC peripheral expansion Low-cost solution that supports transfer rates up to 12Mb/s Full support for real-time data for voice, audio, and compressed video Protocol flexibility for mixed-mode isochronous data transfers and asynchronous messaging Integration in commodity device technology Comprehension of various PC configurations and form factors Provision of a standard interface capable of quick diffusion into product Enabling of new classes of devices that augment the PC s capability. H. Abdoli Bu-Ali Sina University 14

Taxonomy of Application Space H. Abdoli Bu-Ali Sina University 15

Feature list Easy to use for end user Single model for cabling and connectors Electrical details isolated from end user (e.g., bus terminations) Self-identifying peripherals, automatic mapping of function to driver, and configuration Dynamically attachable and re-configurable peripherals Wide range of workloads and applications Suitable for device bandwidths ranging from a few kb/s to several Mb/s Supports isochronous as well as asynchronous transfer types over the same set of wires Supports concurrent operation of many devices (multiple connections) Supports up to 127 physical devices Supports transfer of multiple data and message streams between the host and devices Allows compound devices (i.e., peripherals composed of many functions) Lower protocol overhead, resulting in high bus utilization H. Abdoli Bu-Ali Sina University 16

Feature list (con) Isochronous bandwidth Guaranteed bandwidth and low latencies appropriate for telephony, audio, etc. Isochronous workload may use entire bus bandwidth Flexibility Supports a wide range of packet sizes, which allows a range of device buffering options Allows a wide range of device data rates by accommodating packet buffer size and latencies Flow control for buffer handling is built into the protocol Robustness Error handling/fault recovery mechanism is built into the protocol Dynamic insertion and removal of devices is identified in user-perceived real-time Supports identification of faulty devices H. Abdoli Bu-Ali Sina University 17

Feature list (con) Relation with PC industry Protocol is simple to implement and integrate Consistent with the PC plug-and-play architecture Leverages existing operating system interfaces Low-cost implementation Low-cost sub-channel at 1.5Mb/s Optimized for integration in peripheral and host hardware Suitable for development of low-cost peripherals Low-cost cables and connectors Uses commodity technologies Upgrade path Architecture upgradeable to support multiple USB Host Controllers in a system H. Abdoli Bu-Ali Sina University 18

USB System Description USB interconnect USB devices USB host. H. Abdoli Bu-Ali Sina University 19

USB Interconnect Bus Topology: Connection model between USB devices and the host. Inter-layer Relationships: In terms of a capability stack, the USB tasks that are performed at each layer in the system. Data Flow Models: The manner in which data moves in the system over the USB between producers and consumers. USB Schedule: The USB provides a shared interconnect. Access to the interconnect is scheduled in order to support isochronous data transfers and to eliminate arbitration overhead. H. Abdoli Bu-Ali Sina University 20

BUS Topology H. Abdoli Bu-Ali Sina University 21

Physical Interface pin 1 2 3 4 Name Vcc D- D+ GND Descryption +5 Vdc Data- Data+ Ground H. Abdoli Bu-Ali Sina University 22

Throughput Low speed 1.5 Mbps Full speed 12 Mbps High speed (in USB 2.0) 480 Mbps Dynamic mode switching Clock encoding scheme: NRZI (Non Return to Zero Invert) H. Abdoli Bu-Ali Sina University 23

Power Distribution Devices: Bus-powered devices Self-powered devices Power management Host based Power events:» Suspend» Resume H. Abdoli Bu-Ali Sina University 24

Bus Protocol Polled bus Data transfers initiated only by host controller Three packets: Token packet» Type» Direction» Address» End point number Data packet Handshake packet» ACK» NAK H. Abdoli Bu-Ali Sina University 25

Transfer Model Pipe Stream pipes» No USB standard format Message pipes» USB format Request Data Status End point zero Default control pipe Always exists H. Abdoli Bu-Ali Sina University 26

Data Flow Types Control Transfers: Used to configure a device at attach time and can be used for other device-specific purposes, including control of other pipes on the device. Bulk Data Transfers: Generated or consumed in relatively large and bursty quantities. Interrupt Data Transfers: Used for characters or coordinates with human-perceptible echo or feedback response characteristics. Isochronous Data Transfers: Occupy a pre-negotiated amount of USB bandwidth with a pre-negotiated delivery latency. (Also called streaming real time transfers). H. Abdoli Bu-Ali Sina University 27

USB Devices All have endpoint zero Hub Function Compound H. Abdoli Bu-Ali Sina University 28

Typical Configuration H. Abdoli Bu-Ali Sina University 29

Host Responsibility Detecting the attachment and removal of USB devices Managing control flow between the host and USB devices Managing data flow between the host and USB devices Collecting status and activity statistics Providing power to attached USB devices. H. Abdoli Bu-Ali Sina University 30

Implementer Viewpoints USB Physical Device: A piece of hardware on the end of a USB cable that performs some useful end user function. Client Software: Software that executes on the host, corresponding to a USB device. This client software is typically supplied with the operating system or provided along with the USB device. USB System Software: Software that supports the USB in a particular operating system. The USB System Software is typically supplied with the operating system, independently of particular USB devices or client software. USB Host Controller (Host Side Bus Interface): The hardware and software that allows USB devices to be attached to a host. H. Abdoli Bu-Ali Sina University 31

USB Implementation Areas H. Abdoli Bu-Ali Sina University 32

Physical / Logical Bus Topology H. Abdoli Bu-Ali Sina University 33

USB Host / Device View H. Abdoli Bu-Ali Sina University 34

USB Communication Flow H. Abdoli Bu-Ali Sina University 35

Control Transfer Format Setup packet Data packet Acknowledge packet USB defined structure Setup packet: 8 bytes Maximum data payload size: Full speed: 8, 16, 32 or 64 bytes Low speed: 8 bytes H. Abdoli Bu-Ali Sina University 36

Control Transfer Constraints Best effort 10% frame time for control Use also remaining 90% if no interrupt or isochronous transfer H. Abdoli Bu-Ali Sina University 37

Full-Speed Control Transfer Limits H. Abdoli Bu-Ali Sina University 38

Low Speed Control Transfer Limits H. Abdoli Bu-Ali Sina University 39

Isochronous Transfers Guaranteed access to USB bandwidth with bounded latency Guaranteed constant data rate through the pipe as long as data is provided to the pipe In the case of a delivery failure due to error, no retrying of the attempt to deliver the data. Stream pipe Uni-directional Maximum data payload: 1023 bytes Only in Full speed. No more 90% of frame for isochronous, interrupt H. Abdoli Bu-Ali Sina University 40

Isochronous Limits H. Abdoli Bu-Ali Sina University 41

Interrupt Transfers Guaranteed maximum service period for the pipe. Retry of transfer attempts at the next period, in the case of occasional delivery failure due to error on the bus. Max. Payload size: Full speed: 64 bytes Low speed: 8 bytes If there is sufficient bus time, for requested payload size the pipe is established. H. Abdoli Bu-Ali Sina University 42

Full Speed Interrupt Limits H. Abdoli Bu-Ali Sina University 43

Low Speed Interrupt Limits H. Abdoli Bu-Ali Sina University 44

Bulk Transfers Large amount of data. Access to the USB on a bandwidth-available basis. Retry of transfers, in the case of occasional delivery failure due to errors on the bus. Guaranteed delivery of data, but no guarantee of bandwidth or latency. Stream pipe Only in full speed Max. Payload: only 8, 16, 32 or 64 bytes H. Abdoli Bu-Ali Sina University 45

Bulk Transfer Limits H. Abdoli Bu-Ali Sina University 46

Connectors H. Abdoli Bu-Ali Sina University 47

Full Speed CMOS Driver H. Abdoli Bu-Ali Sina University 48

Evaluation Setup H. Abdoli Bu-Ali Sina University 49

NRZI Encoding H. Abdoli Bu-Ali Sina University 50

Bit Stuffing H. Abdoli Bu-Ali Sina University 51

Flow Diagram for Bit Stuffing H. Abdoli Bu-Ali Sina University 52

Signaling Levels H. Abdoli Bu-Ali Sina University 53

Signals Low and Full speed devices: A differential 1 is transmitted by pulling D+ over 2.8V with a 15K ohm resistor pulled to ground and D- under 0.3V with a 1.5K ohm resistor pulled to 3.6V. A differential 0 on the other hand is a D- greater than 2.8V and a D+ less than 0.3V with the same appropriate pull down/up resistors. The receiver defines a differential 1 as D+ 200mV greater than D- and a differential 0 as D+ 200mV less thand-. The polarity of the signal is inverted depending on the speed of the bus. Therefore the terms J and K states are used in signifying the logic levels. In low speed a J state is a differential 0. In high speed a J state I s a differential 1. H. Abdoli Bu-Ali Sina University 54

Differential and Single Ended Differential signals mostly for data Certain bus states by single ended signals on D+, D- or both. For example a single ended zero or SE0 can be used to signify a reset if held more than 10ms. SE0 is holding down both D- and D+ below.3v Low and Full speed 90 Ohms +/- 15% H. Abdoli Bu-Ali Sina University 55