PIC18F2450/4450
DS39760A-page 144
Advance Information
2006 Microchip Technology Inc.
14.5.1
USB INTERRUPT STATUS
REGISTER (UIR)
The USB Interrupt Status register (Register 14-7)
contains the flag bits for each of the USB status
interrupt sources. Each of these sources has a
corresponding interrupt enable bit in the UIE register. All
of the USB status flags are ORed together to generate
the USBIF interrupt flag for the microcontroller’s
interrupt funnel.
Once an interrupt bit has been set by the SIE, it must
be cleared by software by writing a ‘0’. The flag bits
can also be set in software which can aid in firmware
debugging.
REGISTER 14-7:
UIR: USB INTERRUPT STATUS REGISTER
U-0
R/W-0
R-0
R/W-0
SOFIF
STALLIF
IDLEIF(1)
TRNIF(2)
ACTVIF(3)
UERRIF(4)
URSTIF
bit 7
bit 0
Legend:
R = Readable bit
W = Writable bit
U = Unimplemented bit, read as ‘0’
-n = Value at POR
‘1’ = Bit is set
‘0’ = Bit is cleared
x = Bit is unknown
bit 7
Unimplemented: Read as ‘0’
bit 6
SOFIF: START-OF-FRAME Token Interrupt bit
1
= A START-OF-FRAME token received by the SIE
0
= No START-OF-FRAME token received by the SIE
bit 5
STALLIF: A STALL Handshake Interrupt bit
1
= A STALL handshake was sent by the SIE
0
= A STALL handshake has not been sent
bit 4
IDLEIF: Idle Detect Interrupt bit(1)
1
= Idle condition detected (constant Idle state of 3 ms or more)
0
= No Idle condition detected
bit 3
TRNIF: Transaction Complete Interrupt bit(2)
1
= Processing of pending transaction is complete; read USTAT register for endpoint information
0
= Processing of pending transaction is not complete or no transaction is pending
bit 2
ACTVIF: Bus Activity Detect Interrupt bit(3)
1
= Activity on the D+/D- lines was detected
0
= No activity detected on the D+/D- lines
bit 1
UERRIF: USB Error Condition Interrupt bit(4)
1
= An unmasked error condition has occurred
0
= No unmasked error condition has occurred.
bit 0
URSTIF: USB Reset Interrupt bit
1
= Valid USB Reset occurred; 00h is loaded into UADDR register
0
= No USB Reset has occurred
Note 1:
Once an Idle state is detected, the user may want to place the USB module in Suspend mode.
2:
Clearing this bit will cause the USTAT FIFO to advance (valid only for IN, OUT and SETUP tokens).
3:
This bit is typically unmasked only following the detection of a UIDLE interrupt event.
4:
Only error conditions enabled through the UEIE register will set this bit. This bit is a status bit only and
cannot be set or cleared by the user.
相关PDF资料
DSPIC30F3014T-20I/PT IC DSPIC MCU/DSP 24K 44TQFP
DSPIC30F3014T-20I/ML IC DSPIC MCU/DSP 24K 44QFN
PIC16LF819T-I/MLTSL IC PIC MCU FLASH 2KX14 28QFN
PIC16LF819T-I/SOTSL IC PIC MCU FLASH 2KX14 18SOIC
PIC18LF8410T-I/PT IC PIC MCU FLASH 8KX16 80TQFP
PIC18F2410T-I/ML IC PIC MCU FLASH 8KX16 28QFN
PIC18F2331T-E/SOG IC PIC MCU FLASH 4KX16 28SOIC
PIC18F4331T-I/ML IC MCU FLASH 4KX16 44QFN
相关代理商/技术参数
PIC16C55A-04/P 制造商:Microchip Technology Inc 功能描述:IC 8BIT CMOS MCU 16C55 DIP28
PIC16C55A-04/P 制造商:Microchip Technology Inc 功能描述:Microcontroller IC Number of I/Os:20
PIC16C55A-04/SO 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O 4MHz SOIC-28 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C55A-04/SO 制造商:Microchip Technology Inc 功能描述:8BIT CMOS MCU SMD 16C55 SOIC28
PIC16C55A-04/SP 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O 4MHz SPDIP-28 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C55A-04/SS 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O 4 MHz SSOP-28 RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C55A-04E/P 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC16C55A-04E/SO 功能描述:8位微控制器 -MCU .75KB 24 RAM 20 I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT