欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC12F629 参数 Datasheet PDF下载

PIC12F629图片预览
型号: PIC12F629
PDF下载: 下载PDF文件 查看货源
内容描述: 8引脚基于闪存的8位CMOS微控制器 [8-Pin FLASH-Based 8-Bit CMOS Microcontrollers]
分类和应用: 闪存微控制器
文件页数/大小: 132 页 / 4519 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC12F629的Datasheet PDF文件第61页浏览型号PIC12F629的Datasheet PDF文件第62页浏览型号PIC12F629的Datasheet PDF文件第63页浏览型号PIC12F629的Datasheet PDF文件第64页浏览型号PIC12F629的Datasheet PDF文件第66页浏览型号PIC12F629的Datasheet PDF文件第67页浏览型号PIC12F629的Datasheet PDF文件第68页浏览型号PIC12F629的Datasheet PDF文件第69页  
PIC12F629/675  
9.4.1  
GP2/INT INTERRUPT  
9.4.2  
TMR0 INTERRUPT  
External interrupt on GP2/INT pin is edge-triggered;  
either rising if INTEDG bit (OPTION<6>) is set, of  
falling, if INTEDG bit is clear. When a valid edge  
appears on the GP2/INT pin, the INTF bit  
(INTCON<±>) 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 GP2/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 9.7 for details on SLEEP and Figure 9-±3 for  
timing of wake-up from SLEEP through GP2/INT  
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,  
see Section 4.0.  
9.4.3  
GPIO INTERRUPT  
An input change on GPIO change sets the GPIF  
(INTCON<0>) bit. The interrupt can be enabled/  
disabled by setting/clearing the GPIE (INTCON<3>)  
bit. Plus individual pins can be configured through the  
IOC register.  
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 GPIF inter-  
rupt flag may not get set.  
Note: The ANSEL (9Fh) and CMCON (±9h)  
registers must be initialized to configure an  
analog channel as a digital input. Pins  
configured as analog inputs will read ‘0’.  
The ANSEL register is defined for the  
PIC±2F675.  
9.4.4  
COMPARATOR INTERRUPT  
See Section 6.9 for description of comparator interrupt.  
9.4.5  
A/D CONVERTER INTERRUPT  
After a conversion is complete, the ADIF flag (PIR<6>)  
is set. The interrupt can be enabled/disabled by setting  
or clearing ADIE (PIE<6>).  
See Section 7.0 for operation of the A/D converter  
interrupt.  
FIGURE 9-11:  
INT PIN INTERRUPT TIMING  
Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4 Q1 Q2 Q3 Q4  
OSC1  
CLKOUT  
3
4
INT pin  
1
1
Interrupt Latency  
INTF Flag  
(INTCON<1>)  
5
2
GIE bit  
(INTCON<7>)  
INSTRUCTION FLOW  
PC  
0004h  
PC+1  
0005h  
PC  
PC+1  
Instruction  
Fetched  
Inst (PC)  
Inst (PC+1)  
Inst (0004h)  
Inst (0005h)  
Inst (0004h)  
Instruction  
Executed  
Dummy Cycle  
Dummy Cycle  
Inst (PC)  
Inst (PC-1)  
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 only in RC Oscillator mode.  
4: For minimum width of INT pulse, refer to AC specs.  
5: INTF is enabled to be set any time during the Q4-Q1 cycles.  
2003 Microchip Technology Inc.  
DS41190C-page 63  
 复制成功!