Datasheet
140
4337K–USB–04/08
AT89C5130A/31A-M
Table 21-4. USBINT Register
USBINT (S:BDh)
USB Global Interrupt Register
Reset Value = 00h
7 6 5 4 3 2 1 0
- - WUPCPU EORINT SOFINT - - SPINT
Bit Number
Bit
Mnemonic Description
7-6 -
Reserved
The value read from these bits is always 0. Do not set these bits.
5 WUPCPU
Wake Up CPU Interrupt
This bit is set by hardware when the USB controller is in SUSPEND state and is re-
activated by a non-idle signal FROM USB line (not by an upstream resume). This
triggers a USB interrupt when EWUPCPU is set in Figure 21-5 on page 141.
When receiving this interrupt, user has to enable all USB clock inputs.
This bit will be cleared by software (USB clocks must be enabled before).
4 EORINT
End Of Reset Interrupt
This bit is set by hardware when a End Of Reset has been detected by the USB
controller. This triggers a USB interrupt when EEORINT is set (see Table 21-5 on page
141).
This bit will be cleared by software.
3 SOFINT
Start of Frame Interrupt
This bit is set by hardware when an USB Start of Frame PID (SOF) has been detected.
This triggers a USB interrupt when ESOFINT is set (see Table 21-5 on page 141).
This bit will be cleared by software.
2 -
Reserved
The value read from this bit is always 0. Do not set this bit.
1 -
Reserved
The value read from this bit is always 0. Do not set this bit.
0 SPINT
Suspend Interrupt
This bit is set by hardware when a USB Suspend (Idle bus for three frame periods: a J
state for 3 ms) is detected. This triggers a USB interrupt when ESPINT is set in see
Table 21-5 on page 141.
This bit will be cleared by software BEFORE any other USB operation to re-activate the
macro.