PIC16F62X
DS40300C-page 102
Preliminary
2003 Microchip Technology Inc.
14.6.1
RB0/INT INTERRUPT
External interrupt on RB0/INT pin is edge triggered:
either rising if INTEDG bit (OPTION<6>) is set, or
falling, if INTEDG bit is clear. When a valid edge
appears
on
the
RB0/INT
pin,
the
INTF
bit
(INTCON<1>) is set. This interrupt can be disabled by
clearing the INTE control bit (INTCON<4>). The INTF
bit must be cleared in software in the interrupt service
routine before re-enabling this interrupt. The RB0/INT
interrupt can wake-up the processor from SLEEP, if the
INTE bit was set prior to going into SLEEP. The status
of the GIE bit decides whether or not the processor
branches to the interrupt vector following wake-up. See
Section 14.9 for details on SLEEP, and Figure 14-17
for timing of wake-up from SLEEP through RB0/INT
interrupt.
14.6.2
TMR0 INTERRUPT
An overflow (FFh
→ 00h) in the TMR0 register will
set the T0IF (INTCON<2>) bit. The interrupt can
be
enabled/disabled
by
setting/clearing
T0IE
(INTCON<5>) bit. For operation of the Timer0 module,
14.6.3
PORTB INTERRUPT
An input change on PORTB <7:4> sets the RBIF
(INTCON<0>) bit. The interrupt can be enabled/
disabled by setting/clearing the RBIE (INTCON<4>)
bit. For operation of PORTB (Section 5.2).
14.6.4
COMPARATOR INTERRUPT
See Section 9.6 for complete description of comparator
interrupts.
FIGURE 14-15:
INT PIN INTERRUPT TIMING
Note:
If a change on the I/O pin should occur
when the read operation is being executed
(start of the Q2 cycle), then the RBIF inter-
rupt flag may not get set.
Q2
Q1
Q3
Q4
Q2
Q1
Q3
Q4
Q2
Q1
Q3
Q4
Q2
Q1
Q3
Q4
Q2
Q1
Q3
Q4
OSC1
CLKOUT
INT pin
INTF flag
(INTCON<1>)
GIE bit
(INTCON<7>)
INSTRUCTION FLOW
PC
Instruction
Fetched
Instruction
Executed
Interrupt Latency
PC
PC+1
0004h
0005h
Inst (0004h)
Inst (0005h)
Dummy Cycle
Inst (PC)
Inst (PC+1)
Inst (PC-1)
Inst (0004h)
Dummy Cycle
Inst (PC)
Note
1: INTF flag is sampled here (every Q1).
2: Asynchronous interrupt latency = 3-4 Tcy. Synchronous latency = 3 Tcy, where Tcy = instruction cycle time. Latency
is the same whether Inst (PC) is a single cycle or a 2-cycle instruction.
3: CLKOUT is available in ER and INTRC Oscillator mode.
4: For minimum width of INT pulse, refer to AC specs.
5: INTF is enabled to be set anytime during the Q4-Q1 cycles.
(1)
(4)
(5)
(2)
(3)
相关PDF资料
AT97SC3204-X1A50-1 CRYPTO TPM LPC 3.0-3.6V 28TSSOP
ATA6620N-TAQY TXRX LIN BUS W/VREG SO-8
ATA6661-TAQJ 19 TXRX LIN 2.0 3.3V/5V 8SOIC
ATA6670-FFQW IC TXRX LIN DUAL 14VDFN
ATAM893T-TKSYD IC MCU FLASH 4K MTP 20SSOP
ATF1500ABV-15JI IC CPLD 15NS LOW VOLT PLCC
ATF1500AL-20JI IC CPLD 20NS LOW POW 44PLCC
ATF1502ASV-15JI44 IC CPLD EE HP 15NS 44-PLCC
相关代理商/技术参数
AT91SAM9XE-EK 功能描述:开发板和工具包 - ARM Eval Kit for SAM9XE Series RoHS:否 制造商:Arduino 产品:Development Boards 工具用于评估:ATSAM3X8EA-AU 核心:ARM Cortex M3 接口类型:DAC, ICSP, JTAG, UART, USB 工作电源电压:3.3 V
AT91SAM-ICE 功能描述:仿真器/模拟器 JTAG emulator AT91 ARM7/ARM9 RoHS:否 制造商:Blackhawk 产品:System Trace Emulators 工具用于评估:C6000, C5000, C2000, OMAP, DAVINCI, SITARA, TMS470, TMS570, ARM 7/9, ARM Cortex A8/R4/M3 用于:XDS560v2
AT91SAMS64-AI 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:AT91 ARM㈢ Thumb㈢-based Microcontrollers
AT91SC192192CT-USB 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:32-bit Secure Microcontrollers
AT91SC25672RC 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:32-bit Secure Microcontroller for Smart Cards
AT91SC321RC-MQC-AM2 功能描述:ARM微控制器 - MCU For Secure Trnsactns in Smart Crd/PC Apps RoHS:否 制造商:STMicroelectronics 核心:ARM Cortex M4F 处理器系列:STM32F373xx 数据总线宽度:32 bit 最大时钟频率:72 MHz 程序存储器大小:256 KB 数据 RAM 大小:32 KB 片上 ADC:Yes 工作电源电压:1.65 V to 3.6 V, 2 V to 3.6 V, 2.2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:LQFP-48 安装风格:SMD/SMT
AT91SC321RC-MQC-AM5 功能描述:ARM微控制器 - MCU For Secure Trnsactns in Smart Crd/PC Apps RoHS:否 制造商:STMicroelectronics 核心:ARM Cortex M4F 处理器系列:STM32F373xx 数据总线宽度:32 bit 最大时钟频率:72 MHz 程序存储器大小:256 KB 数据 RAM 大小:32 KB 片上 ADC:Yes 工作电源电压:1.65 V to 3.6 V, 2 V to 3.6 V, 2.2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:LQFP-48 安装风格:SMD/SMT
AT91SC321RC-MQC-AM7 功能描述:ARM微控制器 - MCU For Secure Trnsactns in Smart Crd/PC Apps RoHS:否 制造商:STMicroelectronics 核心:ARM Cortex M4F 处理器系列:STM32F373xx 数据总线宽度:32 bit 最大时钟频率:72 MHz 程序存储器大小:256 KB 数据 RAM 大小:32 KB 片上 ADC:Yes 工作电源电压:1.65 V to 3.6 V, 2 V to 3.6 V, 2.2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:LQFP-48 安装风格:SMD/SMT