0% found this document useful (0 votes)
13 views7 pages

22 - Usb

The document provides an overview of Universal Serial Bus (USB) control transfers, detailing their role in device setup and configuration. It describes the structure of control transfers, which include Setup, Data, and Status transactions, and outlines three approaches for providing USB connectivity in embedded systems. Additionally, it mentions the use of modular USB interfaces, such as USB-to-serial connections, to facilitate communication with microcontrollers.

Uploaded by

Thomas Shi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views7 pages

22 - Usb

The document provides an overview of Universal Serial Bus (USB) control transfers, detailing their role in device setup and configuration. It describes the structure of control transfers, which include Setup, Data, and Status transactions, and outlines three approaches for providing USB connectivity in embedded systems. Additionally, it mentions the use of modular USB interfaces, such as USB-to-serial connections, to facilitate communication with microcontrollers.

Uploaded by

Thomas Shi
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

ECE 4240

MICROPROCESSOR INTERFACING
Universal Serial Bus (USB)

Photo by Yogesh Phuyal on Unsplash


COPYRIGHT NOTICE

These course materials are copyright ©2023 The University of Manitoba.


Some elements are the property of other rights holders and are included
under the Fair Dealing provision of the Canadian Copyright Act.
These course notes are provided to students of ECE 4240 for self study
purposes only. They may not be uploaded to any online service or portal, or
redistributed in any manner, electronic or otherwise, without the express
written permission of the instructor and the other relevant rights holders.
USB CONTROL TRANSFERS

Control transfers are used to exchange device setup and configuration


information between a function and the host.
These transfers consist of a sequence of transactions with the device in order
to carry out operations such as device enumeration.
There are two general types of control transfers:
Control Write transfers;
Control Read transfers.
USB CONTROL TRANSFERS

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

SETUP IN/OUT IN/OUT IN/OUT OUT/IN

Recall that all of these transactions are composed of three packets:


Token, Data, and Handshake.
MODULAR USB INTERFACES

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

The figure shows a USB-to-serial connection (top) and a USB-to-parallel


interface module solution (bottom).

Fig 7.37, Jonathan Valvano, Real-time Interfacing to ARM® Cortex -M Microcontrollers, Vol. 2, 2016.
MODULAR USB INTERFACES

For example, the FT232 USB-to-multipurpose-UART/FIFO device implements


USB and can be interfaced to a processor using a range of protocols.

Document FT_000288, Future Technology Devices International (FTDI), 2023

You might also like