Data Sheet

NUC123
May 3, 2017 Page 56 of 99 Rev.2.04
NUC123 SERIES DATASHEET
PWM Generator and Capture Timer (PWM) 6.8
6.8.1 Overview
The NuMicro
®
NUC123 series has 1 set of PWM group supporting 1 set of PWM generators
which can be configured as 4 independent PWM outputs, PWM0~PWM3, or as 2 complementary
PWM pairs, (PWM0, PWM1), (PWM2, PWM3) with two programmable dead-zone generators.
PWM output function can be alternated to capture function.
Each PWM generator has one 8-bit prescaler, one clock divider with 5 divided frequencies (1, 1/2,
1/4, 1/8, 1/16), two PWM Timers including two clock selectors, two 16-bit PWM down-counters for
PWM period control, two 16-bit comparators for PWM duty control and one dead-zone generator.
The PWM generators provide four independent PWM interrupt flags which are set by hardware
when the corresponding PWM period down counter reaches zero.
Each PWM interrupt source with its corresponding enable bit can cause CPU to request PWM
interrupt. The PWM generators can be configured as one-shot mode to produce only one PWM
cycle signal or auto-reload mode to output PWM waveform continuously. PWM can be used to
trigger ADC when operation in center-aligned mode.
6.8.2 Features
PWM function:
Up to 1 PWM group (PWMA) to support 4 PWM channels or 2 PWM paired channels
Supports 8-bit prescaler from 1 to 255
Up to 16-bit resolution PWM timer
PWM timer supports down and up-down operation type
One-shot or Auto-reload mode PWM
PWM Interrupt request synchronized with PWM period or duty
Supports dead-zone generator with 8-bit resolution for 2 PWM paired channels
Supports trigger ADC on center point in center-aligned mode
Capture function:
Supports 4 Capture input channels shared with 4 PWM output channels
Supports rising or falling capture condition
Supports rising or falling capture interrupt
Supports PDMA transfer function for each channel