Datasheet

Table Of Contents
2011-2013 Microchip Technology Inc. DS40001609C-page 165
PIC16(L)F1508/9
19.0 TIMER1 MODULE WITH GATE
CONTROL
The Timer1 module is a 16-bit timer/counter with the
following features:
16-bit timer/counter register pair (TMR1H:TMR1L)
Programmable internal or external clock source
2-bit prescaler
Optionally synchronized comparator out
Multiple Timer1 gate (count enable) sources
Interrupt on overflow
Wake-up on overflow (external clock,
Asynchronous mode only)
ADC Auto-Conversion Trigger(s)
Selectable Gate Source Polarity
Gate Toggle mode
Gate Single-Pulse mode
Gate Value Status
Gate Event Interrupt
Figure 19-1 is a block diagram of the Timer1 module.
FIGURE 19-1: TIMER1 BLOCK DIAGRAM
() ( )
00
11
10
01
T1G
T0_overflow
C1OUT_sync
C2OUT_sync
T1GSS<1:0>
T1GPOL
0
1
Single Pulse
Acq. Control
1
0
T1GSPM
DQ
TMR1ON
T1GTM
set bit
TMR1GIF
T1GVAL
Q1
TMR1GE
TMR1ON
DQ
EN
TMR1LTMR1H
T1_overflow
set flag bit
TMR1IF
TMR1
(2)
1
0
SOSCI/T1CKI
SOSCO
T1OSCEN
Secondary
Oscillator
OUT
EN
1
0
Fosc
Internal Clock
Fosc/4
Internal Clock
LFINTOSC
TMR1CS<1:0>
00
11
10
01
Prescaler
1,2,4,8
To Clock Switching
Module
T1SYNC
Sleep
Input
Fosc/2
Internal
Clock
T1CKPS<1:0>
Synchronized Clock Input
2
det
Synchronize
(3)
1: ST Buffer is high speed type when using T1CKI.
2: Timer1 register increments on rising edge.
3: Synchronize does not operate while in Sleep.
(1)
Secondary Clock
D
QCK
R
Q
Note
T1GGO/DONE
T1CLK
det
Interrupt
Rev. 10-000018A
8/5/2013