
2000 Microchip Technology Inc.
Preliminary
DS41124C-page 61
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
R/W-0
—
STALL
UIDLE
TOK_DNE ACTIVITY
UERR
USB_RST
R = Readable bit
W = Writable bit
U = Unimplemented bit,
read as ‘0’
-n = Value at POR reset
bit7
bit0
bit 7-6:
Unimplemented: Read as '0'
bit 5:
STALL: Set to enable STALL interrupts
1
= STALL interrupt enabled
0
= STALL interrupt disabled
bit 4:
UIDLE: Set to enable IDLE interrupts
1
= IDLE interrupt enabled
0
= IDLE interrupt disabled
bit 3:
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:
UERR: Set to enable ERROR interrupts
1
= ERROR interrupt enabled
0
= ERROR interrupt disabled
bit 0:
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.
745cov.book Page 61 Wednesday, August 2, 2000 8:24 AM