HD6417660 RENESAS [Renesas Technology Corp], HD6417660 Datasheet - Page 630

no-image

HD6417660

Manufacturer Part Number
HD6417660
Description
Renesas 32-Bit RISC Microcomputer
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Status Stage (Control-Out):
The control-out status stage starts with an IN token from the host. When an IN-token is received at
the start of the status stage, there is not yet any data in the EP0i FIFO, and so an EP0i transfer
request interrupt is generated. The application recognizes from this interrupt that the status stage
has started. Next, in order to transmit 0-byte data to the host, 1 is written to the EP0i packet enable
bit but no data is written to the EP0i FIFO. As a result, the next IN token causes 0-byte data to be
transmitted to the host, and control transfer ends.
After the application has finished all processing relating to the data stage, 1 should be written to
the EP0i packet enable bit.
Rev. 1.00, 02/04, page 592 of 804
0-byte transmission to host
End of control transfer
Set EP0i transmission
(IFR0/EP0i TS = 1)
IN token reception
Figure 20.11 Status Stage (Control-Out) Operation
in EP0i FIFO?
complete flag
Valid data
USB function
Yes
ACK
NACK
No
Interrupt request
Interrupt request
Clear EP0i transmission
Write 1 to EP0i packet
(TRG/EP0i PKTE = 1)
End of control transfer
(IFR0/EP0i TR = 0)
Clear EP0i transfer
(IFR0/EP0i TS = 0)
complete flag
Application
request flag
enable bit

Related parts for HD6417660