PIC16C745/765
10.5.1.2 USB Interrupt Enable Register (UIE)
The USB Interrupt Enable Register (UIE) contains
enable bits for each of the interrupt sources within the
USB. Setting any of these bits will enable the respec-
tive interrupt source in the UIR register. The values in
the UIE register only affect the propagation of an inter-
rupt condition to the PIE1 register. Interrupt conditions
can still be polled and serviced.
REGISTER 10-2: USB INTERRUPT ENABLE REGISTER (UIE: 191h)
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
—
—
STALL
UIDLE TOK_DNE ACTIVITY UERR USB_RST
bit0
R = Readable bit
W = Writable bit
bit7
U = Unimplemented bit,
read as ‘0’
-n = Value at POR reset
bit 7-6: Unimplemented: Read as '0'.
bit 5:
bit 4:
bit 3:
STALL: Set to enable STALL interrupts.
1= STALL interrupt enabled
0= STALL interrupt disabled
UIDLE: Set to enable IDLE interrupts.
1= IDLE interrupt enabled
0= IDLE interrupt disabled
TOK_DNE: Set to enable TOK_DNE interrupts.
1= TOK_DNE interrupt enabled
0= TOK_DNE interrupt disabled
bit 2(1): ACTIVITY: Set to enable ACTIVITY interrupts.
1= ACTIVITY interrupt enabled
0= ACTIVITY interrupt disabled
bit 1:
bit 0:
UERR: Set to enable ERROR interrupts.
1= ERROR interrupt enabled
0= ERROR interrupt disabled
USB_RST: Set to enable USB_RST interrupts.
1= USB_RST interrupt enabled
0= USB_RST interrupt disabled
Note 1: This interrupt is the only interrupt active during UCTRL suspend = 1.
1999 Microchip Technology Inc.
Advanced Information
DS41124A-page 61