SN32F760 Series
32-Bit Cortex-M0 Micro-Controller
SONiX TECHNOLOGY CO., LTD
Page 97
Version 2.0
8
8
8
16-BIT TIMER WITH CAPTURE
FUNCTION
8.1 OVERVIEW
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 three match registers can be used to provide a single-edge controlled PWM output on the match
output pins.
8.2 FEATURES
Three 16-bit counter/timers with a programmable 16-bit prescaler.
Counter or timer operation
Three 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.
For each timer, four 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.
– C
onfigured as PWM allowing using up to three match outputs as single edge controlled PWM outputs.
For each timer, up to three 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.
8.3 PIN DESCRIPTION
Pin Name
Type
Description
GPIO Configuration
CT16Bn_CAP0
I
Capture channel input 0
Depends on GPIOn_CFG
CT16Bn_PWMx
O
Output channel x of Match/PWM output.
Содержание SN32F755
Страница 218: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 218 Version 2 0 22 2 LQFP 64 PIN...
Страница 220: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 220 Version 2 0 22 4 QFN 46 PIN...
Страница 221: ...SN32F760 Series 32 Bit Cortex M0 Micro Controller SONiX TECHNOLOGY CO LTD Page 221 Version 2 0 22 5 QFN 33 PIN 5x5...