NUTINY-SDK-M0516 Nuvoton Technology Corporation of America, NUTINY-SDK-M0516 Datasheet - Page 193

no-image

NUTINY-SDK-M0516

Manufacturer Part Number
NUTINY-SDK-M0516
Description
BOARD EVAL NUMICRO M051 SERIES
Manufacturer
Nuvoton Technology Corporation of America
Series
NuMicro M051™r
Type
MCUr
Datasheets

Specifications of NUTINY-SDK-M0516

Contents
Board, Cable
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
M051™ Series, M052/M054/M058/M0516
6.6.4
6.6.4.1 PWM-Timer Operation
NuMicro M051
The PWM period and duty control are configured by PWM down-counter register (CNR) and
PWM comparator register (CMR). The PWM-timer timing operation is shown in the Figure 6.6-10.
The pulse width modulation follows the formula as below and the legend of PWM-Timer
Comparator is shown in the Figure 6.6-9 note that the corresponding GPIO pins must be
configured as PWM function (enable POE and disable CAPENR) for the corresponding PWM
channel.
PWM frequency = PWMxy_CLK/(prescale+1)*(clock divider)/(CNR+1); where xy, could be 01, 23,
45 or 67, depends on selected PWM channel.
Note: 1. Unit = one PWM clock cycle.
Note: x= 0~3.
CMRx+1
Function Description
Duty ratio = (CMR+1)/(CNR+1)
CMR >= CNR: PWM output is always high
CMR < CNR: PWM low width= (CNR-CMR) unit
CMR = 0: PWM low width = (CNR) unit; PWM high width = 1 unit
CNRx
Figure 6.6-9 Legend of Internal Comparator Output of PWM-Timer
+
-
Series Technical Reference Manual
PWM-Timer
Comparator
Output
- 193 -
CMRx
CNRx
Ouput
PWM
Initialize
1
PWM
; PWM high width = (CMR+1) unit
Publication Release Date: Sept 14, 2010
Start
CNR+1
new CMRx
Update
CMR+1
Revision V1.2

Related parts for NUTINY-SDK-M0516