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

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.2 PWM Double Buffering, Auto-reload and One-shot Operation
NuMicro M051
the start of next period without affecting current timer operation. The PWM counter value can be
written into CNRx and current PWM counter value can be read from PDRx.
The bit CH0MOD in PWM Control Register (PCR) defines PWM0 operates in auto-reload or one-
shot mode If CH0MOD is set to one, the auto-reload operation loads CNR0 to PWM counter when
PWM counter reaches zero. If CNR0 are set to zero, PWM counter will be halt when PWM
counter counts to zero. If CH0MOD is set as zero, counter will be stopped immediately.
PWM1~PWM7 performs the same function as PWM0.
write a nonzero number to
prescaler & setup clock
dividor
Waveform
down-counter
PWM-Timer
PWM
Comparator
output
(CMR)
PWM
(Write initial setting)
NuMicro M051
Auto reload = 1
(CHxMOD=1)
CNR=150
CMR=50
CMR = 1
CNR = 3
(PWM-Timer starts running)
Write
series PWM Timers have double buffering function the reload value is updated at
3
1
Set ChxEN=1
Figure 6.6-11 PWM Double Buffering Illustration
Start
Figure 6.6-10 PWM-Timer Operation Timing
3
CNR=199
CMR=49
Write
151
2
(S/W write new value)
Series Technical Reference Manual
1
1
51
CMR = 0
CNR = 4
- 194 -
(PWMIFx is set by H/W)
0
(H/W update value)
Auto-load
CNR=99
CMR=0
4
Write
Publication Release Date: Sep 14, 2010
200
3
2
0
50
CMR=XX
1
CNR=0
Write
(PWMIFx is set by H/W)
0
100
Auto-load
Revision V1.2
1
Stop
4

Related parts for NUTINY-SDK-M0516