Datasheet

Section 14 Universal Serial Bus (USB)
Rev.7.00 Dec. 24, 2008 Page 483 of 698
REJ09B0074-0700
14.3.18 USB Interrupt Flag Register 3 (UIFR3)
UIFR3 is an interrupt flag register indicating the USB status. If the corresponding bit is set to 1,
the corresponding EXIRQ0, EXIRQ1, or IRQ6 interrupt is requested to the CPU. VBUSi, SPRSi,
SETC, SOF, and CK48READY flags can be cleared by writing 0 to them. Writing 1 to them is
invalid and causes no operation. Consequently, to clear a flag, write 0 to the corresponding bit and
1 to all the other bits. (For example, write H'DF to clear bit 5.) The bit-clear instruction is a
read/modify/write instruction, so if a new flag is set between the read and write operations, there is
a danger that it may be cleared erroneously. Therefore, do not use the bit-clear instruction to clear
bits in this interrupt flag resister. VBUSs and SPRSs are status bits and cannot be cleared.
Bit Bit Name Initial Value R/W Description
7 CK48READY 0 R/(W)* USB Operating Clock (48 MHz) Stabilization Detection
Set to 1 when the USB operating clock (48 MHz)
stabilization time has been automatically counted after
USB module stop mode cancellation. The
corresponding interrupt output is EXIRQ0 or EXIRQ1.
CK48READY can also operate in the USB interface
software reset state (the UIFRST bit in UCTLR is set
to 1).
Refer to the UCKS3 to UCKS0 bits in section 14.3.1,
USB Control Register (UCTLR).
6 SOF 0 R/(W)* Start of Frame Packet Detection
Set to 1 if the Start of Frame (SOF) packet is
detected. The corresponding interrupt output is
EXIRQ0 or EXIRQ1.
5 SETC 0 R/(W)* Set_Configuration Command Detection
Set to 1 if the Set_Configuration command is
detected. The corresponding interrupt output is
EXIRQ0 or EXIRQ1.
4 — 0 R Reserved
This bit is always read as 0 and cannot be modified.
3 SPRSs 0 R Suspend/Resume Status
SPRSs indicates the suspend/resume status.
However, an interrupt cannot be requested by SPRSs.
0: Indicates that the bus is in the normal state.
1: Indicates that the bus is in the suspend state.