www.geehy.com Page 131
14
General-purpose Timer (TMR3)
14.1
Introduction
The general-purpose timer takes the time base unit as the core, and has the
functions of input capture and output compare, and can be used to measure the
pulse width, frequency and duty cycle, and generate the output waveform. It
includes a 16-bit auto reload counter (realize count-up, count-down and
center-aligned count).
The timer and timer are independent of each other, and they can achieve
synchronization and cascading.
14.2
Main Characteristics
(
1
)
Timebase unit
Counter: 16-bit counter, count-up, count-down and center-aligned count
Prescaler: 16-bit programmable prescaler
Auto reloading function
(
2
)
Clock source selection
Internal clock
External input
External trigger
Internal trigger
(
3
)
Input function
Counting function
PWM input
Encoder interface mode
(
4
)
Output function
PWM output mode
Forced output mode
Single-pulse mode
(
5
)
Master/Slave mode controller of timer
Timers can be synchronized and cascaded
Support multiple slave modes and synchronization signals
(
6
)
Interrupt and DMA request event
Update event (counter overrun/underrun, counter initialization)
Trigger event (counter start, stop, internal/external trigger)
Input capture
Output compare