Professional Documents
Culture Documents
v USB
t your
application FTD2XX FTD2XX Windows PC
v .DLL .sys USB USB
f stack
Old Lab 4.1. Data-flow graph of the digital scope and spectrum analyzer.
Specifications
Short distance (typically less than 4 meters)
USB 2.0 supports three speeds.
High Speed - 480Mbits/s
Full Speed - 12Mbits/s
Low Speed - 1.5Mbits/s
One host per bus (at a time)
all transactions and scheduling bandwidth
Token-based protocol
Tiered star topology (Host-centered)
Hub provides power
Monitors power
Switching off a device drawing too much current
Filter out high speed and full speed transactions
7-bit address, up to 127 devices can be connected
Host loads and unloads drives automatically
by Jonathan W. Valvano
Real-time Operating Systems Lecture 27.2
Host
device device
Root Hub
Hub2 device
Hub1
device
device device device
Hub3
device device
Figure 14.31. USB network topology.
2 1
1 2 3 4 3 4
USB Type A USB Type B
Figure 7.18. USB connectors.
NRZI Idle
by Jonathan W. Valvano
Real-time Operating Systems Lecture 27.3
Figure 14.32. Pull-up resistors on USB devices signal specify the speed.
by Jonathan W. Valvano
Real-time Operating Systems Lecture 27.4
Device EP0 In
EP0 Out
Addr=3 EP1 In Function
EP1 Out
EP.. In
EP.. Out
by Jonathan W. Valvano
Real-time Operating Systems Lecture 27.5
Personal Computer
USB-to-Serial Embedded System
User Converter
COM USB USB
Program driver driver Port
SCI SCI User
Port driver Program
Personal Computer
USB Embedded System
User USB USB
Program driver Port USB
Parallel
Interface I/O User
Module Port Program
by Jonathan W. Valvano
Real-time Operating Systems Lecture 27.6
• Microchip PIC18F2455
• FTDI FT245BM
• Freescale 9S12UF32
• STM32F103
by Jonathan W. Valvano
Real-time Operating Systems Lecture 27.7
by Jonathan W. Valvano
Real-time Operating Systems Lecture 27.8
by Jonathan W. Valvano