Page 4
Contents ABSOLUTE MAXIMUM RATINGS ... 34 DC ELECTRICAL CHARACTERISTICS ... 34 DC Electrical Characteristic... 34 AC Electrical Characteristic... 35 Device Characteristic ... 36 Package Types... 50 Package Information... 50 Doc. Version iv • APPENDIX Specification Revision History Revision Description Initial version Add four kinds of package type Date 10/29/2004...
GENERAL DESCRIPTION EM78P447N is an 8-bit microprocessor with low-power and high-speed CMOS technology and high noise immunity. It is equipped with 4K*13-bits Electrical One Time Programmable Read Only Memory (OTP-ROM). It provides three PROTECTION bits to prevent user’s code in the OTP memory from being intruded. Seven OPTION bits are also available to meet user’s requirements.
EM78P447N 8-Bit Microcontroller with OTP ROM Table 5 EM78P447NDK and EM78P447NDM Pin Description Symbol Pin No. Type OSCI OSCO /RESET P50~P54 6~9,1 P71~P77 11~17 /INT FUNCTION DESCRIPTION O S C I O S C O /R E S E T O s c illa to r/T im in g C o n tro l P re s c a le...
4.1 Operational Registers 4.1.1 R0 (Indirect Addressing Register) R0 is not a physically implemented register. Its major function is to act as an indirect addressing pointer. Any instruction using R0 as a pointer actually accesses data pointed by the RAM Select Register (R4). 4.1.2 R1 (Time Clock /Counter) Increased by an external signal edge, which is defined by TE bit (CONT-4) through the TCC pin, or by the instruction cycle clock.
Page 12
EM78P447N 8-Bit Microcontroller with OTP ROM All instruction are single instruction cycle (fclk/2 or fclk/4) except for the instruction that would change the contents of R2. Such instruction will need one more instruction cycle. A11 A10 A9 A8 CALL RETL RETI 00 PAGE0 0000~03FF 01 PAGE1 0400~07FF...
Page 13
Aaddress (Indirect Addressing Register) (Time Clock Counter) (Program Counter) (Status Register) (RAM Select Register) (Port5) (Port6) (Port7) ︰ Bank0 : (Interrupt Status Register) Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice) R PAGE registers CONT (Control Register) IOC5 IOC6 IOC7...
EM78P447N 8-Bit Microcontroller with OTP ROM 4.1.4 R3 (Status Register) Bit 7 (GP) General read/write bit. Bits 6 (PS1) ~ 5 (PS0) Page select bits. PS1~PS0 are used to pre-select a program memory page. When executing a "JMP", "CALL", or other instructions which causes the program counter to change (e.g.
4.1.8 R3F (Interrupt Status Register) Bit 7 Bit 3 (EXIF) Bit 0 (TCIF) Bits 1, 2, 4~7 are not used and read are as “0”. "1" means interrupt request, "0" means non-interrupt. R3F can be cleared by instruction, but cannot be set by instruction. IOCF is the interrupt mask register.
EM78P447N 8-Bit Microcontroller with OTP ROM Bit 4 (TE) Bit 3 (PAB) Bit 2 (PSR2) ~ Bit 0 (PSR0) TCC/WDT prescaler bits. PSR2 PSR1 4.2.3 IOC5 ~ IOC7 (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.
4.2.5 IOCE (WDT Control Register) Bit 6 (ODE) Control bit is used to enable the open-drain of P76 and P77 pins Bit 5 (WDTE) Control bit used to enable Watchdog timer. Bit 4 (SLPC) This bit is set by hardware at the low level trigger of wake-up signal and Bit 3 (ROC) ROC is used for the R-option.
EM78P447N 8-Bit Microcontroller with OTP ROM Bit 0 (/WUE) Control bit is used to enable the wake-up function of P74 and P75. Bits 1~2, and 7 Not used. 4.2.6 IOCF (Interrupt Mask Register) Bit 3 (EXIE) EXIF interrupt enable bit. Bit 0 (TCIE) TCIF interrupt enable bit.
4.3 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 the CONT register is used to determine the prescaler assignment. The PSR0~PSR2 bits determine the ratio.
EM78P447N 8-Bit Microcontroller with OTP ROM 4.4 I/O Ports The I/O registers, Port 5, Port 6, and Port 7, are bi-directional tri-state I/O ports. The functions of Pull-high, R-option, and Open-drain can be performed internally by CONT and IOCE respectively. There is input status change wake-up function on Port 6, P74, and P75.
4.5 RESET and Wake-up 4.5.1 RESET A RESET is initiated by one of the following events- (1) Power on reset, or (2) /RESET pin input “low”, or (3) WDT timeout. (if enabled) The device is kept in a RESET condition for a period of approx. 18ms start-up timer period) after the reset is detected.
Page 22
EM78P447N 8-Bit Microcontroller with OTP ROM (A) Any of the wake-up pins is “0” as illustrated in Figure. 5. Upon waking, the controller will continue to execute the succeeding address. Under this case, before entering SLEEP2 MODE, the wake-up function of the trigger sources (P60~P67 and P74~P75) should be selected (e.g., input pin) and enabled (e.g., pull-high, wake-up control).
Page 23
After waking up from the SLEEP2 mode, WDT is automatically enabled WDT enabled/disabled operation after waking up from SLEEP2 mode should be appropriately defined in the software. To avoid reset from occurring when the port6 status changed interrupt enters into interrupt vector or is used to wake-up the MCU, the WDT prescaler must be set above 1:1 ratio.
Page 24
EM78P447N 8-Bit Microcontroller with OTP ROM Address Name Reset Type Wake-Up from Pin Change Bit Name 0x05 R5(P5) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name 0x06 R6(P6) Power-On /RESET and WDT Wake-Up from Pin Change Bit Name 0x07 R7(P7) Power-On...
4.5.2 The Status of RST, 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, and 3. Watchdog timer time-out. The values of T and P (listed in Table 8 below) are used to verify the event that triggered the processor to wake up.
EM78P447N 8-Bit Microcontroller with OTP ROM Oscillator Power-on Reset Voltage Detector WDTE /RESET 4.6 Interrupt The EM78P447N has two interrupts listed below: (1) TCC overflow interrupt (2) External interrupt (/INT pin). R3F is the interrupt status register that records the interrupt requests in the relative flags/bits.
/IRQn /RESET 4.7 Oscillator 4.7.1 Oscillator Modes The EM78P447N can operate in three different oscillator modes, i.e., high XTAL (HXT) oscillator mode, low XTAL (LXT) oscillator mode, and External RC oscillator mode (ERC) oscillator mode. User can select one of them by programming MS, HLF and HLP in the Code Option Register.
EM78P447N 8-Bit Microcontroller with OTP ROM Table 11 The Summary of Maximum Operating Speeds Two cycles with two clocks 4.7.2 Crystal Oscillator/Ceramic Resonators(XTAL) EM78P447N can be driven by an external clock signal through the OSCI pin as shown in Fig. 10 below. In most applications, Pin OSCI and Pin OSCO can be connected with a crystal or ceramic resonator to generate oscillation.
Table 12 Capacitor Selection Guide for Crystal Oscillator or Ceramic Resonator Oscillator Type Ceramic Resonators Crystal Oscillator 4.7.3 External RC Oscillator Mode For some applications that do not need a very precise timing calculation, the RC oscillator (Fig. 15) offers a lot of cost savings. Nevertheless, it should be noted that the frequency of the RC oscillator is influenced by the supply voltage, the values of the resistor (Rext), the capacitor (Cext), and even by the operation temperature.
EM78P447N 8-Bit Microcontroller with OTP ROM Table 13 RC Oscillator Frequencies Cext 20 pF 100 pF 300 pF 4.8 CODE Option Register The EM78P447N 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: 4.8.1 Code Option Register (Word 0) Bit12...
Page 31
Bit 8 (CLKS): Instruction period option bit. Bit 7(ENWDTB): Watchdog timer enable bit. Bit 6: Bit 5 (HLF): XTAL frequency selection This bit will affect system oscillation only when Bit4 (OSC) is “1”. When OSC is”0”, HLF must be “0”. The transient point of system frequency between HXT and LXY is around 400 KHz.
EM78P447N 8-Bit Microcontroller with OTP ROM 4.8.2 Customer ID Register (Word 1) Bit 12~0: Customer’s ID code 4.9 Power On Considerations Any microcontroller is not guaranteed to start and operate properly before the power supply stays at its steady state. EM78P447N is equipped with Power On Voltage Detector(POVD) with a detecting level is 2.0V.
4.11 Residue-Voltage Protection When battery is replaced, device power (Vdd) is taken off but residue-voltage remains. The residue-voltage may trips below Vdd minimum, but not to zero. This condition may cause a poor power on reset. Fig.16 and Fig.17 show how to build the residue-voltage protection circuit.
EM78P447N 8-Bit Microcontroller with 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 consists of 2 oscillator periods), unless the program counter is changed by instruction "MOV R2,A", "ADD R2,A", or by instructions of arithmetic or logic operation on R2 (e.g.
4.13 Timing Diagram AC Test Input/O utput W aveform AC T estin g : In p u t is d riven at 2.4V fo r lo g ic "1",an d 0.4V fo r lo g ic "0".T im in g m easu rem en ts are m ad e at 2.0V fo r lo g ic "1",an d 0.8V fo r lo g ic "0".
EM78P447N 8-Bit Microcontroller with OTP ROM ABSOLUTE MAXIMUM RATINGS Items Temperature under bias Storage temperature Input voltage Output voltage Operating Frequency (2clk) Operating Voltage DC ELECTRICAL CHARACTERISTICS 6.1 DC Electrical Characteristic (Ta= 25 °C, VDD= 5.0V±5%, VSS= 0V ) Symbol Parameter XTAL: VDD to 3V XTAL: VDD to 5V...
Symbol Parameter ISB2 Power down current 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=5V) at two cycles/two clocks Operating supply current ICC4 (VDD=5V) at two cycles/four clocks 6.2 AC Electrical Characteristic (Ta=- -40°C ~ 85 °C, VDD=5V±5%, VSS=0V) Symbol...
EM78P447N 8-Bit Microcontroller with OTP ROM 6.3 Device characteristic The graphic 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 graphic, the data maybe out of the specified warranted operating range.
Page 41
Fig.18 Port5, Port6, and Port7 Voh vs. Ioh,VDD=5V Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice) Voh/Ioh (VDD=5V) Min 85 ℃ Typ 25 ℃ Max -40 ℃ Voh(Volt) EM78P447N 8-Bit Microcontroller with OTP ROM • 37...
Page 42
EM78P447N 8-Bit Microcontroller with OTP ROM Fig.19 Port5, Port6, and Port7 Voh vs. Ioh, VDD=3V 38 • Voh/Ioh (VDD=3V) Min 85 ℃ Typ 25 ℃ Max -40 ℃ Voh(Volt) (This specification is subject to change without further notice) Product Specification (V1.1) 03.30.2005...
Page 43
Fig. 20 Port5, and Port6 Vol vs, Iol, VDD=5V Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice) Vol/Iol (VDD=5V) Max -40 ℃ Typ 25 ℃ Min 85 ℃ Vol(Volt) EM78P447N 8-Bit Microcontroller with OTP ROM •...
Page 44
EM78P447N 8-Bit Microcontroller with OTP ROM Fig. 21 Port5, and Port6 Vol vs. Iol, VDD=3V 40 • Vol/Iol (VDD=3V) Max -40 ℃ Typ 25 ℃ Min 85 ℃ Vol(Volt) (This specification is subject to change without further notice) Product Specification (V1.1) 03.30.2005...
Page 45
Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice) Vol/Iol (5V) Max -40 ℃ Typ 25 ℃ Min 85 ℃ Vol(Volt) Fig. 22 Port7 Vol vs. Iol, VDD=5V EM78P447N 8-Bit Microcontroller with OTP ROM • 41...
Page 46
EM78P447N 8-Bit Microcontroller with OTP ROM 42 • Vol/Iol (3V) Max -40 ℃ Typ 25 ℃ Min 85 ℃ Vol(Volt) Fig. 23 Port7 Vol vs. Iol, VDD=3V (This specification is subject to change without further notice) Product Specification (V1.1) 03.30.2005...
Page 47
Fig. 24 WDT Time Out Period vs. VDD, Prescaler Set to 1 : 1 Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice) WDT Time_out VDD (Volt) EM78P447N 8-Bit Microcontroller with OTP ROM Max 85 ℃ Max 75 ℃...
Page 48
EM78P447N 8-Bit Microcontroller with OTP ROM Fig. 25 Typical RC OSC Frequency vs. VDD 44 • Cext=100pF, Typical RC OSC Frequency R=3.3k R=5.1k R=10k R=100k VDD(Volt) ( Cext=100pF, Temperature at 25 (This specification is subject to change without further notice) ℃)...
Page 49
ERC OSC Frequency vs Temp.(Cext=100pF, Rext=5.1K) 1.005 0.995 0.99 0.985 0.98 Fig. 26 Typical RC OSC Frequency vs. Temperature 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.
Page 50
EM78P447N 8-Bit Microcontroller with OTP ROM Maximum ICC1 and ICC2 vs. Temperature Fig. 28 Maximum Operating Current Typical ICC3 and ICC4 vs. Temperature Fig. 29 Typical Operating Current 46 • Max ICC2 Max ICC1 Temperature (℃) ( ICC1 and ICC2 Typ ICC4 Typ ICC3 Temperature (℃)
Page 51
Maximum ICC3 and ICC4 vs. Temperature Fig. 30 Maximum Operating Current Two conditions exist with the standby current ISB1 and ISB2. these conditions are as follow: ISB1:VDD=5V, WDT disable ISB2:VDD=5V, WDT enable Fig. 31 Typical Standby Current Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice) Max ICC4 Max ICC3...
Page 52
EM78P447N 8-Bit Microcontroller with OTP ROM Maximum ISB1 and ISB2 vs. Temperature Fig. 32 Maximum Standby Current Fig. 33 Operating Voltage In Temperature Range from -40 48 • Max ISB2 Max ISB1 Temperature (℃) ( ISB1 and ISB2 Operating voltage (-40℃~85℃) VDD (Volt) (This specification is subject to change without further notice) )...
Page 53
Fig. 34 EM78P447N I-V Curve Operating at 4 MHz Fig. 35 EM78P447N I-V Curve Operating at 32.768 kHz Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice) 8-Bit Microcontroller with OTP ROM EM78P447N HXT I-V Volt(V) EM78P447N LXT I-V Volt(V) EM78P447N...
EM78P447N 8-Bit Microcontroller with OTP ROM A Package Types OTP MCU EM78P447NCP EM78P447NCM EM78P447NDK EM78P447NDM EM78P447NAP EM78P447NAM EM78P447NAS EM78P447NBP EM78P447NBWM B Package Information 20-Lead plastic dual inline package(DIP)- 300 mil 50 • APPENDIX Package Type Pin Count Skinny DIP SSOP Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice) Package Size...
Page 55
24-Lead plastic dual inline skinny package(DIP)- 300 mil 28-Lead plastic dual inline package(DIP)- 600 mil Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice) 8-Bit Microcontroller with OTP ROM EM78P447N Symbal Normal 5.334 0.381 3.175 3.302 3.429 0.203 0.254...
Page 56
EM78P447N 8-Bit Microcontroller with OTP ROM 32-Lead plastic dual inline package(DIP)- 600 mil 20-Lead plastic small outline package(SOP)- 300 mil 52 • Symbal 2.350 0.102 0.230 7.400 10.000 12.600 0.630 θ TITLE: SOP-20L(300MIL) PACKAGE OUTLINE DIMENSION File : Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice) Normal 2.650...
Page 57
24-Lead plastic small outline package(SOP)- 300 mil 28-Lead plastic small outline package(SOP)- 300 mil Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice) 8-Bit Microcontroller with OTP ROM Symbal 10.000 15.200 θ TITLE: SOP-24L(300MIL) PACKAGE OUTLINE DIMENSION File : EM78P447N...
Page 58
EM78P447N 8-Bit Microcontroller with OTP ROM 32-Lead plastic small outline package(SOP)- 300 mil 28-Lead Shrink Small Outline Package(SSOP)- 209 mil 54 • Product Specification (V1.1) 03.30.2005 (This specification is subject to change without further notice)
Need help?
Do you have a question about the 8-Bit Microcontroller with OTP ROM EM78P447N and is the answer not in the manual?
Questions and answers