English
Language : 

PIC16LF18854 Datasheet, PDF (425/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
TABLE 29-1: TIMER2 OPERATING MODES
Mode
MODE<4:0> Output
<4:3> <2:0> Operation
Operation
Start
Timer Control
Reset
Stop
Free
Running
Period
000
001 Period
Pulse
010
011
00
100
Period
101
Pulse
with
110 Hardware
Reset
111
Software gate (Figure 29-4)
Hardware gate, active-high
(Figure 29-5)
Hardware gate, active-low
Rising or falling edge Reset
Rising edge Reset (Figure 29-6)
Falling edge Reset
Low level Reset
High level Reset (Figure 29-7)
ON = 1
ON = 1 and
TMRx_ers = 1
ON = 1 and
TMRx_ers = 0
ON = 1
000 One-shot
Software start (Figure 29-8)
ON = 1
001
Edge
triggered
010
start
(Note 1)
011
Rising edge start (Figure 29-9)
Falling edge start
Any edge start
ON = 1 and
TMRx_ers ↑
ON = 1 and
TMRx_ers ↓
ON = 1 and
TMRx_ers ↕
One-shot
01
100
Edge
triggered
101
start
and
110 hardware
Reset
(Note 1)
111
Rising edge start and
Rising edge Reset (Figure 29-10)
Falling edge start and
Falling edge Reset
Rising edge start and
Low level Reset (Figure 29-11)
Falling edge start and
High level Reset
ON = 1 and
TMRx_ers ↑
ON = 1 and
TMRx_ers ↓
ON = 1 and
TMRx_ers ↑
ON = 1 and
TMRx_ers ↓
000
Reserved
Mono-stable
001
Edge
triggered
010
start
(Note 1)
011
Rising edge start
(Figure 29-12)
Falling edge start
Any edge start
ON = 1 and
TMRx_ers ↑
ON = 1 and
TMRx_ers ↓
ON = 1 and
TMRx_ers ↕
Reserved 10 100
Reserved
Reserved
101
Reserved
One-shot
Level
110 triggered
start
and
111 hardware
Reset
High level start and
Low level Reset (Figure 29-13)
Low level start &
High level Reset
ON = 1 and
TMRx_ers = 1
ON = 1 and
TMRx_ers = 0
Reserved 11 xxx
Reserved
Note 1: If ON = 0 then an edge is required to restart the timer after ON = 1.
2: When TMRx = PRx then the next clock clears ON and stops TMRx at 00h.
3: When TMRx = PRx then the next clock stops TMRx at 00h but does not clear ON.
—
—
—
TMRx_ers ↕
TMRx_ers ↑
TMRx_ers ↓
TMRx_ers = 0
TMRx_ers = 1
—
—
—
—
TMRx_ers ↑
TMRx_ers ↓
TMRx_ers = 0
TMRx_ers = 1
—
—
—
TMRx_ers = 0
TMRx_ers = 1
ON = 0
ON = 0 or
TMRx_ers = 0
ON = 0 or
TMRx_ers = 1
ON = 0
ON = 0 or
TMRx_ers = 0
ON = 0 or
TMRx_ers = 1
ON = 0
or
Next clock
after
TMRx = PRx
(Note 2)
ON = 0
or
Next clock
after
TMRx = PRx
(Note 3)
ON = 0 or
Held in Reset
(Note 2)
 2016 Microchip Technology Inc.
Preliminary
DS40001824A-page 425