English
Language : 

PIC16F946 Datasheet, PDF (89/274 Pages) Microchip Technology – 64-Pin Flash-Based, 8-Bit CMOS Microcontrollers with LCD Driver and nanoWatt Technology
PIC16F946
6.0 TIMER1 MODULE WITH GATE
CONTROL
The PIC16F946 has a 16-bit timer. Figure 6-1 shows
the basic block diagram of the Timer1 module. Timer1
has the following features:
• 16-bit timer/counter (TMR1H:TMR1L)
• Readable and writable
• Internal or external clock selection
• Synchronous or asynchronous operation
• Interrupt-on-overflow from FFFFh to 0000h
• Wake-up upon overflow (Asynchronous mode)
• Optional external enable input:
- Selectable gate source: T1G or C2 output
(T1GSS)
- Selectable gate polarity (T1GINV)
• Optional LP oscillator
The Timer1 Control register (T1CON), shown in
Register 6-1, is used to enable/disable Timer1 and
select the various features of the Timer1 module.
FIGURE 6-1:
TIMER1 ON THE PIC16F946 BLOCK DIAGRAM
TMR1ON
T1GE
Set Flag bit
TMR1IF on
Overflow
Clear on special
event trigger
TMR1(1)
TMR1H
TMR1L
TMR1ON
T1GE
To C2 Comparator Module
TMR1 Clock
Synchronized
0
Clock Input
T1GINV
OSC1/T1OSI
OSC2/T1OSO
FOSC = 000
FOSC = x00
T1OSCEN
LP OSC
1
(2)
1
1
FOSC/4
0 Internal 0
Clock
T1SYNC
Prescaler
1, 2, 4, 8
2
T1CKPS<1:0>
Synchronize
det
Sleep Input
T1CS
RC4/T1G/
1
SDO/SEG11
RC5/T1CKI/
CCP1/SEG10
C2OUT
0
T1GSS
Note 1: Timer1 increments on the rising edge.
2: ST Buffer is low-power type when using LP oscillator or high-speed type when using T1CKI.
© 2005 Microchip Technology Inc.
Preliminary
DS41265A-page 87