Download Print this page

Assigning Interrupt Sources To Ep0 - Renesas H8S Family Hardware Manual

Advertisement

22.10.4 Assigning Interrupt Sources to EP0

The EP0-related interrupt sources indicated by the interrupt source bits (bits 0 to 3) in IFR0 must
be assigned to the same interrupt signal with ISR0. The other interrupt sources have no limitations.
22.10.5 Clearing the FIFO When DTC Transfer is Enabled
The endpoint 1 data register (EPDR1) cannot be cleared when DTC transfer for endpoint 1 is
enabled (EP1DMAE in DMA = 1). Cancel DTC transfer before clearing the register.
22.10.6 Notes on TR Interrupt
Note the following when using the transfer request interrupt (TR interrupt) for IN transfer to EP0i,
EP2, or EP3.
The TR interrupt flag is set if the FIFO for the target EP has no data when the IN token is sent
from the USB host. However, at the timing shown in figure 22.24, multiple TR interrupts occur
successively. Take appropriate measures against malfunction in such a case.
Note: This module determines whether to return NAK if the FIFO of the target EP has no data
when receiving the IN token, but the TR interrupt flag is set after a NAK handshake is
sent. If the next IN token is sent before PKTE of TRG is written to, the TR interrupt flag is
set again.
CPU
Host
IN token
Determines whether
to return NAK
USB
TR interrupt routine
Clear
TR flag
NAK
Sets TR flag
Figure 22.23 TR Interrupt Flag Set Timing
Section 22 USB Function Module (USB)
Writes
TRG.
transmit data
PKTE
IN token
Determines whether
to return NAK
NAK
Sets TR flag
(Sets the flag again)
Rev. 1.00 Mar. 12, 2008 Page 893 of 1178
TR interrupt routine
IN token
Transmits data
ACK
REJ09B0403-0100

Advertisement

loading

This manual is also suitable for:

R4f2472R4f2462H8s/2462H8s/2400 seriesH8s/2472