Usb interrupt system, Interrupt system priorities, Interrupt control system – Rainbow Electronics AT89C5122 User Manual
Page 115

115
AT8xC5122/23
4202E–SCR–06/06
USB Interrupt System
Interrupt System Priorities
Figure 63. USB Interrupt Control System
Interrupt Control System
As shown in Figure 64, many events can produce a USB interrupt:
•
TXCMPL: Transmitted In Data (Table 70 on page 121). This bit is set by hardware
when the Host accept a In packet.
•
RXOUTB0: Received Out Data Bank 0 (Table 70 on page 121). This bit is set by
hardware when an Out packet is accepted by the endpoint and stored in bank 0.
•
RXOUTB1: Received Out Data Bank 1 (only for Ping-Pong endpoints) (Table 70 on
page 121). This bit is set by hardware when an Out packet is accepted by the
endpoint and stored in bank 1.
•
RXSETUP: Received Setup (Table 70 on page 121). This bit is set by hardware
when an SETUP packet is accepted by the endpoint.
•
NAKIN and NAKOUT: These bits are set by hardware when a Nak Handshake has
been received on the corresponding endpoint. These bits are cleared by software.
•
STLCRC: STALLED (only for Control, Bulk and Interrupt endpoints) (Table on page
122). This bit is set by hardware when a STALL handshake has been sent as
requested by STALLRQ, and is reset by hardware when a SETUP packet is
received.
•
SOFINT: Start Of Frame Interrupt (Table 65 on page 118). This bit is set by
hardware when a USB start of frame packet has been received.
•
WUPCPU: Wake-Up CPU Interrupt (Table 65 on page 118). This bit is set by
hardware when a USB resume is detected on the USB bus, after a SUSPEND state.
•
SPINT: Suspend Interrupt (Table 65 on page 118). This bit is set by hardware when
a USB suspend is detected on the USB bus.
EUSB
IEN1.6
EA
IEN0.7
USB
Controller
IPH/L
Interrupt Enable
Lowest Priority Interrupts
Priority Enable
00
01
10
11
D+
D-
Table 63. Priority Levels
IPHUSB
IPLUSB
USB Priority Level
0
0
0 Lowest
0
1
1
1
0
2
1
1
3 Highest