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

PIC16F886-I/SS 参数 Datasheet PDF下载

PIC16F886-I/SS图片预览
型号: PIC16F886-I/SS
PDF下载: 下载PDF文件 查看货源
内容描述: 28 /40/ 44引脚,增强基于闪存的8位CMOS微控制器采用纳瓦技术 [28/40/44-Pin, Enhanced Flash-Based 8-Bit CMOS Microcontrollers with nanoWatt Technology]
分类和应用: 闪存微控制器和处理器外围集成电路光电二极管时钟
文件页数/大小: 288 页 / 5120 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16F886-I/SS的Datasheet PDF文件第76页浏览型号PIC16F886-I/SS的Datasheet PDF文件第77页浏览型号PIC16F886-I/SS的Datasheet PDF文件第78页浏览型号PIC16F886-I/SS的Datasheet PDF文件第79页浏览型号PIC16F886-I/SS的Datasheet PDF文件第81页浏览型号PIC16F886-I/SS的Datasheet PDF文件第82页浏览型号PIC16F886-I/SS的Datasheet PDF文件第83页浏览型号PIC16F886-I/SS的Datasheet PDF文件第84页  
PIC16F882/883/884/886/887  
In Compare mode, an event is triggered when the value  
CCPRxH:CCPRxL register pair matches the value in  
the TMR1H:TMR1L register pair. This event can be a  
Special Event Trigger.  
6.7  
Timer1 Interrupt  
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:  
See Section 11.0 “Capture/Compare/PWM Modules  
(CCP1 and CCP2)” for more information.  
• Timer1 interrupt enable bit of the PIE1 register  
• PEIE bit of the INTCON register  
6.10 ECCP Special Event Trigger  
If an ECCP is configured to trigger a special event, the  
trigger will clear the TMR1H:TMR1L register pair. This  
special event does not cause a Timer1 interrupt. The  
ECCP module may still be configured to generate a  
ECCP interrupt.  
• GIE bit of the INTCON register  
The interrupt is cleared by clearing the TMR1IF bit in  
the Interrupt Service Routine.  
Note:  
The TMR1H:TTMR1L register pair and the  
TMR1IF bit should be cleared before  
enabling interrupts.  
In this mode of operation, the CCPRxH:CCPRxL  
register pair effectively becomes the period register for  
Timer1.  
6.8  
Timer1 Operation During Sleep  
Timer1 should be synchronized to the FOSC to utilize  
the Special Event Trigger. Asynchronous operation of  
Timer1 can cause a Special Event Trigger to be  
missed.  
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:  
In the event that a write to TMR1H or TMR1L coincides  
with a Special Event Trigger from the ECCP, the write  
will take precedence.  
• 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  
For  
more  
information,  
see  
Section 11.0  
“Capture/Compare/PWM Modules (CCP1 and  
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).  
CCP2)”.  
6.11 Comparator Synchronization  
The same clock used to increment Timer1 can also be  
used to synchronize the comparator output. This  
feature is enabled in the Comparator module.  
6.9  
ECCP Capture/Compare Time Base  
The ECCP module uses the TMR1H:TMR1L register  
pair as the time base when operating in Capture or  
Compare mode.  
When using the comparator for Timer1 gate, the  
comparator output should be synchronized to Timer1.  
This ensures Timer1 does not miss an increment if the  
comparator changes.  
In Capture mode, the value in the TMR1H:TMR1L  
register pair is copied into the CCPRxH:CCPRxL  
register pair on a configured event.  
For more information, see Section 8.0 “Comparator  
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.  
DS41291D-page 78  
Preliminary  
© 2007 Microchip Technology Inc.  
 复制成功!