AT85C51SND3Bx
Interrupts
Figure 62 shows all the device interrupts sources while Figure 63 details the endpoint
interrupt sources.
Figure 62. USB Device Controller Interrupt System
UPRSMI
UDINT.6
UPRSME
UDIEN.6
EORSMI
UDINT.5
EORSME
UDIEN.5
WAKEUPI
UDINT.4
WAKEUPE
UDIEN.4
EORSTI
UDINT.3
USB Device
Interrupt
EORSTE
UDIEN.3
SOFI
UDINT.2
SOFE
UDIEN.2
MSOFI
UDINT.1
MSOFE
UDIEN.1
SUSPI
UDINT.0
SUSPE
UDIEN.0
There are 2 kinds of interrupts: processing (i.e. their generation are part of the normal
processing) and exception (errors).
Processing interrupts are generated when the following events are triggered:
•
•
•
•
•
•
•
•
VBUSTI: VBUS plug-in detection (insert, remove)
UPRSMI: upstream resume
EORSMI: end of resume
WAKEUPI: Wake up
EORSTI: end of reset (Speed Initialization)
SOFI: start of frame (FNCERR= 0)
MSOFI: micro start of frame (FNCERR= 0)
SUSPI: suspend detected after 3 ms of inactivity
Exception Interrupts are generated when the following events are triggered:
•
•
SOFI: CRC error in frame number of SOF (FNCERR= 1)
MSOFI: CRC error in frame number of micro-SOF (FNCERR= 1)
113
7632A–MP3–03/06