MPC82x54A
8-bit micro-controller
Features .............................................................................................................................3
General Description ..........................................................................................................5
Order Information: ............................................................................................................5
Pin Description..................................................................................................................6
Pin Definition ...................................................................................................................6
Pin Configuration ...........................................................................................................10
Block Diagram ................................................................................................................ 11
Special Function Register ...............................................................................................12
Address Map ..................................................................................................................12
Bits Description..............................................................................................................13
Memory...........................................................................................................................15
Organization ...................................................................................................................15
RAM...............................................................................................................................16
Nonvolatile Registers: ....................................................................................................16
Embedded Flash .............................................................................................................19
Functional Description....................................................................................................20
I/O Port Configuration ...................................................................................................20
Timer/Counter ................................................................................................................24
Interrupt..........................................................................................................................29
Watch Dog Timer ...........................................................................................................33
Universal Asynchronous Serial Port (UART) ................................................................35
Programmable Counter Array (PCA).............................................................................38
Serial Peripheral Interface (SPI) ....................................................................................47
Analog to Digital Converter...........................................................................................54
Built-In Oscillator ..........................................................................................................56
Power-Up and Low Voltage Detector and Reset............................................................56
Power Management........................................................................................................57
Reset and Boot Entrance ................................................................................................59
In System Programming and In Application Programming............................................60
In System Programming (ISP) .......................................................................................60
In-Application Program (IAP) .......................................................................................63
Avoid Inadvertent Data Lost from IAP/ISP ...................................................................64
This document contains information on a new product under development by Megawin. Megawin reserves the right to change or
discontinue this product without notice.
©
Megawin Technology Co., Ltd. 2008 All rights reserved.
2008/12 version A8
MEGAWIN
Instructions Set................................................................................................................65
Absolute Maximum Rating (MPC82E54A) ...................................................................68
DC Characteristics (MPC82E54A).................................................................................68
Absolute Maximum Rating (MPC82L54A) ...................................................................69
DC Characteristics (MPC82L54A).................................................................................69
Package Dimension.........................................................................................................70
Revision History .............................................................................................................74
2
MPC82x54A Data Sheet
MEGAWIN
Features
Enhanced 80C51 Central Processing Unit
15.5K bytes on-chip flash memory with ISP/IAP capability
256 bytes scratch-pad RAM and 256 bytes auxiliary RAM
Two-level code protection for flash memory access
Two 16-bits timer/counter
7 sources, 4-level-priority interrupt capability
One enhanced UART with automatic address recognition and frame error detection
15 bits Watch-Dog-Timer with 8-bit pre-scalar, one-time enabled
SPI Master/Slave mode
Programmable Counter Array (PCA)
10-bit Analog-to-Digital Converter (ADC)
Power control: Idle mode and Power-Down mode, Power-down can be woken-up through
INT0 and INT1
27 programmable I/O ports
Alternative built-in 6MHz oscillator
Fully static operation
Excellent noise immunity
On-Chip flash program/data memory:
- The data endurance of the embedded flash gets over 20,000 times.
- Greater than 100 years data rentention under room temperature
Very low power consumption
Operating Voltage:
- 4.5V~5.5V for MPC82E54A
- 2.4V~3.6V for MPC82L54A, minimum 2.7V requirement in flash write operation
(ISP/ICP/…...)
- Built-in Low-Voltage Detector and Reset circuit.
Operating Temperature
- Industrial (-40°C to +85°C)*
Maximum Operating Frequency:
- Up to 24MHz, Industrial range
MEGAWIN
MPC82x54A Data Sheet
3
More package type:
PDIP-20/28:MPC82x54AE/AE2
PLCC-32: MPC82x54AP
SOP-20/28:MPC82x54AS/AS2
SSOP-28: MPC82x54AS3
TSSOP-20/28:MPC82x54AT/AT2
*: Tested by sampling
4
MPC82x54A Data Sheet
MEGAWIN
General Description
MPC82x54A is a single-chip 8-bit micro-controller with instruction sets fully compatible with
industrial-standard 80C51 series microcontroller.
There is an excellent MCU kernel built in this device compared to general 80C51 MCUs those
take twelve oscillating cycles to finish an instruction, and this unique device could take only
one oscillating cycle to finish one instruction.
There is 15.5 Kbytes flash memory embedded which could be used as program or data. Also
the In-System Programming and In-Application Programming mechanisms are supported.
The data endurance of the embedded flash gets over 20,000 times, and 21 years data
retention is guaranteed.
The operation frequency reaches at 24 MHz. An user can apply a crystal oscillator for the
oscillating source, or alternatively uses the built in 6 MHz RC oscillator to save system cost.
The built in high performance 10-bit Analog-to-Digital Converter make it easy to sensing the
environment or implement a set of scan keys in low cost.
The UART and SPI interfaces make the device convenient to communicate with the peripheral
component: talking to a personal computer via RS-232 port, or communicating with a serial
memory.
The Pulse-Width-Modulator (PWM) mode in Programmable Counter Array (PCA) makes the
device to drive the peripheral step motor or LED in least cost.
The MPC82x54A is really the most efficient MCU adapted for simple control, such as:
electronic scales, remote controller, security encoder/decoder, and user interface controller.
Order Information:
Part Number
Temperature
Range
MPC82x54AE
MPC82x54AE2
MPC82x54AP
MPC82x54AS
MPC82x54AS2
MPC82x54AS3
MPC82x54AT
MPC82x54AT2
Industrial
Industrial
Industrial
Industrial
Industrial
Industrial
Industrial
Industrial
PDIP-20
PDIP-28
PLCC-32
SOP-20
SOP-28
SSOP-28
TSSOP-20
TSSOP-28
Tube
Tube
Tube
Tube
Tube
Tube
Tube
Tube
L: 3V / E: 5V
L: 3V / E: 5V
L: 3V / E: 5V
L: 3V / E: 5V
L: 3V / E: 5V
L: 3V / E: 5V
L: 3V / E: 5V
L: 3V / E: 5V
Package
Packing
Operation Voltage
MEGAWIN
MPC82x54A Data Sheet
5