EM78156EAS EMC [ELAN Microelectronics Corp], EM78156EAS Datasheet

no-image

EM78156EAS

Manufacturer Part Number
EM78156EAS
Description
8-Bit Microcontroller with MASK ROM
Manufacturer
EMC [ELAN Microelectronics Corp]
Datasheet
EM78156E
8-Bit Microcontroller
with MASK ROM
Product
Specification
D
. V
1.3
OC
ERSION
ELAN MICROELECTRONICS CORP.
July 2004

Related parts for EM78156EAS

EM78156EAS Summary of contents

Page 1

EM78156E 8-Bit Microcontroller with MASK ROM Specification Product D ELAN MICROELECTRONICS CORP 1.3 OC ERSION July 2004 ...

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 © 2005 by ELAN Microelectronics Corporation Copyright All Rights Reserved Printed in Taiwan The contents ...

Page 3

Contents 1 GENERAL DESCRIPTION ......................................................................................... 1 2 FEATURES ................................................................................................................. 1 3 PIN ASSIGNMENT ..................................................................................................... 2 4 FUNCTION DESCRIPTION ........................................................................................ 4 4.1 Operational Registers......................................................................................... 4 4.1.1 R0 (Indirect Addressing Register) .......................................................................4 4.1.2 R1 (Time Clock /Counter)....................................................................................4 4.1.3 R2 (Program Counter) & ...

Page 4

Contents 5 ABSOLUTE MAXIMUNM RATINGS ........................................................................ 31 6 ELECTRICAL CHARACTERISTICS ........................................................................ 31 6.1 DC Electrical Characteristic.............................................................................. 31 6.2 AC Electrical Characteristic.............................................................................. 32 6.3 Device Characteristic ....................................................................................... 33 A Package Types......................................................................................................... 43 B Package Information............................................................................................... 43 Doc. Version 1.0 Initial version ...

Page 5

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 ...

Page 6

... R-option pins Package types: • 18 pin DIP 300mil : EM78156EP • 18 pin SOP(SOIC) 300mil : EM78156EM • 20 pin SSOP 209mil : EM78156EAS • 20 pin SSOP 209mil : EM78156EKM 99.9% single instruction cycle commands The transient point of system frequency between HXT and LXT is around 400KHz 3 PIN ASSIGNMENT ...

Page 7

... Table 2 EM78156EAS Pin Description Symbol Pin No. Type VDD 15 - OSCI 17 I OSCO 16 I/O TCC 4 I /RESET 5 I 18, 19, P50~P53 I P60~P67 7~14 I/O /INT 7 I VSS 6 - Table 3 EM78156EKM Pin Description Symbol Pin No. Type VDD 15,16 - OSCI 18 I OSCO 17 I/O TCC 3 I /RESET 4 I 19, 20, P50~P53 I P60~P67 ...

Page 8

EM78156E 8-Bit Microcontroller with MASK ROM 4 FUNCTION DESCRIPTION OSCO /RESET OSCI WDT timer Oscillator/Timing Control Prescaler IOCA RAM R1(TCC) R4 IOC6 I/O PORT 6 R6 4.1 Operational Registers 4.1.1 R0 (Indirect Addressing Register not a physically implemented ...

Page 9

R2 (Program Counter) & Stack Depending on the device type, R2 and hardware stack are 10-bit wide. The structure is depicted in Fig.3. Generating 1024×13 bits on-chip ROM addresses to the relative programming instruction codes. One program page is ...

Page 10

EM78156E 8-Bit Microcontroller with MASK ROM Address R PAGE registers ︰ 3F 4.1.4 R3 (Status ...

Page 11

Bit 4 (T) Time-out bit. Set to 1 with the "SLEP" and "WDTC" commands, or during power up and reset WDT time-out. Bit5 ~7 (GP0 ~ 2) General purpose read/write bits. 4.1.5 R4 (RAM Select Register) Bits ...

Page 12

EM78156E 8-Bit Microcontroller with MASK ROM 4.2 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 0 (PSR0) ~ Bit 2 (PSR2) TCC/WDT prescaler bits. ...

Page 13

Only the lower 4 bits of IOC5 can be defined. IOC5 and IOC6 registers are both readable and writable. 4.2.4 IOCA (Prescaler Counter Register) IOCA register is readable. The value of IOCA is equal to the contents of Prescaler counter. ...

Page 14

EM78156E 8-Bit Microcontroller with MASK ROM Bit 6 (OD6) Bit 7 (OD7) IOCC Register is both readable and writable. 4.2.7 IOCD (Pull-high Control Register) 7 /PH7 Bit 0 (/PH0) Bit 1 (/PH1) Bit 2 (/PH2) Bit 3 (/PH3) Bit 4 ...

Page 15

Bit 4 (ROC) ROC is used for the R-option. Setting the ROC to "1" will enable the status of R-option pins (P50∼P51) that are read by the controller. Clearing the ROC will disable the R-option function. If the R-option function ...

Page 16

EM78156E 8-Bit Microcontroller with MASK ROM internal clock, TCC will increase every instruction cycle (without prescaler). Referring to Fig. 5, CLK=Fosc/2 or CLK=Fosc/4 application is determined by the CODE Option bit CLK status. CLK=Fosc/2 is used if ...

Page 17

R-option mode, the current/power consumption by Rex should be taken into the consideration to promote energy conservation. The I/O registers and I/O control registers are both readable and writable. The I/O interface circuits for Port 5 and Port 6 are ...

Page 18

EM78156E 8-Bit Microcontroller with MASK ROM P61~P67 PORT NOTE: Pull-high (down) and Open-drain are not shown in the figure. Fig. 7(b) The Circuit of I/O Port and I/O Control Register for P61~P67 IOCE CLK C L T10 ...

Page 19

Table 4 Usage of Port 6 Input Change Wake-up/Interrupt Function Usage of Port 6 input status changed Wake-up/Interrupt (I) Wake-up from Port 6 Input Status change (a) Before SLEEP 1. Disable WDT2 (using very carefully) 2. Read I/O Port 6 ...

Page 20

EM78156E 8-Bit Microcontroller with MASK ROM (2) /RESET pin input "low",or (3) WDT time-out (if enabled). The device is kept in a RESET condition for a period of approx. 18 start-up timer period) after the reset is detected. Once the ...

Page 21

WDT is enabled before SLEP, Port 6 Input Status Change Interrupt must be disabled. Hence, the EM78156E can be awakened only by Case Refer to the section on Interrupt. If Port 6 Input Status Change ...

Page 22

EM78156E 8-Bit Microcontroller with MASK ROM Address Name Reset Type Wake-Up from Pin Change Bit Name Power-On 0x00 R0(IAR) /RESET and WDT Wake-Up from Pin Change Bit Name Power-On 0x01 R1(TCC) /RESET and WDT Wake-Up from Pin Change Bit Name ...

Page 23

Address Name Reset Type Bit Name Power-On 0x0B IOCB /RESET and WDT Wake-Up from Pin Change Bit Name Power-On 0x0C IOCC /RESET and WDT Wake-Up from Pin Change Bit Name Power-On 0x0D IOCD /RESET and WDT Wake-Up from Pin Change ...

Page 24

EM78156E 8-Bit Microcontroller with MASK ROM Table 6 The Values of RST, T and P after RESET Power on /RESET during Operating mode /RESET wake-up during SLEEP mode WDT during Operating mode WDT wake-up during SLEEP mode Wake-Up on pin ...

Page 25

Any pin configured as output or P60 pin configured as /INT is excluded from this function. The Port 6 Input Status Changed Interrupt can wake up the EM78156E from the sleep mode if Port 6 is enabled prior to going ...

Page 26

EM78156E 8-Bit Microcontroller with MASK ROM 4.7 Oscillator 4.7.1 Oscillator Modes The EM78156E can be operated in three different oscillator modes, such as External RC oscillator mode (ERC), High XTAL oscillator mode(HXT), and Low XTAL oscillator mode(LXT). User can select ...

Page 27

In the most applications, Pin OSCI and Pin OSCO can be connected with a crystal or ceramic resonator to generate oscillation. Fig. 12 depicts such circuit. The same thing applies whether the HXT mode or in the ...

Page 28

EM78156E 8-Bit Microcontroller with MASK ROM The smaller the Rext in the RC oscillator, the faster its frequency will be. On the contrary, for very low Rext values, for instance, 1 KΩ, the oscillator becomes unstable because the NMOS cannot ...

Page 29

CODE Option Register The EM78156E has a CODE option word that is not a part of the normal program memory. The option bits cannot be accessed during normal program execution. Bit0 LVDD Bit 0 (LVDD): Bit 1 (CLK): Bit ...

Page 30

EM78156E 8-Bit Microcontroller with MASK ROM extra external reset circuit will work well if Vdd can rise at very fast speed ( less). However, under most cases where critical applications are involved, extra devices are required to assist ...

Page 31

Vdd EM78156E /RESET Fig. 16 Circuit 2 for the Residue Voltage Protection 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 ...

Page 32

EM78156E 8-Bit Microcontroller with MASK ROM The symbol "R" represents a register designator that specifies which one of the registers (including operational registers and general purpose registers utilized by the instruction. "b" represents a bit field designator ...

Page 33

INSTRUCTION BINARY HEX 0 0111 01rr rrrr 07rr 0 0111 10rr rrrr 07rr 0 0111 11rr rrrr 07rr 0 100b bbrr rrrr 0xxx 0 101b bbrr rrrr 0xxx 0 110b bbrr rrrr 0xxx 0 111b bbrr rrrr 0xxx 1 00kk ...

Page 34

EM78156E 8-Bit Microcontroller with MASK ROM 4.13 Timing Diagrams AC Test Input/Output Waveform 2.4 0.4 AC Testing : Input is driven at 2.4V for logic "1",and 0.4V for logic "0".Timing measurements are made at 2.0V for logic "1",and 0.8V for ...

Page 35

ABSOLUTE MAXIMUNM RATINGS Items Temperature under bias Storage temperature Input voltage Output voltage 6 ELECTRICAL CHARACTERISTICS 6.1 DC Electrical Characteristic (Ta=25 °C, VDD=5V±5%, VSS=0V) Symbol Parameter XTAL: VDD to 3V FXT XTAL: VDD to 5V ERC ERC: VDD to ...

Page 36

EM78156E 8-Bit Microcontroller with MASK ROM Symbol Parameter 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 supply current ICC4 (VDD=5.0V) ...

Page 37

Device Characteristic The graphs provided in the following pages were derived based on a limited number of samples and are shown here for reference only. The device characteristic illustrated herein are not guaranteed for it accuracy. In some graphs, ...

Page 38

EM78156E 8-Bit Microcontroller with MASK ROM Voh/Ioh (VDD=5V -10 Min 70℃ Typ 25℃ -15 Min 0℃ -20 - Voh(Volt) Fig. 19 Port5 and Port6 Voh vs. Ioh, DD=5V 34 • ...

Page 39

Vol/Iol (VDD=5V Vol(Volt) Fig. 22 Port5, Port6 Vol vs. Iol, VDD = 3V Product Specification (V1.3) 07.29.2004 (This specification is subject to change without further notice) 35 Max ...

Page 40

EM78156E 8-Bit Microcontroller with MASK ROM Fig. 23 WDT time out period vs. VDD,perscaler set to 1:1 36 • WDT Time_ Max 70℃ Typ 25℃ Min 0℃ 2 ...

Page 41

Fig. 24 Typical RC OSC Frequency vs. VDD (Cext= 100pF, Temperature at 25 Fig. 25 Typical RC OSC Frequency vs. VDD (R and C are ideal components) Product Specification (V1.3) ...

Page 42

EM78156E 8-Bit Microcontroller with MASK ROM Four conditions exist with the Operating Current ICC1 to ICC4. These conditions are as follows: ICC1: VDD=3V, Fosc=32K Hz, 2 clocks, WDT disable ICC2: VDD=3V, Fosc=32K Hz, 2 clocks, WDT enable ICC3: VDD=5V, Fosc=4M ...

Page 43

Typical ICC3 and ICC4 vs. Temperature 4 3.5 3 2.5 2 1 Fig. 28 Typical operating current (ICC3 and ICC4) vs. Temperature Maximum ICC3 and ICC4 vs. Temperature 4.5 4 3.5 3 2.5 2 1.5 ...

Page 44

EM78156E 8-Bit Microcontroller with MASK ROM Two conditions exist with the Standby Current ISB1 and ISB2. These conditions are as follows: ISB1: VDD=5V, WDT disable ISB2: VDD=5V, WDT enable Fig. 30 Typical ...

Page 45

Fig. 32 Operating voltage in temperature range from 0 Product Specification (V1.3) 07.29.2004 (This specification is subject to change without further notice) EM78156E 8-Bit Microcontroller with MASK ROM ℃ ℃ • 41 ...

Page 46

EM78156E 8-Bit Microcontroller with MASK ROM 2.5 2.25 2 1.75 1.5 1.25 1 0.75 0.5 0.25 0 2.3 2.8 Fig. 33 Operating current range (based on high Freq 2.3 2.8 ...

Page 47

... A Package Types MASK MCU EM78156EP EM78156EM EM78156EAS EM78156EKM B Package Information 18-Lead Plastic Dual in line (PDIP) — 300 mil Product Specification (V1.3) 07.29.2004 (This specification is subject to change without further notice) 8-Bit Microcontroller with MASK ROM APPENDIX Package Type Pin Count DIP 18 SOP 18 SSOP ...

Page 48

EM78156E 8-Bit Microcontroller with MASK ROM 18-Lead Plastic Small Outline (SOP) — 300 mil 20-Lead Plastic Small Outline (SSOP) — 209 mil 44 • Product Specification (V1.3) 07.29.2004 (This specification is subject to change without further notice) ...

Related keywords