EM78P173N
8-Bit Microcontroller
with OTP ROM
Product
Specification
D
OC
. V
ERSION
1.2
ELAN MICROELECTRONICS CORP.
April 2016
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
©
2016 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 1
st
Road
Hsinchu Science Park
Hsinchu, TAIWAN 30076
Tel: +886 3 563-9977
Fax: +886 3 563-9966
webmaster@emc.com.tw
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
USA:
Elan Information
Technology Group
(U.S.A.)
PO Box 601
Cupertino, CA 95015
U.S.A.
Tel: +1 408 366-8225
Fax: +1 408 366-8225
Shanghai:
ELAN Microelectronics
Shanghai, Ltd.
6F, Ke Yuan Building
No. 5, Bibo Road
Zhangjiang Hi-Tech Park
Shanghai, CHINA 201203
Tel: +86 21 5080-3866
Fax: +86 21 5080-0273
elan-sh@elanic.com.cn
Shenzhen:
Elan Microelectronics
Shenzhen, Ltd.
8A Floor, Microprofit Building
Gaoxin South Road 6
Shenzhen Hi-tech Industrial Park
South Area, Shenzhen
CHINA 518057
Tel: +86 755 2601-0565
Fax: +86 755 2601-0500
elan-sz@elanic.com.cn
Contents
Contents
1
2
3
4
General Description ................................................................................................ 1
Features ................................................................................................................... 1
Pin Assignment ....................................................................................................... 2
Pin Description ........................................................................................................ 3
4.1 EM78P173N-14PIN .......................................................................................... 3
4.2 EM78P173N-10PIN .......................................................................................... 4
Block Diagram ......................................................................................................... 5
Functional 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
R0 (Indirect Addressing Register) ....................................................................... 6
R1 (Timer Clock/Counter) ................................................................................... 6
R2 (Program Counter and Stack) ........................................................................ 6
R3 (Status Register) ............................................................................................ 8
R4 (RAM Select Register) ................................................................................... 8
R5 ~ R6 (Port 5 ~ Port 6) .................................................................................... 8
Bank 0 RE (LVD Control Register) ...................................................................... 9
Bank 0 RF (Interrupt Status Register) ................................................................. 9
Bank 1 R5 (TBHP: Table Point Register for Instruction TBRD) ........................10
Bank 1 R6 (TBLP: Table Point Register for Instruction TBRD) .........................10
Bank 1 RE (LVD Interrupt and Wake-up Register) ............................................10
Bank 1 RF (System Control Register) ............................................................... 11
R10 ~ R3F .........................................................................................................14
A (Accumulator) .................................................................................................15
CONT (Control Register) ...................................................................................15
IOC5 ~ IOC6 (I/O Port Control Register) ..........................................................16
IOCB (Pull-down Control Register) ...................................................................16
IOCC (Open-drain Control Register) .................................................................16
IOCD (Pull-high Control Register) .....................................................................17
IOCE (WDT Control Register) ...........................................................................17
IOCF (Interrupt Mask Register) .........................................................................18
5
6
6.2
Special Function Registers ............................................................................. 15
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 and Prescaler ................................................................................ 18
I/O Ports ......................................................................................................... 19
Reset and Wake-up ........................................................................................ 22
6.5.1
6.5.2
6.5.3
6.5.4
Reset .................................................................................................................22
Wake-up and Interrupt Modes Operation Summary .........................................24
Summary of Registers Initialized Values ...........................................................25
Status of RST, T, and P of the Status Register ..................................................27
6.6
Interrupt .......................................................................................................... 29
Product Specification (V1.2) 04.21.2016
iii
Contents
6.7
Oscillator......................................................................................................... 30
6.7.1
6.7.2
6.7.3
6.7.4
Oscillator Modes ................................................................................................30
Crystal Oscillator/Ceramic Resonators (Crystal) ...............................................31
External RC Oscillator Mode .............................................................................33
Internal RC Oscillator Mode ..............................................................................34
Code Option Register (Word 0) .........................................................................35
Code Option Register (Word 1) .........................................................................36
Customer ID Register (Word 2) .........................................................................38
6.8
Code Option Register ..................................................................................... 35
6.8.1
6.8.2
6.8.3
6.9
Power-on Consideration ................................................................................. 38
6.10 Programmable Oscillator WDT Time-out Period.............................................. 38
6.11 External Power-on Reset Circuits ................................................................... 39
6.12 Residue-Voltage Protection............................................................................. 40
6.13 Low Voltage Detector ...................................................................................... 41
6.13.1 Low Voltage Reset (LVR) ..................................................................................41
6.13.2 Low Voltage Detector (LVD) ..............................................................................41
6.13.2.1 Bank 0 RE (LVD Control Register) ....................................................41
6.13.2.2 Bank 1 RE (LVD Interrupt and Wake-up Register)............................42
6.13.3 Programming Process .......................................................................................43
7
8
6.14 Instruction Set ................................................................................................. 44
Absolute Maximum Ratings .................................................................................. 47
Electrical Characteristics ...................................................................................... 47
8.1
DC Characteristics .......................................................................................... 47
8.2 AC Characteristics .......................................................................................... 49
Timing Diagrams ................................................................................................... 51
9
APPENDIX
A
B
C
D
Ordering and Manufacturing Information ............................................................ 52
Package Type ......................................................................................................... 53
Package Information ............................................................................................. 54
Quality Assurance and Reliability ........................................................................ 57
D.1 Address Trap Detect ....................................................................................... 57
iv
Product Specification (V1.2) 04.21.2016
EM78P173N
8-Bit Microcontroller with OTP ROM
Specification Revision History
Doc. Version
0.9
1.0
1.1
1.2
Revision Description
Preliminary version
Initial version
Modified the Electrical Characteristics
1. Modified package type in the Features section
2. Added Appendix A “Ordering and Manufacturing
Information”
Date
2010/03/24
2010/04/20
2016/04/21
2016/04/21
Product Specification (V1.2) 04.21.2016
v