|
PIC16F1516_12 Datasheet, PDF (153/376 Pages) Microchip Technology – 28/40/44-Pin Flash Microcontrollers with XLP Technology | |||
|
◁ |
PIC16(L)F1516/7/8/9
18.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
⢠32 kHz secondary oscillator circuit
⢠Optionally synchronized comparator out
⢠Multiple Timer1 gate (count enable) sources
⢠Interrupt on overflow
⢠Wake-up on overflow (external clock,
Asynchronous mode only)
⢠Time base for the Capture/Compare function
⢠Special Event Trigger (with CCP)
⢠Selectable Gate Source Polarity
FIGURE 18-1:
TIMER1 BLOCK DIAGRAM
⢠Gate Toggle mode
⢠Gate Single-pulse mode
⢠Gate Value Status
⢠Gate Event Interrupt
Figure 18-1 is a block diagram of the Timer1 module.
T1GSS<1:0>
T1G
00
T1GSPM
From Timer0
Overflow
01
From Timer2
10
Match PR2
Reserved
11
T1GPOL
T1G_IN
TMR1ON
T1GTM
DQ
CK Q
R
Set flag bit
TMR1IF on
Overflow
TMR1(2)
TMR1H
TMR1L
0
Single Pulse
Acq. Control
1
T1GGO/DONE
0
T1GVAL
DQ
1
Q1 EN
Interrupt
det
TMR1ON
TMR1GE
EN
0
Q D T1CLK
Synchronized
clock input
Data Bus
RD
T1GCON
Set
TMR1GIF
SOSCO/T1CKI
SOSCI
T1OSCEN
OUT
Secondary
Oscillator
EN
(1)
TMR1CS<1:0>
LFINTOSC 11
1
10
0
FOSC
Internal 01
Clock
FOSC/4
Internal 00
Clock
1
T1SYNC
Prescaler
1, 2, 4, 8
2
T1CKPS<1:0>
Synchronize(3)
det
FOSC/2
Internal
Clock
Sleep input
Note 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.
To Clock Switching Modules
ï£ 2010-2012 Microchip Technology Inc.
DS41452C-page 153
|
▷ |