MS51
Dec. 17, 2019
Page
8
of 316
Rev 1.01
M
S51
SE
RIES
TE
CHNICA
L REF
ERE
N
CE MA
NU
A
L
1
GENERAL DESCRIPTION
The MS51 16KB series are 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 16KB series contains a up of main Flash called APROM, in which the contents of User
Code resides. The MS51 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, this
function means whole 16K Bytes area all can be use as Data Flash through IAP command. MS51
support an function of configurationable Flash from APROM called LDROM, in which the Boot Code
normally resides for carrying out In-System-Programming (ISP). The LDROM size is configurable with
a maximum of 4K Bytes by CONFIG define. There is an additional include special 128 bytes security
protection memory (SPROM) to enhance the security and protection of customer application. 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 16KB series provides rich peripherals including 256 Bytes of SRAM, 1K Bytes of auxiliary
RAM (XRAM), Up to 18 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
detection and automatic address recognition, one SPI, one I
2
C, five enhanced PWM output channels,
eight-channel shared pin interrupt for all I/O, and one 12-bit ADC. The peripherals are equipped with
18 sources with 4-level-priority interrupts capability.
The MS51 16KB series is equipped with three clock sources and supports switching on-the-fly via
software. The three clock sources include external clock input, 10 kHz internal oscillator, and one 16
MHz internal precise oscillator that is factory trimmed to ±1% at room temperature. The MS51
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.
The MS51 16KB series microcontroller operation consumes a 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
can also be slowed down by software clock divider, which allows for a flexibility between execution
performance and power consumption.
With high performance CPU core and rich well-designed peripherals, the MS51 benefits to meet a
general purpose, home appliances, or motor control system accomplishment.