How USB Works
How USB Works
Logical Connection Between Host & Device
Device
Master
Slave
Communication takes place
between the host and device
Host controls ALL communication
Device is addressable
(assigned by host)
Host
MSP430 Supports 8 Ins/Outs
Device
Pipes
Host/Device communication occurs
thru a Pipe
The host sets up pipe connections
to one or more device “endpoints”
An endpoint is essentially a buffer
in the device
Pipes/Endpoints are unidirectional
In/Out is from the Host perspective
Endpoints are enumerated (from 0)
Endpoint 0 is special case – all USB
devices must have EP0, which is
used for setup and control
MSP430 Endpoints:
16 endpoints (8 in, 8 out)
Each has 64 byte buffer
00
Endpoints
…
11 77
Host
InOut
MSP430 Workshop - USB Devices 7 - 11