English
Language : 

C8051F326 Datasheet, PDF (103/140 Pages) List of Unclassifed Manufacturers – Full Speed USB, 16 kB Flash MCU Family
C8051F326/7
12.8. Interrupts
The read-only USB0 interrupt flags are located in the USB registers shown in Figure 12.11 through
Figure 12.13. The associated interrupt enable bits are located in the USB registers shown in Figure 12.14
through Figure 12.16. A USB0 interrupt is generated when any of the USB interrupt flags is set to ‘1’. The
USB0 interrupt is enabled via the EIE1 SFR (see Section “6.3. Interrupt Handler” on page 50).
Important Note: Reading a USB interrupt flag register resets all flags in that register to ‘0’.
USB Register Definition 12.11. IN1INT: USB0 IN Endpoint Interrupt
R
R
R
R
R
R
R
—
—
—
—
—
—
IN1
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bits7–2:
Bit1:
Bit0:
Unused. Read = 000000b. Write = don’t care.
IN1: IN Endpoint 1 Interrupt-pending Flag
This bit is cleared when software reads the IN1INT register.
0: IN Endpoint 1 interrupt inactive.
1: IN Endpoint 1 interrupt active.
EP0: Endpoint 0 Interrupt-pending Flag
This bit is cleared when software reads the IN1INT register.
0: Endpoint 0 interrupt inactive.
1: Endpoint 0 interrupt active.
R
EP0
Bit0
Reset Value
00000000
USB Address:
0x02
USB Register Definition 12.12. OUT1INT: USB0 Out Endpoint Interrupt
R
R
R
R
R
R
R
—
—
—
—
—
—
OUT1
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bits7–2:
Bit1:
Bit0:
Unused. Read = 000000b. Write = don’t care.
OUT1: OUT Endpoint 1 Interrupt-pending Flag
This bit is cleared when software reads the OUT1INT register.
0: OUT Endpoint 1 interrupt inactive.
1: OUT Endpoint 1 interrupt active.
Unused. Read = 0; Write = don’t care.
R
Reset Value
— 00000000
Bit0 USB Address:
0x04
Rev. 0.5
103