28.5.11 Interrupt Flags B
Name: | INTFLAGSB |
Offset: | 0x0A |
Reset: | 0x00 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
TRNCOMPL | RMWBUSY | GNDONE | SETUP | ||||||
Access | R/W | R | R/W | R/W | |||||
Reset | 0 | 0 | 0 | 0 |
Bit 5 – TRNCOMPL Transaction Complete Interrupt Flag
If FIFO is disabled This flag is set when the Transaction Complete
(TRNCOMPL) flag in the Endpoint Status (EPn.STATUS) register is set
while the Transaction Complete Interrupt Disable (TCDSBL) bit in the
Endpoint Control (EPn.CTRL) register is ‘0
’. Writing
a ‘1
’ to this bit will clear this flag.
If FIFO is enabled This flag is set when there are unread elements in the FIFO. This flag is cleared when the last element has been read from the FIFO so that the FIFO is empty, i.e., the FIFO Read Pointer is equal to the FIFO Write Pointer.
Bit 2 – RMWBUSY RMW Busy Flag
This flag is set by an RMW operation initiated by writing to an RMW register. This flag is intended to be polled and does not have a corresponding Interrupt Enable bit in INTCTRLB. The RMW registers must not be written when this flag is set.
Value | Name | Description |
---|---|---|
0 | NOTBUSY | Not Busy with RMW operation |
1 | BUSY | Busy with RMW operation |
Bit 1 – GNDONE GNACK Operation Done Interrupt Flag
This flag is set when the Global NACK has been made effective, i.e., has propagated through the USB logic, and its effects can be seen on the USB bus. The flag is not set if Automatic GNACK (GNAUTO) is configured in the Control B (CTRLB) register.
Bit 0 – SETUP SETUP Transaction Complete Interrupt Flag
This flag is set when a SETUP transaction has successfully completed.
Writing a ‘1
’ to this bit will clear the flag.