22 - Usb
22 - Usb
MICROPROCESSOR INTERFACING
Universal Serial Bus (USB)
Each transfer begins with a Setup transaction and ends with a Status
transaction.
Between the setup and status transactions, the control transfer may include
one or more Data transactions.
Setup Stage Data Stage Status Stage
When designing a device, there are three approaches that can be used to
provide USB connectivity.
The first is to provide full USB support directly with the embedded system, by
using a microcontroller with direct USB interfaces.
Alternatively, a modular interface can be used that converts USB to a serial
(UART) connection to the microcontroller. This can be accomplished using an
USB to serial cable.
The third option is the include a USB interface component in the embedded
device that connects to the microcontroller through a GPIO port or serial
2
protocol (i.e. UART, SSI, or I C).
MODULAR USB INTERFACES
Fig 7.37, Jonathan Valvano, Real-time Interfacing to ARM® Cortex -M Microcontrollers, Vol. 2, 2016.
MODULAR USB INTERFACES