EM78P459AK ELAN Microelectronics Corp, EM78P459AK Datasheet

no-image

EM78P459AK

Manufacturer Part Number
EM78P459AK
Description
Manufacturer
ELAN Microelectronics Corp
Datasheet
EM78P458/459
8-Bit Microcontroller
with OTP ROM
Product
Specification
D
. V
1.5
OC
ERSION
ELAN MICROELECTRONICS CORP.
Apr. 2005

Related parts for EM78P459AK

EM78P459AK Summary of contents

Page 1

... EM78P458/459 8-Bit Microcontroller with OTP ROM Specification ELAN MICROELECTRONICS CORP. Product ERSION Apr. 2005 1.5 ...

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 of this specification are subject to change without further notice. ELAN Microelectronics assumes no responsibility concerning the accuracy, adequacy, or completeness of this specification ...

Page 3

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

Page 4

Contents 4.2.17 IOCB1 ( PRD2: Period of PWM2 ).................................................................... 18 4.2.18 IOCC1 ( DL1L: the Least Significant Byte ( Bit 7 ~ Bit Duty Cycle Latch of PWM1 ) ............................................................................ 18 4.2.19 IOCD1 ( DL1H: the Most ...

Page 5

Crystal Oscillator/Ceramic Resonators (XTAL) ................................................ 42 4.12.3 External RC Oscillator Mode ............................................................................ 43 4.12.4 RC Oscillator Mode with Internal Capacitor ..................................................... 44 4.13 Power-on Considerations................................................................................ 45 4.13.1 External Power on Reset Circuit....................................................................... 45 4.13.2 Residue-Voltage Protection .............................................................................. 45 4.14 ...

Page 6

Contents Doc. Version Initial version 1.0 Modify ERC frequency 1.1 Add AD & OP spec 1.2 Change Power on reset content 1.3 Add the Device Characteristic at section 6.5 1.4 1.5 Update Package Types vi • Specification Revision History Revision ...

Page 7

GENERAL DESCRIPTION EM78P458 and EM78P459 are 8-bit microprocessors designed and developed with low-power and high-speed CMOS technology equipped with a 4K*13-bit Electrical One Time Programmable Read Only Memory (OTP-ROM). With its OTP-ROM feature able to ...

Page 8

... Two clocks per instruction cycle Package types: • 18 pin DIP 300mil : EM78P458BP • 18 pin SOP 300mil : EM78P458BM • 20 pin DIP 300mil : EM78P458AP • 20 pin SOP 300mil : EM78P458AM • 24 pin skinny DIP 300mil : EM78P459AK 2 • Product Specification (V1.5) 04.01.2004 (This specification is subject to change without further notice) ...

Page 9

PIN ASSIGNMENT P56/CIN P57/CO 2 P60/ADC1 3 18 P61/ADC2 Vss 16 P62/ADC3 6 15 P63/ADC4 7 14 P64/ADC5 8 13 P65/ADC6 9 12 P66/ADC7 10 11 Table 1 EM78P458 Pin Description DIP 18 ...

Page 10

EM78P458/459 8-Bit Microcontroller with OTP ROM Symbol Pin No. Type P50 11 I P51 ~ P57 12~14 I P60 ~ P67 I/O 5~10 INT ADC1~ADC8 PWM1, 13 PWM2 ...

Page 11

Product Specification (V1.5) 04.01.2004 (This specification is subject to change without further notice) EM78P458/459 8-Bit Microcontroller with OTP ROM • 5 ...

Page 12

EM78P458/459 8-Bit Microcontroller with OTP ROM Table 2 EM78P459 Pin Description Symbol Pin No. Type VDD 19 OSCI 22 I OSCO 21 O P50 14 I 15~17 P51 ~ P57 23 P60 ...

Page 13

FUNCTION DESCRIPTION WDT Time-out Oscillator/ Timming Control ENTCC R1(TCC) Sleep & Wake Up Control Comparators Fig. 2 The Functional Block Diagram of EM78P458/459 4.1 Operational Registers 4.1.1 R0 (Indirect Addressing Register not a physically implemented register. Its ...

Page 14

EM78P458/459 8-Bit Microcontroller with OTP ROM "JMP" instruction allows the direct loading of the lower 10 program counter bits. Thus, "JMP" allows PC to jump to any location within a page. "CALL" instruction loads the lower 10 bits of the ...

Page 15

Address PAGE registers 00 R0 (IAR (TCC (PC (Status RSR (Port5 (Port6 General Registers 08 R8 General Registers 09 R9 (ADCON (ADDATA ...

Page 16

EM78P458/459 8-Bit Microcontroller with OTP ROM Bit 4 (T) Bit 3 (P) Bit 2 (Z) Bit 1 (DC) Bit 0 (C) 4.1.5 R4 (RAM Select Register) Bit 7 Bit 6 Bits 0~5 4.1 (Port 5 ~ Port ...

Page 17

Bit 3 (ADPD): ADC Power-down mode. Bit2:Bit0 (ADIS2:ADIS0): Analog Input Select. They can only be changed when the ADIF bit and the ADRUN bit are both LOW. 4.1.9 RA (ADDATA: the converted value of ADC) When the A/D conversion is ...

Page 18

EM78P458/459 8-Bit Microcontroller with OTP ROM Bit 7 Bit 6 (CMPIF) Bit 5 (PWM2IF) PWM2 (Pulse Width Modulation) interrupt flag. Set when a selected Bit 4 (PWM1IF) PWM1 (Pulse Width Modulation) interrupt flag. Set when a selected Bit 3 (ADIF) ...

Page 19

Bit 5 (TS) Bit 4 (TE) Bit 3 (PAB) Bit 2 (PSR2) ~ Bit 0 (PSR0) TCC/WDT prescaler bits. PSR2 CONT register is both readable and writable. 4.2.3 IOC50 ~ IOC60 (I/O ...

Page 20

EM78P458/459 8-Bit Microcontroller with OTP ROM Bit 6 ( OP1E ) Enable the gain amplifier whose input is connected to P60 and output is Bit 5:Bit 3 (G22 and G20): Select the gain of OP2. Bit 2:Bit 0 (G12 and ...

Page 21

Bit 5 ( COE ): Set P57 as the output of the comparator Bit4:Bit2 (IMS2:IMS0): Table 3 Description of AD Configuration Control Bits IMS2:IMS0 000 001 010 011 100 101 110 111 Bit 1: Bit 0 (CKR1: CKR0): The prescaler ...

Page 22

EM78P458/459 8-Bit Microcontroller with OTP ROM 4.2.7 IOCC0 (Open-Drain Control Register) 7 /OD7 Bit 7 (OD7) Control bit used to enable the open-drain of the P57 pin. 0: Enable open-drain output 1: Disable open-drain output Bit 6 (OD6) Control bit ...

Page 23

IOCE0 (WDT Control Register) 7 WDTE Bit 7 (WDTE) Bit 6 (EIS) Bits 5~0 4.2.10 IOCF0 (Interrupt Mask Register CMPIE Bit 7: Bit 6 (CMPIE) CMPIF interrupt enable bit. Bit 5 (PWM2IE) PWM2IF interrupt enable bit. Bit ...

Page 24

EM78P458/459 8-Bit Microcontroller with OTP ROM Bit 3 (ADIE) Bit 2 (EXIE) Bit 1 (ICIE) Bit 0 (TCIE) IOCF0 register is both readable and writable. 4.2.11 IOC51 ( PWMCON ): 7 PWM2E PWM1E Bit 7 (PWM2E): PWM2 enable bit Bit ...

Page 25

T2P1 Bit 1 : Bit 0 ( T1P1:T1P0 ): TMR1 clock prescale option bits. T1P1 4.2.12 IOC61 ( DT1L: the Least Significant Byte ( Bit 7 ~ Bit 0) of Duty Cycle ...

Page 26

EM78P458/459 8-Bit Microcontroller with OTP ROM 4.2.15 IOC91 ( DT2L: the Least Significant Byte ( Bit 7 ~ Bit Duty Cycle of PWM2 ) A specified value keeps the of PWM1 output to stay at high until ...

Page 27

TCC/WDT & Prescaler An 8-bit counter is available as prescaler for the TCC or WDT. The prescaler is available for either the TCC or WDT only at any given time, and the PAB bit of CONT register is used ...

Page 28

EM78P458/459 8-Bit Microcontroller with OTP ROM 4.4 I/O Ports Port 5, Port 6, and the I/O registers are bi-directional tri-state I/O ports. The function of Pull-high, Pull-down, and Open-drain can be set internally by IOCB0, IOCC0, and IOCD0, respectively. Port ...

Page 29

P50, /INT PORT Bit 6 of IOCE0 CLK INT NOTE: Pull-high (down) and Open-drain are not shown in the figure. Fig. 7 The Circuit of I/O Port and I/O Control Register for ...

Page 30

EM78P458/459 8-Bit Microcontroller with OTP ROM IOCE CLK C L T10 T11 T17 /SLEP Fig. 9 Block Diagram of Port 6 with Input Changed Interrupt/Wake-up able 4 Usage of Port 6 Input Changed Wake-up/Interrupt Function (I) Wake-up ...

Page 31

The device is kept in a RESET condition for a period of approximately 18ms (one oscillator start-up timer period) after the reset is detected. Once the RESET occurs, the following functions are performed. The oscillator is running, or will be ...

Page 32

EM78P458/459 8-Bit Microcontroller with OTP ROM [b] if WDT is enabled before SLEP, Port 6 Input Status Changed Interrupt must be disabled. Hence, the EM78P458/459 can be awakened only by Case Refer to the section on Interrupt ...

Page 33

The Status of T, and P of STATUS Register A RESET condition is initiated by one of the following events: (1) A power-on condition, (2) A high-low-high pulse on /RESET pin, or (3) Watchdog Timer time-out. The values of ...

Page 34

EM78P458/459 8-Bit Microcontroller with OTP ROM 4.6 Interrupt The EM78P458/459 has six interrupts as listed below: (1) TCC overflow interrupt (2) Port 6 Input Status Change Interrupt (3) External interrupt [(P50, /INT) pin]. (4) Analog to Digital conversion completed. (5) ...

Page 35

Analog-To-Digital Converter (ADC) The analog-to-digital circuitry consists of an 8-bit analog multiplexer, three control registers (ADCON/R9, AD-CMP-CON/IOCA0, GCON/IOC90), one data register (ADDATA/RA) and an ADC with 8-bit resolution. The functional block diagram of the ADC is shown in Fig. ...

Page 36

EM78P458/459 8-Bit Microcontroller with OTP ROM 4.7.1 ADC Control Register (ADCON/R9, AD-CMP-CON/IOCA0, GCON/IOC90) 4.7.1.1 ADCON/R9 The ADCON register controls the operation of the A/D conversion and decides which pin should be currently active. BIT SYMBOL * Init_Value * Init_Value: Initial ...

Page 37

CE (Bit 6): Control bit used to enable comparator. COE (Bit 5): Set P57 as the output of the comparator IMS2~IMS0 (Bit 4 ~ Bit 2): ADC configuration definition bit. CKR1 and CKR0 (Bit 1 and Bit 0): The conversion ...

Page 38

EM78P458/459 8-Bit Microcontroller with OTP ROM 4.7.3 A/D Sampling Time The accuracy, linearity, and speed of the successive approximation A/D converter are dependent on the properties of the ADC and the comparator. The source impedance and the internal sampling impedance ...

Page 39

Put “ENI” instruction, if the interrupt function is employed. (4) Set the ADRUN bit to 1. (5) Wait for either the interrupt flag to be set or the ADC interrupt to occur. (6) Read ADDATA, the conversion data register. ...

Page 40

EM78P458/459 8-Bit Microcontroller with OTP ROM ;To define bits ;In ADCONR ADRUN == 0x4 ADPD == 0x3 ORG 0 JMP INITIAL ORG 0x08 (User program) CLR R_F BS ADCONR, ADRUN necessary RETI INITIAL: MOV A, @0BXXXX1XXX application IOW C_INT MOV ...

Page 41

ENI BS ADCONR, ADRUN ; If the interrupt function is employed, the following three lines may be ignored POLLING: JBC ADCONR, ADRUN JMP POLLING completed (User program 4.8 Dual Sets of PWM ( Pulse Width Modulation ) ...

Page 42

EM78P458/459 8-Bit Microcontroller with OTP ROM Period Duty Cycle 4.8.2 Increment Timer Counter ( TMRX: TMR1H/TWR1L or TMR2H/TWR2L ) TMRX are ten-bit clock counters with programmable prescalers. They are designed for the PWM module as baud rate clock generators. TMRX ...

Page 43

Comparator X To change the output status while the match occurs, the TMRXIF flag will be set at the same time. 4.8.6 PWM Programming Procedures/Steps (1) Load PRDX with the PWM period.. (2) Load DTX with the PWM Duty ...

Page 44

EM78P458/459 8-Bit Microcontroller with OTP ROM Fosc: Input clock. Prescaler ( T1P0 and T1P1/T2P1 and T2P0 ): Options of 1:2, 1:8, 1:32, and 1:64 are defined by TMRX cleared when any type of reset occurs. TMR1X and TMR2X ...

Page 45

Threshold detector applications may be of the same reference. The comparator can operate from the same or different reference source. 4.10.2 Comparator Outputs The compared result is stored in the CMPOUT of R3. The comparator outputs is output to P57 ...

Page 46

EM78P458/459 8-Bit Microcontroller with OTP ROM 4.10.5 Wake-up from SLEEP Mode If enabled, the comparator remains active and the interrupt remains functional, even under SLEEP mode mismatch occurs, the interrupt will wake up the device from SLEEP mode. ...

Page 47

Address Name Reset Type Wake-up from Pin Changed Bit Name Power-on IOCA0 N/A (AD-CMP /RESET and WDT CON) Wake-up from Pin Changed Bit Name Power-on IOC51 N/A /RESET and WDT (PWMCON) Wake-up from Pin Changed Bit Name N/A Power-on IOC61 ...

Page 48

EM78P458/459 8-Bit Microcontroller with OTP ROM Address Name Reset Type /RESET and WDT Wake-up from Pin Changed Bit Name Power-on N/A CONT /RESET and WDT Wake-up from Pin Changed Bit Name Power-on 0x00 R0(IAR) /RESET and WDT Wake-up from Pin ...

Page 49

Address Name Reset Type (TMR1L) Power-on /RESET and WDT Wake-up from Pin Changed Bit Name Power-on RC 0xC /RESET and WDT (TMR1H) Wake-up from Pin Changed Bit Name Power-on RD 0xD /RESET and WDT (TMR2L) Wake-up from Pin Changed Bit ...

Page 50

EM78P458/459 8-Bit Microcontroller with OTP ROM Conditions Two clocks 4.12.2 Crystal Oscillator/Ceramic Resonators (XTAL) EM78P458/459 can be driven by an external clock signal through the OSCI pin as shown in Fig. 18 below. In the most applications, pin OSCI and ...

Page 51

Table 13 Capacitor Selection Guide for Crystal Oscillator or Ceramic Resonators Oscillator Type Ceramic Resonators Crystal Oscillator 4.12.3 External RC Oscillator Mode For some applications that do not require precise timing calculation, the RC oscillator (Fig. 20) could offer users ...

Page 52

EM78P458/459 8-Bit Microcontroller with OTP ROM Table 14 RC Oscillator Frequencies Cext 20 pF 100 pF 300 pF 4.12.4 RC Oscillator Mode with Internal Capacitor If both precision and cost are taken into consideration, EM78P257A/B also offers a special oscillation ...

Page 53

Power-on Considerations Any microcontroller is not warranted to start proper operation before the power supply stabilizes in steady state. EM78P458/459 POR voltage range is 1.2V~1.8V. Under customer application, when power is OFF, Vdd must drop to below 1.2V and ...

Page 54

EM78P458/459 8-Bit Microcontroller with OTP ROM VDD EM78P458 EM78P459 /RESET Fig. 23 Circuit 1 for the Residue Voltage Protection VDD EM78P458 EM78P459 /RESET Fig.24 Circuit 2 for the Residue Voltage Protection 4.14 CODE OPTION EM78P458/459 has one CODE option word ...

Page 55

Bit 10 (CLKS): Clocks of each instruction cycle. Bit 9 (/PTB): Bit 8 (HLF): Bit 7 (RCT): Bit 6 (HLP): Bit 5 ~ Bit 0 (ID[5]~ID[0]): Customer’s ID. 4.15 Instruction Set Each instruction in the instruction set is a 13-bit ...

Page 56

EM78P458/459 8-Bit Microcontroller with OTP ROM Table 16 The list of the instruction set of EM78P458/459 INSTRUCTION HEX BINARY 0 0000 0000 0000 0000 0 0000 0000 0001 0001 0 0000 0000 0010 0002 0 0000 0000 0011 0003 0 ...

Page 57

INSTRUCTION HEX BINARY 0 111b bbrr rrrr 0xxx 1 00kk kkkk kkkk 1kkk 1 01kk kkkk kkkk 1kkk 1 1000 kkkk kkkk 18kk 1 1001 kkkk kkkk 19kk 1 1010 kkkk kkkk 1Akk 1 1011 kkkk kkkk 1Bkk 1 1100 ...

Page 58

EM78P458/459 8-Bit Microcontroller with OTP ROM 4.16 Timing Diagrams AC Test Input/Output W aveform 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 ...

Page 59

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

Page 60

EM78P458/459 8-Bit Microcontroller with OTP ROM Symbol Parameter Operating supply current (VDD=3V) ICC2 at two clocks Operating supply current ICC3 (VDD=5.0V) at two clocks Operating supply current ICC4 (VDD=5.0V) at two clocks AC Electrical Characteristic(Ta=0° °C, VDD=5V±5%, 6.2 ...

Page 61

A/D is off. 4.The A/D conversion result never decrease with ...

Page 62

EM78P458/459 8-Bit Microcontroller with OTP ROM Vih /Vil (Input pin s with sch mitt inv erter) Vil max ℃ ℃ 2.5 Vil typ 25℃ Vil min ℃ ℃ 2 1.5 1 0.5 0 2.5 3 ...

Page 63

Vih /Vil (Input pin s with sch mitt inv erter) Vil max ℃ 2.5 Vil typ 25℃ Vil min ℃ 2 1.5 1 0.5 0 2.5 3 Fig. 27 Vih, Vil of P53,P55~P57,P60~P67 Vs VDD ...

Page 64

EM78P458/459 8-Bit Microcontroller with OTP ROM Vol/Iol (VDD=5V Vol(Volt) Fig. 30 Port5, and P60~P63,P66,P67 Vol, VDD=5V Vol/Iol (5V) 120 100 ...

Page 65

Fig. 34 WDT Time Out Period vs. VDD, Prescaler Set Product Specification (V1.5) 04.01.2004 (This specification is subject to change without further notice) WDT Ti me_ o u ...

Page 66

EM78P458/459 8-Bit Microcontroller with OTP ROM 1.4 1.2 1 0.8 0.6 0.4 0.2 0 Fig. 35 Typical RC OSC Frequency vs. VDD 60 • Cex t ical RC OSC Freq 2.5 ...

Page 67

Four conditions exist with the operating current ICC1 to ICC4. these conditions are as follows: ICC1:VDD=3V, Fosc=32 kHz, 2clock, WDT disable. ICC2:VDD=3V, Fosc=32 kHz, 2clock, WDT enable. ICC3:VDD=5V, Fosc=2 MHz, 2clock, WDT enable. ICC4:VDD=5V, Fosc=4 MHz, 2clock, WDT enable. Typical ...

Page 68

EM78P458/459 8-Bit Microcontroller with OTP ROM Typical ICC3 and ICC4 vs. Temperature 1.9 1.7 1.5 1.3 1.1 0.9 0.7 0 Fig. 38 Typical Operating Current Maximum ICC3 and ICC4 vs. Temperature 2.2 2 1.8 1.6 1.4 1.2 1 ...

Page 69

Typical ISB1 and ISB2 vs. Temperature Fig. 40 Typical Standby Current Maximum ISB1 and ISB2 vs. Temperature Fig. 41 Maximum Standby Current Product Specification (V1.5) 04.01.2004 (This ...

Page 70

EM78P458/459 8-Bit Microcontroller with OTP ROM 2.5 Fig. 42 Operating Voltage In Temperature Range from 0 64 • Operating voltage (0℃~70℃) 3 3.5 4 4.5 VDD(Volt) Product Specification (V1.5) 04.01.2004 (This specification is ...

Page 71

Fig. 43 EM78P458/459 I-V Curve Operating at 4 MHz 2.5 2 1 Fig. 44 EM78P458_G/459-G I-V Curve Operating at 4 MHz Product Specification (V1.5) 04.01.2004 (This specification is ...

Page 72

EM78P458/459 8-Bit Microcontroller with OTP ROM 200 150 100 Fig. 45 EM78P458/459 I-V Curve Operating at 32.768 kHz 140 120 100 Fig. 46 EM78P458_G/459_G I-V Curve Operating at 32.768 kHz 66 ...

Page 73

... A Package Types OTP MCU EM78P458AP EM78P458AM EM78P459AK EM78P459AM B Package Information 20-Lead Plastic Dual in line (PDIP) — 300 mil Product Specification (V1.5) 04.01.2004 (This specification is subject to change without further notice) 8-Bit Microcontroller with OTP ROM APPENDIX Package Type Pin Count DIP 20 pin ...

Page 74

EM78P458/459 8-Bit Microcontroller with OTP ROM 20-Lead Plastic Small Outline (SOP) — 300 mil 68 • Product Specification (V1.5) 04.01.2004 (This specification is subject to change without further notice) ...

Page 75

Plastic Dual in line (PDIP) — 300 mil Product Specification (V1.5) 04.01.2004 (This specification is subject to change without further notice) EM78P458/459 8-Bit Microcontroller with OTP ROM • 69 ...

Page 76

EM78P458/459 8-Bit Microcontroller with OTP ROM 24-Lead Plastic Small Outline (SOP) — 300 mil 70 • Product Specification (V1.5) 04.01.2004 (This specification is subject to change without further notice) ...

Related keywords