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

PIC16F916-I/SO 参数 Datasheet PDF下载

PIC16F916-I/SO图片预览
型号: PIC16F916-I/SO
PDF下载: 下载PDF文件 查看货源
内容描述: 40分之28 / 44/ 64引脚基于闪存的8位CMOS微控制器与LCD驱动器和纳瓦技术 [28/40/44/64-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt Technology]
分类和应用: 驱动器闪存微控制器和处理器外围集成电路光电二极管PC时钟
文件页数/大小: 330 页 / 6045 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F916-I/SO的Datasheet PDF文件第102页浏览型号PIC16F916-I/SO的Datasheet PDF文件第103页浏览型号PIC16F916-I/SO的Datasheet PDF文件第104页浏览型号PIC16F916-I/SO的Datasheet PDF文件第105页浏览型号PIC16F916-I/SO的Datasheet PDF文件第107页浏览型号PIC16F916-I/SO的Datasheet PDF文件第108页浏览型号PIC16F916-I/SO的Datasheet PDF文件第109页浏览型号PIC16F916-I/SO的Datasheet PDF文件第110页  
PIC16F913/914/916/917/946  
6.7  
Timer1 Interrupt  
6.8  
Timer1 Operation During Sleep  
The Timer1 register pair (TMR1H:TMR1L) increments  
to FFFFh and rolls over to 0000h. When Timer1 rolls  
over, the Timer1 interrupt flag bit of the PIR1 register is  
set. To enable the interrupt on rollover, you must set  
these bits:  
Timer1 can only operate during Sleep when setup in  
Asynchronous Counter mode. In this mode, an external  
crystal or clock source can be used to increment the  
counter. To set up the timer to wake the device:  
• TMR1ON bit of the T1CON register must be set  
• TMR1IE bit of the PIE1 register must be set  
• PEIE bit of the INTCON register must be set  
• Timer1 interrupt enable bit of the PIE1 register  
• PEIE bit of the INTCON register  
• GIE bit of the INTCON register  
The device will wake-up on an overflow and execute  
the next instruction. If the GIE bit of the INTCON  
register is set, the device will call the Interrupt Service  
Routine (0004h).  
The interrupt is cleared by clearing the TMR1IF bit in  
the Interrupt Service Routine.  
Note:  
The TMR1H:TMR1L register pair and the  
TMR1IF bit should be cleared before  
enabling interrupts.  
6.9  
Clock Source for LCD Module  
The Timer1 oscillator can be used to provide a clock for  
the LCD module. This clock may be configured to  
remain running during Sleep.  
For more information, see Section 10.0 “Liquid Crys-  
tal Display (LCD) Driver Module”.  
FIGURE 6-2:  
TIMER1 INCREMENTING EDGE  
T1CKI = 1  
when TMR1  
Enabled  
T1CKI = 0  
when TMR1  
Enabled  
Note 1: Arrows indicate counter increments.  
2: In Counter mode, a falling edge must be registered by the counter prior to the first incrementing rising edge of  
the clock.  
DS41250F-page 104  
© 2007 Microchip Technology Inc.  
 复制成功!