44.4.1.6 USB Interrupt Register

Note:
  1. This bit is valid only if the HOSTEN bit is set (see UCON register), there is no activity on the USB for 2.5 μs, and the current bus state is not SE0.

  2. When not in Suspend mode, this interrupt should be disabled.
  3. Clearing this bit will cause the STAT FIFO to advance.
  4. Only error conditions enabled through the UEIE register will set this bit.
Name: UIR
Offset: 0x4200
Reset: 0x0
Property: -

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
          
Access  
Reset  
Bit 15141312111098 
          
Access  
Reset  
Bit 76543210 
 STALLIFATTACHIFRESUMEIFIDLEIFTRNIFSOFIFUERRIFURSTIF/DETACHIF 
Access R/KR/KR/KR/KR/KR/KR/KR/K 
Reset 00000000 

Bit 7 – STALLIF STALL Handshake Interrupt bit

Write a ‘1’ to this bit to clear the interrupt.

ValueDescription
1 In Host mode, a STALL handshake was received during the handshake phase of the transaction. In Device mode, a STALL handshake was transmitted during the handshake phase of the transaction.
0 STALL handshake has not been sent

Bit 6 – ATTACHIF  Peripheral Attach Interrupt bit(1)

Write a ‘1’ to this bit to clear the interrupt.

ValueDescription
1 Peripheral attachment was detected by the USB OTG module
0 Peripheral attachment was not detected

Bit 5 – RESUMEIF  Resume Interrupt bit(2)

Write a ‘1’ to this bit to clear the interrupt.

ValueDescription
1 K-State is observed on the D+ or D- pin for 2.5 μs
0 K-State is not observed

Bit 4 – IDLEIF Idle Detect Interrupt bit

Write a ‘1’ to this bit to clear the interrupt.

ValueDescription
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(3)

Write a ‘1’ to this bit to clear the interrupt.

ValueDescription
1 Processing of current token is complete; a read of the USTAT register provides endpoint information
0 Processing of current token is not complete

Bit 2 – SOFIF SOF Token Interrupt bit

Write a ‘1’ to this bit to clear the interrupt.

ValueDescription
1 SOF token received by the peripheral or the SOF threshold reached by the host
0 SOF token was not received nor threshold reached

Bit 1 – UERRIF  USB Error Condition Interrupt bit(4)

Write a ‘1’ to this bit to clear the interrupt.

ValueDescription
1 Unmasked Error condition has occurred
0 Unmasked Error condition has not occurred

Bit 0 – URSTIF/DETACHIF  URSTIF: USB Reset Interrupt bit (Device mode) DETACHIF: USB Detach Interrupt bit (Host mode)

Write a ‘1’ to this bit to clear the interrupt.

ValueDescription
1

URSTIF: Valid USB Reset has occurred

DETACHIF: Peripheral detachment was detected by the USB OTG module

0

URSTIF: No USB Reset has occurred

DETACHIF: Peripheral detachment was not detected