Section 20 USB Function Module
Rev. 4.00 Sep. 14, 2005 Page 775 of 982
REJ09B0023-0400
USB function
Application
OUT token reception
Data reception from host
Set EP1 FIFO full status
(USBIFR0/EP1 FULL = 1)
Clear EP1 FIFO full status
(USBIFR0/EP1 FULL = 0)
Read USBEP1 receive data
size register (USBEPSZ1)
Read data from USBEP1
data register (USBEPDR1)
Write 1 to EP1 read
complete bit
(USBTRG/EP1 RDFN = 1)
Space
in EP1 FIFO?
No
Yes
Both
EP1 FIFOs empty?
No
Yes
NACK
ACK
Interrupt request
Interrupt request
Figure 20.10 EP1 Bulk-OUT Transfer Operation