Datasheet
2009-2012 Microchip Technology Inc. DS70616G-page 399
dsPIC33EPXXX(GP/MC/MU)806/810/814 and PIC24EPXXX(GP/GU)810/814
REGISTER 22-14: UxIR: USB INTERRUPT STATUS REGISTER (DEVICE MODE ONLY)
U-0 U-0 U-0 U-0 U-0 U-0 U-0 U-0
— — — — — — — —
bit 15 bit 8
R/K-0, HS U-0 R/K-0, HS R/K-0, HS R/K-0, HS R/K-0, HS R-0 R/K-0, HS
STALLIF
— RESUMEIF IDLEIF TRNIF SOFIF UERRIF URSTIF
bit 7 bit 0
Legend: U = Unimplemented bit, read as ‘0’
R = Readable bit K = Write ‘1’ to clear bit HS = Hardware Settable bit
-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknown
bit 15-8 Unimplemented: Read as ‘0’
bit 7 STALLIF: STALL Handshake Interrupt bit
1 = A STALL handshake was sent by the peripheral during the handshake phase of the transaction in
Device mode
0 = A STALL handshake has not been sent
bit 6 Unimplemented: Read as ‘0’
bit 5 RESUMEIF: Resume Interrupt bit
1 = A K-State is observed on the D+ or D- pin for 2.5 s (differential ‘1’ for low speed, differential ‘0’ for
full speed)
0 = No K-State is observed
bit 4 IDLEIF: Idle Detect Interrupt bit
1 = Idle condition is detected (constant Idle state of 3 ms or more)
0 = No Idle condition is detected
bit 3 TRNIF: Token Processing Complete Interrupt bit
1 = Processing of current token is complete; read UxSTAT register for endpoint BDT information
0 = Processing of current token is not complete; clear UxSTAT register or load next token from STAT
(clearing this bit causes the the STAT FIFO to advance)
bit 2 SOFIF: Start-of-Frame Token Interrupt bit
1 = A Start-of-Frame token was received by the peripheral
0 = A Start-of-Frame token has not been received by the peripheral
bit 1 UERRIF: USB Error Condition Interrupt bit (read-only)
1 = An unmasked error condition has occurred; only error states enabled in the UxEIE register can set
this bit
0 = No unmasked error condition has occurred
bit 0 URSTIF: USB Reset Interrupt bit
1 = Valid USB Reset has occurred for at least 2.5 s; Reset state must be cleared before this bit can
be reasserted
0 = No USB Reset has occurred