MS51
Nov. 28, 2019
Page
10
of 491
Rev 1.00
MS51
32K
SE
RIES
TE
CHNICAL RE
F
EREN
CE MA
N
UAL
1 GENERAL DESCRIPTION
The MS51 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 contains a up to 32 Kbytes 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. There
is an additional Flash 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 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 provides rich peripherals including 256 bytes of SRAM, 2 Kbytes of auxiliary RAM (XRAM),
Up to 29 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, three ISO 7816-3 interfaces, one SPI, one I
2
C, six basic PWM output
channels, six enhanced PWM output channels, eight-channel shared pin interrupt for all I/O, and one
12-bit ADC. The peripherals are equipped with 24 sources with 4-level-priority interrupts capability.
The MS51 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 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.