EM78P153A ELANMicroelectronics
EM78P153A ELANMicroelectronics
EM78P153A ELANMicroelectronics
8-Bit Microcontroller
with OTP ROM
Product
Specification
DOC. VERSION 1.3
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. ELAN Microelectronics
makes no commitment to update, or to keep current the information and material contained in this specification.
Such information and material may change to conform to each confirmed order.
In no event shall ELAN Microelectronics be made responsible for any claims attributed to errors, omissions, or
other inaccuracies in the information or material contained in this specification. ELAN Microelectronics shall not
be liable for direct, indirect, special incidental, or consequential damages arising from the use of such information
or material.
The software (if any) described in this specification is furnished under a license or nondisclosure agreement, and
may be used or copied only in accordance with the terms of such agreement.
ELAN Microelectronics products are not intended for use in life support appliances, devices, or systems. Use of
ELAN Microelectronics product in such applications is not supported and is prohibited.
NO PART OF THIS SPECIFICATION MAY BE REPRODUCED OR TRANSMITTED IN ANY FORM OR BY
ANY MEANS WITHOUT THE EXPRESSED WRITTEN PERMISSION OF ELAN MICROELECTRONICS.
Contents
1 General Description .................................................................................................. 1
2 Features ..................................................................................................................... 1
3 Pin Assignment ......................................................................................................... 2
4 Pin Description.......................................................................................................... 3
4.1 EM78P153AD14/SO14 ...................................................................................... 3
5 Functional Description ............................................................................................. 4
5.1 Operational Registers......................................................................................... 4
5.1.1 R0 (Indirect Addressing Register) .......................................................................4
5.1.2 R1 (Timer Clock /Counter) ..................................................................................4
5.1.3 R2 (Program Counter) and Stack........................................................................5
5.1.4 R3 (Status Register) ............................................................................................7
5.1.5 R4 (RAM Select Register)...................................................................................7
5.1.6 R5 ~ R6 (Port 5 ~ Port 6) ....................................................................................7
5.1.7 RF (Interrupt Status Register) .............................................................................8
5.1.8 R10 ~ R2F ...........................................................................................................8
5.2 Special Function Registers................................................................................. 9
5.2.1 A (Accumulator)...................................................................................................9
5.2.2 CONT (Control Register).....................................................................................9
5.2.3 IOC5 ~ IOC6 (I/O Port Control Register) ............................................................9
5.2.4 IOCB (Pull-down Control Register) ...................................................................10
5.2.5 IOCC (Open-drain Control Register).................................................................10
5.2.6 IOCD (Pull-high Control Register).....................................................................10
5.2.7 IOCE (WDT Control Register) ...........................................................................11
5.2.8 IOCF (Interrupt Mask Register).........................................................................12
5.3 TCC/WDT and Prescaler.................................................................................. 13
5.4 I/O Ports ........................................................................................................... 13
5.5 Reset and Wake-up.......................................................................................... 17
5.5.1 Reset .................................................................................................................17
5.5.2 Summary of Registers Initialized Values...........................................................19
5.5.3 Status of RST, T, and P of the Status Register..................................................21
5.6 Interrupt ............................................................................................................ 22
5.7 Oscillator .......................................................................................................... 23
5.7.1 Oscillator Modes................................................................................................23
5.7.2 Crystal Oscillator/Ceramic Resonators (Crystal)...............................................24
5.7.3 External RC Oscillator Mode.............................................................................25
5.7.4 Internal RC Oscillator Mode ..............................................................................27
APPENDIX
A Package Type........................................................................................................... 50
B Package Information............................................................................................... 51
C Application Notes.................................................................................................... 51
1 General Description
The EM78P153A is an 8-bit microprocessor designed and developed with low-power and high-speed CMOS
technology. It has an on-chip 1024×13-bit Electrical One Time Programmable Read Only Memory
(OTP-ROM). It provides a protection bit to prevent intrusion of user’s OTP memory code. Fifteen Code
option bits are also available to meet user’s requirements.
With its enhanced OTP-ROM feature, the EM78P153A provides a convenient way of developing and
verifying user’s programs. Moreover, this OTP device offers the advantages of easy and effective program
updates, using development and programming tools. User can avail of the ELAN Writer to easily program his
development code.
2 Features
CPU Configuration Peripheral Configuration
• 1K×13 bits on-chip ROM • 8-bit real time clock/counter (TCC) with
• 32×8 bits on-chip registers (SRAM, selective signal sources, trigger edges,
general purpose) and overflow interrupt
• 5 level stacks for subroutine nesting Three available Interrupts:
• Less than 1.5 mA at 5V/4MHz • TCC overflow interrupt
• Typically 15 μA, at 3V/32kHz • Input-port status changed interrupt
• Typically 1 μA, during Sleep mode (wake-up from sleep mode)
I/O Port Configuration • External interrupt
• 2 bidirectional I/O ports : P5, P6 Special Features
• 1 Input and 11 I/O pins • Programmable free running watchdog
• Wake-up port : P6 timer
• 6 Programmable pull-down I/O pins • Power saving Sleep mode
• 7 programmable pull-high I/O pins • Selectable Oscillation mode
• 7 programmable open-drain I/O pins Other Features
• External interrupt : P60 • Programmable prescaler of oscillator
Operating Voltage Range: set-up time
• OTP version: • One security register to prevent intrusion
Operating voltage range: 2.3V~5.5V of user’s OTP memory code
Operating Temperature range: 0~70°C • One configuration register to match user’s
Operating Frequency range (base on 2 clocks): requirement
• Crystal Mode:
• Two clocks per instruction cycle
DC~20MHz/2clks @ 5V; DC~100ns inst. cycle @ 5V • Two LVD level selection / POR
DC~8MHz/2clks @ 3V; DC~250ns inst. cycle @ 3V (with ± 0.3V allowance for error)
DC~4MHz/2clks @ 2.3V; DC~500ns inst. cycle @ 2.3V
Package Type:
• ERC Mode:
• 14-pin DIP 300mil : EM78P153AD14J
DC~4MHz/2clks @ 5V; DC~500ns inst. cycle @ 5V
DC~4MHz/2clks @ 3V; DC~500ns inst. cycle @ 3V • 14-pin SOP 150mil : EM78P153ASO14J
DC~4MHz/2clks @ 2.3V; DC~500ns inst. cycle @ 2.3V
Note: These are Green products which do not
• IRC Mode:
contain hazardous substances.
Oscillation mode 4 MHz, 8 MHz, 1 MHz, 455kHz
Process deviation: Typ. ± 5.5%, Max. ± 6%
Temperature deviation: ±10% (0°C~70°C )
3 Pin Assignment
P50 1 14 P51
P67 2 13 P52
EM78P153AD14/SO14
P66 3 12 P53
Vdd 4 11 Vss
P65/OSCI 5 10 P60//INT
P64/OSCO 6 9 P61
P63//RST 7 8 P62/TCC
4 Pin Description
4.1 EM78P153AD14/SO14
Input Output
Name Function Description
Type Type
Bidirectional I/O pin with programmable
P50~P52 P50~P52 ST CMOS
pull-down.
P53 P53 ST CMOS Bidirectional I/O pin
Bidirectional I/O pin with programmable
P60 ST CMOS pull-down, open-drain, pull-high and pin
P60//INT change wake-up.
/INT ST − External interrupt pin
Bidirectional I/O pin with programmable
P61 P61 ST CMOS pull-down, open-drain, pull-high and pin
change wake-up.
Bidirectional I/O pin with programmable
P62 ST CMOS pull-down, open-drain, pull-high and pin
P62/TCC change wake-up.
TCC ST − Real Time Clock/Counter clock input
Legend: ST: Schmitt Trigger input, AN: analog pin, CMOS: CMOS output,
XTAL: oscillation pin for crystal/ resonator
5 Functional Description
TCC
TCC
8-level Oscillation
Instruction Generation
stack LVD
Register
(13 bit)
P5
P50 Reset
P51 Instruction
P52 Decoder
P53
Ext INT
Mux.
ALU
P6
P60 R4
P61
P62
P63
P64
RAM
P65
P66 Interrupt
P67 R3(Status
ACC control
Reg.)
circuit
User must include the initial stack program during OTP programming of
EM78P153A. However, when emulating the EM78P153A with ICE153S, the stack
initial program must not be included. See Application note under APPENDIX C.
The configuration structure generates 1024×13 bits on-chip OTP ROM addresses
to the relative programming instruction codes. One program page is 1024 words
long.
R2 is set as all "0" when under Reset condition.
"JMP" instruction allows direct loading of the lower 10 program counter bits. Thus,
"JMP" allows the PC to go to any location within a page.
"CALL" instruction loads the lower 10 bits of the PC, and then PC+1 is pushed onto
the stack. Thus, the subroutine entry address can be located anywhere within a
page.
"RET" ("RETLk", "RETI") instruction loads the program counter with the contents
of the top-level stack.
"ADD R2,A" allows the contents of ‘A’ to be added to the current PC, and the ninth
and tenth bits of the PC will increase progressively.
"MOV R2, A" allows loading of an address from the "A" register to the lower 8 bits
of the PC, and the ninth and tenth bits of the PC will remain unchanged.
Any instruction written to R2 (e.g. "MOV R2, A", "BC R2, 6",⋅etc.) will cause the
ninth bit and the tenth bit (A8 ~ A9) of the PC to remain unchanged.
All instructions are single instruction cycle (fclk/2 or fclk/4) except for instructions
that would change the contents of R2. Such instructions will need one more
instruction cycle.
00 R0 Reserve
02 R2 (PC) Reserve
03 R3 (Status) Reserve
04 R4 (RSR) Reserve
07 Reserve Reserve
08 Reserve Reserve
09 Reserve Reserve
0A Reserve Reserve
10
︰ General Registers
2F
Bit 0 (TCIF): TCC Overflow Interrupt Flag. Set when TCC overflows, reset by
software.
Bit 1 (ICIF): Port 6 input status changed interrupt flag. Set when Port 6 input changes,
reset by software.
Bit 2 (EXIF): External Interrupt Flag. Set by a falling edge on the /INT pin, reset by
software.
NOTE
The result of reading RF is the "logic AND" of RF and IOCF.
Bit 0 (OD0): Control bit used to enable open-drain of the P60 pin.
0 : Disable open-drain output
1 : Enable open-drain output
Bit 1 (OD1): Control bit used to enable open-drain of the P61 pin.
Bit 2 (OD2): Control bit used to enable open-drain of the P62 pin.
Bit 3: Not used
Bit 4 (OD4): Control bit used to enable open-drain of the P64 pin.
Bit 5 (OD5): Control bit used to enable open-drain of the P65 pin.
Bit 6 (OD6): Control bit used to enable open-drain of the P66 pin.
Bit 7 (OD7): Control bit used to enable open-drain of the P67 pin.
The IOCC Register is both readable and writable.
Bit 0 (/PH0): Control bit used to enable pull-high of the P60 pin.
0 : Enable internal pull-high
1 : Disable internal pull-high
Bit 1 (/PH1): Control bit used to enable pull-high of the P61 pin.
Bit 2 (/PH2): Control bit is used to enable pull-high of the P62 pin.
Bit 4 (/PH4): Control bit used to enable pull-high of the P64 pin.
Bit 5 (/PH5): Control bit used to enable pull-high of the P65 pin.
Bit 6 (/PH6): Control bit used to enable pull-high of the P66 pin.
Bit 7 (/PH7): Control bit used to enable pull-high of the P67 pin.
0: disable
1: enable
Bit 6 (EIS): Control bit is used to define the function of the P60 (/INT) pin.
1 : /INT, external interrupt pin. In this case, the I/O control bit of P60
(Bit 0 of IOC6) must be set to "1."
When EIS is "0," the path of /INT is masked. When EIS is "1," the status
of /INT pin can also be read by way of reading Port 6 (R6). See Figure
5-6 under Section 5.4 for reference.
EIS is both readable and writable.
0 : Disable WDT
1 : Enable WDT
NOTE
During OTP programming of EM78P153A, if the WDT time-out (if enable) or reset pin
input low occurs, it will cause the device to reset. The device reset will result to
programming error of stack function.
1
Note: Vdd = 5V, set up time period = 16.5ms ± 30% at 25°C
Vdd = 3V, set up time period = 18ms ± 30% at 25°C
Note: Pull-high (down) and open-drain are not shown in the figure.
Figure 5-6 I/O Port and I/O Control Register Circuit for P60 (/INT)
Note: Pull-high (down) and open-drain are not shown in the figure.
Figure 5-7 I/O Port and I/O Control Register Circuit for P61~P67
ICIE
D P Q
R
CLK Interrupt
_
C Q
L
ICIF
ENI Instruction
P
P60 D R Q
P61
P62 CLK Q P
R D
P63 _
C Q CLK
L
P64 _
P65 Q C
L
P66
P67
DISI Instruction
Interrupt
(Wake-up from
/SLEP SLEEP)
Next Instruction
(Wake-up from
SLEEP)
Figure 5-8 Block Diagram of I/O Port 6 with input change interrupt/wake-up
2
Vdd = 5V, set up time period = 16.8ms ± 30%
Vdd = 3V, set up time period = 18ms ± 30%
Only one of Cases 2 and 3 can be enabled before going into Sleep mode. That is,
[a] if Port 6 Input Status Change Interrupt is enabled before SLEP, WDT must be
disabled by software. However, the WDT bit in the option register remains enabled.
Hence, the EM78P153A can be awakened only by Case 1 or Case 3.
[b] if WDT is enabled before SLEP, Port 6 Input Status Change Interrupt must be
disabled. Hence, the EM78P153A can be awakened only by Case 1 or Case 2.
Refer to Section 5.6, Interrupt for further details.
If Port 6 Input Status Change Interrupt is used to wake-up the EM78P153A (Case [a]
above), the following instructions must be executed before SLEP:
CONTW
IOW RE
IOW RF
SLEP ; Sleep
NOTE
1. After waking up from sleep mode, WDT is automatically enabled. The WDT
enable/disable operation after waking up from sleep mode should be appropriately
defined in the software.
2. To avoid a reset from occurring when the Port 6 Input Status Changed Interrupt
enters into an interrupt vector or is used to wake-up the MCU, the WDT prescaler
must be set above 1:1 ratio.
3. During OTP programming of EM78P153A, if the WDT time-out (if enable) or reset pin
input low occurs, it will cause the device to reset. The device reset will result to
programming error of stack function.
Addr. Name Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Bit Name × × × × × EXIF ICIF TCIF
RF Power-on 0 0 0 0 0 0 0 0
0×0F (ISR) /RESET and WDT 0 0 0 0 0 0 0 0
Wake-up from Pin Change 0 0 0 0 0 P P P
Bit Name × /PD6 /PD5 /PD4 × /PD2 /PD1 /PD0
Power-on 1 1 1 1 1 1 1 1
0×0B IOCB
/RESET and WDT 1 1 1 1 1 1 1 1
Wake-up from Pin Change P P P P P P P P
Bit Name OD7 OD6 OD5 OD4 × OD2 OD1 OD0
Power-on 0 0 0 0 0 0 0 0
0×0C IOCC
/RESET and WDT 0 0 0 0 0 0 0 0
Wake-up from Pin Change P P P P P P P P
Bit Name /PH7 /PH6 /PH5 /PH4 × /PH2 /PH1 /PH0
Power-on 1 1 1 1 1 1 1 1
0×0D IOCD
/RESET and WDT 1 1 1 1 1 1 1 1
Wake-up from Pin Change P P P P P P P P
LVD LVD
Bit Name WDTE EIS × × × LVDF
SEL EN
0×0E IOCEPower-on 1 0 1 1 1 0 0 0
/RESET and WDT 1 0 1 1 1 0 0 0
Wake-up from Pin Change 1 P 1 1 1 P P P
Bit Name × × × × × EXIE ICIE TCIE
Power-on 1 1 1 1 1 0 0 0
0×0F IOCF
/RESET and WDT 1 1 1 1 1 0 0 0
Wake-up from Pin Change 1 1 1 1 1 P P P
Bit Name - - - - - - - -
0×10
R10~R Power-on U U U U U U U U
~
2F /RESET and WDT P P P P P P P P
0×2F
Wake-up from Pin Change P P P P P P P P
Legend: ×: Not used U: Unknown or don’t care P: Previous value before reset
*Refer to tables provided in the next section (Section 5.5.3), particularly Table 4.
5.6 Interrupt
The EM78P153A has three falling-edge interrupts as listed herewith:
1) TCC overflow interrupt
2) Port 6 Input Status Change Interrupt
3) External interrupt [(P60, /INT) pin]
Before the Port 6 Input Status Changed Interrupt is enabled, reading Port 6 (e.g. "MOV
R6, R6") is necessary. Each pin of Port 6 will have this feature if its status changes.
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 EM78P153A from
Sleep mode if Port 6 is enabled prior to going into Sleep mode by executing SLEP
instruction. When the chip wakes-up, the controller will continue to execute the
program in-line if the global interrupt is disabled. If the global interrupt is enabled, it will
branch to the interrupt Vector 008H.
RF is the interrupt status register that records the interrupt requests in the relative
flags/bits. IOCF is an interrupt mask register. The global interrupt is enabled by the
ENI instruction and is disabled by the DISI instruction. When one of the interrupts
(enabled) occurs, the next instruction will be fetched from Address 008H. Once in the
interrupt service routine, the source of an interrupt can be determined by polling the flag
bits in RF. The interrupt flag bit must be cleared by instructions before leaving the
interrupt service routine before interrupts are enabled to avoid recursive interrupts.
The flag (except ICIF bit) in the Interrupt Status Register (RF) is set regardless of the
status of its mask bit or the execution of ENI. Note that the outcome of RF will be the
logic AND of RF and IOCF (refer to Fig. 5-10). The RETI instruction ends the interrupt
routine and enables the global interrupt (the execution of ENI).
When an interrupt is generated by the INT instruction (enabled), the next instruction will
be fetched from Address 001H.
NOTE
During OTP programming of EM78P153A, if the WDT time-out (if enable) or reset pin
input low occurs, it will cause the device to reset. The device reset will result to
programming error of stack function.
5.7 Oscillator
5.7.1 Oscillator Modes
The EM78P153A can be operated in four different oscillator modes, such as External
RC oscillator mode (ERC), Internal RC oscillator mode (IRC), High Crystal oscillator
mode (HXT), and Low Crystal oscillator mode (LXT). The desired mode can be
selected by programming OSC1 and OSC2 in the Code Option register. The Table
below describes how these four oscillator modes are defined.
Note: The transient point of system frequency between HXT and LXY is 400kHz.
2.3 4.0
5.0 20.0
OSCO
EM78P153A
In most applications, pin OSCI and pin OSCO can be connected with a crystal or
ceramic resonator to generate oscillation. Figure 5-12 depicts such a circuit. The
same thing applies whether it is in the HXT mode or in the LXT mode.
In Figure 5-12-1, when the connected resonator in OSCI and OSCO is used in
applications, R1 that is 1 MΩ needs to be shunted with resonator.
C1
OSCI
EM78P153A Crystal
OSCO
C2
RS
C1
OSCI
Resonator
EM78P153A R1
OSCO
C2
The following table provides the recommended values of C1 and C2. Since each
resonator has its own attribute, refer to its specification for appropriate values of C1 and
C2. RS, a serial resistor, may be necessary for AT strip cut crystal or low frequency
mode.
In order to maintain a stable system frequency, the values of the Cext should not be
less than 20pF, and the value of Rext should not be greater than 1 MΩ. If they cannot
be kept in this range, the frequency can be easily affected by noise, humidity, and
leakage.
The smaller the Rext in the RC oscillator is, 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 discharge the current of the capacitance correctly.
Based on the above reasons, it must be kept in mind that all of the supply voltage, the
operation temperature, the components of the RC oscillator, the package types, the
way the PCB is layout, will affect the system frequency.
Vcc
Rext
OSCI
Cext
EM78P153A
1 Disable Disable 4clocks High High Disable High High High High High High High
0 Enable Enable 2clocks Low Low Enable Low Low Low Low Low Low Low
Note
This bit must be enabled and the WDTE register (IOCE reg. Bit 6) must be disabled when
Port 6 pin change wake-up function is used.
Bit 9 and Bit 8 (OSC1 and OSC0): Oscillator Modes Select bits.
Bit 6 and Bit 5 (SUT1 and SUT0): Set-up Time of device bits.
Table 10 Set-up Time of Device Programming
SUT1 SUT0 *Set-up Time
1 1 18 ms
1 0 4.5 ms
0 1 288 ms
0 0 72 ms
* Theoretical values, for reference only
Bit 4 (Type): Type selection for EM78P153A
TYPE Series
0 EM78P153A
1 ×
Since the current leakage from the /RESET pin is ± 5μA, it is recommended that R
should not be greater than 40K. In this way, the /RESET pin voltage is held below 0.2V.
The diode (D) acts as a short circuit at the moment of power down.
The capacitor C will discharge rapidly and fully. Rin, the current-limited resistor, will
prevent high current or ESD (electrostatic discharge) from flowing to pin /RESET.
Case (A) is selected by the Code Option bit, called CLK. One instruction cycle consists
of two oscillator clocks if CLK is low; and four oscillator clocks if CLK is high.
Note that once the four oscillator periods within one instruction cycle is selected as in
Case (A), the internal clock source to TCC should be CLK=Fosc/4, instead of Fosc/2.
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.
k = 8 or 10-bit constant or literal value
Binary Instruction Hex Mnemonic Operation Status Affected
0 0000 0000 0000 0000 NOP No Operation None
0 0000 0000 0001 0001 DAA Decimal Adjust A C
0 0000 0000 0010 0002 CONTW A → CONT None
0 0000 0000 0011 0003 SLEP 0 → WDT, Stop oscillator T, P
0 0000 0000 0100 0004 WDTC 0 → WDT T, P
0 0000 0000 rrrr 000r IOW R A → IOCR None 1
0 0000 0001 0000 0010 ENI Enable Interrupt None
0 0000 0001 0001 0011 DISI Disable Interrupt None
0 0000 0001 0010 0012 RET [Top of Stack] → PC None
[Top of Stack] → PC,
0 0000 0001 0011 0013 RETI None
Enable Interrupt
0 0000 0001 0100 0014 CONTR CONT → A None
0 0000 0001 rrrr 001r IOR R IOCR → A None 1
0 0000 01rr rrrr 00rr MOV R,A A→R None
0 0000 1000 0000 0080 CLRA 0→A Z
0 0000 11rr rrrr 00rr CLR R 0→R Z
0 0001 00rr rrrr 01rr SUB A,R R-A → A Z, C, DC
0 0001 01rr rrrr 01rr SUB R,A R-A → R Z, C, DC
0 0001 10rr rrrr 01rr DECA R R-1 → A Z
0 0001 11rr rrrr 01rr DEC R R-1 → R Z
0 0010 00rr rrrr 02rr OR A,R A∨R→A Z
0 0010 01rr rrrr 02rr OR R,A A∨R→R Z
0 0010 10rr rrrr 02rr AND A,R A&R→A Z
0 0010 11rr rrrr 02rr AND R,A A&R→R Z
0 0011 00rr rrrr 03rr XOR A,R A⊕R→A Z
0 0011 01rr rrrr 03rr XOR R,A A⊕R→R Z
0 0011 10rr rrrr 03rr ADD A,R A+R→A Z, C, DC
0 0011 11rr rrrr 03rr ADD R,A A+R→R Z, C, DC
0 0100 00rr rrrr 04rr MOV A,R R→A Z
0 0100 01rr rrrr 04rr MOV R,R R→R Z
6 Timing Diagrams
AC Test Input/Output Waveform
2.4
2.0 2.0
TEST POINTS
0.8 0.8
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 logic "0".
Instruction 1
NOP
Executed
CLK
/RESET
Tdrh
Tins
CLK
TCC
Ttcc
Note: *These parameters are theoretical values and have not been tested.
8 Electrical Characteristics
8.1 DC Characteristics
Ta=25°C, VDD=5V ± 5%, VSS=0V
Symb
Parameter Condition Min. Typ. Max. Unit
ol
Crystal: VDD to 2.3V Two cycles with two clocks DC - 4.0 MHz
FXT Crystal: VDD to 3V Two cycles with two clocks DC - 8.0 MHz
Crystal: VDD to 5V Two cycles with two clocks DC - 20.0 MHz
ERC ERC: VDD to 5V R: 5.1KΩ, C: 100 pF F±30% 940 F±30% kHz
IIL Input Leakage Current for input pins VIN = VDD, VSS - - ±1 μA
VIH1 Input High Voltage (VDD=5V) Ports 5, 6 2.0 - - V
VIL1 Input Low Voltage (VDD=5V) Ports 5, 6 - - 0.8 V
/RESET, TCC
VIHT1 Input High Threshold Voltage (VDD=5V) 2.0 - - V
(Schmitt trigger)
/RESET, TCC
VILT1 Input Low Threshold Voltage (VDD=5V) - - 0.8 V
(Schmitt trigger)
VIHX1 Clock Input High Voltage (VDD=5V) OSCI 2.5 - - V
VILX1 Clock Input Low Voltage (VDD=5V) OSCI - - 1.0 V
VIH2 Input High Voltage (VDD=3V) Ports 5, 6 1.5 - - V
VIL2 Input Low Voltage (VDD=3V) Ports 5, 6 - - 0. 4 V
/RESET, TCC
VIHT2 Input High Threshold Voltage (VDD=3V) 1.5 - - V
(Schmitt trigger)
/RESET, TCC
VILT2 Input Low Threshold Voltage (VDD=3V) - - 0.4 V
(Schmitt trigger)
VIHX2 Clock Input High Voltage (VDD=3V) OSCI 1.5 - - V
VILX2 Clock Input Low Voltage (VDD=3V) OSCI - - 0.6 V
Output High Voltage (Port 6)
VOH1 IOH = -12 mA 2.4 - - V
(P60~P63, P66~P67 are Schmitt trigger)
Output Low Voltage (P50~P53,
VOL1 IOL = 12 mA - - 0.4 V
P60~P63 P66~P67 are Schmitt trigger)
VOL2 Output Low Voltage (P64, P65) IOL = 16.0 mA - - 0.4 V
Pull-high active,
IPH Pull-high current –50 –100 –240 μA
Input pin at VSS
Pull-low active,
IPL Pull-low current 20 50 120 μA
Input pin at VDD
8.2 AC Characteristics
Ta=25°C, VDD=5V ± 5%, VSS=0V
Symbol Parameter Conditions Min. Typ. Max. Unit
Dclk Input CLK duty cycle - 45 50 55 %
Instruction cycle time Crystal type 100 - DC ns
Tins
(CLKS="0") RC type 500 - DC ns
Ttcc TCC input period - (Tins+20)/N* - - ns
Ta = 25°C, Crystal,
Tdrh Device reset hold time 17.6-30% 17.6 17.6+30% ms
SUT1, SUT0=1, 1
Trst /RESET pulse width Ta = 25°C 2000 - - ns
Ta = 25°C
*Twdt1 Watchdog timer period
SUT1, SUT0=1,1
17.6~30% 17.6 17.6+30% ms
Ta = 25°C
*Twdt2 Watchdog timer period
SUT1, SUT0=1,0
4.5+30% 4.5 4.5+30% ms
Ta = 25°C
*Twdt3 Watchdog timer period
SUT1, SUT0=0,1
288~30% 288 288+30% ms
Ta = 25°C
*Twdt4 Watchdog timer period
SUT1, SUT0=0,0
72~30% 72 72+30% ms
Tset Input pin setup time - - 0 - ns
Thold Input pin hold time - - 20 - ns
Tdelay Output pin delay time Cload=20pF - 50 - ns
Note: These parameters are theoretical values and have not been tested.
The Watchdog Timer duration is determined by Option Code (Bit 6, Bit 5)
*N = selected prescaler ratio
*Twdt1: The Option word (SUT1, SUT0) is used to define the oscillator set-up time. In Crystal mode the
WDT time-out length is the same as set-up time (18ms).
*Twdt2: The Option word (SUT1, SUT0) is used to define the oscillator set-up time. In Crystal mode the
WDT time-out length is the same as set-up time (4.5ms).
*Twdt3: The Option word (SUT1, SUT0) is used to define the oscillator set-up time. In Crystal mode the
WDT time-out length is the same as set-up time (288ms).
*Twdt4: The Option word (SUT1, SUT0) is used to define the oscillator set-up time. In Crystal mode the
WDT time-out length is the same as set-up time (72ms).
1.5
70℃
Vih (V)
1 25℃
0℃
0.5
0
2.3 2.5 3.0 3.5 4.0 4.5 5.0 5.50
VDD (V)
1.5
70℃
Vil (V)
1 25℃
0℃
0.5
0
2.3 2.5 3.0 3.5 4.0 4.5 5.0 5.50
VDD (V)
-1
-2
-3
Ioh (mA)
70℃
-4 25℃
0℃
-5
-6
-7
-8
0.3 0.6 0.9 1.2 1.5 1.8 2.1 2.4 2.7
Voh (V)
-5
-10
Ioh (mA)
70℃
25℃
-15 0℃
-20
-25
0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5
Voh (V)
Figure 8-4 VOH vs. IOH, VDD=5V
35
30
25
70℃
Iol (mA)
20 25℃
0℃
15
10
0
0.3 0.6 0.9 1.2 1.5 1.8 2.1 2.4 2.7
Vol (V)
70
60
50
70℃
Iol (mA)
40 25℃
0℃
30
20
10
0
0.5 1.0 1.5 2.0 2.5 3.0 3.5 4.0 4.5
Vol (V)
Figure 8-6 VOL vs. IOL, VDD=3V
80
70
60
IPH (uA)
50 3.0V
40 5.0V
30
20
10
0
-40 -20 0 25 50 70 85
Temperature(℃)
Figure 8-7 IPH of P60 vs. Temperature, VDD=3V&5V
50
40
IPL(uA)
3.0V
30
5.0V
20
10
0
-40 -20 0 25 50 70 85
Temperature(℃)
Figure 8-8 IPL of P60 vs. Temperature , VDD=3V&5V
50
40
IPL(uA)
3.0V
30
5.0V
20
10
0
-40 -20 0 25 50 70 85
Temperature(℃)
Figure 8-9 IPL of P50 vs. Temperature, VDD=3V&5V
40
35
30
Current(uA)
Typ. ICC1
25
Typ. ICC2
20 Max. ICC1
15 Max. ICC2
10
0
-40 -20 0 25 50 75 85
Temperature (℃)
Figure 8-10 ICC1 and ICC2 vs. Temperature, VDD=5V
20
Current(uA)
15 Typ. ICC1
Typ. ICC2
Max. ICC1
10
Max. ICC2
0
-40 -20 0 25 50 70 85
Temperature(℃)
Figure 8-11 ICC1 and ICC2 vs. Temperature, VDD=3V
3.0
2.5
Current (mA)
0.5
0.0
-40 -20 0 25 50 70 85
Temperature (℃)
Figure 8-12 ICC3 and ICC4 vs. Temperature, VDD=5V
1.6
1.4
1.2
Current(mA)
Typ. ICC3
1.0
Typ. ICC4
0.8 Max. ICC3
Max. ICC4
0.6
0.4
0.2
0.0
-40 -20 0 25 50 70 85
Temperature(℃)
Figure 8-13 ICC3 and ICC4 vs. Temperature, VDD=3V
9
8
7
Current(uA)
6 Typ. ISB1
5 Typ. ISB2
Max. ISB1
4
Max. ISB2
3
2
1
0
-40 -20 0 25 50 70 85
Temperature (℃)
Figure 8-14 ISB1 and ISB2 vs. Temperature, VDD=5V
1.6
1.4
1.2
Current(uA)
Typ. ISB1
1 Typ. ISB2
0.8 Max. ISB1
Max. ISB2
0.6
0.4
0.2
0
-40 -20 0 25 50 70 85
Temperature(℃)
Figure 8-15 ISB1 and ISB2 vs. Temperature, VDD=3V
2.5
2.0
I(mA)
max
1.5
min
1.0
0.5
0.0
2.2 2.6 3.0 3.4 3.8 4.2 4.6 5.0 5.4
VDD(V)
Figure 8-16 Power Consumption in HXT Mode (4MHz)
50
40
I(uA)
max
30
min
20
10
0
2.2 2.6 3.0 3.4 3.8 4.2 4.6 5.0 5.4
VDD(V)
Figure 8-17 Power Consumption in LXT Mode (32.768KHz)
WDT Timer Time Out in Normal, Crystal & IRC mode (4MHz)
35
30
25
Time(ms)
20 70℃
25℃
15 0℃
10
0
2.3 2.5 3.0 3.5 4.0 4.5 5.0 5.5
VDD(Volt)
Figure 8-18 WDT Timer Time Out in Normal, Crystal & IRC mode (4MHz)
WDT Timer Time Out When Sleep to Normal Mode, Crystal & IRC mode
(4MHz)
35
30
25
Time(ms)
20 70℃
25℃
15
0℃
10
0
2.3 2.5 3.0 3.5 4.0 4.5 5.0 5.5
VDD(Volt)
Figure 8-19 WDT Timer Time Out when Sleep to Normal, Crystal & IRC mode (4MHz)
30
25
Time(ms)
20 70℃
25℃
15 0℃
10
0
2.2 2.4 3.0 3.5 4.0 4.5 5.0 5.5
VDD(V)
Figure 8-20 P6 Wake-up Time when Sleep to Normal, Crystal mode (4MHz)
0.7
0.6
Time(us)
70℃
0.5 25℃
0.4 0℃
0.3
0.2
0.1
0
2.2 2.4 3.0 3.5 4.0 4.5 5.0 5.5
VDD(V)
Figure 8-21 P6 Wake-up Time when Sleep to Normal, IRC mode (4MHz)
Power On Reset Time vs VDD in Normal, Crystal & IRC Mode (4MHz)
35
30
25
Time(ms)
20 70℃
25℃
15
0℃
10
0
2.3 2.5 3.0 3.5 4.0 4.5 5.0 5.5
VDD(V)
Figure 8-22 Power on Reset Time when Sleep to Normal, Crystal mode (4MHz)
1
Frequency(MHz)
0.8
1MHz@5V
1MHz@3V
0.6
455kHz@5V
455kHz@3V
0.4
0.2
0
-40 -20 0 25 50 70 85
Temperature (℃)
Figure 8-23 IRC OSC Frequency 1
7
Frequency(MHz)
6
8MHz@5V
5 8MHz@3V
4 4MHz@5V
4MHz@3V
3
0
-40 -20 0 25 50 70 85
Temperature (℃)
Figure 8-24 IRC OSC Frequency 2
1.02
1 3V
sa 5V
0.98
0.96
0.94
0.92
0.9
-40 -20 0 25 50 70 85
Temperature(℃)
Figure 8-25 ERC OSC Frequency vs. Temp (Cext=100Pf, Rext=5.1K)
APPENDIX
A Package Type
OTP MCU Package Type Pin Count Package Size
EM78P153AD14J DIP 14 300 mil
EM78P153ASO14J SOP 14 150 mil
These are Green products which do not contain hazardous substances and comply
with the third edition of Sony SS-00259 standard.
B Package Information
14-Lead Plastic Dual in line (PDIP) — 300 mil
C Application Notes
ELAN MCU Note 1
During OTP programming of the EM78P153A, a WDT time-out (if enabled) or reset pin
input low will cause the device to reset. The device reset will result to programming
error of stack function.
The program must include the initial stack program, because the stack pointer of the
EM78P153A will not point to zero when a WDT time-out (if enabled) or reset pin input
low occurs.
The initial stack program will make the EM78P153A stack pointer point to zero only
when the stack functions normally during OTP programming of the EM78P153A.
When one of the following events occurs, the initial stack program must be
included in the OTP programming of the EM78P153A:
1) WDT time-out
1. Initial stack program must insert Address 0x00D~0x0FF in the OTP program. Any
address outside the range will result to stack operation error. You must not modify
the initial stack program.
2. The program requires two SRAM registers for initial stack program use. These
registers are automatically removed after the initial stack program execution is
completed.
CK_SP:
MOV SADR, A ;
SUB A, L_SADR ; A = (diff_value) = L_SADR – SADR
JBC 0x3, 0 ;
JMP DIFF_LOOP ; C = 1,JMP DIFF_LOOP
Compliment: ; C = 0, A (diff_value) do 2’s compliment
/*********************************************************/
/* 2's compliment */
/*********************************************************/
XOR A, @0XFF
ADD A, @0X01
DIFF_LOOP:
XOR A, @0x0C ;diff_value == 0xc
JBC 0x3, 2 ;
CALL MAIN ; Z = 1, CALL MAIN
/*label of customer's 1st code*/ ;Z = 0, L_SADR <= SADR, RET STACK
LEVEL*/
MOV A, SADR
MOV L_SADR, A
RET