EM78F651N
8-Bit
Microcontroller
Product
Specification
D
OC
. V
ERSION
1.1
ELAN MICROELECTRONICS CORP.
October 2006
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
©
2006 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.
Flat A, 19F World Tech Centre
95 How Ming Street, Kwun Tong
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 (U.S.A.)
1821 Saratoga Ave., Suite 250
Saratoga, CA 95070
U.S.A.
Tel: +1 408 366-8225
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, Ltd.
23/Bldg. #115 Lane 572, Bibo Road
Zhangjiang Hi-Tech Park
Shanghai, China
Tel: +86 21 5080-3866
Fax: +86 21 5080-4600
Contents
Contents
1
2
3
4
5
6
General Description .................................................................................................. 1
Features ..................................................................................................................... 1
Pin Assignment ......................................................................................................... 2
Pin Description.......................................................................................................... 3
Block Diagram ........................................................................................................... 5
Function Description ................................................................................................ 6
6.1
Operational Registers......................................................................................... 6
6.1.1
6.1.2
6.1.3
6.1.4
6.1.5
6.1.6
6.1.7
6.1.8
6.1.9
6.1.10
6.1.11
6.1.12
6.1.13
6.1.14
R0 (Indirect Addressing Register) .......................................................................6
R1 (Timer Clock/Counter) ...................................................................................6
R2 (Program Counter) & Stack ...........................................................................6
R3 (Status Register) ............................................................................................9
R4 (RAM Select Register)...................................................................................9
R5 ~ R7 (Port 5 ~ Port 7) ....................................................................................9
R8 ~ R9 ...............................................................................................................9
RA (Wake- up Control Register)........................................................................10
RB (EEPROM Control Register) .......................................................................10
RC (128 Bytes EEPROM Address) ...................................................................11
RD (128 Bytes EEPROM Data) ........................................................................11
RE (LVD Control Register) ................................................................................11
RF (Interrupt Status Register) ...........................................................................12
R10 ~ R3F .........................................................................................................12
A (Accumulator).................................................................................................13
CONT (Control Register)...................................................................................13
IOC5 ~ IOC7 (I/O Port Control Register) ..........................................................14
IOCA (WDT Control Register) ...........................................................................14
IOCB (Pull-down Control Register) ...................................................................15
IOCC (Open-drain Control Register).................................................................15
IOCD (Pull-high Control Register).....................................................................16
IOCF (Interrupt Mask Register).........................................................................16
6.2
Special Function Registers............................................................................... 13
6.2.1
6.2.2
6.2.3
6.2.4
6.2.5
6.2.6
6.2.7
6.2.8
6.3
6.4
6.5
TCC/WDT & Prescaler ..................................................................................... 17
I/O Ports ........................................................................................................... 18
Reset and Wake-up.......................................................................................... 21
6.5.1
6.5.2
Reset .................................................................................................................21
Status of RST, T, and P of the Status Register..................................................27
6.6
6.7
Interrupt ............................................................................................................ 29
LVD (Low Voltage Detector) ............................................................................. 30
Product Specification (V1.1) 10.20.2006
iii
Contents
6.8
Data EEPROM ................................................................................................. 32
6.8.1
Data EEPROM Control Register .......................................................................32
6.8.1.1 RB (EEPROM Control Register) ........................................................32
6.8.1.2 RC (128 Bytes EEPROM Address) ....................................................33
6.8.1.3 RD (128 Bytes EEPROM Data) .........................................................33
Programming Step / Example Demonstration...................................................33
6.8.2.1 Programming Step..............................................................................33
6.8.2.2 Example Demonstration Programs ....................................................34
Oscillator Modes................................................................................................35
Crystal Oscillator/Ceramic Resonators (Crystal)...............................................35
External RC Oscillator Mode.............................................................................37
Internal RC Oscillator Mode ..............................................................................38
6.8.2
6.9
Oscillator .......................................................................................................... 35
6.9.1
6.9.2
6.9.3
6.9.4
6.10 Code Option Register...................................................................................... 39
6.10.1 Code Option Register (Word 0).........................................................................39
6.10.2 Customer ID Register (Word 2).........................................................................43
6.11 Power-on Considerations ................................................................................ 43
6.12 External Power-on Reset Circuit ..................................................................... 43
6.13 Residue-Voltage Protection............................................................................. 44
7
8
9
10
6.14 Instruction Set ................................................................................................. 45
Timing Diagrams ..................................................................................................... 48
Absolute Maximum Ratings ................................................................................... 49
DC Electrical Characteristic ................................................................................... 49
AC Electrical Characteristic ................................................................................... 52
APPENDIX
A
B
C
Package Type........................................................................................................... 53
ICE 652N Output Pin Assignment (JP 3) ............................................................... 54
EM78F651N Program Pin: ...................................................................................... 54
Specification Revision History
Doc. Version
1.0
Initial version
1. Modified the General Description, Pin Assignment and
Features sections.
2. Added Green Product Information.
3. Modified the Functional Block Diagram.
Revision Description
Date
2006/09/20
1.1
2006/10/20
iv
•
Product Specification (V1.1) 10.20.2006
EM78F651N
8-Bit Microcontroller
1
General Description
The EM78F651N is an 8-bit microprocessor designed and developed with low-power, high-speed CMOS technology
and high noise immunity. It has an on-chip 1K×13-bit Electrical Flash Memory and 128×8-bit in system programmable
EEPROM. It provides three protection bits to prevent intrusion of user’s Flash memory code. Twelve Code option bits
are also available to meet user’s requirements.
With its enhanced Flash-ROM feature, the EM78F651N provides a convenient way of developing and verifying user’s
programs. Moreover, this Flash-ROM device offers the advantages of easy and effective program updates, using
development and programming tools. User can avail of the ELAN Writer to easily program his development code.
2
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Features
CPU configuration
1K×13 bits on chip ROM
80×8 bits on chip registers (SRAM)
128 bytes in-system programmable EEPROM
*Endurance: 100,000 write/erase cycles
More than 10 years data retention
5-level stacks for subroutine nesting
Less than 2 mA at 5V/4MHz
Typically 20
µA,
at 3V/32kHz
Typically 2
µA,
during sleep mode
Peripheral configuration
•
•
•
•
•
•
8-bit real time clock/counter (TCC) with selective signal
sources, trigger edges, and overflow interrupt
Power down (Sleep) mode
*Vdd power monitor and supports low voltage detector
interrupt flag
4 programmable Level Voltage Detector (LVD)
Three security registers to prevent intrusion of Flash
memory codes
One configuration register to accommodate user’s
requirements
2/4/8/16 clocks per instruction cycle selected by code
option
I/O port configuration
2 bidirectional I/O ports
Wake-up port : P6
8 Programmable pull-down I/O pins
8 programmable pull-high I/O pins
8 programmable open-drain I/O pins
External interrupt : P60
Single instruction cycle commands
Four Crystal range in Oscillator Mode
Crystal Range
20MHz ~ 6MHz
6MHz ~ 1MHz
1MHz ~ 100kHz
32.768kHz
Oscillator Mode
HXT
XT
LXT1
LXT2
Operating voltage range:
Operating voltage: 2.2V~5.5V at -40°C ~85°C
(Industrial)
Operating frequency range (base on two clocks):
Crystal mode:
DC ~ 20MHz @ 5V
DC ~ 8MHz @ 3V
DC ~ 4MHz @ 2.2V
ERC mode:
DC ~ 16MHz @ 5V
DC ~ 8MHz @ 3V
DC ~ 4MHz @ 2.2V
IRC mode:
DC ~ 16MHz @ 4.5V~5.5V
DC ~ 4MHz @ 2.2V~5.5V
Programmable free running watchdog timer
Package type:
Three available interrupts:
•
•
•
•
•
•
•
•
14-pin DIP 300mil
14-pin SOP 150mil
16-pin DIP 300mil
16-pin SOP 300mil
18-pin DIP 300 mil
18-pin SOP 300mil
20-pin DIP 300mil
20-pin SSOP 209mil
:
:
:
:
:
:
:
:
EM78F651NAPxS/xJ
EM78F651NAMxS/xJ
EM78F651NABPxS/xJ
EM78F651NABMxS/xJ
EM78F651NCPxS/xJ
EM78F651NCMxS/xJ
EM78F651NDPxS/xJ
EM78F651NDKMxS/XJ
•
•
•
TCC overflow interrupt
Input-port status changed interrupt (wake-up from
sleep mode)
External interrupt
Green products do not contain hazardous substances.
Product Specification (V1.1) 10.20.2006
(This specification is subject to change without further notice)
•
1