Rev. 2.00, 09/03, page 474 of 690
18.9.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.
18.9.5
Clearing the FIFO when DMA Transfer Is Enabled
The endpoint 1 data register (EPDR1) cannot be cleared when DMA transfer for endpoint 1 is
enabled (EP1 DMAE in DMAR = 1). Cancel DMA transfer before clearing the register.
18.9.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 18.19, 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 only 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
IN token
IN token
Sets TR flag
(Sets the flag again)
Sets TR flag
Determines whether
to return NAK
Transmits data
TR interrupt routine
Clear
TR flag
Writes
transmit data
TRG.
PKTE
TR interrupt routine
USB
NAK
Determines whether
to return NAK
NAK
ACK
Figure 18.19 TR Interrupt Flag Set Timing
Summary of Contents for SH7705
Page 2: ......
Page 70: ...Rev 2 00 09 03 page 24 of 690 ...
Page 194: ...Rev 2 00 09 03 page 148 of 690 ...
Page 284: ...Rev 2 00 09 03 page 238 of 690 ...
Page 338: ...Rev 2 00 09 03 page 292 of 690 ...
Page 354: ...Rev 2 00 09 03 page 308 of 690 ...
Page 374: ...Rev 2 00 09 03 page 328 of 690 ...
Page 420: ...Rev 2 00 09 03 page 374 of 690 ...
Page 476: ...Rev 2 00 09 03 page 430 of 690 ...
Page 482: ...Rev 2 00 09 03 page 436 of 690 ...
Page 552: ...Rev 2 00 09 03 page 506 of 690 ...
Page 630: ...Rev 2 00 09 03 page 584 of 690 ...
Page 739: ...SH7705 Group Hardware Manual REJ09B0082 0200O ...