EM78156E
8-Bit Microcontroller
with MASK ROM
Product
Specification
D
OC
. V
ERSION
1.3
ELAN MICROELECTRONICS CORP.
July 2004
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
R0 (Indirect Addressing Register) .......................................................................4
R1 (Time Clock /Counter)....................................................................................4
R2 (Program Counter) & Stack ...........................................................................5
R3 (Status Register) ............................................................................................6
R4 (RAM Select Register)...................................................................................7
R5 ~ R6 (Port 5 ~ Port 6) ....................................................................................7
RF (Interrupt Status Register) .............................................................................7
R10 ~ R3F ...........................................................................................................7
A (Accumulator)...................................................................................................8
CONT (Control Register).....................................................................................8
IOC5 ~ IOC6 (I/O Port Control Register) ............................................................8
IOCA (Prescaler Counter Register).....................................................................9
IOCB (Pull-down Control Register) .....................................................................9
IOCC (Open-drain Control Register)...................................................................9
IOCD (Pull-high Control Register).....................................................................10
IOCE (WDT Control Register) ...........................................................................10
IOCF (Interrupt Mask Register).........................................................................11
4.2
Special Purpose Registers ................................................................................. 8
4.2.1
4.2.2
4.2.3
4.2.4
4.2.5
4.2.6
4.2.7
4.2.8
4.2.9
4.3
4.4
4.5
TCC/WDT & Prescaler ..................................................................................... 11
I/O Ports ........................................................................................................... 12
RESET and Wake-up ....................................................................................... 15
4.5.1
4.5.2
RESET ..............................................................................................................15
The Status of RST, T, and P of STATUS Register .............................................19
4.6
4.7
Interrupt ............................................................................................................ 20
Oscillator .......................................................................................................... 22
4.7.1
4.7.2
4.7.3
Oscillator Modes................................................................................................22
.Crystal Oscillator/Ceramic Resonators(XTAL) .................................................22
External RC Oscillator Mode.............................................................................23
4.8
4.9
CODE Option Register ..................................................................................... 25
Power On Considerations ................................................................................ 25
4.10 External Power On Reset Circuit...................................................................... 26
4.11 Residue-Voltage Protection.............................................................................. 26
4.12 Instruction Set .................................................................................................. 27
4.13 Timing Diagrams .............................................................................................. 30
Product Specification (V1.3) 07.29.2004
•
iii
Contents
5
6
ABSOLUTE MAXIMUNM RATINGS ........................................................................ 31
ELECTRICAL CHARACTERISTICS ........................................................................ 31
6.1
6.2
6.3
DC Electrical Characteristic.............................................................................. 31
AC Electrical Characteristic.............................................................................. 32
Device Characteristic ....................................................................................... 33
APPENDIX
A
B
Package Types......................................................................................................... 43
Package Information............................................................................................... 43
Specification Revision History
Doc. Version
1.0
1.1
1.2
1.3
Initial version
Change set up time period
Change Power on reset content
Change from EM78P156E to EM78156E
Add the Device Characteristic at section 6.3
04/19/2002
07/01/2003
07/29/2004
Revision Description
Date
iv
•
Product Specification (V1.3) 07.29.2004
EM78156E
8-Bit Microcontroller with MASK ROM
1
GENERAL DESCRIPTION
EM78156E is an 8-bit microprocessor with low-power and high-speed CMOS
technology. Integrated into a single chip are on-chip watchdog timer (WDT), RAM,
ROM, real time clock/counter, external and interrupt, power down mode, and tri-state
I/O.
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.
•
ERC mode: DC~4MHz at 5V, DC~4MHz at 3V, DC~4MHz at 2.3V.
Low power consumption:
•
Less then 2.0 mA at 5V/4MHz
•
Typically 15
µA
at 3V/32KHz
•
Typically 1
µA
during sleep mode
1K
×
13 bits on chip ROM
One configuration register to accommodate user’s requirements
48× 8 bits on chip registers (SRAM, general purpose register)
2 bi-directional I/O ports
5 level stacks for subroutine nesting
8-bit real time clock/counter (TCC) with selective signal sources, trigger edges, and
overflow interrupt
Two clocks per instruction cycle
Power down (SLEEP) mode
Three available interruptions
•
TCC overflow interrupt
•
Input-port status changed interrupt (wake up from sleep mode)
•
External interrupt
Programmable free running watchdog timer
8 programmable pull-high pins
7 programmable pull-down pins
8 programmable open-drain pins
Product Specification (V1.3) 07.29.2004
(This specification is subject to change without further notice)
•
1