General Description The EM78P468N/L is an 8-bit microprocessor designed and developed with low-power and high-speed CMOS technology. Integrated onto a single chip are on chip Watchdog Timer (WDT), Data RAM, ROM, programmable real time clock counter, internal/external interrupt, power down mode, LCD driver, infrared transmitter function, and tri-state I/O. The series has an on-chip 4K×13-bit Electrical One Time Programmable Read Only Memory (OTP-ROM).
EM78P468N/EM78P468L 8-Bit Microcontroller 6 Function Description 6.1 Operational Registers 6.1.1 R0/IAR (Indirect Addressing Register) (Address: 00h) R0 is not a physically implemented register. Its major function is to perform as an indirect address pointer. Any instruction using R0 as a register, actually accesses the data pointed by the RAM Select Register (R4).
Page 13
A10 A9 A8 00 PAGE0 0000~03FF 01 PAGE1 0400~07FF 10 PAGE2 0800~0BFF 11 PAGE3 0C00~0FFF ADDRESS IAR (Indirect Addressing Register) TCC (Time Clock Counter) PC (Program Counter) SR (Status Register) RSR (RAM select register) PORT5 (Port 5 & IOCPAGE Control) PORT6 (Port6 I/O data register) PORT7 (Port7 I/O data register) PORT8 (Port8 I/O data register)
EM78P468N/EM78P468L 8-Bit Microcontroller 6.1.4 R3/SR (Status Register) (Address: 03h) Bit 7 Bit 6 − Bit 7: Not used Bits 6 ~ 5 (PS1 ~ 0): Page select bits PS0~PS1 are used to select a ROM page. User can use the PAGE instruction (e.g. PAGE 1) or set PS1~PS0 bits to change the ROM page.
6.1.5 R4/RSR (RAM Select Register) (Address: 04h) Bit 7 Bit 6 RBS1 RBS0 Bits 7 ~ 6 (RBS1 ~ RBS0): determine which bank is activated among the four banks. See the data memory configuration in Fig. 6-2. Use the BANK instruction (e.g. BABK 1) to change banks.
EM78P468N/EM78P468L 8-Bit Microcontroller 6.1.9 R8/Port 8 (Port 8 I/O Data Register) (Address: 08h) Bit 7 Bit 6 Bits 7~0: 8-bit I/O registers of Port 8 User can use IOC80 register to define each bit either as input or output. 6.1.10 R9/LCDCR (LCD Control Register) (Address: 09h) Bit 7 Bit 6...
CPU Operation Mode it must delay a little times for the main oscillation stable w hile your system timing control is conscientious IDLE="0" SLEEP Mode SLEP Fm:stop Fs: stop CPU: stop Wake up The w ake up time from sleep to green mode is approximately sub-oscillator setup time +18ms+16*1/fs 6.1.15 RE/IRCR (IR and Port 5 Setting Control Register) (Address: 0Eh)
EM78P468N/EM78P468L 8-Bit Microcontroller Bit 4: Not used Bit 3 (IROUTE): Define the function of P5.7/IROUT pin. IROUTE = “0” : for bi-directional general I/O pin. IROUTE = “1” : for IR or PWM output pin, the control bit of P5.7 (Bit 7 of IOC50) Bit 2 (TCCE): Define the function of P5.6/TCC pin.
6.2 Special Purpose Registers 6.2.1 A (Accumulator) Internal data transfer operation, or instruction operand holding usually involves the temporary storage function of the Accumulator, which is not an addressable register. Registers of IOC Page 0 (IOC50 ~ IOCF0, Bit 0 of R5 = “0”) 6.2.2 IOC50/P5CR (Port 5 I/O and Ports 7, 8 for LCD Segment Control Register)
EM78P468N/EM78P468L 8-Bit Microcontroller 6.2.3 IOC60/P6CR (Port 6 I/O Control Register) (Address: 06h, Bit 0 of R5 = “0”) Bit 7 Bit 6 IOC67 IOC66 Bit 7 (IOC67) ~ Bit 0(IOC60): Port 6 I/O direction control register IOC6x =”0”: set the relative Port 6.x I/O pins as output IOC6x =”1”: set the relative Port 6.x I/O pin into high impedance (input pin) 6.2.4 IOC70/P7CR (Port 7 I/O Control Register)
6.2.8 IOCB0/CNT1PR (Counter 1 Preset Register) (Address: 0Bh, Bit 0 of R5 = “0”) Bit 7 Bit 6 Bit 7 Bit 6 Bit 7 ~ Bit 0: These are Counter 1 buffers which user can read and write. Counter 1 is an 8-bit down-count timer with 8-bit prescaler used to preset the counter and read the preset value.
EM78P468N/EM78P468L 8-Bit Microcontroller 6.2.11 IOCE0/LPWTPR (Low-Pulse Width Timer Preset Register) (Address: 0Eh, Bit 0 of R5 = “0”) Bit 7 Bit 6 Bit 7 Bit 6 Bit 7 ~ Bit 0: All are low-pulse width timer buffer that user can read and write. Low-pulse width timer preset is an eight-bit down-counter with 8-bit prescaler that is used as IOCE0 to preset the counter and read preset value.
Bit 2 (/WUE8L): 0/1 → enable/disable P8.0~P8.3 pin change wake-up function Bit 1 (/WUE6H): 0/1 → enable/disable P6.4~P6.7 pin change wake-up function Bit 0 (/WUE6L): 0/1 → enable/disable P6.0~P6.3 pin change wake-up function * Port 6 and Port 8 must not be set as input floating when wake-up function is enabled.
EM78P468N/EM78P468L 8-Bit Microcontroller 6.2.15 IOC81/WDTCR (WDT Control Register) (Address: 08h, Bit 0 of R5 = “1”) Bit 7 Bit 6 − − Bits 7 ~ 4: Not used Bit 3 (WDTE): Watchdog timer enable. This control bit is used to enable the Watchdog timer, WDTE = “0”: Disable WDT function WDTE = “1”: enable WDT function...
EM78P468N/EM78P468L 8-Bit Microcontroller 6.2.18 IOCB1/P6PH (Port 6 Pull-high Control Register) (Address: 0Bh, Bit 0 of R5 = “1”) Bit 7 Bit 6 PH67 PH66 Bit 7 ~ Bit 0 (PH67 ~ PH60): The enable bits of Port 6 pull high function. PH6x = “0”: disable pin of P6.x internal pull-high resistor function PH6x = “1”: enable pin of P6.x internal pull-high resistor function 6.2.19 IOCC1/P6OD (Port 6 Open Drain Control Register)
6.3 TCC and WDT Prescaler Two 8-bit counters are available as prescalers for the TCC (Time Clock Counter) and WDT (Watchdog Timer). The TCCP2~TCCP0 bits of the IOC71 register are used to determine the ratio of the TCC prescaler. Likewise, the WDTP2~WDTP0 bits of the IOC81 register are used to determine the WDT prescaler.
Page 30
EM78P468N/EM78P468L 8-Bit Microcontroller WDT Setting Flowchart Use WDT function ? Enable WDT function : set bit 7 of Code option Word 0 to "0" Setting WDT prescaler TCC Setting Flowchart from External Input External/ instruction cycle *set clock source from external TCC pin (set bit 4 of IOC71 to "1") *set P5.6/TCC for TCC input Pin ( set bit 2 of RE to "1"...
6.4 I/O Ports The I/O registers, (Port 5, Port 6, Port 7 and Port 8), are bi-directional tri-state I/O ports. Port 6 and Port 8 are pulled-high internally by software; Port 6 is also pulled-low internally by software. Furthermore, Port 6 has its open-drain output also through software. Port 6 and Port 8 features an input status changed interrupt (or wake-up) function and is pulled-high by software.
Page 32
EM78P468N/EM78P468L 8-Bit Microcontroller Table 2 Summary of Registers Initialized Values Address Name Reset Type Bit Name Power-on IOC50 0x05 /RESET & WDT (P5CR) Wake-up from Pin Change Bit Name Power-on IOC60 0x06 /RESET & WDT (P6CR) Wake-up from Pin Change Bit Name Power-on IOC70...
Page 33
Address Name Reset Type Bit Name Power-on IOC71 0x07 /RESET & WDT (TCCCR) Wake-up from Pin Change Bit Name Power-on IOC81 0x08 /RESET &WDT (WDTCR) Wake-up from Pin Change Bit Name Power-on IOC91 0x09 /RESET & WDT (CNT12CR) Wake-up from Pin Change Bit Name Power-on...
Page 34
EM78P468N/EM78P468L 8-Bit Microcontroller Address Name Reset Type Bit Name Power-on 0x05 /RESET & WDT (Port 5) Wake-up from Pin Change Bit Name Power-on 0x06 /RESET & WDT (Port 6) Wake-up from Pin Change Bit Name Power-on /RESET & WDT (Port 7) Wake-up from Pin Change Bit Name...
Page 35
The controller can be awakened from sleep mode and idle mode. The wake-up signals are listed as follows: Wake-up Signal TCC time out IOCF0 Bit 0=1 INT0 pin IOCF0 Bit 1=1 INT1 pin IOCF0 Bit 2=1 Counter 1 IOCF0 Bit 3=1 Counter 2 IOCF0 Bit 4=1 High-pulse timer...
EM78P468N/EM78P468L 8-Bit Microcontroller 6.6 Oscillator 6.6.1 Oscillator Modes The EM78P468N/EM78P468L can operate in three different oscillator modes i.e., a.) Main oscillator (R-OSCI, OSCO), such as RC oscillator with external resistor and Internal capacitor mode (ERIC); b.) Crystal oscillator mode; and c.) PLL operation mode (R-OSCI connected to 0.01 μ...
Bits 6~4 (CLK2~0) of RD: main clock selection bits for PLL mode (code option select) CLK2 CLK1 × 6.6.3 Crystal Oscillator/Ceramic Resonators (Crystal) This LSI can be driven by an external clock signal through the R-OSCI pin as shown in Fig.6-7 below.
EM78P468N/EM78P468L 8-Bit Microcontroller 6.6.4 RC Oscillator Mode with Internal Capacitor If both precision and cost are taken into consideration, this LSI also offers a special oscillation mode, which has an on-chip internal capacitor and an external resistor connected to VDD. The internal capacitor functions as temperature compensator. In order to obtain more accurate frequency, a precise resistor is recommended.
6.7.1 External Power-on Reset Circuit This circuit implements an external RC to produce a reset pulse (see Fig. 6-10). The pulse width (time constant) should be kept long enough to allow VDD to reach minimum operation voltage. This circuit is used when the power supply rise time is slow. Because the current leakage from the /RESET pin is ±...
Table 3 Interrupt Vector Interrupt Vector 0003H 0006H 0009H 000CH 000FH 0012H 0015H 0018H 6.9 LCD Driver This LSI can drive an LCD of up to 32 segments and 4 commons that can drive a total of 4 × 32 dots. The LCD block is made up of an LCD driver, display RAM, segment output pins, common output pins, and LCD operating power supply pins.
EM78P468N/EM78P468L 8-Bit Microcontroller When the LCD function is disabled, all common/segment output is set to ground (GND) level Bit 3: Not used Bit 2 (LCDTYPE): LCD drive waveform type select bit LCDTYPE = “0”: “ A” type waveform LCDTYPE = “1”: “ B” type waveform Bits 1 ~ 0 (LCDF1 ~ LCDF0): LCD frame frequency control bits LCDF1 LCDF0...
6.9.4 RD/SBPCR (System, Booster and PLL Control Registers) Bit 7 Bit 6 − CLK2 Bit 2 ~ 1 (BF1 ~ 0): LCD booster frequency select bits The initial setting flowchart for LCD function *Set Port 7 snd Port 8 for general I/O or LCD segment (IOC50) *it must be set to output port w hen the pin of port 7 and the pin of port 8 for LCD segemnt (IOC70 and IOC80) Set LCD Type, duty, bias, LCD frame frequency (R9)
Page 44
EM78P468N/EM78P468L 8-Bit Microcontroller 38 • Boosting circuits connection for LCD voltage VLCD2(2*VDD/3) VLCD3(1*VDD/3) External circuit for 1/3 Bias VLCD2(VDD/2) VLCD3(VDD/2) External circuit for 1/2 Bias Fig. 6-15 Charge Bump Circuit Connection (Cext=0.1 Product Specification (V1.5) 02.15.2007 (This specification is subject to change without further notice) μ...
Page 45
1 frame COM 0 COM 1 SEG N SEG N - COM0 SEG N - COM1 1/2 bias, 1/2 duty A type Fig. 6-16 LCD Waveform for 1/2 Bias, 1/2 Duty 1 frame COM 0 COM 1 COM 2 SEG N SEG N - COM0 SEG N - COM1 1/2 bias, 1/3 duty...
Page 46
EM78P468N/EM78P468L 8-Bit Microcontroller 1 frame COM 0 COM 1 COM 2 SEG N SEG N - COM0 SEG N - COM1 1/3 bias, 1/3 duty A type Fig. 6-18 LCD Waveform for 1/3 Bias, 1/3 Duty 1 frame COM 0 COM 1 COM 2 SEG N...
6.10 Infrared Remote Control Application/PWM Waveform Generate This LSI can output infrared carrier in user-friendly or in PWM standard waveform. The IR and PWM waveform generated functions include an 8-bit down count timer/counter, high-pulse width timer, low-pulse width timer, and IR control register. The IR system block diagram is shown in Fig.
Page 48
EM78P468N/EM78P468L 8-Bit Microcontroller The IROUT output waveform is further explained in the following figures: Fig. 6-21 LGP=0, HF=1, the IROUT waveform can modulate Fcarrier waveform when in low-pulse width time. Fig. 6-22 LGP=0, HF=0, the IROUT waveform cannot modulate Fcarrier waveform when in low-pulse width time.
Page 50
EM78P468N/EM78P468L 8-Bit Microcontroller IR/PWM Function Enable Flowchart Start SET P5.7 to Output state (IOC 50) SET P5.7 for IR/PWM Function Output Pin (RE) SET Counter 2 clock source and prescaler (IOC91) SET High pulse width timer, Low pulse width timer clock source and prescaler (IOCA1) SET Counter 2 (IOC0) , High pulse width timer (IOD0) , Low pulse width timer (IOCE0) preset value...
6.11 Code Options The EM78P468N/L has one Code Option word that is not a part of the normal program memory. The option bits cannot be accessed during normal program execution. Code Option Register and Customer ID Register arrangement distribution: Word 1 of code options is for customer ID code application. Word 1 Bit 12~Bit 0 Word 0 of Code Options is for IC function setting.
EM78P468N/EM78P468L 8-Bit Microcontroller Bit 3 (HLP): Power consumption selection. If the system usually runs in green mode, it must be set to low power consumption to help support the energy saving issue. It is recommended that low power consumption mode is selected. HLP = “0”: Low power consumption mode HLP = “1”: High power consumption mode Bits 2~0 (PR2~PR0): Protect Bit...
Page 53
Convention: R = Register designator that specifies which one of the registers (including operation and general purpose registers) is to be utilized by the instruction. b = Bit field designator that selects the value for the bit located in the register R and which affects the operation.
6.13 Timing Diagram AC Test Input/Output Waveform AC Testing : Input is driven at 2.4V for logic "1",and 0.4V for logic "0".Timing measurements are RESET Timing (CLK="0") /RESET TCC Input Timing (CLKS="0") Port (n+1) Port (n) n = 0 , 2 , 4 , 6 Product Specification (V1.5) 02.15.2007 (This specification is subject to change without further notice) TEST POINTS...
EM78P468N/EM78P468L 8-Bit Microcontroller Absolute Maximum Ratings Items Supply voltage Input voltage Output voltage Operation temperature Storage temperature Power consumption Operating Frequency 50 • Symbol Condition Min. − GND-0.3 Port 5 ~ Port 8 GND-0.3 Port 5 ~ Port 8 GND-0.3 −...
Electrical Characteristic 8.1 DC Electrical Characteristics Ta= -40 ° C ~85 ° C, VDD= 5.0V, GND= 0V Symbol Parameter Crystal: VDD to 5V Sub-oscillator External R, Internal C for Sub-oscillator ERIC External R, Internal C for Sub-oscillator Input Leakage Current for Input pins VIN = VDD, GND Input High Threshold Voltage VIH1 (Schmitt Trigger)
Page 58
EM78P468N/EM78P468L 8-Bit Microcontroller Ta= -40 ° C ~85 ° C, VDD= 3.0V, GND= 0V Symbol Parameter Crystal: VDD to 5V Sub-oscillator External R, Internal C for Sub-oscillator ERIC External R, Internal C for Sub-oscillator Input Leakage Current for Input pins VIN = VDD, GND Input High Threshold Voltage VIH1 (Schmitt Trigger)
8.2 AC Electrical Characteristics Ta=- 40 ° C ~ 85 ° C, VDD=5V ± 5%, GND=0V Symbol Dclk Input CLK duty cycle Instruction cycle time Tins (CLKS="0") Ttcc TCC input period Tdrh Device reset hold time Trst /RESET pulse width Twdt Watchdog timer period Tset...
EM78P468N/EM78P468L 8-Bit Microcontroller 8.3 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 characteristics illustrated herein are not guaranteed for its accuracy. In some graphs, the data may be out of the specified warranted operating range.
Page 61
Vih/Vil (Port 7, Port 8 All Input pins with schmitt inverter) Vih Max. (-40 ℃ Vih Typ. (+25 ℃ ) Vih Min. (-40 ℃ Fig. 8-3 Vih, Vil of Port 7 and Port 8 vs. VDD P5.7 Voh/Ioh (VDD=5V, IROCS="0") Min : +85 ℃...
Page 62
EM78P468N/EM78P468L 8-Bit Microcontroller P5.7 Voh/Ioh (VDD=5V, IROCS="1") Min : +85 ℃ Typ : +25 ℃ Max : -40 ℃ Voh (Volt) Fig. 8-5 Port 5.7 Voh vs. Ioh, [ VDD=3V, 5V, IROCS (Bit 7 of IOC61) =” 1 ” ] P5.4~6, PORT 6~8 Voh/Ioh (VDD=5V) Min : +85 ℃...
Page 63
P5.7 Voh/Ioh (VDD=5V, IROCS="0") Max : -40 ℃ Typ : +25 ℃ Min : +85 ℃ Voh (Volt) Fig. 8-7 Port 5.7 Vol vs. Iol, [ VDD=3V, 5V, IROCS (Bit 7 of IOC61) =” 0 ” ] P5.7 Voh/Ioh (VDD=5V, IROCS="1") Max : -40 ℃...
Page 64
EM78P468N/EM78P468L 8-Bit Microcontroller P5.4~5.6, PORT 6, 7, 8 Voh/Ioh (VDD=5V) Max : -40 ℃ Typ : +25 ℃ Min : +85 ℃ Voh (Volt) Fig. 8-9 Port 6, Port 7 and Port 8 Vol vs. Iol [ VDD=3V, 5V ] Setup time from Power ON Reset Fig.
Page 65
Typical RC OSC Frequency (R-OSCI Pin) R = 51 K R = 100 K R = 300 K VDD (Volt) Fig. 8-11 Typical ERIC OSC Frequency vs. VDD (Temperature at 25 Fig. 8-12 Typical ERIC OSC Frequency vs. Temperature (R-OSCI Pin) Product Specification (V1.5) 02.15.2007 (This specification is subject to change without further notice) Typical RC OSC Frequency (Xin Pin)
Page 66
EM78P468N/EM78P468L 8-Bit Microcontroller Fig. 8-13 Typical ERIC OSC Frequency vs. Temperature (Xin Pin) There are four conditions or modes for the Operating Current ICC1 to ICC4. These conditions are as follows: ISB (Sleep Mode): Fm and Fs is stop, all function are off. ICC1 (Idle Mode): Fm Stop and Fs=32kHz, two clocks, CPU off, LCD enable and WDT Enable.
Page 67
Fig. 8-14 Typical Power Consumption on Normal Mode Operation (Fm=4MHz) Maximum ICC3 vs. Temerature Fig. 8-15 Maximum Power Consumption on Normal Mode Operation (Fm=4MHz) Product Specification (V1.5) 02.15.2007 (This specification is subject to change without further notice) Typical ICC3 vs. Temerature VDD=5V VDD=3V Temperature ( ℃...
Page 68
EM78P468N/EM78P468L 8-Bit Microcontroller Fig. 8-16 Typical Power Consumption on Green Mode Operation Maximum ICC2 vs. Temerature Fig. 8-17 Maximum Power Consumption on Green Mode Operation 62 • Typical I CC2 vs. Temerature VDD=5V VDD=3V Temperature ( ℃ ) VDD=5V VDD=3V Temperature ( ℃...
Page 69
Fig. 8-18 Typical Power Consumption on Idle Mode Operation Maximum ICC1 vs. Temerature Fig. 8-19 Maximum Power Consumption on Idle Mode Operation Product Specification (V1.5) 02.15.2007 (This specification is subject to change without further notice) Typical ICC1 vs. Temerature VDD=5V VDD=3V Temperature ( ℃...
Page 70
EM78P468N/EM78P468L 8-Bit Microcontroller Fig. 8-20 Typical Power Consumption on Sleep Mode Operation Fig. 8-21 Maximum Power Consumption on Sleep Mode Operation 64 • Typical ISB vs. Temerature VDD=5V VDD=3V Temperature ( ℃ ) Maximun ISB vs. Temerature VDD=5V VDD=3V Temperature ( ℃ ) Product Specification (V1.5) 02.15.2007 (This specification is subject to change without further notice)
Page 71
EM78P468N/EM78P468L 8-Bit Microcontroller ° ° Fig. 8-22 Operating Voltage under Temperature Range of 0 C to 70 ° ° Fig. 8-23 Operating Voltage under Temperature Range of -40 C to +85 • 65 Product Specification (V1.5) 02.15.2007 (This specification is subject to change without further notice)
A Package Type Name EM78P468LH EM78P468NQ EM78P468NQS/NQJ EM78P468NAQ EM78P468NAQS/NAQJ EM78P468NBQ EM78P468NBQS/NBQJ EM78P468NCQ EM78P468NCQS/NCQJ Note: Green products do not contain hazardous substances. These are compatible with the third edition of Sony SS-00259 standard. The Pb content should be less than 100ppm, and should meet Sony specifications or requirements.
C EM78P468N/L Program Pin List DWRT is used to program the EM78P468N/L IC’s. The connector of DWTR are select by CON4 (EM78P451), and the software is selected by EM78P468N/L. Program Pin Name ACLK DINCLK DATAIN /PGMB /OEB Wiring diagram is for ELAN DWTR Product Specification (V1.5) 02.15.2007 (This specification is subject to change without further notice) EM78P468N/EM78P468L...
E Quality Assurance and Reliability Test Category Solder temperature=245±5°C, for 5 seconds up to the Solderability stopper using a rosin-type flux Step 1: Step 2: Step 3: Pre-condition Step 4: IR flow 3 cycles Temperature cycle test -65°C (15mins)~150°C (15mins), 200 cycles TA =121°C, RH=100%, pressure=2 atm, Pressure cooker test TD (endurance)= 96 hrs...
Need help?
Do you have a question about the MiEM78P468L and is the answer not in the manual?
Questions and answers