www.geehy.com Page 175
16
General-purpose Timer (TMR15/16/17)
16.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). It supports complementary output, repeat count and
programmable dead-time insertion function, and is more suitable for motor
control.
16.2
Main Characteristics
(
1
)
Timebase unit
Counter: 16-bit counter, which can only count up
Prescaler: 16-bit programmable prescaler
Repeat counter: 16-bit repeat counter
Auto reloading function
(
2
)
Clock source selection
Internal clock
External input (only applicable to TMR15)
Internal trigger (only applicable to TMR15)
(
3
)
Input function
Counting function
PWM input mode (only applicable to TMR15)
(
4
)
Output function
PWM output mode
Forced output mode
Single-pulse mode
Complementary output and dead-time insertion
(
5
)
Breaking function
(
6
)
Master/Slave mode controller of timer (only applicable to TMR15)
Timers can be synchronized and cascaded
Support multiple slave modes and synchronization signals
(
7
)
Interrupt output and DMA request event
Update event (counter overrun/underrun, counter initialization)
Trigger event (counter start, stop, internal/external trigger)
Capture/Compare event
Breaking signal input event