SN32F280 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 111
Version 1.1
1
1
1
0
0
0
16
-BIT TIMER WITH CAPTURE
FUNCTION
10.1 OVERVIEW
The microcontroller builds in six 16-bit timers (CT16B0~CT16B5). Each Counter/timer is designed to count cycles of the
peripheral clock (PCLK) or an externally supplied clock and can optionally generate interrupts or perform other actions
at specified timer values based on four match registers. Each counter/timer also includes one capture input to trap the
timer value when an input signal transitions, optionally generating an interrupt.
In PWM mode, up to 12 match and a global match registers can be used to provide a single-edge controlled PWM
output on the match output pins.
CT16B0
CT16B1
CT16B2
CT16B3
CT16B4
CT16B5
Clock
Source
HCLK
PLL_VCO
HCLK
PLL_VCO
ELS
Counter
Mode
Up/Down/
Center-aligned
counting
Up-counting
Up/Down/
Center-aligned
counting
Up-counting
Up-counting
Up/Down/
Center-aligned
counting
PWM
PWM0/1/2/3+
PWM0N/1N/2N/3N
PWM0/1/…/11
PWM0/1/2/3
PWM0/1+
PWM0N/1N
PWM0/1+
PWM0N/1N
PWM0/1/2/3
PCLK
max 96MHz
max 96MHz
max 96MHz
max 96MHz
max 96MHz
max 96MHz
10.2 FEATURES
Six 16-bit counter/timers with a programmable 8-bit prescaler.
Counter or timer operation
Six 16-bit capture channels that can take a snapshot of the timer value when an input signal transitions. A capture
event may also optionally generate an interrupt.
The timer and prescaler may be configured to be cleared on a designated capture event. This feature permits easy
pulse-width measurement by clearing the timer on the leading edge of an input pulse and capturing the timer value
on the trailing edge.
Six 16-bit match registers that allow:
–
Continuous operation with optional interrupt generation on match.
–
Stop timer on match with optional interrupt generation.
–
Reset timer on match with optional interrupt generation.
Up to 4 (CT16B0, CT16B2, CT16B5), 12 (CT16B1), or 2 (CT16B3, CT16B4) PWM outputs corresponding to match
registers with the following capabilities:
–
Set LOW on match.
–
Set HIGH on match.
–
Toggle on match.
–
Do nothing on match.
For CT16B0, up to 4 complete inverse waveform of the PWM signals, and builds in programmable dead-band
function.
For CT16B3 and CT16B4, up to 2 complete inverse waveform of the PWM signals, and builds in programmable
dead-band function.