M052LAN Nuvoton Technology Corporation of America, M052LAN Datasheet - Page 199

IC MCU 32BIT 8KB FLASH 48LQFP

M052LAN

Manufacturer Part Number
M052LAN
Description
IC MCU 32BIT 8KB FLASH 48LQFP
Manufacturer
Nuvoton Technology Corporation of America
Series
NuMicro M051™r
Datasheets

Specifications of M052LAN

Core Processor
ARM Cortex-M0
Core Size
32-Bit
Speed
50MHz
Connectivity
EBI/EMI, I²C, IrDA, SPI, UART/USART
Peripherals
Brown-out Detect/Reset, LVD, POR, PWM, WDT
Number Of I /o
40
Program Memory Size
8KB (8K x 8)
Program Memory Type
FLASH
Ram Size
4K x 8
Voltage - Supply (vcc/vdd)
2.5 V ~ 5.5 V
Data Converters
A/D 8x12b
Oscillator Type
Internal
Operating Temperature
-40°C ~ 85°C
Package / Case
48-LQFP
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
M052LAN
Manufacturer:
NuvoTon
Quantity:
130
Part Number:
M052LAN
Manufacturer:
Nuvoton Technology Corporation of America
Quantity:
10 000
Part Number:
M052LAN
Manufacturer:
NUVOTON
Quantity:
20 000
6.6.4.7 PWM-Timer Start Procedure
6.6.4.8 PWM-Timer Stop Procedure
NuMicro M051
The following procedure is recommended for starting a PWM drive.
1.
2.
3.
4.
5.
6.
7.
8.
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 happens, 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
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)
Series Technical Reference Manual
- 199 -
Publication Release Date: Sept 14, 2010
Revision V1.2

Related parts for M052LAN