Rev. 3.0, 10/02, page 493 of 686
(1) Setup Stage
USB function
Firmware
SETUP token reception
Receive 8-byte command
data in UEDR0s
To data stage
Set setup command
reception complete flag
(UIFR0/Setup TS = 1)
Automatic
processing by
this module
Clear Setup TS flag
(UIFR0/Setup TS = 0)
Clear EP0i FIFO (UFCLR0/EP0iCLR = 1)
Clear EP0o FIFO (UFCLR0/EP0oCLR = 1)
Read 8-byte data from UEDR0s
Decode command data
Determine data stage direction
*
1
Write 1 to EP0s read complete bit
(UTRG0/EP0s RDFN = 1)
To control-in
data stage
To control-out
data stage
Command
to be processed by
application?
Yes
No
Notes:
*
1 In the setup stage, the firmware first analyzes the command data sent from the host required to be
processed by the firmware, and determines subsequent processing.
(For example, the data stage direction.)
*
2 When the transfer direction must be enabled here. When the transfer direction is control-in, an EP0i
transfer request interrupt is not required and must be disabled.
*
2
Figure 15.12 Setup Stage Operation
Summary of Contents for H8S/2215 Series
Page 4: ...Rev 3 0 10 02 page iv of lviii ...
Page 6: ...Rev 3 0 10 02 page vi of lviii ...
Page 28: ...Rev 3 0 10 02 page xxviii of lviii ...
Page 122: ...Rev 3 0 10 02 page 64 of 686 ...
Page 132: ...Rev 3 0 10 02 page 74 of 686 ...
Page 156: ...Rev 3 0 10 02 page 98 of 686 ...
Page 198: ...Rev 3 0 10 02 page 140 of 686 ...
Page 320: ...Rev 3 0 10 02 page 262 of 686 ...
Page 384: ...Rev 3 0 10 02 page 326 of 686 ...
Page 474: ...Rev 3 0 10 02 page 416 of 686 ...
Page 608: ...Rev 3 0 10 02 page 550 of 686 ...
Page 614: ...Rev 3 0 10 02 page 556 of 686 ...
Page 650: ...Rev 3 0 10 02 page 592 of 686 ...
Page 652: ...Rev 3 0 10 02 page 594 of 686 ...
Page 680: ...Rev 3 0 10 02 page 622 of 686 ...
Page 732: ...Rev 3 0 10 02 page 674 of 686 ...
Page 740: ...Rev 3 0 10 02 page 682 of 686 ...