EM78159NAS EMC [ELAN Microelectronics Corp], EM78159NAS Datasheet

no-image

EM78159NAS

Manufacturer Part Number
EM78159NAS
Description
8-Bit Microcontroller with OTP ROM
Manufacturer
EMC [ELAN Microelectronics Corp]
Datasheet
EM78P159N
8-Bit Microcontroller
with OTP ROM
Product
Specification
D
. V
1.0
OC
ERSION
ELAN MICROELECTRONICS CORP.
March 2006

Related parts for EM78159NAS

EM78159NAS Summary of contents

Page 1

EM78P159N 8-Bit Microcontroller with OTP ROM Specification ELAN MICROELECTRONICS CORP. Product ERSION March 2006 1.0 ...

Page 2

Trademark Acknowledgments: IBM is a registered trademark and PS trademark of IBM. Windows is a trademark of Microsoft Corporation. ELAN and ELAN logo © 2006 by ELAN Microelectronics Corporation Copyright All Rights Reserved Printed in Taiwan The contents ...

Page 3

Contents 1 General Description .................................................................................................. 1 1.1 Comparison between EM78P159N, EM78P154N, and EM78P157N ................ 1 2 Features ..................................................................................................................... 1 3 Pin Assignments and Descriptions ......................................................................... 3 3.1 EM78P159NP and EM78P159NM Pin Description ............................................ 4 3-2 EM78P159NAS Pin Description ......................................................................... 4 ...

Page 4

Contents 4.7 Oscillator .......................................................................................................... 26 4.7.1 Oscillator Modes................................................................................................26 4.7.2 Crystal Oscillator/Ceramic Resonators (XTAL) .................................................27 4.7.3 External RC Oscillator Mode.............................................................................28 4.7.4 Internal RC Oscillator Mode ..............................................................................29 4.8 CODE Option Register ..................................................................................... 30 4.8.1 Code Option Register (Word 0).........................................................................30 4.8.2 Customer ID ...

Page 5

General Description EM78P159N is an 8-bit microprocessor designed and developed with low-power, high-speed CMOS technology equipped with 1K*13-bits Electrical One Time Programmable Read Only Memory (OTP-ROM). It provides three PROTECTION bits to prevent user’s code in the ...

Page 6

EM78P159N 8-Bit Microcontrollerwith OTP ROM Low power consumption: • Less then 2mA at 5V/4MHz • Typically 20μA at 3V/32kHz • Typically 1μA during Sleep mode 1K × 13 bits on chip ROM One security register to prevent intrusion of OTP ...

Page 7

Pin Assignments and Descriptions P52 P53 P54/TCC 4 17 /RESET 5 16 Vss 6 15 P60/INT 7 14 P61 8 13 P62 9 12 P63 10 11 Figure3-1b EM78P159NAS Pin Assignments Product ...

Page 8

EM78P159N 8-Bit Microcontrollerwith OTP ROM 3.1 EM78P159NP and EM78P159NM Pin Description Symbol Pin No. Type VDD 14 - P56/OSCI 16 I/O P55/OSCO 15 I/O P54/TCC 3 I/O /RESET 4 I 17, 18, P50 ~ P53 I P60 ~ ...

Page 9

EM78P159NKM Pin Description Symbol Pin No. Type VDD 15,16 - P56/OSCI 18 I/O P55/OSCO 17 I/O P54/TCC 3 I/O /RESET 4 I 19, 20, P50~P53 I P60~P67 7~14 I/O /INT 7 I VSS Product ...

Page 10

EM78P159N 8-Bit Microcontrollerwith OTP ROM 4 Function Description OSCO /RESET OSCI WDT timer Oscillator/Timing Control Prescaler IOCA RAM R4 IOC6 I/O PORT 6 R6 4.1 Operational Registers 4.1.1 R0 (Indirect Addressing Register not a physically implemented register. Its ...

Page 11

R2 (Program Counter) & Stack Depending on the device type, R2 and hardware stack are 10-bit wide. The structure is depicted in the following figure. PC (A9 ~ A0) Stack Level 1 Stack Level 2 Stack Level 3 Stack ...

Page 12

EM78P159N 8-Bit Microcontrollerwith OTP ROM The Data Memory Configuration is as follows: Address Reserve 08 Reserve 09 Reserve 0A Reserve 0B Reserve 0C Reserve 0D ...

Page 13

R4 (RAM Select Register) are used to select registers (Address: 00~06, 0F~3F) in the indirect Bits 0~5 addressing mode. Not used (read only). Set these bits to “1” all the time. Bits 6~7 The “Z” flag of R3 will ...

Page 14

EM78P159N 8-Bit Microcontrollerwith OTP ROM 4.1.8 RE (Wake Up Control Register) Bit 7 - Bits 0: Bit 1 (ICWE): Port 6 input status change wake-up enable bit Bits 4.1.9 RF (Interrupt Status Register) Bit 7 - “1” ...

Page 15

Special Purpose Registers 4.2.1 A (Accumulator) Internal data transfer, or instruction operand holding It cannot be addressed. 4.2.2 CONT (Control Register) Bit 7 - Bit 0 (PSR0) ~ Bit 2 (PSR2): TCC prescaler bits Bit 3 (PSRE): Prescaler enable ...

Page 16

EM78P159N 8-Bit Microcontrollerwith OTP ROM 4.2.3 IOC5 ~ IOC6 (I/O Port Control Register) "1" put the relative I/O pin into high impedance, while "0" defines the relative I/O pin as output. Only the lower 7 bits of IOC5 can be ...

Page 17

IOCC (Open-Drain Control Register) Bit 7 OD7 Bit 0 (OD0): Control bit is used to enable the open-drain of P60 pin. Bit 1 (OD1): Control bit is used to enable the open-drain of P61 pin. Bit 2 (OD2): Control ...

Page 18

EM78P159N 8-Bit Microcontrollerwith OTP ROM 4.2.8 IOCE (WDT Control Register) Bit 7 WDTE Bit 7 (WDTE): Control bit used to enable the Watchdog timer. Bit 6 (EIS): Bit 5: Bit 4 (ROC): ROC is used for the R-option. Bit 3 ...

Page 19

IOCF (Interrupt Mask Register) Bit 7 - Bit 0 (TCIE): TCIF interrupt enable bit Bit 1 (ICIE): ICIF interrupt enable bit Bit 2 (EXIE): EXIF interrupt enable bit Bits 3~7: Individual interrupt is enabled by setting its associated control ...

Page 20

EM78P159N 8-Bit Microcontrollerwith OTP ROM 4.4 I/O Ports The I/O registers, both Port 5 and Port 6, are bi-directional tri-state I/O ports. Port 6 can be pulled high internally by software. In addition, Port 6 can also features an open-drain ...

Page 21

Figure 4-4a I/O Port and I/O Control Register ...

Page 22

EM78P159N 8-Bit Microcontrollerwith OTP ROM T10 T11 T17 /SLEP Figure 4-4c I/O Port 6 with Input Change Interrupt/Wake-up Block Diagram 4.4.1 Usage of Port 6 Input Change Wake-up/Interrupt Function Usage of Port 6 Input Status Changed Wake-up/Interrupt (I) Wake-up (a) ...

Page 23

ROC VCC Weakly Pull-up PORT Rex* *The Rex is 430K ohm external resistor 4.5 RESET and Wake-up 4.5.1 RESET A RESET is initiated by one of the following events- 1) Power on reset. 2) /RESET pin input "low," ...

Page 24

EM78P159N 8-Bit Microcontrollerwith OTP ROM The Watchdog timer and prescaler are cleared. When power is switched on, the upper 3 bits of R3 are cleared. The bits of the CONT register are set to all "1" except for the Bit ...

Page 25

If Port 6 Input Status Change Interrupt is used to wake-up the EM78P159N (Case [a] above), the following instructions must be executed before SLEP: MOV A, @xx000110b CONTW CLR R1 MOV A, @xxxx1110b CONTW WDTC MOV A, @0xxxxxxxb IOW RE ...

Page 26

EM78P159N 8-Bit Microcontrollerwith OTP ROM 4.5.2 The Summary of the Initialized Values for Registers Address Name Reset Type Bit Name Power-On N/A IOC5 /RESET and WDT Wake-Up from Pin Change Bit Name Power-On N/A IOC6 /RESET and WDT Wake-Up from ...

Page 27

Address Name Reset Type Bit Name Power-On 0x0E RE(WUE) /RESET and WDT Wake-Up from Pin Change Bit Name Power-On 0x0F RF(ISR) /RESET and WDT Wake-Up from Pin Change Bit Name Power-On 0x0A IOCA /RESET and WDT Wake-Up from Pin Change ...

Page 28

EM78P159N 8-Bit Microcontrollerwith OTP ROM 4.5.3 The Status of RST, T, and P of STATUS Register A RESET condition is initiated by the following events 1) A power-on condition high-low-high pulse on /RESET pin, and 3) Watchdog timer ...

Page 29

Interrupt The EM78P159N has three falling-edge interrupts as listed herewith: 1) TCC overflow interrupt 2) Port 6 Input Status Change Interrupt 3) External interrupt [(P60, /INT) pin]. Before the Port 6 Input Status Change Interrupt is enabled, reading Port ...

Page 30

EM78P159N 8-Bit Microcontrollerwith OTP ROM 4.7 Oscillator 4.7.1 Oscillator Modes The EM78P159N can be operated in four different oscillator modes, such as External RC oscillator mode (ERC), Internal RC oscillator mode(IRC), High XTAL oscillator mode (HXT), and Low XTAL oscillator ...

Page 31

Crystal Oscillator/Ceramic Resonators (XTAL) EM78P159N can be driven by an external clock signal through the OSCI pin as shown in the following figure. In the most applications, Pin OSCI and Pin OSCO can be connected with a crystal or ...

Page 32

EM78P159N 8-Bit Microcontrollerwith OTP ROM 4.7.3 External RC Oscillator Mode For some applications that do not need a very precise timing calculation, the RC oscillator (Figure 4-9 below) offers a lot of cost savings. Nevertheless, it should be noted that ...

Page 33

RC Oscillator Frequencies Cext 20 pF 100 pF 300 pF 4.7.4 Internal RC Oscillator Mode EM78P159N offers a versatile internal RC mode with default frequency value of 4MHz. The Internal RC oscillator mode has other frequencies (1MHz, 8MHz. & 455kHz) ...

Page 34

EM78P159N 8-Bit Microcontrollerwith OTP ROM Calibration Selection for Internal RC Mode ...

Page 35

Bit 3 (HLP): Bit 4 ~ Bit 6 (OSC0 ~ OSC2): Oscillator Modes Selection bits ERC (External RC oscillator mode); P55/OSCO act P55 ERC (External RC oscillator mode); P55/OSCO act OSCO IRC (Internal RC oscillator mode) ; P55/OSCO act P55 ...

Page 36

EM78P159N 8-Bit Microcontrollerwith OTP ROM Bit 6 (CYES): Bit 7 ~ Bit 10: Bits 11 (RCOUT): System clock output enable bit in IRC or ERC mode Bit 12: 4.8.3 Customer ID Register (Word 2) Bit12 Bit11 Bit10 - - Bit ...

Page 37

Residue-Voltage Protection When the battery is replaced, device power (Vdd) is cut off but residue-voltage remains. The residue-voltage may trips below minimum Vdd, but not to zero. This condition may cause a poor power-on reset. The following figures illustrate ...

Page 38

EM78P159N 8-Bit Microcontrollerwith OTP ROM 4.12 Instruction Set Each instruction in the instruction set is a 13-bit word divided into an OP code and one or more operands. Normally, all instructions are executed within one single instruction cycle (one instruction ...

Page 39

Instruction Binary Hex 0000 0 0000 0000 0000 0001 0 0000 0000 0001 0002 0 0000 0000 0010 0003 0 0000 0000 0011 0004 0 0000 0000 0100 000r 0 0000 0000 rrrr 0010 0 0000 0001 0000 0011 0 ...

Page 40

EM78P159N 8-Bit Microcontrollerwith OTP ROM Instruction Binary Hex 06rr 0 0110 10rr rrrr 06rr 0 0110 11rr rrrr 07rr 0 0111 00rr rrrr 07rr 0 0111 01rr rrrr 07rr 0 0111 10rr rrrr 07rr 0 0111 11rr rrrr 0xxx 0 ...

Page 41

Timing Diagrams AC Test Input/Output Waveform VDD-0.5V GND+0.5V AC Testing : Input is driven at VDD-0.5V for logic "1",and GND+0.5V for logic "0".Timing measurements are made at 0.75VDD for logic "1",and 0.25VDD for logic "0". RESET Timing (CLK="0") CLK ...

Page 42

EM78P159N 8-Bit Microcontrollerwith OTP ROM 5 Absolute Maximunm Ratings EM78P159N Temperature under bias Storage temperature Working voltage Working frequency Input voltage Output voltage These parameters are theoretical values and have not been tested. 6 Electrical Characteristics 6.1 DC Electrical Characteristic ...

Page 43

Symbol Parameter Power down current ISB1 (VDD=5.0V) Power down current ISB2 (VDD=5.0V) Operating supply current ICC1 (VDD=3V) at two cycles/four clocks Operating supply current ICC2 (VDD=3V) at two cycles/four clocks Operating supply current ICC3 (VDD=5.0V) at two cycles/two clocks Operating ...

Page 44

... EM78P159N 8-Bit Microcontrollerwith OTP ROM A Package Types OTP MCU EM78P159NP EM78P159NM EM78159NAS EM78159NKM B Package Information 18-Lead Plastic Dual in Line (PDIP) — 300 mil 40 • APPENDIX Package Type Pin Count DIP SOP SSOP SSOP Figure B-1a EM78P159N 18-Lead PDIP Package Type (This specification is subject to change without further notice) ...

Page 45

Plastic Small Outline (SOP) — 300 mil 20-Lead Plastic Small Outline (SSOP) — 209 mil Product Specification (V1.0) 03.10.2006 (This specification is subject to change without further notice) Figure B-1b EM78P159N 18-Lead SOP Package Type Figure B-1c EM78P159N 20-Lead ...

Page 46

EM78P159N 8-Bit Microcontrollerwith OTP ROM C Quality Assurance and Reliability C.1 Reliability Test Test Category Solder temperature = 245±5˚C for 5 seconds up to the stopper Solderability using a rosin-type flux Step 1: TCT 65˚C (15mins) ~ 150˚C (15mins), 10 ...

Page 47

C.2 Power-On Reset and Vdd Voltage Drop/Rise Timing Test Vdd /Reset Internal POR Tpor Power on Reset Symbol Parameter Tpor Power on reset time Vdd Voltage drop time Tvd * Vdd Voltage rise time Tvr ** Figure C-1 EM78P159N Power-On ...

Page 48

EM78P159N 8-Bit Microcontrollerwith OTP ROM 44 • Product Specification (V1.0) 03.10.2006 (This specification is subject to change without further notice) ...

Related keywords