Renesas CPU Board M3A-HS19 Instrukcja Użytkownika Strona 3

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 35
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 2
SH7285/SH7286 USB Function Module
USB to Serial Conversion Application Note
REJ05B1152-0100/Rev.1.00 May 2008 Page 3 of 35
2. Applications
This sample program uses the USB function module to execute the control IN, control OUT, bulk IN, and bulk OUT
transfers. The sample program also converts USB to serial signals and vice versa.
2.1 Features
The USB function module has an embedded USB 1.1 compliant USB Device Controller (UDC) to automatically
process USB protocols. The function module has four mounted endpoints for each transfer mode, and transfers data in
the control transfer, bulk OUT transfer, bulk IN transfer, and interrupt transfer to the USB host.
The following lists the USB function module features available in the SH7285 and SH7286 MCUs:
Embedded USB 1.1 compliant UDC
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)
Low Power Mode
When a USB cable is not connected, less power is consumed by stopping the UDC internal clock
Endpoint configuration
Table 2.1 Endpoint Configurations
Endpoint Name Transfer Mode
Maximum
Packet Size
FIFO Buffer
Capacity
DMA
Transfer
EP0s Setup 8 bytes 8 bytes N/A
EP0i Control IN 8 bytes 8 bytes N/A
Endpoint 0
EP0o Control OUT 8 bytes 8 bytes N/A
Endpoint 1 EP1 Bulk OUT 64 bytes 64 x 2 (128 bytes) Available
Endpoint 2 EP2 Bulk IN 64 bytes 64 x 2 (128 bytes) Available
Endpoint 3 EP3 Interrupt 8 bytes 8 bytes N/A
2.2 USB Communication via the USB Function Module
As an example of using the USB function module for USB communication, the sample program implements the USB
communication features listed in the table below.
Table 2.2 USB Communication Functions
USB Communication Features Description
Detect a connection to the USB host The port pulls up the D+ pin to detect a connection.
Control transfer
Decodes requests, processes the Data stage and Status stage of the
USB request transmitted from the USB host in the control transfer.
Bulk IN/OUT transfers Executes bulk IN/OUT transfers.
Przeglądanie stron 2
1 2 3 4 5 6 7 8 ... 34 35

Komentarze do niniejszej Instrukcji

Brak uwag