Datasheet
Section 16 USB Function Module (USB)
R01UH0309EJ0500 Rev. 5.00 Page 1007 of 1408
Sep 24, 2012
H8S/2456, H8S/2456R, H8S/2454 Group
16.5.8 EP3 Interrupt-In Transfer
USB function Application
IN token reception
Data transmission to host
Set EP3 transmission
complete flag.
(IFR2.EP3 TS = 1)
Write data to EP3 data
register (EPDR3).
Write 1 to EP3 packet
enable bit.
(TRG1.EP3 PKTE = 1)
Clear EP3 transmission
complete flag.
(IFR2.EP3 TS = 0)
Write data to EP3 data
register (EPDR3).
Write 1 to EP3 packet
enable bit.
(TRG1.EP3 PKTE = 1)
Valid data
in EP3FIFO?
Is there data
for transmission
to host?
Is there data
for transmission
to host?
No
Yes
No
Yes
No
Yes
NAK
ACK
Note: This flowchart shows just one example of interrupt transfer processing. Other possibilities include an
operation flow in which, if there is data to be transferred, the EP3 DE bit in the data status register is
referenced to confirm that the FIFO is empty, and then data is written to the FIFO.
Interrupt request
Figure 16.18 Operation of EP3 Interrupt-In Transfer