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

PIC16CE625-04/SO 参数 Datasheet PDF下载

PIC16CE625-04/SO图片预览
型号: PIC16CE625-04/SO
PDF下载: 下载PDF文件 查看货源
内容描述: OTP 8位CMOS微控制器与EEPROM数据存储器 [OTP 8-Bit CMOS MCU with EEPROM Data Memory]
分类和应用: 存储微控制器和处理器外围集成电路光电二极管PC可编程只读存储器电动程控只读存储器电可擦编程只读存储器时钟
文件页数/大小: 108 页 / 2330 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16CE625-04/SO的Datasheet PDF文件第55页浏览型号PIC16CE625-04/SO的Datasheet PDF文件第56页浏览型号PIC16CE625-04/SO的Datasheet PDF文件第57页浏览型号PIC16CE625-04/SO的Datasheet PDF文件第58页浏览型号PIC16CE625-04/SO的Datasheet PDF文件第60页浏览型号PIC16CE625-04/SO的Datasheet PDF文件第61页浏览型号PIC16CE625-04/SO的Datasheet PDF文件第62页浏览型号PIC16CE625-04/SO的Datasheet PDF文件第63页  
PIC16CE62X  
the interrupt can be determined by polling the interrupt  
flag bits.The interrupt flag bit(s) must be cleared in soft-  
ware before re-enabling interrupts to avoid RB0/INT  
recursive interrupts.  
10.5  
Interrupts  
The PIC16CE62X has 4 sources of interrupt:  
• External interrupt RB0/INT  
• TMR0 overflow interrupt  
For external interrupt events, such as the INT pin or  
PORTB change interrupt, the interrupt latency will be  
three or four instruction cycles. The exact latency  
depends when the interrupt event occurs  
(Figure 10-16). The latency is the same for one or two  
cycle instructions. Once in the interrupt service routine  
the source(s) of the interrupt can be determined by  
polling the interrupt flag bits. The interrupt flag bit(s)  
must be cleared in software before re-enabling inter-  
rupts to avoid multiple interrupt requests. Individual  
interrupt flag bits are set regardless of the status of  
their corresponding mask bit or the GIE bit.  
• PortB change interrupts (pins RB7:RB4)  
• Comparator interrupt  
The interrupt control register (INTCON) records  
individual interrupt requests in flag bits. It also has  
individual and global interrupt enable bits.  
A
global interrupt enable bit, GIE (INTCON<7>)  
enables (if set) all un-masked interrupts or disables (if  
cleared) all interrupts. Individual interrupts can be  
disabled through their corresponding enable bits in  
INTCON register. GIE is cleared on reset.  
The “return from interrupt” instruction, RETFIE, exits  
interrupt routine as well as sets the GIE bit, which  
re-enable RB0/INT interrupts.  
Note 1: Individual interrupt flag bits are set  
regardless of the status of their  
corresponding mask bit or the GIE bit.  
2: When an instruction that clears the GIE  
bit is executed, any interrupts that were  
pending for execution in the next cycle  
are ignored. The CPU will execute a  
NOP in the cycle immediately following  
the instruction which clears the GIE bit.  
The interrupts which were ignored are  
still pending to be serviced when the GIE  
bit is set again.  
The INT pin interrupt, the RB port change interrupt and  
the TMR0 overflow interrupt flags are contained in the  
INTCON register.  
The peripheral interrupt flag is contained in the special  
register PIR1.The corresponding interrupt enable bit is  
contained in special registers PIE1.  
When an interrupt is responded to, the GIE is cleared  
to disable any further interrupt, the return address is  
pushed into the stack and the PC is loaded with 0004h.  
Once in the interrupt service routine the source(s) of  
FIGURE 10-15: INTERRUPT LOGIC  
Wake-up  
(If in SLEEP mode)  
T0IF  
T0IE  
INTF  
INTE  
Interrupt  
to CPU  
RBIF  
RBIE  
CMIF  
CMIE  
PEIE  
GIE  
1998 Microchip Technology Inc.  
Preliminary  
DS40182A-page 59  
 复制成功!