h8s-2172 Renesas Electronics Corporation., h8s-2172 Datasheet - Page 376

no-image

h8s-2172

Manufacturer Part Number
h8s-2172
Description
Renesas 16-bit Single-chip Microcomputer H8s Family H8s-2100 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
1. Setup Stage
Rev. 2.00, 03/04, page 344 of 534
Notes: 1. In the setup stage, the firmware first analyzes the request data that is sent from the host
Receive 8-byte command
(SETUP TS in IFR0 = 1)
2. When the transfer direction is control-out, the EP0i transfer request interrupt that is required in the
receive complete flag
Receive setup token
to be processed by
Set setup request
required to be processed by the firmware, and determines subsequent processing.
(For example, the data stage direction.)
status stage should be enabled. When the transfer direction is control-in, this interrupt is not
required and must be disabled.
To data stage
USB function
data in EP0s
Command
firmware?
Yes
ACK
Figure 12.5 Setup Stage Operation
No
Interrupt generated
processing by
this module
Automatic
(end)
Clear EP0o FIFO (EP0oCLR in FCLR0 = 1)
Clear EP0i FIFO (EP0iCLR in FCLR0 = 1)
To control-in
data stage
Determine data stage direction*
Read 8-byte data from EP0s
(SETUP TS in IFR0 = 0)
Decode command data
Clear interrupt flag
Firmware
*
2
To control-out
data stage
1

Related parts for h8s-2172