
M66596FP/WG
rev .1.00
2006.3.14
page 66 of 127
3.2.4
NRDY interrupt
Chapter 3.2.4.1 ,3.2.4.2 show the conditions under which NRDY interrupts are generated. The cause of a NRDY for the various pipes should be confirmed using the pertinent bit of the NRDYSTS register. If an interrupt has been
disabled using the NRDYE bit of the INTENB0 register, the interrupt request is set in the pertinent bit of the
NRDYSTS
register. When all of the bits of the NRDYSTS register are cleared using the user system control program,
the controller clears the NRDY bit of the INTSTS0 register.
3.2.4.1 NRDY interrupt in the Host mode
The followings are the generating conditions of NRDY interruption in the Host mode..
(a) When STALL is received from a peripheral to the token which transmitted.
(b) When there is no response from a peripheral to the token which transmitted.
(c) When Isochronous transfer, the following errors occurred at the time of Iso transmission.
- Bit stuffing error
- CRC error
- Max packet size over error
- Over run error, under run error
* However, when the controller doesn’t receive ACK packet in the SETUP transaction, the controller generate
SIGN
interrupt.
3.2.4.2 NRDY interrupt in the Peripheral mode
The followings are the generating conditions of NRDY interruption in the Peripheral mode..
(a) For data transmission
If an IN token has been received (data underrun) when the PID bit of the PIPExCTR register is in the
"PID=BUF" and there is no data to be sent in the buffer memory
(b) For data is reception
- If an OUT token or a PING token has been received (data overrun) when the PID bit of the PIPExCTR
control register is
in the "PID=BUF" and there is no area in the buffer memory where data can be stored
- In a bulk transfer, when the maximum packet size has not been set (“MXPS=0”) and an OUT token or
a PING token has been received
- When a CRC error, bit stuffing error, interval error has occurred during an isochronous transfer
- When a token is recived other than interval frame duaring an isochronous transfer.
Figure 3.14 shows the timing at which the controller generates NRDY interrupts.
Data transfer
Data reception
IN Token Packet
OUT Token Packet
NAK Handshake
Data Packet
USB bus
PING Packet
NAK Handshake
USB bus
NRDY interrupt
(CRC error, etc.)
Figure 3.14 Timing at which NRDY interrupts are generated