EM78870 8-BIT MICRO-CONTROLLER Version 1.4 ELAN MICROELECTRONICS CORP. No. 12, Innovation 1st RD., Science-Based Industrial Park Hsin Chu City, Taiwan, R.O.C. TEL: (03) 5639977 FAX: (03)5782037(SL) 5780617 (SA2) User Application Note 1. ROM, OTP, ICE ROM EM78870 OTP EM78P870 ICE EM78808 ICE 2. Main Function Difference RAM EM78870 2.5K x 8 EM78P870 8K x 8 EM78870 8-bit Micro-controller I.General Description The EM78870 is an 8-bit RISC type microprocessor with low power, high speed CMOS technology. Integrated onto a single chip are on_chip watchdog (WDT), RAM, ROM, programmable real time clock /counter, internal interrupt, power down mode, LCD driver, build-in KEY TONE clock generation, Programming Tone generators, Serial Peripheral Interface(SPI), comparator and tri-state I/O. The EM78870 provides a single chip solution to design a message_display. II.Feature CPU •Operating voltage range : 2.2V~5.5V(Normal mode), 2.0V~5.5V(Green mode) •32K× 13 on chip Program ROM •2.5K× 8 on chip data RAM •144 byte working register •Up to 51 bi-directional tri-state I/O ports (32 shared with LCD Segment pins) •IO with internal Pull high, wake-up and interrupt functions •STACK: 32 level stack for subroutine nesting •TCC: 8-bit real time clock/counter (TCC) with 8-bit prescaler •COUNTER1: 8-bit counter with 8-bit prescaler can be an interrupt source •COUNTER2: 8-bit counter with 8-bit prescaler can be an interrupt source •Watch Dog : Programmable free running on chip watchdog timer •CPU modes: Mode CPU status Main clock 32.768kHz clock status Sleep mode Turn off Turn off Turn off Idle mode Turn off Turn off Turn on Green mode Turn on Turn off Turn on Normal mode Turn on Turn on Turn on •12 interrupt source : 8 external , 4 internal •Key Scan : Port key scan function up to 16x4 keys •Sub-Clock: 32.768kHz crystal •Main-clock: 3.5826MHz multiplied by 0.25, 0.5, 1 or 3 generated by internal PLL •Key tone output (shared with IO) : 4kHz, 2kHz, 1kHz •Comparator: 3-channel comparators, internal (16 level) or external reference voltage (shared with IO) •Serial Peripheral Interface (SPI) : Interrupt flag available for the read buffer full, Programmable baud rates of communication, Three-wire synchronous communication. (shared with IO) Programmable Tone Generators •Operation Voltage 2.2V〜5.5V •Programmable Tone1 and Tone2 generators •Independent single tone generation for Tone1 and Tone2 •Mixed dual tone generation by Tone1 and Tone2 with 2dB difference LCD (8x80, 9x80, 16x80, 24x72) •Maximum common driver pins : 16/24 •Maximum segment driver pins : 80(SEG0..SEG79)/72(SEG8..SEG79) •Shared COM16 ~ COM23 pins with SEG0 ~ SEG7 pins •1/4 bias for 8, 9 and 16 common mode and 1/5 bias for 24 common mode •1/8, 1/9, 1/16, 1/24 duty •16 Level LCD contrast control (software) •Internal resistor circuit for LCD bias •Internal voltage follower for better display Package type •128-pin QFP or chip : EM78870AQ (POVD disable), EM78870BQ (POVD enable), EM78870H _________________________________________________________________________________________________________________________________________________________________ * This specification are subject to be changed without notice. 1 2001/08/29 EM78870 8-bit Micro-controller III.Application Cordless phones or any telephone product with large LCD needed IV.Pin Configuration SEG17 SEG16 SEG15 SEG14 SEG13 SEG12 SEG11 SEG10 SEG9 SEG8 COM23/SEG7 COM22/SEG6 COM21/SEG5 COM20/SEG4 COM19/SEG3 COM18/SEG2 COM17/SEG1 COM16/SEG0 COM15 COM14 COM13 COM12 COM11 COM10 105 106 107 108 109 110 111 112 123 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 18 19 20 21 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 88 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 SEG31 SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 SEG40 SEG41 SEG42 SEG43 SEG44 SEG45 SEG46 SEG47 SEG48/PB0 SEG49/PB1 SEG50/PB2 SEG51/PB3 SEG52/PB4 SEG53/PB5 SEG54/PB6 SEG55/PB7 SEG56/PC0 SEG57/PC1 SEG58/PC2 P55 P56 P57 SEG79/P97 SEG78/P96 SEG77/P95 SEG76/P94 SEG75/P93 SEG74/P92 SEG73/P91 SEG72/P90 SEG71/P87 SEG70/P86 SEG69/P85 SEG68/P84 SEG67/P83 SEG66/P82 SEG65/P81 SEG64/P80 SEG63/PC7 SEG62/PC6 SEG61/PC5 SEG60/PC4 SEG59/PC3 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 COM9 COM8 COM7 COM6 COM5 COM4 COM3 COM2 COM1 COM0 VC5 VC4 VC3 VC2 VC1 XIN XOUT VDD AVDD PLLC TONE AVSS GND TEST /RESET P70/INT0 P71/INT0 P72/INT0 P73/INT0 P74/INT1 P75/INT1 P76/INT1 P77/INT2 P60/SCK P61/SDO P62/SDI P63/CMP1 P64/CMP2 P65/CMP3 P66 P67/KTONE Fig.1 Pin assignment (128-pin QFP or chip) _________________________________________________________________________________________________________________________________________________________________ * This specification are subject to be changed without notice. 2 2001/08/29