Example: air traffic controller

Lesson 20: USB - Devi Ahilya Vishwavidyalaya , Indore

2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 1 DEVICES AND COMMUNICATIONBUSES FOR DEVICES NETWORK LessonLesson--20: 20: serial BUS COMMUNICATION PROTOCOLS USBUSB2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 2 USB Host ApplicationsUSB Host ApplicationsConnectingConnecting flash memory cards, pen-like memory devices, digital camera, printer, mouse-device, PocketPC, video games, Scanner2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 3 serial transmission and reception between host and serial devices The data transfer is of four types: (a) Controlled data transfer, (b) Bulk data transfer, (c) Interrupt driven data transfer, (d) Iso-synchronous transfer A bus between the host system andinterconnected number of peripheral devicesUniversal serial Bus (USB) universal serial Bus (USB)2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.

Lesson-20: SERIAL BUS ... Universal Serial Bus (USB) 2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 4 USB Protocol ...

Tags:

  Serial, Lesson, Universal, Lesson 20, Universal serial bus, Serial bus

Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Other abuse

Advertisement

Transcription of Lesson 20: USB - Devi Ahilya Vishwavidyalaya , Indore

1 2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 1 DEVICES AND COMMUNICATIONBUSES FOR DEVICES NETWORK LessonLesson--20: 20: serial BUS COMMUNICATION PROTOCOLS USBUSB2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 2 USB Host ApplicationsUSB Host ApplicationsConnectingConnecting flash memory cards, pen-like memory devices, digital camera, printer, mouse-device, PocketPC, video games, Scanner2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 3 serial transmission and reception between host and serial devices The data transfer is of four types: (a) Controlled data transfer, (b) Bulk data transfer, (c) Interrupt driven data transfer, (d) Iso-synchronous transfer A bus between the host system andinterconnected number of peripheral devicesUniversal serial Bus (USB) universal serial Bus (USB)2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.

2 : McGraw-Hill Education 4 USB Protocol FeaturesUSB Protocol Features Maximum 127 devices can connect a host. Three standards: USB (a low speed Mbps 3 meter channel along with a high speed 12 Mbps 25 meter channel), USB (high speed 480 Mbps 25 meter channel), and wireless USB (high speed 480 Mbps 3 m)2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 5 Host connection to the devices or nodesHost connection to the devices or nodes Using USB port driving software and host controller, Host computer or system has a host-controller, which connects to a root hub. A hub is one that connects to other nodes or hubs. A tree- like topology2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 6 serial USB busUSB host controller in a Computer or MicrocontrollerUSB Device InterfaceUSB Host controllerSerial USB busUSB Device InterfaceUSB Device InterfaceDevice/SystemDProcessor of system EDevice BDevice CSerial USB busRoot HubHubNodeNodeDual role device Node/Hub2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.

3 : McGraw-Hill Education 7 serial USB bus in a computer PrinterMobile phoneCameraPen like memory device1 Mbpsmulticast, multi-master, auto retransmission of erroneous data120 Ohm line impedance Twisted pair CAN-H and CAN-L wires serial IO bus PrinterUSB host ControllerUSB host ControllerHubNodeNodeNodeNode/HubUSB host ControllerComputer system A2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 8 Dual Role Devices Dual Role Devices (DRDs). (DRDs). DRD device can be a USB device as well as limited capability host. For example, a wireless USB digital camera is USB host when connected to printer and is USB device when connected to personal L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 9 The root hub connection to the hub (s) and The root hub connection to the hub (s) and node (s)node (s) The root hub connects to the hub (s) and node (s) at level 1.

4 A hub at level 1 connects to the hub (s) and node (s) at level 2 and so on. Root hub and each hub at a level have a star topology with the next level. Only the nodes are present at the last level. 2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 10 USB DeviceDevice features Can be hot plugged (attached), configured and used, reset, reconfigured and used Bandwidth sharing with other devices: Host schedules the sharing of bandwidth among the attached devices at an instance. Can be detached (while others are in operation) and reattached. Attaching and detaching USB device or host without rebooting 2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 11 USB device descriptorUSB device descriptor Has data structure hierarchy as follows: It has device descriptor at the root, which has number of configuration descriptors, which has number of interface descriptor and which has number of end point L20: "Embedded Systems - " , Raj Kamal, Publs.

5 : McGraw-Hill Education 12 Powering USB devicePowering USB device A device can be either bus-powered or self- powered. In addition, there is a power management by software at the host for USB ports 2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 13 USB protocol USB bus cable has four wires, one for +5V, two for twisted pairs and one for ground. Termination impedances at each end as per the device-speed. Electromagnetic Interference (EMI)-shielded cable for the 15 Mbps USB L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 14 USB protocol serial signals NRZI (Non Return to Zero (NRZI) The synchronization clock encoded by inserting synchronous code (SYNC) field before each USB packet Receiver synchronizes its bits recovery clock continuously2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.)

6 : McGraw-Hill Education 15 USB Protocol A polled bus Host controller regularly polls the presence of a device as scheduled by the software. It sends a token packet. The token consists of fields for type, direction, USB device address and device end-point number. The device does the handshaking through a handshake packet, indicating successful or unsuccessful transmission. 2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 16 USB Protocol: A CRC field in a data packet permits error detection2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 17 'Stream' with no USB-defined protocol. It is used when the connection is already established and the data flow starts 'Default Control' for providing access. 'Message' for the control functions for ofthe device. Host configures each pipe with the data bandwidth to be used, transfer service type and buffer supported three types of pipesUSB supported three types of pipes2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.

7 : McGraw-Hill Education 18 Wireless USBW ireless USB Wireless extension of USB and it operates at UWB (ultra wide band) GHZ to GHz frequencies. For short-range personal area network (high speed 480 Mbps 3 meter or 110 Mbps 10 meter channel)2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 19 Wireless USB Wireless USB FCC has recommended a host wire adapter (HWA) and a device wire adapter (DWA), which provides wireless USB solution. Wireless USB also supports the dual-role devices (DRDs). DRD device can be a USB device as well as limited capability host. For example, a wireless USB digital camera is USB host when connected to printer and is USB device when connected to personal L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 20 SummarySummary2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.

8 : McGraw-Hill Education 21We learnt USB a serial bus for interconnecting a system. Used in networking the IO devices like camera, printer, pen-like memory device, mobile phone, scanner in a computer L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 22We learnt Three standards: USB (a low speed Mbps 3 meter channel along with a high speed 12 Mbps 25 meter channel), USB (high speed 480 Mbps 25 meter channel), and wireless USB (high speed 480 Mbps 3 m)2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.: McGraw-Hill Education 23We learnt USB root hub or hub or node It hot plugs, plugged (attached), configured and used, reset, reconfigured and used and detached a device from the network. USB devices can be organized like a tree structure. 2008 Chapter-3 L20: "Embedded Systems - " , Raj Kamal, Publs.

9 : McGraw-Hill Education 24 End of Lesson 20 of Chapter 3 End of Lesson 20 of Chapter 3


Related search queries