Theory of Operation
USB Background
USB is a serial bus operating at 12 Mb/s. USB provides an expandable,
USB allows the connection of up to 127 devices. Devices suitable for USB range from simple input devices such as keyboards, mice, and joysticks, to advanced devices such as printers, scanners, storage devices, modems, and
Version 1.1 of the USB specification provides for peripheral speeds of up to 1.5 Mbps for low- speed devices and up to 12 Mbps for
USB Interrupt
The DSTni USB interrupt is located at base input/output (I/O) of 9800h. It is logically ORed with external interrupt 3.
USB Core
The USB core has three functional blocks.
Serial Interface Engine (SIE)
Microprocessor Interface
Digital
Serial Interface Engine
The USB Serial Interface Engine (USB SIE) has two major sections: Tx Logic and Rx Logic.
Tx Logic formats and transmits data packets that the microprocessor builds in memory. These packets are converted from a
NRZI encoding
Cyclic Redundancy Check (CRC) computation Addition of SYNC field and EOP
The Rx Logic receives USB data and stores the packets in memory so the microprocessor can process them. Serial USB data converts to a
Decodes an NRZ USB serial data stream Performs
Performs CRC check, PID check, and other USB
31