enCoRe™ V CY7C643xx, enCoRe™ V LV CY7C604xx TRM, Document No. 001-32519 Rev *H
141
20. Full-Speed USB
This chapter explains the Full-Speed USB (Universal Serial Bus) resource and its associated registers. For a quick reference
of all enCoRe V registers in address order, refer to the
Register Reference chapter on page 163
. USB is only available on cer-
tain devices.
20.1
Architectural Description
The enCoRe V USB system resource adheres to the USB
2.0 Specification for full-speed devices operating at 12 Mbps
with one upstream port and one USB address. enCoRe V
USB consists of these components:
■
Serial Interface Engine (SIE) block
■
PSoC Memory Arbiter (PMA) block
■
512 bytes of dedicated SRAM
■
A Full-Speed USB Transceiver with internal regulator
and two dedicated USB pins
Figure 20-1. USB Block Diagram
At the enCoRe V system level, the full-speed USB system
resource interfaces to the rest of the enCoRe V by way of
the M8C's register access instructions and to the outside
world by way of the two USB pins. The SIE supports nine
endpoints including a bidirectional control endpoint (end-
point 0) and eight uni-directional data endpoints (endpoints
1 to 8). The uni-directional data endpoints are individually
configurable as either IN or OUT.
20.2
Application Description
The individual components and issues of the USB system
are described in detail in the following sections.
20.2.1
USB SIE
The USB Serial Interface Engine (SIE) allows the enCoRe V
device to communicate with the USB host at full-speed data
rates (12 Mbps). The SIE simplifies the interface to USB
traffic by automatically handling the following USB process-
ing tasks without firmware intervention:
■
Translates the encoded received data and formats the
data to be transmitted on the bus.
■
Generates and checks CRCs. Incoming packets failing
checksum verification are ignored.
■
Checks addresses. Ignores all transactions not
addressed to the device.
■
Sends appropriate ACK/NAK/Stall handshakes.
■
Identifies token type (SETUP, IN, OUT) and sets the
appropriate token bit when a valid token in received.
■
Identifies Start-of-Frame (SOF) and saves the frame
count.
■
Sends data to or retrieves data from the USB SRAM, by
way of the PSoC Memory Arbiter (PMA).
Firmware is required to handle various parts of the USB
interface. The SIE issues interrupts after key USB events to
direct firmware to appropriate tasks:
■
Fill and empty the USB data buffers in USB SRAM.
■
Enable PMA channels appropriately.
■
Coordinate enumeration by decoding USB device
requests.
■
Suspend and resume coordination.
■
Verify and select data toggle values.
PMA
SIE
SIE Regs
DM
DP
System Bus
USB XCVR
SRAM