Using the PSoC USB March 17, 2012 Lloyd Moore, President/Owner.

Slides:



Advertisements
Similar presentations
Internet Search On USB By Taye Melaku Content Goal of the study Visualization of USB USB definition and explanation Conclusion Reference.
Advertisements

HARDWARE Rashedul Hasan..
Categories of I/O Devices
IT Essentials PC Hardware & Software v5.0
Universal Serial Bus Grant Heileman. The History of USB In 1994 a collaborative effort to design a standard for peripheral devices was made between Compaq,
INPUT, OUTPUT, And STORAGE DEVICE
Computer Basics 1 Computer Basic 1 includes two lessons:
Introduction Characteristics of USB System Model What needs to be done Platform Issues Conceptual Issues Timeline USB Monitoring Final Presentation 10.
Handheld TFTP Server with USB Andrew Pangborn Michael Nusinov RIT Computer Engineering – CE Design 03/20/2008.
29 April 2005 Part B Final Presentation Peripheral Devices For ML310 Board Project name : Spring Semester 2005 Final Presentation Presenting : Erez Cohen.
USB – An Overview Group 3 Kaushik Nandha Bikram What is the Universal Serial bus (USB)? Is a cable bus that supports data exchange between a host computer.
USB 2.0 INTRODUCTION NTUT CSIE 學 生:許家豪 指導教授:柯開維教授.
© 2006 Pearson Education, Upper Saddle River, NJ All Rights Reserved.Brey: The Intel Microprocessors, 7e Chapter 15 PC Standard Bus Interfaces WK.
Remote Surveillance Vehicle Design Review By: Bill Burgdorf Tom Fisher Eleni Binopolus-Rumayor.
Computer Architecture Ports.  There are lots of external devices that you can connect to your computer. All external devices connect to the computer’s.
USB (Universal Serial Bus). What is USB? Universal Serial Bus (USB) is a serial bus standard to interface devices to a host computer It was designed to.
Chapter 4 Section 3.
USB: UNIVERSAL SERIAL BUS Joe Kaewbaidhoon Alex Motalleb Vishal Joshi Prepared for EECS 373 University of Michigan, Ann Arbor 1.
I/O Tanenbaum, ch. 5 p. 329 – 427 Silberschatz, ch. 13 p
Chapter 2 Peripheral Devices 1. 2 What’s inside and on the CD? This chapter provides an overview on: –Keyboard and mouse –Specialized input devices Trackpads.
USB Josh Rickmar John Marcoux. Topics Purpose and Goals History Bus Design Power Differential Signaling Connectors Changes in USB 3.0.
THE COMPONENTS OF THE SYSTEM UNIT Peyton Farley & Katelyn Dunham.
INPUT/OUTPUT ARCHITECTURE By Truc Truong. Input Devices Keyboard Keyboard Mouse Mouse Scanner Scanner CD-Rom CD-Rom Game Controller Game Controller.
Fill in the blanks on your note.
Peripheral Buses COMP Jamie Curtis. PC Buses ISA is the first generation bus 8 bit on IBM XT 16 bit on 286 or above (16MB/s) Extended through.
May 8, The EASY Way to Create I/O Devices John Hyde Intel Corporation intel.com.
Ports, connectors, and cables
Introduction to computers. What is a personal computer? Capacity: Large hard disks combined with a large working memory (RAM) Speed: Fast. Normally measured.
Microsoft Office 2010 Introduction to Computers and How to Purchase Computers and Mobile Devices.
Chapter 8 Input/Output. Busses l Group of electrical conductors suitable for carrying computer signals from one location to another l Each conductor in.
Peripheral Busses COMP Jamie Curtis. PC Busses ISA is the first generation bus 8 bit on IBM XT 16 bit on 286 or above (16MB/s) Extended through.
Introduction to USB Development. USB Development Introduction Technical Overview USB in Embedded Systems Recent Developments Extensions to USB USB as.
Introduction to Computers Personal Computing 10. What is a computer? Electronic device Performs instructions in a program Performs four functions –Accepts.
Introduction to USB © 2010 Renesas Electronics America Inc. All rights reserved.
USB host for web camera connection
ECE 371 – UNIT 20 Universal Serial Bus (USB). References 1. Universal Serial Bus Specification, Revision 2.0. This specification is available on the World.
INTRODUCTION TO COMPUTING
CPU (CENTRAL PROCESSING UNIT): processor chip (computer’s brain) found on the motherboard.
Fundamental Principles of Computer Systems Unit B, Objective 3.01 & 3.02.
Introduction to Computers
Embedded Bluetooth Stack Dean Camera Project Supervisor: John Devlin.
Microprocessor-based Systems
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Principles of I/0 hardware.
Computer Basics By: Nicole Hayes. Purposes of Computers Business – Track inventory. – Calculate payroll. – Maintain databases. Personal – Surf the web.
Computer Hardware. History of Computing Code breakers in World War I and II developed the world’s first computers. In the 1950s and 1960s computers were.
2007 Oct 18SYSC2001* - Dept. Systems and Computer Engineering, Carleton University Fall SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices.
Eng.Abed Al Ghani H. Abu Jabal Introduction to computers.
Component 6 - Health Management Information Systems Unit 2-1a - Hardware and Software Supporting Health Information Systems.
BR 6/001 Universal Serial Bus Universal Serial Bus is a new synchronous serial protocol for low to medium speed data transmission Full speed signaling.
Computer Maintenance Copyright © Texas Education Agency, All rights reserved. 1 FireWire Ports.
February 10 th 2010 Dehmani Feth-Allah M2 ISTRe Oral Presentation Universal Serial Bus.
2009 Sep 10SYSC Dept. Systems and Computer Engineering, Carleton University F09. SYSC2001-Ch7.ppt 1 Chapter 7 Input/Output 7.1 External Devices 7.2.
Computer Architecture Part IV-B: I/O Buses. Chipsets Intelligent bus controller chips found on the motherboard Enable higher speeds on one or more buses.
Data Communications (E&T2760): USB and IEEE USB and IEEE 1394.
1 Presented By: Eyal Enav and Tal Rath Eyal Enav and Tal Rath Supervisor: Mike Sumszyk Mike Sumszyk.
Computer Basics Common Components
Health Management Information Systems Unit 2 Hardware and Software Supporting Health Information Systems Component 6/Unit21 Health IT Workforce Curriculum.
Proposal for an Open Source Flash Failure Analysis Platform (FLAP) By Michael Tomer, Cory Shirts, SzeHsiang Harper, Jake Johns
Computer Maintenance UNT in partnership with TEA, Copyright ©. All rights reserved1 FireWire Ports.
Week1: Introduction to Computer Networks. Copyright © 2012 Cengage Learning. All rights reserved.2 Objectives 2 Describe basic computer components and.
SEPTEMBER 8, 2015 Computer Hardware 1-1. HARDWARE TERMS CPU — Central Processing Unit RAM — Random-Access Memory  “random-access” means the CPU can read.
SA developed mini-PCIe IO card By Peet Smit. RS282 x8 USB x4 WLAN Video Capture LVDS Display SATA x4 mSATA-half LAN x2 3G & SIMM Digital IO.
Computers Mrs. Flowers University High School.
Chapter 6 Input/Output Organization
Chapter 6: BIOS.
USB- Universal Serial Bus
AT91RM9200 Boot strategies This training module describes the boot strategies on the AT91RM9200 including the internal Boot ROM and the U-Boot program.
Greg Bell Business Development Mgr Industrial & Security Markets
Presentation transcript:

Using the PSoC USB March 17, 2012 Lloyd Moore, President/Owner

Overview  USB Background  USB Standard Classes  Endpoints and Transfer Types  Enumeration  USB Descriptors  Example Project

USB Background  Star topology, master / slave architecture Host is the master, initiates all communicationsHost is the master, initiates all communications  Multiple speeds: Low=1.5Mbps, Full=12 Mbps, High=480Mbps, Super=5Gbps  Self powered vs. Bus powered Low power: 100mA or 150mA Max (USB 2,3)Low power: 100mA or 150mA Max (USB 2,3) High power: 500mA or 900mA Max (USB 2,3)High power: 500mA or 900mA Max (USB 2,3)  Vendor Id, Product Id, serial number uniquely identify each device

Standard USB Classes  Used to define the USB device.  Standardizes protocols and drivers for common devices.  Allows operating systems to provide default drivers.  Can also create vendor specific classes for custom applications. Audio Speakers, microphone, MIDI Communication (CDC) Virtual Serial Port, modem, Ethernet Content Security File and resource access Firmware Upgrade (DFU) Device software upgrades Human Interface (HID) Keyboards, mice, joysticks, barcode scanners, UPS IrDA Bridge IR communications Mass Storage Hard drives, DVD, flash memory Personal Healthcare Heart rate, blood pressure, glucose meters, ect. Printer Printers – ya that simple! Smart Card Phone cards, keyless entry Still Image Capture Cameras, scanners Test & Measurement ADC, DAC, sensors, etc. Video Video cameras, web cams

Endpoints  Uniquely addressable portion of a USB device.  4 end points max for a low speed device, 16 for other speeds  End point 0 is special, must be present and is used for enumeration and control  Data transfer happens at end points.  Simplest way to think about an end point is that it provides an addressable buffer to send and receive data.  IN refers to dataflow TO the Host  OUT refers to dataflow FROM the Host

Transfer Types TypeGuaranteesTypical Use ControlPresence, Error Free Device id and configuration Bulk Error Free Printer, hard drive InterruptLatency Error Free Keyboard, mouse Isochronous Delivery rate Streaming audio & video

Enumeration  Process by which the host discovers what devices are connected and the properties of those devices.  Utilizes a series of resets and Control transfers to end point 0.  Each device given a unique address between 1 and 127.  Power and bandwidth requirements are collected and allocated. Device will not be “connected” if resources are not available.Device will not be “connected” if resources are not available.  Communication details collected by way of “descriptors”

Descriptors  Data structures which allow the host to learn about a device and how to communicate with it.  Essentially a language which defines the protocol between the host and each device.  Can be quite complex but standard descriptors are well defined.  Standard device drivers can interpret these for a wide range of devices.

Example Project  Configure a PSoC 5 to send data from the CapSense buttons and slider to a PC in the form of a joystick.  Will be using the CY8CKIT-001, and PSoC Creator 1.0 for this demo. Upgraded LCD display Lumex LCM-S02004DSRUpgraded LCD display Lumex LCM-S02004DSR If using PSoC Creator 2.0 will also need to add 24Mhz crystal to bottom of processor module due to a tighter clock requirement.If using PSoC Creator 2.0 will also need to add 24Mhz crystal to bottom of processor module due to a tighter clock requirement.  Data will be shown on LCD as well as sent to PC.  Will be using a “canned” set of code as the configuration is pretty time consuming.

Hardware Configuration  DebugLcd used to control the LCD display  CapSense will run the CapSense buttons and slider control for input Heavy filtering here as the demo board USB spews lots of noise to CapSense when running.Heavy filtering here as the demo board USB spews lots of noise to CapSense when running.  USBFS – USB 2.0 Full Speed driver, will configure this to be a Joystick HID device to send information to the PC.

Device Descriptor  Walkthrough live configuration of descriptor.

Clock Configuration IMO = MHz USB = IMOx2 ILO = 100KHz

USB Initialization Code  USBFS_Start() configures the hardware  Next we wait while the USB device goes through enumeration  Finally prepare the first set of data to be dropped to the host when requested

Main Loop  General operational pattern is to wait for Host to grab data currently at the end point, then replace it.  USBFS_bGetEPAckState() waits for grab  USBFS_LoadInEP() loads next batch of data to be grabbed by the host

Resources  Book: USB Complete, Fourth Edition Jan AxelsonJan Axelson ISBN: ISBN:  PSoC Application notes: AN57294, AN57473, AN58726  PSoC Product Web Site:  PSoC Developer Community:  PSoC Training On Demand:  PSoC Full Development Kit (1, 3, 5): $249  My Contact Info:

Questions????  Will be around a bit after the meeting for individual questions  Feel free to me