English
Language : 

SH7727 Datasheet, PDF (779/1109 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7700 Series
(1) Setup Stage
USB function
SETUP token reception
Section 23 USB Function Controller
Application
Receive 8-byte command
data in EP0s
Command to
be processed by
application?
No
Automatic
processing by
this module
Yes
Set receive-end flag
of setup command
(USBIFR0/SETUP TS = 1)
Interrupt request
Clear SETUP TS flag
(USBIFR0/SETUP TS = 0)
Clear EP0i FIFO (USBFCLR/EP0iCLR = 1)
Clear EP0o FIFO (USBFCLR/EP0oCLR = 1)
To data stage
Read 8-byte data from EP0s
Decode command data
Decide data stage direction*1
Write 1 to EP0s read-end bit
(USBTRG/EP0s RDFN = 1)
*2
To control-in
data stage
To control-out
data stage
Notes: 1. The application analyzes command data from the host that must be processed by the application in
the setup stage, and decides the following processing methods (for instance, data stage direction).
2. When the transfer direction is control-out, enable an EP0i transfer request interrupt that is required
in the status stage. When the transfer direction is control-in, disable the interrupt since it is not
used.
Figure 23.5 Setup Stage Operation
Rev. 5.00 Dec 12, 2005 page 707 of 1034
REJ09B0254-0500