MS51
1T 8051
8-bit Microcontroller
NuMicro® Family
MS51 Series
Product Brief
Nuvoton is providing this document only for reference purposes of NuMicro microcontroller based
system design. Nuvoton assumes no responsibility for errors or omissions.
All data and specifications are subject to change without notice.
For additional information or questions, please contact: Nuvoton Technology Corporation.
www.nuvoton.com
Aug. 1st 2019
Page 1 of 25
Rev.2.00
MS51 SERIES PRODUCT BRIEF
The information described in this document is the exclusive intellectual property of
Nuvoton Technology Corporation and shall not be reproduced without permission from Nuvoton.
MS51
1
GENERAL DESCRIPTION
®
The NuMicro MS51 series is an embedded Flash type, 8-bit high performance 1T 8051-based
microcontroller. The instruction set is fully compatible with the standard 80C51 and performance
enhanced.
The MS51 series contains up to 32 Kbytes main Flash called APROM, in which the contents of User
Code reside. The Flash supports In-Application-Programming (IAP) function, which enables on-chip
firmware updates. IAP also makes it possible to configure any block of User Code array to be used as
non-volatile data storage, which is written by IAP and read by IAP or MOVC instruction. There is an
additional Flash called LDROM, in which the Boot Code normally resides for carrying out In-SystemProgramming (ISP). The LDROM size is configurable with a maximum of 4 Kbytes. To facilitate
programming and verification, the Flash allows to be programmed and read electronically by parallel
Writer or In-Circuit-Programming (ICP). Once the code is confirmed, user can lock the code for
security.
The MS51 series provides rich peripherals including 256 Bytes of SRAM, up to 2 Kbytes of auxiliary
RAM (XRAM), Up to 30 general purpose I/O, two 16-bit Timers/Counters 0/1, one 16-bit Timer2 with
three-channel input capture module, one Watchdog Timer (WDT), one Self Wake-up Timer (WKT),
one 16-bit auto-reload Timer3 for general purpose or baud rate generator, two UARTs with frame error
2
detection and automatic address recognition, one SPI, one I C, up to 12 enhanced PWM output
channels, and one 12-bit ADC. The peripherals are equipped with 18 sources with 4-level-priority
interrupts capability.
The MS51 series is equipped with two clock sources and supports switching on-the-fly via software.
The clock sources include internal clock inputs, 10 kHz internal oscillator, and one 24 MHz internal
precise oscillator that is factory trimmed to ±1% at room temperature. MS51 series provides additional
power monitoring detection such as power-on reset and 4-level brown-out detection, which stabilizes
the power-on/off sequence for a high reliability system design.
MS51 SERIES PRODUCT BRIEF
The MS51 series microcontroller consumes very low power with two economic power modes to
reduce power consumption - Idle and Power-down mode, which are software selectable. Idle mode
turns off the CPU clock but allows continuing peripheral operation. Power-down mode stops the whole
system clock for minimum power consumption. The system clock of the MS51 series can also be
slowed down by software clock divider, which allows for a flexibility between execution performance
and power consumption.
Aug. 1st 2019
Page 2 of 25
Rev.2.00
MS51
2
FEATURES
Operating Characteristics
– Voltage range: 2.4 V to 5.5 V
– Temperature range: -40°C to +105°C
CPU
– Fully static design 8-bit high performance 1T
8051-based CMOS microcontroller.
– Instruction set fully compatible with MCS-51.
– 4-priority-level interrupts capability.
– Dual Data Pointers (DPTRs).
Memories
– Up to 32 Kbytes Flash
– Configurable 4/3/2/1 Kbytes of LDROM,
which provides flexibility to user developed
Boot Code.
– Up to 2 Kbytes SRAM
– 256 Bytes on-chip RAM.
– Flash Memory accumulated with pages of
128 Bytes each.
– Built-in In-Application-Programmable (IAP).
– Code lock for security.
Clocks
– 16 MHz high-speed internal oscillator
trimmed to ±1% when VDD 5.0V, ±4% in all
conditions.
– 24 MHz high-speed internal oscillator
trimmed ±1% when VDD 5.0V, ±4% in all
conditions.
– 10 kHz low-speed internal oscillator.
– On-the-fly clock source switch via software.
Peripherals
Aug. 1st 2019
Page 3 of 25
Power management
– Two power reduced modes: Idle and Powerdown mode.
Power monitor
– Brown-out detection (BOD) with low power
mode available, 4-level selection, interrupt or
reset options.
– Power-on reset (POR).
Strong ESD and EFT immunity
– ESD HBM pass 8 kV
– EFT ± 4.4 kV
– Latch-up pass 150 mA
96-bit Unique ID (UID)
128-bit Unique Customer ID (UCID)
2-Byte (16-bit) PDID
Rev.2.00
MS51 SERIES PRODUCT BRIEF
– Standard interrupt pins ̅̅̅̅̅̅̅ and ̅̅̅̅̅̅̅.
– Two 16-bit Timers/Counters 0 and 1
compatible with standard 8051.
– One 16-bit Timer 2 with three-channel input
capture module and 9 input pin can be
selected.
– One 16-bit auto-reload Timer 3, which can be
the baud rate clock source of UARTs.
– One 16-bit PWM counter interrupt for timer.
– One programmable Watchdog Timer (WDT)
clocked by dedicated 10 kHz internal source.
– One dedicated Self Wake-up Timer (WKT)
for self-timed wake-up for power reduced
modes.
– Two full-duplex UART ports with frame error
detection and automatic address recognition.
TXD and RXD pins of UART0 exchangeable
via software.
– Three smart card ports support ISO7816-3
compliant T=0, T=1 and support full-duplex
UART mode (32K Flash supported)
– One SPI port with master and slave modes,
up to 12 Mbps when system clock is 24 MHz.
2
– One I C bus with master and slave modes,
up to 400 kbps data rate.
– Up to six pairs, twelve channels of pulse
width modulator (PWM) output, with different
modes and Fault Brake function for motor
control.
– Eight channels of pin interrupt, shared for all
I/O ports, with variable configuration of
edge/level detection.
– One 12-bit ADC, supports up to 15 channels
with 500 ksps converting rate
– Up to 30 general purpose I/O pins and 1
input-only pin. All output pins have individual
2-level slew rate control.
– Up to 20mA high current sink/source
– Programmable pull-ups pull-lows
MS51
3
BLOCK DIAGRAM
Figure 3-1 NuMicro® MS51 Block Diagram
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 4 of 25
Rev.2.00
MS51
4
PARTS INFORMATION
MS51 Series Naming Rule
MS
51
F
B
9
A
E
Core
Line
Package
Flash
SRAM
Reserve
Temperature
1T 8051
51: Base
B: MSOP10
A: 8 KB
0: 2 KB
(3x3 mm)
B: 16 KB
1: 4 KB
D: TSSOP14
C: 32 KB
2: 8/12 KB
(4.4x5.0 mm)
D: 64 KB
9: 1 KB
E:-40°C ~ 105°C
F: TSSOP20
(4.4x6.5 mm)
E:TSSOP28
(4.4x9.7 mm)
U: SOP28
(300 mil)
O: SOP20
(300 mil)
T: QFN33
(4x4 mm)
P: LQFP32
(7x7 mm)
L: LQFP48
MS51 SERIES PRODUCT BRIEF
(7x7 mm)
S: LQFP64
(7x7 mm)
Aug. 1st 2019
Page 5 of 25
Rev.2.00
MS51
MS51 Series Selection Guide
Package
ADC(12-Bit)
I2C
SPI
UART
ISO-7816[2]
PWM
Timer/
I/O
ISP ROM (KB) [1]
SRAM (KB)
Part Number
Flash (KB)
Connectivity
4*
8
4
5
2
1
5-ch
MSOP10
MS51BA9AE
8
1
4*
12
4
5
2
1
1
7-ch
TSSOP14
MS51DA9AE
8
1
[3]
QFN20
4*
18
4
6
2
1
1
8-ch
MS51XB9AE
16
1
[3]
QFN20
4*
18
4
6
2
1
1
8-ch
MS51XB9BE
16
1
4*
18
4
6
2
1
1
8-ch
TSSOP20
MS51FB9AE
16
1
3
4*
18
4
10
2
1
1
10-ch
TSSOP20
MS51FC0AE
32
2
3
4*
18
4
10
2
1
1
10-ch
QFN20
MS51XC0BE
32
2
3
4*
26
4
12
2
1
1
15-ch
TSSOP28
MS51EC0AE
32
2
3
4*
30
4
12
2
2
1
15-ch
QFN33
MS51TC0AE
32
2
3
4*
30
4
12
2
2
1
15-ch
LQFP32
MS51PC0AE
32
2
Note:
1. ISP ROM programmable 1K/2K/3K/4KB Flash for user program loader (LDROM) share from ARPOM.
2. ISO-7816 configurable as UART2.
3. Detailed package information please refer to Chapter 7
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 6 of 25
Rev.2.00
MS51
5
PIN CONFIGURATION
5.1 MS51 Series Pin Diagram
5.1.1
MS51 Series LQFP32 Diagram
MS51 SERIES PRODUCT BRIEF
Figure 5-1 MS51 Series LQFP-32 -pin Diagram
Aug. 1st 2019
Page 7 of 25
Rev.2.00
MS51
5.1.2
MS51 Series QFN33 Diagram
MS51 SERIES PRODUCT BRIEF
Figure 5-2 MS51 Series QFN-33 -pin Diagram
Aug. 1st 2019
Page 8 of 25
Rev.2.00
MS51
5.1.3
MS51 Series TSSOP28 Diagram
MS51 SERIES PRODUCT BRIEF
Figure 5-3 MS51 Series TSSOP-28 -pin Diagram
Aug. 1st 2019
Page 9 of 25
Rev.2.00
MS51
5.1.4
MS51FC0AE TSSOP20 Diagram
MS51 SERIES PRODUCT BRIEF
Figure 5-4 MS51 Series TSSOP-20 -pin Diagram
Aug. 1st 2019
Page 10 of 25
Rev.2.00
MS51
5.1.5
MS51XC0BE QFN20 Diagram
MS51 SERIES PRODUCT BRIEF
Figure 5-5 MS51 Series QFN-20 -pin Diagram
Aug. 1st 2019
Page 11 of 25
Rev.2.00
MS51
5.1.6
MS51 Series TSSOP20 Diagram
PWM2/IC6/T0/AIN4/P0.5
1
20
P0.4/AIN5/STADC/PWM3/IC3
TXD/AIN3/P0.6
2
19
P0.3/PWM5/IC5/AIN6
RXD/AIN2/P0.7
3
18
P0.2/ICPCK/OCDCK/RXD_1/[SCL]
RST/P2.0
4
17
P0.1/PWM4/IC4/MISO
INT0/OSCIN/AIN1/P3.0
5
16
P0.0/PWM3/IC3/MOSI/T1
MS51FB9AE
INT1/AIN0/P1.7
6
15
P1.0/PWM2/IC2/SPCLK
GND
7
14
P1.1/PWM1/IC1/AIN7/CLO
[SDA]/TXD_1/ICPDA/OCDDA/P1.6
8
13
P1.2/PWM0/IC0
VDD
9
12
P1.3/SCL/[STADC]
10
11
P1.4/SDA/FB/PWM1
PWM5/IC7/SS/P1.5
[ ] alternate function remapping , if the same alternate function is shown twice, it indicates an exclusive choice not a duplication of the function.
Figure 5-6 MS51 Series TSSOP-20 -pin Diagram
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 12 of 25
Rev.2.00
MS51
P0.1 / PWM0_CH4 / IC4 / SPI0_MISO
P1.0 / PWM0_CH2 / IC2 / SPI0_CLK
P0.0 / PWM0_CH3 / IC3 / SPI0_MOSI / T1
P0.1 / PWM0_CH4 / IC4 / SPI0_MISO
MS51 Series QFN20 Pin Diagram
P0.2 / ICPCK / OCDCK / UART1_RXD/[SCL]
5.1.7
15 14 13 12 11
PWM0_CH5 / IC5 / ADC_CH6 / P0.3
16
10
P1.2 / PWM0_CH0 / IC0
ADC_CH5 / STADC / PWM0_CH3 / IC3 / P0.4
17
9
P1.3 / I2C0_SCL / [STADC]
PWM0_CH2 / IC6 / T0 / ADC_CH4 / P0.5
18
8
P1.4 / PWM0_CH1 / I2C0_SDA / PWM0_BRAKE
UART0_TXD / ADC_CH3 / P0.6
19
7
P1.5 / PWM0_CH5 / IC7 / SPI0_SS
UART0_RXD / ADC_CH2 / P0.7
20
6
VDD
2
3
4
5
INT0 / OSCIN / ADC_CH1 / P3.0
INT1 / ADC_CH0 / P1.7
VSS
[SDA] / UART1_TXD / ICPDA / OCDDA / P1.6
MS51 SERIES PRODUCT BRIEF
1
nRESET / P2.0
MS51XB9BE
[ ] alternate function remapping , if the same alternate function is shown twice, it indicates an exclusive choice not a duplication of the function.
Figure 5-7 MS51 Series QFN-20-pin Diagram
Aug. 1st 2019
Page 13 of 25
Rev.2.00
MS51
P0.1 / PWM0_CH4 / IC4 / SPI0_MISO
P1.0 / PWM0_CH2 / IC2 / SPI0_CLK
P0.0 / PWM0_CH3 / IC3 / SPI0_MOSI / T1
P0.1 / PWM0_CH4 / IC4 / SPI0_MISO
MS51 Series QFN20 Pin Diagram
P0.2 / ICPCK / OCDCK / UART1_RXD/[SCL]
5.1.8
15 14 13 12 11
PWM0_CH5 / IC5 / ADC_CH6 / P0.3
16
10
P1.2 / PWM0_CH0 / IC0
ADC_CH5 / STADC / PWM0_CH3 / IC3 / P0.4
17
9
P1.3 / I2C0_SCL / [STADC]
PWM0_CH2 / IC6 / T0 / ADC_CH4 / P0.5
18
8
P1.4 / PWM0_CH1 / I2C0_SDA / PWM0_BRAKE
UART0_TXD / ADC_CH3 / P0.6
19
7
P1.5 / PWM0_CH5 / IC7 / SPI0_SS
UART0_RXD / ADC_CH2 / P0.7
20
6
VDD
3
4
5
INT1/AIN0/P1.7
GND
[SDA]/TXD_1/ICPDA/OCDDA/P1.6
2
INT0/OSCIN/AIN1/P3.0
MS51 SERIES PRODUCT BRIEF
1
RST/P2.0
MS51XB9BE
[ ] alternate function remapping , if the same alternate function is shown twice, it indicates an exclusive choice not a duplication of the function.
Figure 5-8 MS51 Series QFN-20-pin Diagram
Aug. 1st 2019
Page 14 of 25
Rev.2.00
MS51
5.1.9
MS51 Series TSSOP14 Pin Diagram
Figure 5-9 MS51 Series TSSOP-14-pin Diagram
5.1.10
MS51 Series MSOP10 Pin Diagram
Figure 5-10 MS51 Series MSOP-10-pin Diagram
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 15 of 25
Rev.2.00
MS51
6
UTILITIES
6.1 Programmer and Debugger
Nu-Link
Basic full speed USB2.0 hardware debugger/programmer
Nu-Link-Pro
Advance hardware debugger/programmer with programming counter
Nu-Link 2.0
Advance high speed USB2.0 hardware debugger/programmer with multi-functions
Nu-Link-Gang
Off-line hardware programmer supports up to four chips programming for mass-production
ISP
In system programming, a software programming tool support UART/USB
ICP
In Chip Programming, a software programming tool support Nu-Link programmer
6.2 Development Environment
Programming IDE
Keil C-51, IAR EW8051
Software Package
Board Support Package(BSP), Sample Code,
Development IDE
NuTool Pin-View, NuTool-PinView, NuTool-ClockConfig
6.3 Development Board
EVB NuMaker
Part Number
NT-MS51FB
MS51XB9AE MS51FB9AE MS51XB9BE
NT-MS51DA
MS51DA9AE MS51BA9AE
NK-MS51PC
MS51FC0AE MS51XC0BE MS51EC0AE
Feature
Support Expand Connector, Arduino Uno
Interface
MS51 SERIES PRODUCT BRIEF
MS51TC0AE MS51PC0AE
Aug. 1st 2019
Page 16 of 25
Rev.2.00
MS51
7
PACKAGE DIMENSIONS
7.1 LQFP 32 (7x7x1.4 mm) for MS51PC0AE
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 17 of 25
Rev.2.00
MS51
7.2 QFN 33 (4x4x0.8 mm) for MS51TC0AE
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 18 of 25
Rev.2.00
MS51
7.3 TSSOP 28 (4.4x9.7x1.0 mm) for MS51EC0AE
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 19 of 25
Rev.2.00
MS51
7.4 TSSOP 20-Pin (4.4x6.5x0.9 mm) for MS51FB9AE & MS51FC0AE
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 20 of 25
Rev.2.00
MS51
7.5 QFN 20 (3.0x3.0 mm) for MS51XB9AE
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 21 of 25
Rev.2.00
MS51
7.6 QFN 20 (3.0x3.0 mm) for MS51XB9BE & MS51XC0BE
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 22 of 25
Rev.2.00
MS51
7.7 TSSOP 14 (4.4x5.5 mm) for MS51DA9AE
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 23 of 25
Rev.2.00
MS51
7.8 MSOP 10 (3x3 mm) for MS51BA9AE
MS51 SERIES PRODUCT BRIEF
Aug. 1st 2019
Page 24 of 25
Rev.2.00
MS51
8
REVISION HISTORY
Date
Revision
Description
2019.02.19
1.00
Initial version.
2019.06.24
1.01
Added Part number: MS51DA9AE & MS51 BA9AE
2019.08.01
2.00
Added Part number: MS51FC0AE MS51XC0BE MS51EC0AE MS51TC0AE
MS51PC0AE
Nuvoton Products are neither intended nor warranted for usage in systems or equipment, any
malfunction or failure of which may cause loss of human life, bodily injury or severe property
damage. Such applications are deemed, “Insecure Usage”.
Insecure usage includes, but is not limited to: equipment for surgical implementation, atomic
energy control instruments, airplane or spaceship instruments, the control or operation of
dynamic, brake or safety systems designed for vehicular use, traffic signal instruments, all types
of safety devices, and other applications intended to support or sustain life.
All Insecure Usage shall be made at customer’s risk, and in the event that third parties lay claims
to Nuvoton as a result of customer’s Insecure Usage, customer shall indemnify the damages and
liabilities thus incurred by Nuvoton.
Aug. 1st 2019
Page 25 of 25
Rev.2.00
MS51 SERIES PRODUCT BRIEF
Important Notice