NUMICRO-SDK Nuvoton Technology Corporation of America, NUMICRO-SDK Datasheet - Page 294

KIT EVAUATION NUC100/120/130/140

NUMICRO-SDK

Manufacturer Part Number
NUMICRO-SDK
Description
KIT EVAUATION NUC100/120/130/140
Manufacturer
Nuvoton Technology Corporation of America
Series
NuMicro™r
Type
MCUr
Datasheets

Specifications of NUMICRO-SDK

Contents
Board, Cable, CD, Nu-Link
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
NUC100, NUC120, NUC130, NUC140

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
NUMICRO-SDK
Manufacturer:
Nuvoton Technology Corporation
Quantity:
135
Part Number:
NUMICRO-SDK
Manufacturer:
NuvoTon
Quantity:
69
5.7.4.7
5.7.4.8
The following procedure is recommended for starting a PWM drive.
Method 1:
Set 16-bit down counter (CNR) as 0, and monitor PDR (current value of 16-bit down-counter).
When PDR reaches to 0, disable PWM-Timer (CHxEN in PCR). (Recommended)
Method 2:
Set 16-bit down counter (CNR) as 0. When interrupt request happened, disable PWM-Timer
(CHxEN in PCR). (Recommended)
Method 3:
Disable PWM-Timer directly ((CHxEN in PCR). (Not recommended)
The reason why method 3 is not recommended is that disable CHxEN will immediately stop PWM
output signal and lead to change the duty of the PWM output, this may cause damage to the
control circuit of motor
1.
2.
3.
4.
5.
6.
7.
8.
PWM-Timer Start Procedure
PWM-Timer Stop Procedure
Setup clock selector (CSR)
Setup prescaler (PPR)
Setup inverter on/off, dead zone generator on/off, auto-reload/one-shot mode and Stop
PWM-timer (PCR)
Setup comparator register (CMR) for setting PWM duty.
Setup PWM down-counter register (CNR) for setting PWM period.
Setup interrupt enable register (PIER)
Setup corresponding GPIO pins as PWM function (enable POE and disable CAPENR)
for the corresponding PWM channel.
Enable PWM timer start running (Set CHxEN = 1 in PCR)
NuMicro™ NUC100 Series Technical Reference Manual
- 294 -
Publication Release Date: Dec. 22, 2010
Revision V1.06

Related parts for NUMICRO-SDK