HD6417641 RENESAS [Renesas Technology Corp], HD6417641 Datasheet - Page 821

no-image

HD6417641

Manufacturer Part Number
HD6417641
Description
Manufacturer
RENESAS [Renesas Technology Corp]
Datasheet
Data Stage (Control-OUT): The application first analyzes command data from the host in the
setup stage, and determines the subsequent data stage direction. If the result of command data
analysis is that the data stage is OUT-transfer, the application waits for data from the host, and
after data is received (USBIFR0/EP0oTS = 1), reads data from the FIFO. Next, the application
writes 1 to the EP0o read complete bit, empties the receive FIFO, and waits for reception of the
next data.
The end of the data stage is identified when the host transmits an IN token and the status stage is
entered.
Data reception from host
(USBIFR0/EP0o TS = 1)
OUT token reception
OUT token reception
Set EP0o reception
to USBTRG/EP0o
to USBTRG/EP0s
USB function
complete flag
Figure 20.7 Data Stage (Control-OUT) Operation
1 written
1 written
RDFN?
RDFN?
Yes
Yes
ACK
NACK
NACK
No
No
Interrupt request
data register (USBEPDR0o)
(USBTRG/EP0o RDFN = 1)
Read data from USBEP0o
Read data from USBEP0o
Rev. 4.00 Sep. 14, 2005 Page 771 of 982
receive data size register
(USBIFR0/EP0o TS = 0)
Clear EP0o reception
Write 1 to EP0o read
(USBEPSZ0o)
complete flag
complete bit
Application
Section 20 USB Function Module
REJ09B0023-0400

Related parts for HD6417641