Download Print this page

Renesas H8S Family Hardware Manual page 921

Advertisement

(1)
Setup Stage
SETUP token reception
Receive 8-byte command
data in EP0s
Command
to be processed by
application?
Set setup command
reception complete flag
(IFR0.SETUP TS = 1)
To data stage
Notes: 1. In the setup stage, the application analyzes command data from the host requiring processing by
the application, and determines the subsequent processing (for example, data stage direction, etc.).
2. When the transfer direction is control-out, the EP0i transfer request interrupt required in the status
stage should be enabled here. When the transfer direction is control-in, this interrupt is not required
and should be disabled.
USB function
Automatic
No
processing by
this module
Yes
Interrupt request
Figure 22.10 Setup Stage Operation
Section 22 USB Function Module (USB)
Application
Clear SETUP TS flag
(IFR0.SETUP TS = 0)
Clear EP0i FIFO (FCLR.EP0iCLR = 1)
Clear EP0o FIFO (FCLR.EP0oCLR = 1)
Read 8-byte data from EP0s
Decode command data
Determine data stage direction*
Write 1 to EP0s read complete bit
(TRG.EP0s RDFN = 1)
2
*
To control-in
To control-out
data stage
data stage
Rev. 1.00 Mar. 12, 2008 Page 873 of 1178
1
REJ09B0403-0100

Advertisement

loading

This manual is also suitable for:

R4f2472R4f2462H8s/2462H8s/2400 seriesH8s/2472