EM78P451
8-Bit Microcontroller
with OTP ROM
Product
Specification
D
OC
. V
ERSION
1.1
ELAN MICROELECTRONICS CORP.
June 2003
Trademark Acknowledgments:
IBM is a registered trademark and PS/2 is a trademark of IBM.
Windows is a trademark of Microsoft Corporation.
ELAN and ELAN logo
are trademarks of ELAN Microelectronics Corporation.
Copyright
©
2005 by ELAN Microelectronics Corporation
All Rights Reserved
Printed in Taiwan
The contents of this specification are subject to change without further notice. ELAN Microelectronics assumes no
responsibility concerning the accuracy, adequacy, or completeness of this specification. ELAN Microelectronics makes
no commitment to update, or to keep current the information and material contained in this specification. Such
information and material may change to conform to each confirmed order.
In no event shall ELAN Microelectronics be made responsible for any claims attributed to errors, omissions, or other
inaccuracies in the information or material contained in this specification. ELAN Microelectronics shall not be liable for
direct, indirect, special incidental, or consequential damages arising from the use of such information or material.
The software (if any) described in this specification is furnished under a license or nondisclosure agreement, and may be
used or copied only in accordance with the terms of such agreement.
ELAN Microelectronics products are not intended for use in life support appliances, devices, or systems. Use of ELAN
Microelectronics product in such applications is not supported and is prohibited.
NO PART OF THIS SPECIFICATION MAY BE REPRODUCED OR TRANSMITTED IN ANY FORM OR BY ANY
MEANS WITHOUT THE EXPRESSED WRITTEN PERMISSION OF ELAN MICROELECTRONICS.
ELAN MICROELECTRONICS CORPORATION
Headquarters:
No. 12, Innovation Road 1
Hsinchu Science Park
Hsinchu, Taiwan 30077
Tel: +886 3 563-9977
Fax: +886 3 563-9966
http://www.emc.com.tw
Hong Kong:
Elan (HK) Microelectronics
Corporation, Ltd.
Rm. 1005B, 10/F Empire Centre
68 Mody Road, Tsimshatsui
Kowloon , HONG KONG
Tel: +852 2723-3376
Fax: +852 2723-7780
elanhk@emc.com.hk
Shenzhen:
Elan Microelectronics
Shenzhen, Ltd.
SSMEC Bldg., 3F, Gaoxin S. Ave.
Shenzhen Hi-Tech Industrial Park
Shenzhen, Guandong, CHINA
Tel: +86 755 2601-0565
Fax: +86 755 2601-0500
USA:
Elan Information
Technology Group
1821 Saratoga Ave., Suite 250
Saratoga, CA 95070
USA
Tel: +1 408 366-8223
Fax: +1 408 366-8220
Europe:
Elan Microelectronics Corp.
(Europe)
Siewerdtstrasse 105
8050 Zurich, SWITZERLAND
Tel: +41 43 299-4060
Fax: +41 43 299-4079
http://www.elan-europe.com
Shanghai:
Elan Microelectronics
Shanghai Corporation, Ltd.
23/Bldg. #115 Lane 572, Bibo Road
Zhangjiang Hi-Tech Park
Shanghai, CHINA
Tel: +86 021 5080-3866
Fax: +86 021 5080-4600
Contents
Contents
1
2
3
4
GENERAL DESCRIPTION ................................................................................................... 1
FEATURES........................................................................................................................... 1
PIN ASSIGNMENT ............................................................................................................... 2
FUNCTION DESCRIPTION.................................................................................................. 4
4.1
Operational Registers ..................................................................................................4
4.1.1
4.1.2
4.1.3
4.1.4
4.1.5
4.1.6
4.1.7
4.1.8
4.1.9
4.1.10
4.1.11
4.1.12
4.1.13
4.1.14
4.1.15
R0 (Indirect Address Register) ......................................................................................4
R1 (TCC) .......................................................................................................................4
R2 (Program Counter) & Stack......................................................................................4
R3 (Status Register) ......................................................................................................6
R4 (RAM Select Register) .............................................................................................6
R5~R8 (Port 5 ~ Port8)..................................................................................................6
R9 (Port9) ......................................................................................................................7
RA (SPIRB: SPI Read Buffer)........................................................................................8
RB (SPIWB: SPI Write Buffer).......................................................................................8
RC (SPIS: SPI Status Segister).....................................................................................8
RD (SPIC: SPI Control Register)...................................................................................9
RE (TMR1: Timer1 register) ..........................................................................................9
RF (PWP: Pulse width preset register)........................................................................10
R20~R3E (General Purpose Register)........................................................................10
R3F (Interrupt Status Register) ...................................................................................10
A (Accumulator) ...........................................................................................................10
CONT (Control Register) .............................................................................................10
IOC5 ~ IOC9 (I/O Port Control Register)..................................................................... 11
IOCC (T1CON: Timer1 Control Register).................................................................... 11
IOCD (Pull-high Control Register) ...............................................................................12
IOCE (WDT Control Register) .....................................................................................12
IOCF (Interrupt Mask Register) ...................................................................................13
4.2
Special Purpose Registers .........................................................................................10
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.3
4.4
4.5
TCC/WDT Presacler ..................................................................................................14
I/O Ports .....................................................................................................................15
SERIAL PERIPHERAL INTERFACE MODE ..............................................................17
4.5.1
4.5.2
4.5.3
4.5.4
4.5.5
4.5.6
Overview & Features ...................................................................................................17
SPI Function Description .............................................................................................19
SPI Signal & Pin Description .......................................................................................20
Programmed the Related Registers ............................................................................22
SPI Mode Timing .........................................................................................................24
Software Application of SPI .........................................................................................25
Overview......................................................................................................................29
Function Description....................................................................................................30
•
iii
4.6
Timer 1 .......................................................................................................................29
4.6.1
4.6.2
Product Specification (V1.1) 06.30.2003
Contents
4.6.3
Programmed the Related Registers ............................................................................30
The Status of RST, T, and P of STATUS Register .......................................................36
4.7
4.8
4.9
RESET and Wake-up .................................................................................................31
4.7.1
Interrupt......................................................................................................................36
Oscillator ....................................................................................................................37
4.9.1
4.9.2
4.9.3
Oscillator Modes..........................................................................................................37
Crystal Oscillator/Ceramic Resonators (XTAL) ...........................................................38
RC Oscillator Mode .....................................................................................................39
4.10 Code Option Register.................................................................................................41
4.11 Instruction Set ............................................................................................................42
5
6
4.12 Timing Diagrams ........................................................................................................45
ABSOLUTE MAXIMUM RATING ....................................................................................... 46
ELECTRICAL CHARACTERISTICS .................................................................................. 46
6.1
7
DC Characteristic .......................................................................................................46
6.2 AC Characteristic .......................................................................................................47
Application Circuit ............................................................................................................ 48
APPENDIX
A
Package Types .................................................................................................................. 49
Specification Revision History
Doc. Version
1.0
1.1
Revision Description
Initial version
Change Power on reset content
2003/06/30
Date
iv
•
Product Specification (V1.1) 06.30.2003
EM78P451
8-Bit Microcontroller with OTP ROM
1
GENERAL DESCRIPTION
The EM78P451 is an 8-bit microprocessor designed and developed with low-power,
high speed CMOS technology. Its operational kernel is implemented with RISC-like
architecture and is available in the mask ROM version. The one time programmable
(OTP) version is flexible, both in mass production or engineering test stages. OTP
provide users with unlimited volume with favorable price opportunities. This device is
equipped with the Serial Peripheral Interface (SPI) function and an easy-implemented
RS-232. The EM78P451 is very suitable for wired communication. Only 58
easy-to-learn instructions are needed and user’s program can be emulated with EMC
In-Circuit Emulator (ICE).
2
FEATURES
Operating voltage range: 2.3V~5.5V.
Operating temperature range: 0°C~70°C.
Operating frequency rang (base on 2 clocks ):
•
Crystal mode: DC~20MHz at 5V, DC~8MHz at 3V, DC~4MHz at 2.3V.
•
RC mode: DC~4MHz at 5V, DC~4MHz at 3V, DC~4MHz at 2.3V.
Low power consumption:
•
Less then 3 mA at 5V/4MHz
•
Typically 10
µA
during sleep mode
Serial Peripheral Interface (SPI) available.
4K
×
13 bits on chip ROM (EM78P451).
11 special function registers.
140× 8 bits on chip general-purposed registers.
5 bi-directional I/O ports (35 I/O pins).
3 LED direct sinking pins with internal serial resistors.
Built-in RC oscillator with external serial resistor, ±10% variation.
Built-in power-on reset.
5 stacks for subroutine nesting.
8-bit real time clock/counter (TCC) with overflow interrupt.
Two machine clocks or four machine clocks per instruction cycle.
Power down mode.
Product Specification (V1.1) 06.30.2003
(This specification is subject to change without further notice)
•
1