English
Language : 

PIC18LF24K Datasheet, PDF (247/594 Pages) –
PIC18(L)F26/45/46K40
TABLE 20-2: TxMODE CONFIGURATION OPTIONS(2,6)
MODE<4:0>
Output Operation
<4:3> <2:0> <4:0>
Operation
Start
Timer Control
Reset(1)
Stop
11
10
01
00
Note
xxx 24-31 Reserved
000 16 Reserved
001 17 Monostable
edge-triggered
010
18 start(3)
Input rising edge start timer
Input falling edge start timer
TMRx_ers RE
and TxON = 1
TMRx_ers FE
and TxON = 1
—
TxON = 0 or
Next clock after
—
TMRx = PR2(5)
011 19
Input either edge start timer TMRx_ers edge
—
and TxON = 1
100 20 Reserved
101 21 Reserved
110 22 One-shot level
Input high start timer, Input TMRx_ers = 1 TMRx_ers = 0 TxON = 0 or held
triggered start with active-low Reset timer
and TxON = 1
in Reset(4)
111
23 HLT action
Input low start timer, Input
TMRx_ers = 0 TMRx_ers = 1
active-high Reset timer
and TxON = 1
000 08 One-shot SW start SW start (no HW control)
TxON = 1
001 09 One-shot
edge-triggered
010
10 start(3)
Input rising edge start timer
Input falling edge start timer
TMRx_ers RE
and TxON = 1
TMRx_ers FE
and TxON = 1
—
TxON = 0 or
—
Next clock after
TMRx = PR2(4)
—
011 11
Input either edge start timer TMRx_ers edge
—
and TxON = 1
100 12 One-shot
edge-triggered
101
13
start with HLT
action(3)
Input rising edge start timer;
Input rising edge Reset timer
Input falling edge start timer,
Input falling edge Reset timer
TMRx_ers RE
and TxON = 1
TMRx_ers FE
and TxON = 1
TMRx_ers RE
TMRx_ers FE
110 14
Input rising edge start timer, TMRx_ers RE
Input active-low Reset timer and TxON = 1
TMRx_ers = 0
111 15
Input falling edge start timer, TMRx_ers FE
Input active-high Reset timer and TxON = 1
TMRx_ers = 1
000 00 Roll-over pulse SW gate (no HW control)
TxON = 1
—
TxON = 0
001 01
HW gate, active-high
TMRx_ers = 1
and TxON = 1
—
TxON = 0 or
TMRx_ers = 0
010 02
HW gate, active-low
TMRx_ers = 0
and TxON = 1
—
TxON = 0 or
TMRx_ers = 1
011 03 Roll-over pulse Input either edge Reset timer TxON = 1
100
04 with HLT action
Input rising edge Reset timer
TMRx_ers edge TxON = 0
TMRx_ers RE
101 05
Input falling edge Reset timer
TMRx_ers FE
110 06
111 07
Input active-low Reset timer
Input active-high Reset timer
TMRx_ers = 0 TxON = 0 or
TMRx_ers = 1 held in Reset
1: When TMRx = PRx, the next clock clears TMRx, regardless of the operating mode.
2: In all operating modes, TxON = 0 stops the counter without affecting the value of TMRx
3: In edge-triggered one-shot and monostable modes (not “SW Start” mode), the triggered-start mechanism is reset and
rearmed (prepared for next start) if TxON becomes ‘0’ (zero); the counter will not restart until an input edge occurs.
4: When TMRx = PRx, the next clock clears TxON.
5: When TMRx = PRx, TxON is not cleared.
6: Both TxON and TMRx_ers are subject to clock sync delays.
 2016 Microchip Technology Inc.
Preliminary
DS40001816C-page 247