SH7286 Group
USB Function Module: USB Mass Storage Class
2. Applications
This sample program uses the USB function module (USB) to execute the control IN, control OUT, bulk IN, and bulk
OUT transfers. This sample program also processes USB mass storage class commands.
The SH7286 USB function module includes the following features:
•
USB protocol processed automatically
•
USB standard request to endpoint 0 processed automatically (some requests need to be processed by the firmware)
•
Data rate: Full-speed
•
Interrupt request: Generates various interrupt signals required for USB communication
•
Clocks:
⎯
External clock (48 MHz)
⎯
Internal clock (enabled only when EXTAL 12 MHz is selected)
•
Power-down Mode
When a USB cable is not connected, less power is consumed by stopping the UDC internal clock
•
Endpoint configuration listed in Table 1
Table 1 Endpoint Configuration
Endpoint Number Name
Transfer Mode
Maximum
Packet Size
FIFO Buffer
Capacity
DMA/DTC
transfer
EP0s
Setup
8 bytes
8 bytes
–
Endpoint 0
EP0i
Control IN
8 bytes
8 bytes
–
EP0o
Control OUT
8 bytes
8 bytes
–
Endpoint 1
EP1
Bulk OUT
64 bytes
64 × 2 (128) bytes Available
Endpoint 2
EP2
Bulk IN
64 bytes
64 × 2 (128) bytes Available
Endpoint 3
EP3
Interrupt
8 bytes
8 bytes
–
Figure 1 shows the system configuration.
R01AN0063EJ0100 Rev. 1.00
Page 3 of 32
Oct. 22, 2010
Host computer with USB
Windows® 2000,
Windows® XP,
Windows® Vista,
Mac OS9
SH7286 CPU board
USB cable
Figure 1 System Configuration