English
Language : 

PIC16LF18854 Datasheet, PDF (513/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
32.5.3 GO STATUS
Timer run status is determined by the TS bit of the
SMTxSTAT register, and will be delayed in time by
synchronizer delays in non-Counter modes.
32.6 Modes of Operation
The modes of operation are summarized in Table 32-1.
The following sections provide detailed descriptions,
examples of how the modes can be used. Note that all
waveforms assume WPOL/SPOL/CPOL = 0. When
WPOL/SPOL/CPOL = 1, all SMTSIGx, SMTWINx and
SMT clock signals will have a polarity opposite to that
indicated. For all modes, the REPEAT bit controls
whether the acquisition is repeated or single. When
REPEAT = 0 (Single Acquisition mode), the timer will
stop incrementing and the SMTxGO bit will be reset
upon the completion of an acquisition. Otherwise, the
timer will continue and allow for continued acquisitions
to overwrite the previous ones until the timer is stopped
in software.
32.6.1 TIMER MODE
Timer mode is the simplest mode of operation where
the SMTxTMR is used as a 16/24-bit timer. No data
acquisition takes place in this mode. The timer
increments as long as the SMTxGO bit has been set by
software. No SMT window or SMT signal events affect
the SMTxGO bit. Everything is synchronized to the
SMT clock source. When the timer experiences a
period match (SMTxTMR = SMTxPR), SMTxTMR is
reset and the period match interrupt trips. See
Figure 32-3.
TABLE 32-1: MODES OF OPERATION
MODE
Mode of Operation
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011-1111
Timer
Gated Timer
Period and Duty Cycle Acquisition
High and Low Time Measurement
Windowed Measurement
Gated Windowed Measurement
Time of Flight
Capture
Counter
Gated Counter
Windowed Counter
Reserved
Synchronous
Operation
Reference
Yes
Section 32.6.1 “Timer Mode”
Yes
Section 32.6.2 “Gated Timer Mode”
Yes
Section 32.6.3 “Period and Duty-Cycle Mode”
Yes
Section 32.6.4 “High and Low Measure Mode”
Yes
Section 32.6.5 “Windowed Measure Mode”
Yes
Section 32.6.6 “Gated Window Measure Mode”
Yes
Section 32.6.7 “Time of Flight Measure Mode”
Yes
Section 32.6.8 “Capture Mode”
No
Section 32.6.9 “Counter Mode”
No
Section 32.6.10 “Gated Counter Mode”
No
Section 32.6.11 “Windowed Counter Mode”
—
—
 2016 Microchip Technology Inc.
Preliminary
DS40001824A-page 513