Part Number Hot Search : 
MT390 DB48D NTE5631 HSU88 ESDAXXL DS199 2SA186 C2845
Product Description
Full Text Search
 

To Download EM78P417N Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 EM78P417/8/9N
8-Bit Microprocessor with OTP ROM
Product Specification
DOC. VERSION 1.0
ELAN MICROELECTRONICS CORP.
June 2005
Trademark Acknowledgments: IBM is a registered trademark and PS/2 is a trademark of IBM. Windows is a trademark of Microsoft Corporation. ELAN and ELAN logo are trademarks of ELAN Microelectronics Corporation.
Copyright (c) 2005 by ELAN Microelectronics Corporation
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. 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.
ELAN MICROELECTRONICS CORPORATION
Headquarters: No. 12, Innovation Road 1 Hsinchu Science Park Hsinchu, Taiwan 30077 Tel: +886 3 563-9977 Fax: +886 3 563-9966 http://www.emc.com.tw Hong Kong: Elan (HK) Microelectronics Corporation, Ltd. Rm. 1005B, 10/F Empire Centre 68 Mody Road, Tsimshatsui Kowloon , HONG KONG Tel: +852 2723-3376 Fax: +852 2723-7780 elanhk@emc.com.hk Shenzhen: Elan Microelectronics Shenzhen, Ltd. SSMEC Bldg., 3F, Gaoxin S. Ave. Shenzhen Hi-Tech Industrial Park Shenzhen, Guandong, CHINA Tel: +86 755 2601-0565 Fax: +86 755 2601-0500 USA: Elan Information Technology Group 1821 Saratoga Ave., Suite 250 Saratoga, CA 95070 USA Tel: +1 408 366-8223 Fax: +1 408 366-8220
Europe: Elan Microelectronics Corp. (Europe) Siewerdtstrasse 105 8050 Zurich, SWITZERLAND Tel: +41 43 299-4060 Fax: +41 43 299-4079 http://www.elan-europe.com
Shanghai: Elan Microelectronics Shanghai Corporation, Ltd. 23/Bldg. #115 Lane 572, Bibo Road Zhangjiang Hi-Tech Park Shanghai, CHINA Tel: +86 021 5080-3866 Fax: +86 021 5080-4600
Contents
Contents
1 2 3 General Description.................................................................................................. 1 Features ..................................................................................................................... 1 Pin Configurations (Package).................................................................................. 2 3.1 3.2 3.3 4 5 EM78P417NP/M Pin Description ....................................................................... 2 EM78P418NP/M Pin Description ....................................................................... 3 EM78P419NK/M Pin Description ....................................................................... 3
Functional Block Diagram........................................................................................ 4 Pin Description.......................................................................................................... 5 5.1 5.2 5.3 EM78P417NP/M Pin Description ....................................................................... 5 EM78P418NP/M Pin Description ....................................................................... 6 EM78P419NK/M Pin Description ....................................................................... 7 Operational Registers......................................................................................... 8
6.1.1 6.1.2 6.1.3 6.1.4 6.1.5 6.1.6 6.1.7 6.1.8 6.1.9 6.1.10 6.1.11 6.1.12 6.1.13 6.1.14 6.1.15 R0 (Indirect Address Register) ...........................................................................8 R1 (Time Clock /Counter)....................................................................................8 R2 (Program Counter) and Stack........................................................................8 R3 (Status Register) ..........................................................................................11 R4 (RAM Select Register).................................................................................11 R5 ~ R7 (Port 5 ~ Port 7) ..................................................................................12 R8 (AISR: ADC Input Select Register) ..............................................................12 R9 (ADCON: ADC Control Register).................................................................13 RA (ADOC: ADC Offset Calibration Register) ...................................................14 RB (ADDATA: Converted Value of ADC)...........................................................15 RC (ADDATA1H: Converted Value of ADC ).....................................................15 RD (ADDATA1L: Converted Value of ADC ) .....................................................15 RE (WUCR: Wake- Up Control Register)..........................................................15 RF (Interrupt Status Register) ...........................................................................17 R10 ~ R3F .........................................................................................................17 A (Accumulator).................................................................................................18 CONT (Control Register)...................................................................................18 IOC50 ~ IOC70 (I/O Port Control Register) ......................................................19 IOC80 (PWMCON: PWM Control Register)......................................................19 IOC90 (TMRCON: TIMER Control Register) ....................................................20 IOCA0 (CMPCON: Comparator Control Register)............................................21 IOCB0 (Pull-Down Control Register).................................................................21 IOCC0 (Open-Drain Control Register) ..............................................................22
* iii
6
Function Description ................................................................................................ 8 6.1
6.2
Special Purpose Registers ............................................................................... 18
6.2.1 6.2.2 6.2.3 6.2.4 6.2.5 6.2.6 6.2.7 6.2.8
Product Specification (V1.0) 06.23.2005
Contents
6.2.9 6.2.10 6.2.11 6.2.12 6.2.13 6.2.14 6.2.15 6.2.16 6.2.17 6.2.18 6.2.19 6.2.20 6.2.21 6.2.22
IOCD0 (Pull-high Control Register)...................................................................22 IOCE0 (WDT Control Register) .........................................................................23 IOCF0 (Interrupt Mask Register).......................................................................24 IOC51 (PRD1: PWM1 Time Period)..................................................................25 IOC61 (PRD2: PWM2 Time Period)..................................................................25 IOC71 (PRD3: PWM3 Time Period)..................................................................25 IOC81 (DT1L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM1 Duty Cycle) ............................................................................................25 IOC91 (DT2L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM2 Duty Cycle) ............................................................................................25 IOCA1 (DT3L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM3 Duty Cycle) ............................................................................................25 IOCB1 (DTH: the Most Significant Bits of PWM Duty Cycle)............................25 IOCC1 (TMR1L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM1 Timer) ....................................................................................................26 IOCD1 (TMR2L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM2 Timer) ....................................................................................................26 IOCE1 (TMR3L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM3 Timer) ....................................................................................................26 IOCF1 (TMRH: the Most Significant Bits of PWM Timer) .................................26
6.3 6.4 6.5
TCC/WDT and Prescaler.................................................................................. 26 I/O Ports ........................................................................................................... 27
6.4.1 6.5.1 6.5.2 Usage of Port 6 Input Change Wake-up/Interrupt Function..............................30 RESET and Wake-up Operation .......................................................................30 The T and P Status under STATUS Register ....................................................40
RESET and Wake-up ....................................................................................... 30
6.6 6.7
Interrupt ............................................................................................................ 41 Analog-To-Digital Converter (ADC) .................................................................. 42
6.7.1 6.7.2 6.7.3 6.7.4 6.7.5 6.7.6 ADC Control Register (AISR/R8, ADCON/R9, ADOC/RA) ...............................43 ADC Data Register (ADDATA/RB, ADDATA1H/RC, ADDATA1L/RD) ...............46 ADC Sampling Time ..........................................................................................46 AD Conversion Time .........................................................................................47 ADC Operation during Sleep Mode...................................................................47 Programming Process/Considerations..............................................................47 Overview ...........................................................................................................50 Increment Timer Counter (TMRX: TMR1H/TWR1L, TMR2H /TWR2L, or TMR3H/TWR3L) ............................................................................51 PWM Time Period (PRDX : PRD1 or PRD2) ....................................................51 PWM Duty Cycle (DTX: DT1H/ DT1L, DT2H/ DT2L and DT3H/DT3L; DLX: DL1H/DL1L, DL2H/DL2L and DL3H/DL3L ) ....................52 Comparator X ....................................................................................................52 PWM Programming Process/Steps...................................................................52
6.8
Dual Sets of PWM (Pulse Width Modulation) ................................................... 50
6.8.1 6.8.2 6.8.3 6.8.4 6.8.5 6.8.6
iv *
Product Specification (V1.0) 06.23.2005
Contents
6.9
Timer ................................................................................................................ 52
6.9.1 6.9.2 6.9.3 6.9.4 6.10.1 6.10.2 6.10.3 6.10.4 6.10.5 6.11.1 6.11.2 6.11.3 6.11.4 Overview ...........................................................................................................52 Function Description..........................................................................................53 Programming the Related Registers .................................................................54 Timer Programming Process/Steps...................................................................54 External Reference Signal ................................................................................55 Comparator Outputs..........................................................................................55 Using Comparator as an Operation Amplifier....................................................56 Comparator Interrupt .........................................................................................56 Wake-up from SLEEP Mode .............................................................................56 Oscillator Modes................................................................................................56 Crystal Oscillator/Ceramic Resonators (XTAL) .................................................57 External RC Oscillator Mode.............................................................................58 Internal RC Oscillator Mode ..............................................................................59
6.10 Comparator ...................................................................................................... 54
6.11 Oscillator .......................................................................................................... 56
6.12 Power-on Considerations ................................................................................. 60
6.12.1 External Power-on Reset Circuit .......................................................................60 6.12.2 Residual Voltage Protection ..............................................................................61
6.13 Code Option ..................................................................................................... 61
6.13.1 Code Option Register (Word 0).........................................................................62 6.13.2 Code Option Register (Word 1).........................................................................63 6.13.3 Customer ID Register (Word 2).........................................................................64
6.14 Instruction Set .................................................................................................. 64 7 8 Absolute Maximum Ratings................................................................................... 66 DC Electrical Characteristics................................................................................. 67 8.1 8.2 8.3 9 10 AD Converter Characteristic............................................................................. 68 Comparator (OP) Characteristic ....................................................................... 69 Device Characteristics...................................................................................... 69
AC Electrical Characteristic................................................................................... 70 Timing Diagrams ..................................................................................................... 71
Product Specification (V1.0) 06.23.2005
*v
Contents
APPENDIX
A B Package Types ........................................................................................................ 72 Packaging Configurations ..................................................................................... 72 B.1 18-Lead Plastic Dual in line (PDIP) -- 300 mil ................................................. 72 B.2 18-Lead Plastic Small Outline (SOP) -- 300 mil .............................................. 73 B.3 20-Lead Plastic Dual in line (PDIP) -- 300 mil ................................................. 74 B.4 20-Lead Plastic Small Outline (SOP) -- 300 mil .............................................. 75 B.5 24-Lead Plastic Dual in line (PDIP) -- 300 mil ................................................. 76 B.6 24-Lead Plastic Small Outline (SOP) -- 300 mil .............................................. 77 C Quality Assurance and Reliability ......................................................................... 78 C.1 Address Trap Detect......................................................................................... 78
Specification Revision History
Doc. Version 1.0 Revision Description Initial official version Date 2005/06/23
vi *
Product Specification (V1.0) 06.23.2005
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
1
General Description
EM78P417/8/9N is 8-bit microprocessors designed and developed with low-power and high-speed CMOS technology. It is equipped with a 4K*13-bit Electrical One Time Programmable Read Only Memory (OTP-ROM). With its OTP-ROM feature, it is able to offer a convenient way of developing and verifying your programs. Moreover, it provides a protect bit to guard against code intrusion, as well as 3 Code Option words to accommodate your requirements. Furthermore you can take advantage of ELAN Writer to easily write your development code into the EM78P417/8/9N.
2
Features
Operating voltage range: 2.3V~5.5V 2.5V~5.5V base on 0C ~ 70C (commercial) base on -40C ~ 85C (industrial)
Operating frequency range (base on 2 clocks):
* Crystal mode: DC ~ 20MHz/2clks, 5V; DC ~ 8MHz/2clks, 3V * RC mode: DC ~ 4MHz/2clks, 5V; DC ~ 4MHz/2clks, 3V
Low power consumption:
* Less than 2.2 mA at 5V/4MHz * Typically 15 A, at 3V/32KHz * Typically 1 A, during sleep mode
4K x 13 bits on chip ROM 144 x 8 bits on chip registers (SRAM) 3 bi-directional I/O ports 8 level stacks for subroutine nesting 8-bit real time clock/counter (TCC) with selective signal sources, trigger edges, and overflow interrupt 8-bit multi-channel Analog-to-Digital Converter with 12-bit resolution Three Pulse Width Modulation (PWM ) with 10-bit resolution One pair of comparators (can be set to act as an OP) Power-down (SLEEP) mode
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
*1
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Six available interruptions:
* * * * * *
TCC overflow interrupt Input-port status changed interrupt (wake-up from sleep mode) External interrupt ADC completion interrupt PWM time period match completion interrupt Comparator high/low interrupt
Programmable free running watchdog timer 8 Programmable pull-down I/O pins 8 programmable pull-high I/O pins 8 programmable open-drain I/O pins Two clocks per instruction cycle Package types:
* * * * * *
18 pin DIP 300mil : EM78P417NP 18 pin SOP 300mil : EM78P417NM 20 pin DIP 300mil : EM78P418NP 20 pin SOP 300mil : EM78P418NM 24 pin skinny DIP 300mil : EM78P419NK 24 pin SOP 300mil : EM78P419NM
Power on voltage detector provided (2.0V 0.1V)
3
Pin Configurations (Package)
3.1 EM78P417NP/M Pin Description
P60/ADC0 P61/ADC1 P62/ADC2 Vss P63/ADC3 P64/ADC4 P65/ADC5 P66/ADC6 P67/ADC7 1 2 3 4 5 6 7 8 9 EM78P417NP EM78P417NM 18 17 16 15 14 13 12 11 10 P56/TCC P55/OSCI P54/OSCO VDD P53/PWM3/VREF P52/PWM2 P51/PWM1 /RESET P50/INT
Fig. 3-1 Pin Assignment - EM78P417NP/M
2*
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
3.2
EM78P418NP/M Pin Description
P70/CIN+ P60/ADC0/CO P61/ADC1 P62/ADC2 Vss P63/ADC3 P64/ADC4 P65/ADC5 P66/ADC6 P67/ADC7 1 2 3 4 5 6 7 8 9 10 EM78P418NP EM78P418NM 20 19 18 17 16 15 14 13 12 11 P57/CINP56/TCC P55/OSCI P54/OSCO VDD P53/PWM3/VREF P52/PWM2 P51/PWM1 /RESET P50/INT
Fig. 3-2 Pin Assignment - EM78P418NP/M
3.3
EM78P419NK/M Pin Description
P72 P71 P70/CIN+ P60/ADC0/CO P61/ADC1 P62/ADC2 Vss P63/ADC3 P64/ADC4 P65/ADC5 P66/ADC6 P67/ADC7 1 2 3 4 5 6 7 8 9 10 11 12 EM78P419NK EM78P419NM 24 23 22 21 20 19 18 17 16 15 14 13 P73 P74 P57/CINP56/TCC P55/OSCI P54/OSCO VDD P53/PWM3/VREF P52/PWM2 P51/PWM1 /RESET P50/INT
Fig. 3-3 Pin Assignment - EM78P419NK/M
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
*3
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
4
Functional Block Diagram
W D T Tim er
W DT Tim e-out
PC
STA C K 0 STA C K 1 STA C K 2
P rescaler
OSCI O SCO /RESET
O scillator/ Tim m ing C ontrol
/ IN T
Prescaler
TC C
ROM
STA C K 3 STA C K 4
STA C K 5
R 1(TC C )
Interrupt C ontrol
Instruction R egister
STA C K 6 STA C K 7
S leep & W ake U p C ontrol
R AM
R4
Instruction D ecoder
ALU
R3
ACC
DATA & CO NTROL BUS
C om parators
IO C 5 R5
3 PW M s
12A D C
IO C 6 R6
IO C 7 R7
PPPPPPPP 55555555 01234567
PPPPPPPP 66666666 01234567
PPPPP 77777 01234
Fig. 4-1 EM78P417/8/9N Functional Block Diagram
4*
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
5
Pin Description
5.1
VDD OSCI
EM78P417NP/M Pin Description
Pin No.
15 17
Symbol
Type
- I Power supply
Function
XTAL type Crystal input terminal or external clock input pin RC type: RC oscillator input pin XTAL type: Output terminal for crystal oscillator or external clock input pin
OSCO
16
O
RC type:
Clock output with a duration of one instruction cycle time. The prescaler is determined by the CONT register.
External clock signal input P50 ~ P56 P60 ~ P67 INT ADC0~ADC7 PWM1, PWM2, PWM3 VREF 10,12~14, 16 ~ 18 1 ~ 3, 5~9 10 1 ~ 3, 5~9 12, 13, 14 I/O I/O I I General-purpose I/O pin Default value at power-on reset General-purpose I/O pin Default value at power-on reset External interrupt pin triggered by falling edge Analog to Digital Converter Defined by ADCON (R9)<0:2> Pulse width modulation outputs Defined by PWMCON (IOC80)<5:7> External reference voltage for ADC Defined by ADCON (R9)<7> General-purpose Input only /RESET 11 I If it remains at logic low, the device will be reset Wake-up from sleep mode when pin status changes Voltage on /RESET must not exceed Vdd during normal mode TCC VSS 18 4 I - Real time clock/counter with Schmitt trigger input pin. It must be tied to VDD or VSS if not in use. Ground.
O
14
I
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
*5
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
5.2
VDD OSCI
EM78P418NP/M Pin Description
Pin No.
16 18
Symbol
Type
- I Power supply
Function
XTAL type Crystal input terminal or external clock input pin RC type: RC oscillator input pin XTAL type: Output terminal for crystal oscillator or external clock input pin
OSCO
17
O
RC type:
Clock output with a duration of one instruction cycle time. The prescaler is determined by the CONT register.
External clock signal input P50 ~ P57 P60 ~ P67 P70 INT ADC0~ADC7 PWM1, PWM2, PWM3 VREF CIN-, CIN+, CO 11,13~15 17 ~ 20, 2 ~ 4, 6 ~ 10 1 11 2 ~ 4, 6 ~ 10 13, 14, 15 I/O I/O I/O I I General-purpose I/O pin Default value at power-on reset General-purpose I/O pin Default value at power-on reset General-purpose I/O pin Default value at power-on reset External interrupt pin triggered by falling edge Analog to Digital Converter Defined by ADCON (R9)<0:2> Pulse width modulation outputs Defined by PWMCON (IOC80)<5:7> External reference voltage for ADC Defined by ADCON (R9)<7> "-" -> the input pin of Vin- of the comparator "+" -> the input pin of Vin+ of the comparator Pin CO is the output of the comparator Defined by CMPCON (IOCA0) <0:1> General-purpose Input only /RESET 12 I If it remains at logic low, the device will be reset Wake-up from sleep mode when pin status changes Voltage on /RESET must not exceed Vdd during normal mode TCC VSS 19 5 I - Real time clock/counter with Schmitt trigger input pin. It must be tied to VDD or VSS if not in use. Ground.
O
15 20, 1, 2
I I I O
6*
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
5.3
VDD OSCI
EM78P419NK/M Pin Description
Pin No.
18 20
Symbol
Type
I Power supply.
Function
XTAL type Crystal input terminal or external clock input pin RC type: RC oscillator input pin XTAL type: Output terminal for crystal oscillator or external clock input pin
OSCO
19
O
RC type:
Clock output with a duration of one instruction cycle time. The prescaler is determined by the CONT register.
External clock signal input 13, P50 ~ P57 15 ~ 17 19 ~ 22, P60 ~ P67 P70 ~ P74 INT ADC0 ~ADC7 PWM1, PWM2, PWM3 VREF CIN-, CIN+, CO 4 ~ 6, 8 ~ 12 3, 2, 1, 24, 23 13 4 ~ 6, 8 ~ 12 15, 16, 17 I/O I/O I I I/O General-purpose I/O pin Default value at power-on reset General-purpose I/O pin Default value at power-on reset General-purpose I/O pin Default value at power-on reset External interrupt pin triggered by falling edge. Analog to Digital Converter Defined by ADCON (R9)<0:2> Pulse width modulation outputs Defined by PWMCON (IOC80)<5:7> External reference voltage for ADC Defined by ADCON (R9)<7>. "-" -> the input pin of Vin- of the comparator "+" -> the input pin of Vin+ of the comparator Pin CO is the output of the comparator Defined by CMPCON (IOCA0) <0:1> General-purpose Input only If it remains at logic low, the device will be reset /RESET 14 I Wake-up from sleep mode when pin status changes Voltage on /RESET must not exceed Vdd during normal mode TCC VSS 21 7 I Real time clock/counter with Schmitt trigger input pin. It must be tied to VDD or VSS if not in use. Ground.
O
17 22, 3, 4
I I I O
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
*7
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6
Function Description
6.1 Operational Registers
6.1.1 R0 (Indirect Address Register)
R0 is not a physically implemented register. Its major function is to perform as an indirect address pointer. Any instruction using R0 as a pointer, actually accesses the data pointed by the RAM Select Register (R4).
6.1.2 R1 (Time Clock /Counter)
Increased by an external signal edge through the TCC pin, or by the instruction cycle clock. External signal of TCC trigger pulse width must be greater than one instruction. The signals to increase the counter are determined by Bit 4 and Bit 5 of the CONT register. Writable and readable as any other registers.
6.1.3 R2 (Program Counter) and Stack
R3
R e s e t V e c to r In te rru p t V e c to r
A11 A10
A9
~
C ALL RET RETL RETI
A0
User Memory
Space
00 PAG E0 0000~03FF 01 PAG E1 0400~07FF 10 P A G E 2 0800~0B FF 11 P A G E 3 0C 00~0FFF
S ta c k S ta c k S ta c k S ta c k S ta c k S ta c k S ta c k S ta c k
Level Level Level Level Level Level Level Level
1 2 3 4 5 6 7 8
O n -c h ip P ro g ra m M e m o ry
Fig. 6-1 Program Counter Organization
R2 and hardware stacks are 12-bit wide. The structure is depicted in the table under Section 6.1.3.1 Data Memory Configuration (next section). Generates 4Kx13 bits on-chip ROM addresses to the relative programming instruction codes. One program page is 1024 words long. The contents of R2 are all set to "0"s when a RESET condition occurs.
8*
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM "JMP" instruction allows 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 PC, and then PC+1 is pushed into the stack. Thus, the subroutine entry address can be located anywhere within a page. "RET" ("RETL k", "RETI") instruction loads the program counter with the contents of the top of stack. "ADD R2, A" allows a relative address to be added to the current PC, and the ninth and above 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 (A8 ~ A9) of the PC will remain unchanged. Any instruction (except "ADD R2,A") that is written to R2 (e.g., "MOV R2, A", "BC R2, 6",) will cause the ninth bit and the tenth bit (A8 ~ A9) of the PC to remain unchanged. In the case of EM78P417/8/9N, the most two significant bits (A11 and A10) will be loaded with the content of PS1 and PS0 in the status register (R3) upon execution of a "JMP", "CALL", or any other instructions set which write to R2. All instructions are single instruction cycle (fclk/2 or fclk/4) except for the instructions that are written to R2. Note that these instructions need one or two instructions cycle as determined by Code Option Register CYES bit.
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
*9
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.1.3.1 Data Memory Configuration Address
00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 General Registers 1F 20 Bank 0 Bank 1 Bank 2 Bank 3 3F
PAGE Registers
R0 (Indirect Addressing Register) R1 (Time Clock Counter) R2 (Program Counter) R3 (Status Register) R4 (RAM Select Register) R5 (Port5) R6 (Port6) R7 (Port7) R8 (ADC Input Select Register) R9 (ADC Control Register) RA (ADC Offset Calibration Register) RB (ADDATA: ADC data bit11~bit4) RC (ADDATA1H: ADC data bit11~bit8) RD (ADDATA1L: ADC data bit7~bit0) RE (Wake-up Control Register) RF (Interrupt Status Register)
IOC PAGE Registers
Reserve Reserve Reserve Reserve Reserve IOC50 (I/O Port Control Register) IOC60 (I/O Port Control Register) IOC70 (I/O Port Control Register) IOC80 (PWM Control Register) IOC90 (TIMER Control Register) IOCA0 (Comparator Control Register) IOCB0 (Pull-down Control Register) IOCC0 (Open-drain Control Register) IOCD0 (Pull-high Control Register) IOCE0 (WDT Control Register)
IOC PAGE Registers
Reserve Reserve Reserve Reserve Reserve IOC51 (PRD1: PWM1 time period) IOC61 (PRD2: PWM2 time period) IOC71 (PRD3: PWM3 time period) IOC81 (DT1L:Duty cycle of PWM1) IOC91 (DT2L: Duty cycle of PWM2) IOCA1 (DT3L: Duty cycle of PWM3) IOCB1 (DTH: Duty cycle of PWM) IOCC1 (TIMER1L: PWM1 timer) IOCD1 (TIMER2L: PWM2 timer) IOCE1 (TIMER3L: PWM3 timer)
IOCF0 (Interrupt Mask Register) IOCF1 (TMRH: PWM timer)
10 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.1.4 R3 (Status Register)
7
IOCS
6
PS1
5
PS0
4
T
3
P
2
Z
1
DC
0
C
Bit 7 (IOCS): Select the Segment of IO control register. 0 = Segment 0 (IOC50 ~ IOCF0) selected 1 = Segment 1 (IOC51 ~ IOCF1) selected Bit 6 ~ Bit 5 (PS1 ~ PS0): Page select bits. PS0 ~ PS1 are used to select a program memory page. When executing a "JMP," "CALL," or other instructions which cause the program counter to change (e.g., MOV R2, A), PS0 ~ PS1 are loaded into the 11th and 12th bits of the program counter where it selects one of the available program memory pages. Note that RET (RETL, RETI) instruction does not change the PS0~PS1 bits. That is, the return will always be back to the page from where the subroutine was called, regardless of the current PS0 ~ PS1 bits setting. PS1
0 0 1 1
PS0
0 1 0 1
Program Memory Page [Address]
Page 0 [000-3FF] Page 1 [400-7FF] Page 2 [800-BFF] Page 3 [C00-FFF]
Bit 4 (T): Bit 3 (P):
Time-out bit. Set to 1 by the "SLEP" and "WDTC" commands, or during power on and reset to 0 by WDT time-out. Power-down bit. Set to 1 during power-on or by a "WDTC" command and reset to 0 by a "SLEP" command.
NOTE Bit 4 & Bit 3 (T & P) are read only.
Bit 2 (Z): Bit 1 (DC): Bit 0 (C):
Zero flag. Set to "1" if the result of an arithmetic or logic operation is zero. Auxiliary carry flag Carry flag
6.1.5 R4 (RAM Select Register)
Bit 7 & Bit 6: are used to select Banks 0 ~ 3. Bit 5 ~ Bit 0: are used to select registers (address: 00 ~ 3F) in the indirect address mode. See the table under Section 6.1.3.1 Data Memory Configuration for the configuration of the data memory.
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 11
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.1.6 R5 ~ R7 (Port 5 ~ Port 7)
R5 & R6 are I/O registers. R7 is I/O registers. The upper 3 bits of R7 are fixed to 0.
6.1.7 R8 (AISR: ADC Input Select Register)
The AISR register defines the pins of Port 6 as analog inputs or as digital I/O, individually. 7
ADE7
6
ADE6
5
ADE5
4
ADE4
3
ADE3
2
ADE2
1
ADE1
0
ADE0
Bit 7 (ADE7 ): AD converter enable bit of P67 pin 0 = Disable ADC7, P67 acts as I/O pin 1 = Enable ADC7, acts as analog input pin Bit 6 (ADE6 ): AD converter enable bit of P66 pin 0 = Disable ADC6, P66 acts as I/O pin 1 = Enable ADC6, acts as analog input pin Bit 5 (ADE5 ): AD converter enable bit of P65 pin 0 = Disable ADC5, P65 acts as I/O pin 1 = Enable ADC5, acts as analog input pin Bit 4 (ADE4 ): AD converter enable bit of P64 pin 0 = Disable ADC4, P64 acts as I/O pin 1 = Enable ADC4 acts as analog input pin Bit 3 (ADE3 ): AD converter enable bit of P63 pin 0 = Disable ADC3, P63 acts as I/O pin 1 = Enable ADC3, acts as analog input pin Bit 2 (ADE2 ): AD converter enable bit of P62 pin 0 = Disable ADC2, P62 acts as I/O pin 1 = Enable ADC2, acts as analog input pin Bit 1 (ADE1 ): AD converter enable bit of P61 pin 0 = Disable ADC1, P61 acts as I/O pin 1 = Enable ADC1, acts as analog input pin Bit 0 (ADE0 ): AD converter enable bit of P60 pin. 0 = Disable ADC0, P60 acts as I/O pin 1 = Enable ADC0, acts as analog input pin
12 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
NOTE Note the pin priority of the COS1 and COS0 bits of IOCA0 Control register when P60/ADE0 acts as analog input or as digital I/O. The Comparator/OP select bits are as shown in a table under Section 6.2.6, IOCA0 (CMPCON: Comparator Control Register). The P60/ADE0/CO pin priority is as follows: P60/ADE0/CO PRIORITY High CO Medium ADE0 Low P60
6.1.8 R9 (ADCON: ADC Control Register)
7
VREFS
6
CKR1
5
CKR0
4
ADRUN
3
ADPD
2
ADIS2
1
ADIS1
0
ADIS0
Bit 7 (VREFS): The input source of the Vref of the ADC 0 = The Vref of the ADC is connected to Vdd (default value), and the P53/VREF pin carries out the function of P53 1 = The Vref of the ADC is connected to P53/VREF
NOTE The P53/PWM3/VREF pin cannot be applied to PWM3 and VREF at the same time. If P53/PWM3/VREF acts as VREF analog input pin, then PWM3E must be "0".. The P53/PWM3/VREF pin priority is as follows: P53/PWM3/VREF PIN PRIORITY High VREF Medium PWM3 Low P53
Bit 6 & Bit 5 (CKR1 & CKR0): The prescaler of oscillator clock rate of ADC 00 = 1: 4 (default value) 01 = 1: 16 10 = 1: 64 11 = 1: WDT ring oscillator frequency CKR0:CKR1
00 01 10 11
Operation Mode
Fsco/4 Fsco/16 Fsco/64 Internal RC
Max. Operation Frequency
1 MHz 4 MHz 16MHz -
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 13
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Bit 4 (ADRUN): ADC starts to RUN. 0 = Reset upon completion of the conversion. This bit cannot be reset through software 1 = an AD conversion is started. This bit can be set by software Bit 3 (ADPD): ADC Power-down mode 0 = Switch off the resistor reference to save power even while the CPU is operating 1 = ADC is operating Bit 2 ~ Bit 0 (ADIS2 ~ADIS0): Analog Input Select 000 = ADIN0/P60 001 = ADIN1/P61 010 = ADIN2/P62 011 = ADIN3/P63 100 = ADIN4/P64 101 = ADIN5/P65 110 = ADIN6/P66 111 = ADIN7/P67 These bits can only be changed when the ADIF bit (see Section 6.1.14) and the ADRUN bit are both LOW.
6.1.9 RA (ADOC: ADC Offset Calibration Register)
7
CALI
6
SIGN
5
VOF[2]
4
VOF[1]
3
VOF[0]
2
"0"
1
"0"
0
"0"
Bit 7 (CALI):
Calibration enable bit for ADC offset 0 = Calibration disable 1 = Calibration enable
Bit 6 (SIGN):
Polarity bit of offset voltage 0 = Negative voltage 1 = Positive voltage
Bit 5 ~ Bit 3 (VOF[2] ~ VOF[0]): Offset voltage bits VOF[2] VOF[1] VOF[0] EM78P417/8/9N
0 0 0 0 1 1 1 1 14 * 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0LSB 2LSB 4LSB 6LSB 8LSB 10LSB 12LSB 14LSB
ICE418N
0LSB 1LSB 2LSB 3LSB 4LSB 5LSB 6LSB 7LSB
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
Bit 2 ~ Bit 0:
Unimplemented, read as `0'
6.1.10 RB (ADDATA: Converted Value of ADC)
7
AD11
6
AD10
5
AD9
4
AD8
3
AD7
2
AD6
1
AD5
0
AD4
When the AD conversion is completed, the result is loaded into the ADDATA. The ADRUN bit is cleared, and the ADIF (see Section 6.1.14) is set. RB is read only.
6.1.11 RC (ADDATA1H: Converted Value of ADC )
7
"0"
6
"0"
5
"0"
4
"0"
3
AD11
2
AD10
1
AD9
0
AD8
When the AD conversion is completed, the result is loaded into the ADDATA1H. The ADRUN bit is cleared, and the ADIF (see Section 6.1.14) is set. RC is read only.
6.1.12 RD (ADDATA1L: Converted Value of ADC )
7
AD7
6
AD6
5
AD5
4
AD4
3
AD3
2
AD2
1
AD1
0
AD0
When the AD conversion is completed, the result is loaded into the ADDATA1L. The ADRUN bit is cleared, and the ADIF (see Section 6.1.14) is set. RD is read only
6.1.13
RE (WUCR: Wake- Up Control Register)
7 6
"0" C2
5
"0" C1
4
"0" C0
3
2
1
0
"0" "0"
EM78P417/8/9N ICE418N Simulator
"0" C3
ADWE CMPWE ICWE ADWE CMPWE ICWE
Bit 7 ~ Bit 4: [With EM78P417/8/9N]: Unimplemented, read as `0'.
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 15
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM [With Simulator (C3~C0)]: are IRC calibration bits in IRC oscillator mode. Under IRC oscillator mode of ICE418N simulator, these are the IRC calibration bits of IRC oscillator mode. C3
0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1
C2
0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0
C1
0 0 1 1 0 0 1 1 1 1 0 0 1 1 0 0
C0
0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0
Frequency (MHz)
(1-36%) x F (1-31.5%) x F (1-27%) x F (1-22.5%) x F (1-18%) x F (1-13.5%) x F (1-9%) x F (1-4.5%) x F F (default) (1+4.5%) x F (1+9%) x F (1+135%) x F (1+18%) x F (1+22.5%) x F (1+27%) x F (1+31.5%) x F
1. Frequency values shown are theoretical and taken from an instance of a high frequency mode. Hence are shown for reference only. Definite values will depend on the actual process. 2. Similar way of calculation is also applicable to low frequency mode.
Bit 3 (ADWE):
ADC wake-up enable bit 0 = Disable ADC wake-up 1 = Enable ADC wake-up When the ADC Complete is used to enter interrupt vector or to wake-up EM78P417/8/9N from sleep with AD conversion running, the ADWE bit must be set to "Enable".
Bit 2 (CMPWE): Comparator wake-up enable bit 0 = Disable Comparator wake-up 1 = Enable Comparator wake-up When the Comparator output status change is used to enter interrupt vector or to wake-up EM78P418/9N from sleep, the CMPWE bit must be set to "Enable". Bit 1 (ICWE): Port 6 input change to wake-up status enable bit 0 = Disable Port 6 input change to wake-up status 1 = Enable Port 6 input change wake-up status When the Port 6 Input Status Change is used to enter interrupt vector or to wake-up EM78P417/8/9N from sleep, the ICWE bit must be set to "Enable". Bit 0:
16 *
Not implemented, read as `0'
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.1.14
7
CMPIF
RF (Interrupt Status Register)
6
PWM3IF
5
PWM2IF
4
PWM1IF
3
ADIF
2
EXIF
1
ICIF
0
TCIF
NOTE "1" means interrupt request; "0" means no interrupt occurs. RF can be cleared by instruction but cannot be set. IOCF0 is the interrupt mask register. Reading RF will result to "logic AND" of RF and IOCF0.
Bit 7 (CMPIF):
Comparator interrupt flag. Set when a change occurs in the output of Comparator. Reset by software.
Bit 6 (PWM3IF): PWM3 (Pulse Width Modulation) interrupt flag. Set when a selected duration is reached. Reset by software. Bit 5 (PWM2IF): PWM2 (Pulse Width Modulation) interrupt flag. Set when a selected duration is reached. Reset by software. Bit 4 (PWM1IF): PWM1 (Pulse Width Modulation) interrupt flag. Set when a selected duration is reached. Reset by software. Bit 3 (ADIF): Bit 2 (EXIF): Bit 1 (ICIF): Bit 0 (TCIF): Interrupt flag for analog to digital conversion. Set when AD conversion is completed. Reset by software. External interrupt flag. Set by falling edge on /INT pin. Reset by software. Port 6 input status change interrupt flag. Set when Port 6 input changes. Reset by software. TCC overflow interrupt flag. Set when TCC overflows. Reset by software.
6.1.15 R10 ~ R3F
All of these are 8-bit general-purpose registers.
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 17
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.2
Special Purpose Registers
6.2.1 A (Accumulator)
Internal data transfer, or instruction operand holding. It cannot be addressed.
6.2.2 CONT (Control Register)
7
INTE
6
INT
5
TS
4
TE
3
PSTE
2
PST2
1
PST1
0
PST0
Bit 7 (INTE): INT signal edge 0 = interrupt occurs at the rising edge on the INT pin 1 = interrupt occurs at the falling edge on the INT pin Bit 6 (INT): Interrupt enable flag 0 = masked by DISI or hardware interrupt 1 = enabled by the ENI/RETI instructions This bit is readable only. Bit 5 (TS): TCC signal source 0 = internal instruction cycle clock. If P56 is used as I/O pin, TS must be 0. 1 = transition on the TCC pin Bit 4 (TE): TCC signal edge 0 = increment if the transition from low to high takes place on the TCC pin 1 = increment if the transition from high to low takes place on the TCC pin. Bit 3 (PSTE): Prescaler enable bit for TCC 0 = prescaler disable bit. TCC rate is 1:1. 1 = prescaler enable bit. TCC rate is set as Bit 2 ~ Bit 0. Bit 2 ~ Bit 0 (PST2 ~ PST0): TCC prescaler bits PST2
0 0 0 0 1 1 1 1
PST1
0 0 1 1 0 0 1 1
PST0
0 1 0 1 0 1 0 1
TCC Rate
1:2 1:4 1:8 1:16 1:32 1:64 1:128 1:256
18 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
NOTE Tcc timeout period [1/Fosc x prescaler x 256 (Tcc cnt) x 1 (CLK=2)] Tcc timeout period [1/Fosc x prescaler x 256 (Tcc cnt) x 2 (CLK=4)]
6.2.3 IOC50 ~ IOC70 (I/O Port Control Register)
"1" puts the relative I/O pin into high impedance, while "0" defines the relative I/O pin as output. IOC50, IOC60, and IOC70 registers are all readable and writable.
NOTE Using EM78P417N and EM78P418N type bit9 of the code option register (word0) must set to "1".Using EM78P417N type must set extra bit7 of IOC50 and bit0 of IOC70 to "0".Then pin status set to "0".Following the rules will have no addition power consumption.
6.2.4 IOC80 (PWMCON: PWM Control Register)
7
PWM3E
6
PWM2E
5
PWM1E
4
"0"
3
T1EN
2
T1P2
1
T1P1
0
T1P0
Bit 7 (PWM3E): PWM3 enable bit 0 = PWM3 is off (default value), and its related pin carries out the P53 function. 1 = PWM3 is on, and its related pin is automatically set to output.
NOTE The P53/PWM3/VREF pin cannot be applied to PWM3 and VREF at the same time. IF P53/PWM3/VREF acts as VREF analog input pin, then PWM3E must be "0".. The P53/PWM3/VREF pin priority is as follows: P53/PWM3/VREF PIN PRIORITY High VREF Medium PWM3 Low P53
Bit 6 (PWM2E): PWM2 enable bit 0 = PWM2 is off (default value), and its related pin carries out the P52 function. 1 = PWM2 is on, and its related pin is automatically set to output.
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 19
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Bit 5 (PWM1E): PWM1 enable bit 0 = PWM1 is off (default value), and its related pin carries out the P51 function; 1 = PWM1 is on, and its related pin is automatically set to output. Bit 4: Bit 3 (T1EN): Unimplemented, read as `0' TMR1 enable bit 0 = TMR1 is off (default value) 1 = TMR1 is on Bit 2 ~ Bit 0 (T1P2 ~ T1P0): TMR1 clock prescale option bits T1P2
0 0 0 0 1 1 1 1
T1P1
0 0 1 1 0 0 1 1
T1P0
0 1 0 1 0 1 0 1
Prescale
1:2 (default) 1:4 1:8 1:16 1:32 1:64 1:128 1:256
6.2.5 IOC90 (TMRCON: TIMER Control Register)
7
T3EN
6
T2EN
5
T3P2
4
T3P1
3
T3P0
2
T2P2
1
T2P1
0
T2P0
Bit 7 (T3EN):
TMR3 enable bit 0 = TMR3 is off (default value) 1 = TMR3 is on
Bit 6 (T2EN):
TMR2 enable bit 0 = TMR2 is off (default value) 1 = TMR2 is on
Bit 5 ~ Bit 3 (T3P2 ~ T3P0): TMR3 clock prescale option bits T3P2
0 0 0 0 1 1 1 1
T3P1
0 0 1 1 0 0 1 1
T3P0
0 1 0 1 0 1 0 1
Prescale
1:2(default) 1:4 1:8 1:16 1:32 1:64 1:128 1:256
20 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Bit 2: Bit 0 ( T2P2:T2P0 ): TMR2 clock prescale option bits T2P2
0 0 0 0 1 1 1 1
T2P1
0 0 1 1 0 0 1 1
T2P0
0 1 0 1 0 1 0 1
Prescale
1:2(default) 1:4 1:8 1:16 1:32 1:64 1:128 1:256
6.2.6 IOCA0 (CMPCON: Comparator Control Register)
7
"0"
6
"0"
5
"0"
4
"0"
3
"0"
2
CPOUT
1
COS1
0
COS0
Bit 7 ~ Bit 3:
Unimplemented, read as `0'
Bit 2 (CPOUT): the result of the comparator output Bit 1 ~ Bit 0 (COS1 ~ COS0): Comparator/OP Select bits
COS1 0 0 1 1 COS0 0 1 0 1 Function Description Comparator and OP not used. P60 acts as normal I/O pin Acts as Comparator and P60 acts as normal I/O pin Acts as Comparator and P60 acts as Comparator output pin (CO) Acts as OP and P60 acts as OP output pin (CO)
NOTE The CO and ADEO of the P60/ADE0/CO pins cannot be used at the same time. The P60/ADE0/CO pin priority is as follows: P60/ADE0/CO PRIORITY High CO Medium ADE0 Low P60
6.2.7 IOCB0 (Pull-Down Control Register)
7
/PD7
6
/PD6
5
/PD5
4
/PD4
3
/PD3
2
/PD2
1
/PD1
0
/PD0
IOCB0 register is both readable and writable Bit 7 (/PD7): Control bit is used to enable the pull-down of the P67 pin 0 = Enable internal pull-down 1 = Disable internal pull-down
* 21
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Bit 6 (/PD6): Bit 5 (/PD5): Bit 4 (/PD4): Bit 3 (/PD3): Bit 2 (/PD2): Bit 1 (/PD1): Bit 0 (/PD0): Control bit is used to enable the pull-down of the P66 pin Control bit is used to enable the pull-down of the P65 pin Control bit is used to enable the pull-down of the P64 pin Control bit is used to enable the pull-down of the P63 pin Control bit is used to enable the pull-down of the P62 pin Control bit is used to enable the pull-down of the P61 pin Control bit is used to enable the pull-down of the P60 pin.
6.2.8 IOCC0 (Open-Drain Control Register)
7
/OD7
6
/OD6
5
/OD5
4
/OD4
3
/OD3
2
/OD2
1
/OD1
0
/OD0
IOCC0 register is both readable and writable. Bit 7 (OD7): Control bit is used to enable the open-drain of the P57 pin. 0 = Enable open-drain output 1 = Disable open-drain output Bit 6 (OD6): Bit 5 (OD5): Bit 4 (OD4): Bit 3 (OD3): Bit 2 (OD2): Bit 1 (OD1): Bit 0 (OD0): Control bit is used to enable the open-drain of the P56 pin. Control bit is used to enable the open-drain of the P55 pin. Control bit is used to enable the open-drain of the P54 pin. Control bit is used to enable the open-drain of the P53 pin. Control bit is used to enable the open-drain of the P52 pin. Control bit is used to enable the open-drain of the P51 pin. Control bit is used to enable the open-drain of the P50 pin.
6.2.9 IOCD0 (Pull-high Control Register)
7
/PH7
6
/PH6
5
/PH5
4
/PH4
3
/PH3
2
/PH2
1
/PH1
0
/PH0
IOCD0 register is both readable and writable. Bit 7 (/PH7): Control bit is used to enable the pull-high of the P67 pin. 0 = Enable internal pull-high; 1 = Disable internal pull-high. Bit 6 (/PH6): Bit 5 (/PH5): Bit 4 (/PH4):
22 *
Control bit is used to enable the pull-high of the P66 pin. Control bit is used to enable the pull-high of the P65 pin. Control bit is used to enable the pull-high of the P64 pin.
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Bit 3 (/PH3): Bit 2 (/PH2): Bit 1 (/PH1): Bit 0 (/PH0): Control bit is used to enable the pull-high of the P53 pin. Control bit is used to enable the pull-high of the P52 pin. Control bit is used to enable the pull-high of the P51 pin. Control bit is used to enable the pull-high of the P50 pin.
6.2.10
7
WDTE
IOCE0 (WDT Control Register)
6
EIS
5
PSWE
4
PSW2
3
PSW1
2
PSW0
1
"0"
0
"0"
Bit 7 (WDTE): Control bit is used to enable Watchdog Timer 0 = Disable WDT 1 = Enable WDT WDTE is both readable and writable Bit 6 (EIS): Control bit is used to define the function of the P50 (/INT) pin 0 = P50, normal I/O pin 1 = /INT, external interrupt pin. In this case, the I/O control bit of P50 (Bit 0 of IOC50) must be set to "1"
NOTE 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 5 (R5). Refer to Fig. 6-4 (I/O Port and I/O Control Register Circuit for P50(/INT)) under Section 6.4 (I/O Ports). EIS is both readable and writable.
Bit 5 (PSWE): Prescaler enable bit for WDT 0 = prescaler disable bit. WDT rate is 1:1 1 = prescaler enable bit. WDT rate is set as Bit4~Bit2 Bit 4 ~ Bit 2 (PSW2 ~ PSW0): WDT prescaler bits. PSW2
0 0 0 0 1 1 1 1
PSW1
0 0 1 1 0 0 1 1
PSW0
0 1 0 1 0 1 0 1
WDT Rate
1:2 1:4 1:8 1:16 1:32 1:64 1:128 1:256
Bit 1 ~ Bit 0:
Unimplemented, read as `0'
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 23
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.2.11
7
CMPIE
IOCF0 (Interrupt Mask Register)
6
PWM3IE
5
PWM2IE
4
PWM1IE
3
ADIE
2
EXIE
1
ICIE
0
TCIE
NOTE IOCF0 register is both readable and writable Individual interrupt is enabled by setting its associated control bit in the IOCF0 to "1." Global interrupt is enabled by the ENI instruction and is disabled by the DISI instruction. Refer to Fig. 6-8 (Interrupt Input Circuit) under Section 6.6 (Interrupt).
Bit 7 (CMPIE):
CMPIF interrupt enable bit 0 = Disable CMPIF interrupt 1 = Enable CMPIF interrupt When the Comparator output status change is used to enter interrupt vector or to enter next instruction, the CMPIE bit must be set to "Enable."
Bit 6 (PWM3IE): PWM3IF interrupt enable bit 0 = Disable PWM3 interrupt 1 = Enable PWM3 interrupt Bit 5 (PWM2IE): PWM2IF interrupt enable bit 0 = Disable PWM2 interrupt 1 = Enable PWM2 interrupt Bit 4 (PWM1IE): PWM1IF interrupt enable bit 0 = Disable PWM1 interrupt 1 = Enable PWM1 interrupt Bit 3 (ADIE): ADIF interrupt enable bit 0 = Disable ADIF interrupt 1 = Enable ADIF interrupt When the ADC Complete is used to enter interrupt vector or to enter next instruction, the ADIE bit must be set to "Enable." Bit 2 (EXIE): EXIF interrupt enable bit 0 = Disable EXIF interrupt 1 = Enable EXIF interrupt Bit 1 (ICIE): ICIF interrupt enable bit 0 = Disable ICIF interrupt 1 = Enable ICIF interrupt If Port6 Input Status Change Interrupt is used to enter interrupt vector or to enter next instruction, the ICIE bit must be set to "Enable."
24 * Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Bit 0 (TCIE): TCIF interrupt enable bit. 0 = Disable TCIF interrupt 1 = Enable TCIF interrupt
6.2.12
IOC51 (PRD1: PWM1 Time Period)
The content of IOC51 is the time period (time base) of PWM1. The frequency of PWM1 is the reverse of the period.
6.2.13
IOC61 (PRD2: PWM2 Time Period)
The content of IOC61 is the time period (time base) of PWM2. The frequency of PWM2 is the reverse of the period.
6.2.14
IOC71 (PRD3: PWM3 Time Period)
The content of IOC71 is the time period (time base) of PWM3. The frequency of PWM3 is the reverse of the period.
6.2.15
IOC81 (DT1L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM1 Duty Cycle)
A specified value keeps the output of PWM1 to stay high until the value matches with TMR1.
6.2.16
IOC91 (DT2L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM2 Duty Cycle)
A specified value keeps the output of PWM2 to stay high until the value matches with TMR2.
6.2.17
IOCA1 (DT3L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM3 Duty Cycle)
A specified value keeps the output of PWM3 to stay high until the value matches with TMR3.
6.2.18
7
"0"
IOCB1 (DTH: the Most Significant Bits of PWM Duty Cycle)
6
"0"
5
PWM3[9]
4
PWM3[8]
3
PWM2[9]
2
PWM2[8]
1
PWM1[9]
0
PWM1[8]
Bit 7 & Bit 6:
Unimplemented, read as `0'.
Bit 5 & Bit 4 (PWM3[9], PWM3[8]): The Most Significant Bits of PWM3 Duty Cycle. Bit 3 & Bit 2 (PWM2[9], PWM2[8]): The Most Significant Bits of PWM2 Duty Cycle. Bit 1 & Bit 0 (PWM1[9], PWM1[8]): The Most Significant Bits of PWM1 Duty Cycle.
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 25
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.2.19
IOCC1 (TMR1L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM1 Timer)
The content of IOCC1 is read-only.
6.2.20
IOCD1 (TMR2L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM2 Timer)
The content of IOCD1 is read-only.
6.2.21
IOCE1 (TMR3L: the Least Significant Byte (Bit 7 ~ Bit 0) of PWM3 Timer)
The content of IOCE1 is read-only.
6.2.22
7
"0"
IOCF1 (TMRH: the Most Significant Bits of PWM Timer)
6
"0"
5
TMR3[9]
4
TMR3[8]
3
TMR2[9]
2
TMR2[8]
1
TMR1[9]
0
TMR1[8]
The content of IOCF1 is read-only. Bit 7 & Bit 6: Unimplemented, read as `0'.
Bit 5 & Bit 4 (TMR3[9], TMR3[8]): The Most Significant Bits of PWM1Timer Bit 3 & Bit 2 (TMR2[9], TMR2[8]): The Most Significant Bits of PWM2Timer Bit 1 & Bit 0 (TMR1[9], TMR1[8]): The Most Significant Bits of PWM3Timer
6.3
TCC/WDT and Prescaler
There are two 8-bit counters available as prescalers for the TCC and WDT respectively. The PST0 ~ PST2 bits of the CONT register are used to determine the ratio of the TCC prescaler, and the PWR0 ~ PWR2 bits of the IOCE0 register are used to determine the prescaler of WDT. The prescaler counter is cleared by the instructions each time such instructions are written into TCC. The WDT and prescaler will be cleared by the "WDTC" and "SLEP" instructions. Fig. 6-2 (next page) depicts the block diagram of TCC/WDT. TCC (R1) is an 8-bit timer/counter. The TCC clock source can be internal clock or external signal input (edge selectable from the TCC pin). If TCC signal source is from internal clock, TCC will increase by 1 at every instruction cycle (without prescaler). Referring to Fig. 6-2, CLK=Fosc/2 or CLK=Fosc/4 is dependent to the CODE Option bit . CLK=Fosc/2 if the CLKS bit is "0," and CLK=Fosc/4 if the CLKS bit is "1." If TCC signal source is from external clock input, TCC will increase by 1 at every falling edge or rising edge of the TCC pin. TCC pin input time length (kept in High or Low level) must be greater than 1CLK.
NOTE The internal TCC will stop running when sleep mode occurs. However, during AD conversion, when TCC is set to "SLEP" instruction, if the ADWE bit of RE register is enabled, the TCC will keep on running
26 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM The watchdog timer is a free running on-chip RC oscillator. The WDT will keep on running even when the oscillator driver has been turned off (i.e., in sleep mode). During normal operation or sleep mode, a WDT time-out (if enabled) will cause the device to reset. The WDT can be enabled or disabled at any time during normal mode through software programming. Refer to WDTE bit of IOCE0 register (Section 6.2.10 IOCE0 (WDT Control Register). With no prescaler, the WDT time-out duration is approximately 18ms.1
CLK (Fosc/2 or Fosc/4) Data Bus 0 TCC Pin TE (CONT) 1 MUX 8 to 1 MUX Prescaler TS (CONT) PSR2~0 (CONT) 8-Bit Counter (IOCC1) SYNC 2 cycles TCC (R1)
TCC overflow interrupt
WDT
8-Bit counter
WDTE (IOCE0)
8 to 1 MUX
Prescaler
WDT Time out
PSW2~0 (IOCE0)
Fig. 6-2 TCC and WDT Block Diagram
6.4
I/O Ports
The I/O registers (Port 5, Port 6, Port7) are bi-directional tri-state I/O ports. The Pull-high, Pull-down, and Open-drain functions can be set internally by IOCB0, IOCC0, and IOCD0 respectively. Port 6 features an input status change interrupt (or wake-up) function. Each I/O pin can be defined as "input" or "output" pin by the I/O control registers (IOC50 ~ IOC70). The I/O registers and I/O control registers are both readable and writable. The I/O interface circuits for Port 5, Port 6, and Port7 are illustrated in Figures 6-3, 6-4, & 6-5 respectively (see next page). Port 6 with Input Change Interrupt/Wake-up is shown in Fig. 6-6.
1
VDD=5V, Setup time period = 16.5ms 30%. * 27
VDD=3V, Setup time period = 18ms 30%. Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
PCRD
Q Q
D
CLK
PCWR
PORT
Q
D
CLK
IOD
PDWR
Q PDRD
0 1
M U X
NOTE: Pull-high and Open-drain are not shown in the figure.
Fig. 6-3 I/O Port and I/O Control Register Circuit for Port 5 and Port7
PCRD
Q Q
D
CLK
PCWR
P50, /INT
PORT
Q Q
D
CLK
IOD
PDWR
Bit 6 of IOCE0
D
CLK
Q
0 1
M U X
PDRD
TI 0
Q
INT
NOTE: Pull-high and Open-drain are not shown in the figure.
Fig. 6-4 I/O Port and I/O Control Register Circuit for P50(/INT)
28 * Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
PCRD
Q Q
D
CLK
PCWR
P60 ~ P67
PORT
Q Q
D
CLK
IOD
PDWR
0 1
M U X
PDRD
TI n
D
CLK
Q
Q
NOTE: Pull-high (down) and Open-drain are not shown in the figure.
Fig. 6-5 I/O Port and I/O Control Register Circuit for Port 6
IOCE.1
D
P R
Q Interrupt _ Q RE.1 ENI Instruction
CLK
C L
T10 T11
D
P R
Q Q _ Q P R D
CLK
_ CQ L
CLK
C L
T17
DISI Instruction Interrupt (W ake-up from SLEEP)
/SLEP
Next Instruction (W ake-up from SLEEP)
Fig. 6-6 Port 6 Block Diagram with Input Change Interrupt/Wake-up
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 29
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.4.1 Usage of Port 6 Input Change Wake-up/Interrupt Function
(1) Wake-up (a) Before SLEEP 1. Disable WDT 2. Read I/O Port 6 (MOV R6,R6) 3. Execute "ENI" or "DISI" 4. Enable wake-up bit (Set RE ICWE =1) 5. Execute "SLEP" instruction (b) After wake-up Next instruction (2) Wake-up and Interrupt (a) Before SLEEP 1. Disable WDT 2. Read I/O Port 6 (MOV R6,R6) 3. Execute "ENI" or "DISI" 4. Enable wake-up bit (Set RE ICWE =1) 5. Enable interrupt (Set IOCF0 ICIE =1) 6. Execute "SLEP" instruction (b) After wake-up 1. IF "ENI" Interrupt vector (008H) 2. IF "DISI" Next instruction
(3) Interrupt (a) Before Port 6 pin change 1. Read I/O Port 6 (MOV R6,R6) 2. Execute "ENI" or "DISI" 3. Enable interrupt (Set IOCF0 ICIE =1) (b) After Port 6 pin changed (interrupt) 1. IF "ENI" Interrupt vector (008H) 2. IF "DISI" Next instruction
6.5
RESET and Wake-up
6.5.1 RESET and Wake-up Operation
A RESET is initiated by one of the following events: 1. Power-on reset 2. /RESET pin input "low" 3. WDT time-out (if enabled). A device is kept in a RESET condition for the duration of approximately 18ms.2 after the reset is detected. When in LXT mode, the reset time is 500ms. Once RESET occurs, the following functions are performed (the initial address is 000h): The oscillator continues running, or will be started (if under sleep mode) The Program Counter (R2) is set to all "0" All I/O port pins are configured as input mode (high-impedance state) The Watchdog Timer and prescaler are cleared When power is switched on, the upper 3 bits of R3 and upper 2 bits of R4 are cleared The CONT register bits are set to all "1" except for the Bit 6 (INT flag)
2
VDD=5V, WDT Time-out period = 16.5ms 30%. VDD=3V, WDT Time-out period = 18ms 30%. Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
30 *
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM The IOCB0 register bits are set to all "1" The IOCC0 register bits are set to all "1" The IOCD0 register bits are set to all "1" Bit 7 of the IOCE0 register is set to "1", and Bit 6~0 are cleared Bits 0~6 of RF register and bits 0~6 of IOCF0 register are cleared Executing the "SLEP" instruction will assert the sleep (power down) mode. While entering sleep mode, the Oscillator, TCC, TIMER1, TIMER2, and TIMER3 are stopped. The WDT (if enabled) is cleared but keeps on running. The controller can be awakened byCase 1 External reset input on /RESET pin Case 2 WDT time-out (if enabled) Case 3 Port 6 input status changes (if ICWE is enabled) Case 4 Comparator output status changes (if CMPWE is enabled) Case 5 AD conversion completed (if ADWE enable). The first two cases (1 & 2) will cause the EM78P417/8/9N to reset. The T and P flags of R3 can be used to determine the source of the reset (wake-up). Cases 3, 4, & 5 are considered the continuation of program execution and the global interrupt ("ENI" or "DISI" being executed) decides whether or not the controller branches to the interrupt vector following wake-up. If ENI is executed before SLEP, the instruction will begin to execute from address 0x8 after wake-up. If DISI is executed before SLEP, the execution will restart from the instruction next to SLEP after wake-up. All sleep mode wake up time is150s, no matter what the oscillator type or mode is (except when it's in low XTAL mode). Under low XATL mode, wake up time is 500ms. Only one of the Cases 1 to 5 can be enabled before entering into sleep mode. That is: Case [a] If WDT is enabled before SLEP, all of the RE bit is disabled. Hence, the EM78P417/8/9N can be awaken only with Case 1 or Case 2. Refer to the section on Interrupt (Section 6.6) for further details. Case [b] If Port 6 Input Status Change is used to wake -up EM78P417/8/9N and ICWE bit of RE register is enabled before SLEP, WDT must be disabled. Hence, the EM78P417/8/9N can be awaken only with Case 3. Wake-up time is dependent on oscillator mode. Under RC mode the reset time is 32 clocks (for oscillator stables). In High XTAL mode, reset time is 2ms and 32clocks(for oscillator stables); and in low XTAL mode, the reset time is 500ms.
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 31
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Case [c] If Comparator output status change is used to wake-up EM78P418/9N and CMPWE bit of RE register is enabled before SLEP, WDT must be disabled by software. Hence, the EM78P418/9N can be awaken only with Case 4. Wake-up time is dependent on oscillator mode. Under RC mode the reset time is 32 clocks (for oscillator stables). In High XTAL mode, reset time is 2ms and 32 clocks (for oscillator stables); and in low XTAL mode, the reset time is 500ms. Case [d] If AD conversion completed is used to wake-up EM78P417/8/9N and ADWE bit of RE register is enabled before SLEP, WDT must be disabled by software. Hence, the EM78P417/8/9N can be awaken only with Case 5. The wake-up time is 15 TAD (ADC clock period). If Port 6 Input Status Change Interrupt is used to wake up the EM78P417/8/9N (as in Case b above), the following instructions must be executed before SLEP: BC R3, 7 MOV A, @001110xxb IOW IOCE0 WDTC MOV R6, R6 ENI (or DISI) MOV A, @00000x1xb MOV RE MOV A, @00000x1xb IOW IOCF0 SLEP ; Select Segment 0 ; Select WDT prescaler and Disable WDT ; ; ; ; Clear WDT and prescaler Read Port 6 Enable (or disable) global interrupt Enable Port 6 input change wake-up bit
; Enable Port 6 input change interrupt ; Sleep
Similarly, if the Comparator Interrupt is used to wake up the EM78P418/9N (as in Case [c] above), the following instructions must be executed before SLEP: BC MOV R3, 7 A, @xxxxxx10b ; Select Segment 0 ; Select an comparator and P60 act as CO pin ; Select WDT prescaler and Disable WDT ; Clear WDT and prescaler ; Enable (or disable) global interrupt ; Enable comparator output status change wake-up bit ; Enable comparator output status change interrupt ; Sleep
IOW IOCA0 MOV A, @001110xxb IOW IOCE0 WDTC ENI (or DISI) MOV A, @000001xxb MOV MOV IOW SLEP RE A, @000001xxb IOCF0
32 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM 6.5.1.1 Wake-Up and Interrupt Modes Operation Summary All categories under Wake-up and Interrupt modes are summarized below.
Signal
TCC Over Flow
Sleep Mode
N/A
Normal Mode
DISI + IOCF0 (TCIE) bit0=1 Next Instruction+ Set RF (TCIF)=1 ENI + IOCF0 (TCIE) bit0=1 Interrupt Vector (0x08)+ Set RF (TCIF)=1 IOCF0 (ICIE) bit1=0
RE (ICWE) bit1=0, IOCF0 (ICIE) bit1=0 Oscillator, TCC and TIMERX are stopped. Port6 input status change interrupted is invalid Port6 input status changed wake-up is invalid. RE (ICWE) bit1=0, IOCF0 (ICIE) bit1=1 Set RF (ICIF)=1, Oscillator, TCC and TIMERX are stopped. Port6 input status changed wake-up is invalid. RE (ICWE) bit1=1, IOCF0 (ICIE) bit1=0 Port 6 Input Status Change Wake-up+ Next Instruction Oscillator, TCC and TIMERX are stopped. RE (ICWE) bit1=1, DISI + IOCF0 (ICIE) bit1=1 DISI + IOCF0 (ICIE) bit1=1 Wake-up+ Next Instruction+ Set RF (ICIF)=1 Next Instruction+ Set RF (ICIF)=1 Oscillator, TCC and TIMERX are stopped. RE (ICWE) bit1=1, ENI + IOCF0 (ICIE) bit1=1 ENI + IOCF0 (ICIE) bit1=1 Wake-up+ Interrupt Vector (0x08)+ Set RF (ICIF)=1 Interrupt Vector (0x08)+ Set RF (ICIF)=1 Oscillator, TCC and TIMERX are stopped. DISI + IOCF0 (EXIE) bit2=1 Next Instruction+ Set RF (EXIF)=1 INT Pin N/A ENI + IOCF0 (EXIE) bit2=1 Interrupt Vector (0x08)+ Set RF (EXIF)=1 RE (ADWE) bit3=0, IOCF0 (ADIE) bit3=0 IOCF0 (ADIE) bit1=0 Clear R9 (ADRUN)=0, ADC is stopped, AD conversion wake-up is invalid. AD conversion interrupted is invalid Oscillator, TCC and TIMERX are stopped. RE (ADWE) bit3=0, IOCF0 (ADIE) bit3=1 Set RF (ADIF)=1, R9 (ADRUN)=0, ADC is stopped, AD conversion wake-up is invalid. Oscillator, TCC and TIMERX are stopped. RE (ADWE) bit3=1, IOCF0 (ADIE) bit3=0 AD Conversion Wake-up+ Next Instruction, Oscillator, TCC and TIMERX keep on running. Wake-up when ADC completed. RE (ADWE) bit3=1, DISI + IOCF0 (ADIE) bit3=1 DISI + IOCF0 (ADIE) bit3=1 Wake-up+ Next Instruction+ RF (ADIF)=1, Oscillator, TCC and TIMERX keep on running. Next Instruction+ RF (ADIF)=1 Wake-up when ADC completed. RE (ADWE) bit3=1, ENI + IOCF0 (ADIE) bit3=1 ENI + IOCF0 (ADIE) bit3=1 Wake-up+ Interrupt Vector (0x08)+ RF (ADIF)=1, Oscillator, TCC and TIMERX keep on running. Interrupt Vector (0x08)+ Set RF (ADIF)=1 Wake-up when ADC completed. DISI + IOCF0 (PWMXIE)=1 PWMX (PWM1,PWM2,PWM3) Next Instruction+ Set RF (PWMXIF)=1 N/A (When TimerX matches PRDX) ENI + IOCF0 (PWMXIE)=1 Interrupt Vector (0x08)+ Set RF (PWMXIF)=1
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 33
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
Signal
Sleep Mode
RE (CMPWE) bit2=0, IOCF0 (CMPIE) bit7=0 Comparator output status changed wake-up is invalid. Oscillator, TCC and TIMERX are stopped. RE (CMPWE) bit2=0, IOCF0 (CMPIE) bit7=1 Set RF (CMPIF)=1, Comparator output status changed wake-up is invalid. Oscillator, TCC and TIMERX are stopped. RE (CMPWE) bit2=1, IOCF0 (CMPIE) bit7=0 Wake-up+ Next Instruction, Oscillator, TCC and TIMERX are stopped. RE (CMPWE) bit2=1, DISI + IOCF0 (CMPIE) bit7=1 Wake-up+ Next Instruction+ Set RF (CMPIF)=1, Oscillator, TCC and TIMERX are stopped. RE (CMPWE) bit2=1, ENI + IOCF0 (CMPIE) bit7=1 Wake-up+ Interrupt Vector (0x08)+ Set RF (CMPIF)=1, Oscillator, TCC and TIMERX are stopped.
Normal Mode
IOCF0 (CMPIE) bit7=0 Comparator output status change interrupted is invalid.
Comparator (Comparator Output Status Change)
DISI + IOCF0 (CMPIE) bit7=1 Next Instruction+ Set RF (CMPIF)=1 ENI + IOCF0 (CMPIE) bit7=1 Interrupt Vector (0x08)+ Set RF (CMPIF)=1 Reset (address 0x00)
WDT Time Out IOCE (WDTE) Bit7=1
Wake-up+ Reset (address 0x00)
6.5.1.2 Register Initial Values after Reset The following summarizes the initialized values for registers.
Address Name Reset Type Bit Name Power-on N/A IOC50 /RESET & WDT Wake-up from Pin Change Bit Name Power-on N/A IOC60 /RESET & WDT Wake-up from Pin Change Bit Name Power-on N/A IOC70 /RESET & WDT Wake-up from Pin Change Bit Name N/A Power-on IOC80 (PWMCON) /RESET &WDT Wake-up from Pin Change Bit 7 C57 1 1 P C67 1 1 P 0 0 P Bit 6 C56 1 1 P C66 1 1 P 0 0 P Bit 5 C55 1 1 P C65 1 1 P 0 0 P Bit 4 C54 1 1 P C64 1 1 P C74 1 1 P 0 0 P Bit 3 C53 1 1 P C63 1 1 P C73 1 1 P T1EN 0 0 P Bit 2 C52 1 1 P C62 1 1 P C72 1 1 P T1P2 0 0 P Bit 1 C51 1 1 P C61 1 1 P C71 1 1 P T1P1 0 0 P Bit 0 C50 1 1 P C60 1 1 P C70 1 1 P T1P0 0 0 P
PWM3E PWM2E PWM1E 0 0 P 0 0 P 0 0 P
34 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
Address
Name
Reset Type Bit Name
Bit 7 T3EN 0 0 P 0 0 P /PD7 1 1 P /OD7 1 1 P /PH7 1 1 P WDTE 0 0 P
Bit 6 T2EN 0 0 P 0 0 P /PD6 1 1 P /OD6 1 1 P /PH6 1 1 P EIS 0 0 P
Bit 5 T3P2 0 0 P 0 0 P /PD5 1 1 P /OD5 1 1 P /PH5 1 1 P PSWE 0 0 P
Bit 4 T3P1 0 0 P 0 0 P /PD4 1 1 P /OD4 1 1 P /PH4 1 1 P PSW2 0 0 P
Bit 3 T3P0 0 0 P 0 0 P /PD3 1 1 P /OD3 1 1 P /PH3 1 1 P PSW1 0 0 P ADIE 0 0 P
Bit 2 T2P2 0 0 P
Bit 1 T2P1 0 0 P
Bit 0 T2P0 0 0 P COS0 0 0 P /PD0 1 1 P /OD0 1 1 P /PH0 1 1 P 0 0 P TCIE 0 0 P
N/A
Power-on IOC90 (TMRCON) /RESET & WDT Wake-up from Pin Change Bit Name Power-on IOCA0 (CMPCON) /RESET & WDT Wake-up from Pin Change Bit Name Power-on
CPOUT COS1 0 0 P /PD2 1 1 P /OD2 1 1 P /PH2 1 1 P PSW0 0 0 P EXIE 0 0 P 0 0 P /PD1 1 1 P /OD1 1 1 P /PH1 1 1 P 0 0 P ICIE 0 0 P
N/A
N/A
IOCB0
/RESET & WDT Wake-up from Pin Change Bit Name Power-on
N/A
IOCC0
/RESET & WDT Wake-up from Pin Change Bit Name Power-on
N/A
IOCD0
/RESET & WDT Wake-up from Pin Change Bit Name Power-on
N/A
IOCE0
/RESET & WDT Wake-up from Pin Change Bit Name Power-on
CMPIE PMW3IE PMW2IE PWM1IE 0 0 P 0 0 P 0 0 P 0 0 P
N/A
IOCF0
/RESET & WDT Wake-up from Pin Change Bit Name Power-on /RESET & WDT Wake-up from Pin Change
PRD1[7] PRD1[6] PRD1[5] PRD1[4] PRD1[3] PRD1[2] PRD1[1] PRD1[0] 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P
N/A
IOC51 (PRD1)
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 35
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
Address
Name
Reset Type Bit Name Power-on /RESET & WDT Wake-up from Pin Change Bit Name Power-on /RESET & WDT Wake-up from Pin Change Bit Name Power-on /RESET & WDT Wake-up from Pin Change Bit Name Power-on /RESET & WDT Wake-up from Pin Change Bit Name Power-on /RESET & WDT Wake-up from Pin Change Bit Name
Bit 7 0 0 P
Bit 6 0 0 P
Bit 5 0 0 P
Bit 4 0 0 P
Bit 3 0 0 P
Bit 2 0 0 P
Bit 1 0 0 P
Bit 0 0 0 P
PRD2[7] PRD2[6] PRD2[5] PRD2[4] PRD2[3] PRD2[2] PRD2[1] PRD2[0]
N/A
IOC61 (PRD2)
PRD3[7] PRD3[6] PRD3[5] PRD3[4] PRD3[3] PRD3[2] PRD3[1] PRD3[0] 0 0 P DT1[7] 0 0 P DT2[7] 0 0 P DT3[7] 0 0 P 0 0 P 0 0 P DT1[6] 0 0 P DT2[6] 0 0 P DT3[6] 0 0 P 0 0 P 0 0 P DT1[5] 0 0 P DT2[5] 0 0 P DT3[5] 0 0 P DT3[9] 0 0 P 0 0 P DT1[4] 0 0 P DT2[4] 0 0 P DT3[4] 0 0 P DT3[8] 0 0 P 0 0 P DT1[3] 0 0 P DT2[3] 0 0 P DT3[3] 0 0 P DT2[9] 0 0 P 0 0 P DT1[2] 0 0 P DT2[2] 0 0 P DT3[2] 0 0 0 DT2[8] 0 0 P 0 0 P DT1[1] 0 0 P DT2[1] 0 0 P DT3[1] 0 0 P DT1[9] 0 0 P 0 0 P DT1[0] 0 0 P DT2[0] 0 0 P DT3[0] 0 0 P DT1[8] 0 0 P
N/A
IOC71 (PRD3)
N/A
IOC81 (DT1L)
N/A
IOC91 (DT2L)
N/A
IOCA1 (DT3L)
N/A
IOCB1 Power-on (DT1H, /RESET & WDT 2H, 3H) Wake-up from Pin Change Bit Name Power-on /RESET & WDT Wake-up from Pin Change Bit Name Power-on /RESET & WDT Wake-up from Pin Change
TMR1[7] TMR1[6] TMR1[5] TMR1[4] TMR1[3] TMR1[2] TMR1[1] TMR1[0] 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P
N/A
IOCC1 (TMR1L)
TMR2[7] TMR2[6] TMR2[5] TMR2[4] TMR2[3] TMR2[2] TMR2[1] TMR2[0] 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P 0 0 P
N/A
IOCD1 (TMR2L)
36 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
Address
Name
Reset Type Bit Name Power-on /RESET & WDT Wake-up from Pin Change Bit Name
Bit 7 0 0 P 0 0 P INTE 0 0 P U P P 0 0 P 0 0
Bit 6 0 0 P 0 0 P INT 0 0 P U P P 0 0 P 0 0
Bit 5 0 0 P
Bit 4 0 0 P
Bit 3 0 0 P
Bit 2 0 0 P
Bit 1 0 0 P
Bit 0 0 0 P
TMR3[7] TMR3[6] TMR3[5] TMR3[4] TMR3[3] TMR3[2] TMR3[1] TMR3[0]
N/A
IOCE1 (TMR3L)
TMR3[9] TMR3[8] TMR2[9] TMR2[8] TMR1[9] TMR1[8] 0 0 P TS 0 0 P U P P 0 0 P 0 0 0 0 P TE 0 0 P U P P 0 0 P 0 0 0 0 P PSTE 0 0 P U P P 0 0 P 0 0 0 0 P PST2 0 0 P U P P 0 0 P 0 0 0 0 P PST1 0 0 P U P P 0 0 P 0 0 0 0 P PST0 0 0 P U P P 0 0 P 0 0
N/A
Power-on IOCF1 (TMR1H, /RESET & WDT 2H, 3H) Wake-up from Pin Change Bit Name Power-on
N/A
CONT
/RESET & WDT Wake-up from Pin Change Bit Name Power-on
0x00
R0(IAR)
/RESET & WDT Wake-up from Pin Change Bit Name Power-on
0x01
R1(TCC)
/RESET & WDT Wake-up from Pin Change Bit Name Power-on
0x02
R2(PC)
/RESET & WDT Wake-up from Pi Change Bit Name Power-on
Jump to address 0x08 or continue to execute next instruction IOCS 0 0 P BS7 0 0 P PS1 0 0 P BS6 0 0 P PS0 0 0 P U P P T 1 t t U P P P 1 t t U P P Z U P P U P P DC U P P U P P C U P P U P P
0x03
R3(SR)
/RESET & WDT Wake-up from Pin Change Bit Name
0x04
Power-on R4(RSR) /RESET & WDT Wake-up from Pin Change
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 37
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
Address
Name
Reset Type Bit Name Power-on
Bit 7 P57 1 1 P P67 1 1 P 0 0 P ADE7 0 0 P
Bit 6 P56 1 1 P P66 1 1 P 0 0 P ADE6 0 0 P
Bit 5 P55 1 1 P P65 1 1 P 0 0 P ADE5 0 0 P
Bit 4 P54 1 1 P P64 1 1 P P74 1 1 P ADE4 0 0 P
Bit 3 P53 1 1 P P63 1 1 P P73 1 1 P ADE3 0 0 P
Bit 2 P52 1 1 P P62 1 1 P P72 1 1 P ADE2 0 0 P ADIS2 0 0 P 0 0 P AD6 U U P AD10 U U P
Bit 1 P51 1 1 P P61 1 1 P P71 1 1 P ADE1 0 0 P ADIS1 0 0 P 0 0 P AD5 U U P AD9 U U P
Bit 0 P50 1 1 P P60 1 1 P P70 1 1 P ADE0 0 0 P ADIS0 0 0 P 0 0 P AD4 U U P AD8 U U P
0x05
R5
/RESET & WDT Wake-up from Pin Change Bit Name Power-on
0x06
P6
/RESET & WDT Wake-up from Pin Change Bit Name Power-on
0x7
R7
/RESET & WDT Wake-up from Pin Change Bit Name Power-on /RESET & WDT Wake-up from Pin Change Bit Name Power-on /RESET and WDT Wake-up from Pin Change Bit Name Power-on /RESET and WDT Wake-up from Pin Change Bit Name
0x8
R8 (AISR)
VREFS CKR1 0 0 P CALI 0 0 P AD11 U U P 0 0 P 0 0 P SIGN 0 0 P AD10 U U P 0 0 P
CKR0 ADRUN ADPD 0 0 P 0 0 P 0 0 P
0x9
R9 (ADCON)
VOF[2] VOF[1] VOF[0] 0 0 P AD9 U U P 0 0 P 0 0 P AD8 U U P 0 0 P 0 0 P AD7 U U P AD11 U U P
0xA
RA (ADOC)
0xB
Power-on RB (ADDDATA) /RESET and WDT Wake-up from Pin Change Bit Name Power-on RC (ADDATA1H) /RESET and WDT Wake-up from Pin Change
0xC
38 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
Address
Name
Reset Type Bit Name Power-on
Bit 7 AD7 U U P 0 0 P
Bit 6 AD6 U U P 0 0 P
Bit 5 AD5 U U P 0 0 P
Bit 4 AD4 U U P 0 0 P
Bit 3 AD3 U U P
Bit 2 AD2 U U P
Bit 1 AD1 U U P
Bit 0 AD0 U U P 0 0 P TCIF 0 0 P U P P
0xD
RD (ADDATA1L) /RESET and WDT Wake-up from Pin Change Bit Name Power-on /RESET and WDT Wake-up from Pin Change Bit Name Power-on /RESET and WDT Wake-up from Pin Change Bit Name Power-on R10 ~ R3F /RESET and WDT Wake-up from Pin Change
ADWE CMPWE ICWE 0 0 P 0 0 P EXIF 0 0 P U P P 0 0 P ICIF 0 0 P U P P
0xE
RE (WUCR)
CMPIF PWM3IF PWM2IF PWM1IF ADIF 0 0 P U P P 0 0 P U P P 0 0 P U P P 0 0 P U P P 0 0 P U P P
0xF
RF (ISR)
0x10 ~ 0x3F
LEGEND:
- : not used. U: unknown or don't care t: check "Reset Type" table in Section 6.5.2 P: previous value before reset
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 39
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM 6.5.1.3 Controller Reset Block Diagram
VDD
D Oscillator
CLK CLR
Power-On Reset Voltage Detector
Q
CLK
W TE
W DT Timeout
W DT
Setup time
Reset
/RESET
Fig. 6-7 Controller Reset Block Diagram
6.5.2 The T and P Status under STATUS Register
A RESET condition is initiated by one of the following events: 1. Power-on reset 2. /RESET pin input "low" 3. WDT time-out (if enabled). The values of T and P as listed in the table below, are used to check how the processor wakes up. Reset Type
Power-on /RESET during Operating mode /RESET wake-up during SLEEP mode WDT during Operating mode WDT wake-up during SLEEP mode Wake-up on pin change during SLEEP mode
T
1 *P 1 0 0 1
P
1 *P 0 *P 0 0
*P: Previous status before reset
The following shows the events that may affect the status of T and P. Event
Power-on WDTC instruction WDT time-out SLEP instruction Wake-up on pin changed during SLEEP mode
T
1 1 0 1 1
P
1 1 *P 0 0
*P: Previous value before reset 40 * Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.6
Interrupt
The EM78P417/8/9N 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. When TMR1/TMR2/TIMER3 matches with PRD1/PRD2/PRD3 respectively in PWM 6. When the comparators output changes (for EM78P418/9N only) Before the Port 6 Input Status Change Interrupt is enabled, reading Port 6 (e.g., "MOV R6, R6") is necessary. Each Port 6 pin will have this feature if its status changes. Any pin configured as output, including the P50 pin configured as /INT, is excluded from this function. Port 6 Input Status Change Interrupt will wake up the EM78P417/8/9N from sleep mode if it is enabled prior to going into the sleep mode by executing SLEP. When wake-up occurs, the controller will continue to execute the succeeding program if the global interrupt is disabled. If enabled, it will branch out to the interrupt vector 008H. External interrupt equipped with digital noise rejection circuit (input pulse less than 8 system clocks time) is eliminated as noise. Edge selection is possible with /INT. Refer to the Word 1 Bits 8~7 (Section 6.14.2, Code Option Register (Word 1)) for digital noise rejection definition. RF is the interrupt status register that records the interrupt requests in the relative flags/bits. IOCF0 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 (when 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 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 of the ENI execution. Note that the result of RF will be the logic AND of RF and IOCF0 (refer to figure below). The RETI instruction ends the interrupt routine and enables the global interrupt (the ENI execution).
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 41
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
Fig. 6-8 Interrupt Input Circuit
6.7
Analog-To-Digital Converter (ADC)
The analog-to-digital circuitry consists of an 8-bit analog multiplexer; three control registers (AISR/R8, ADCON/R9, & ADOC/RA), three data registers (ADDATA1/RB, ADDATA1H/RC, & ADDATA1L/RD) and an ADC with 12-bit resolution as shown in the functional block diagram below. The analog reference voltage (Vref) and the analog ground are connected via separate input pins. The ADC module utilizes successive approximation to convert the unknown analog signal into a digital value. The result is fed to the ADDATA, ADDATA1H and ADDATA1L. Input channels are selected by the analog input multiplexer via the ADCON register Bits.
ADC7 ADC6 ADC5 ADC4
Vref
ADC3 ADC2 ADC1 ADC0 Fsco
4-1 MUX
ADC ( successive approximation )
Power-Down
Start to Convert
Internal RC
7~0
AISR
2 ADCON 1 0
6 ADCON
5 RF
3
11 10
9
8
7
6
5
4
3
2
1
0
4
ADCON
3
ADDATA1H
ADDATA1L
DATA BUS
Fig. 6-9 Analog-to-Digital Conversion Functional Block Diagram
42 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.7.1 ADC Control Register (AISR/R8, ADCON/R9, ADOC/RA)
6.7.1.1 R8 (AISR: ADC Input Select Register) 7
SYMBOL *Init_Value
6
ADE7 0
5
ADE6 0
4
ADE5 0
3
ADE4 0
2
ADE3 0
1
ADE2 0
0
ADE1 0
AISR register defines the Port 6 pins as analog inputs or as digital I/O, individually. Bit 7 (ADE7 ): AD converter enable bit of P67 pin 0 = Disable ADC7, P67 acts as I/O pin 1 = Enable ADC7 acts as analog input pin Bit 6 (ADE6 ): AD converter enable bit of P66 pin 0 = Disable ADC6, P66 acts as I/O pin 1 = Enable ADC6 acts as analog input pin Bit 5 (ADE5 ): AD converter enable bit of P65 pin 0 = Disable ADC5, P65 acts as I/O pin 1 = Enable ADC5 acts as analog input pin Bit 4 (ADE4 ): AD converter enable bit of P64 pin 0 = Disable ADC4, P64 acts as I/O pin 1 = Enable ADC4 acts as analog input pin Bit 3 (ADE3 ): AD converter enable bit of P63 pin 0 = Disable ADC3, P63 acts as I/O pin 1 = Enable ADC3 acts as analog input pin Bit 2 (ADE2 ): AD converter enable bit of P62 pin 0 = Disable ADC2, P63 acts as I/O pin 1 = Enable ADC2 acts as analog input pin Bit 1 (ADE1 ): AD converter enable bit of P61 pin 0 = Disable ADC1, P61 acts as I/O pin 1 = Enable ADC1 acts as analog input pin
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 43
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Bit 0 (ADE0 ): AD converter enable bit of P60 pin 0 = Disable ADC0, P60 acts a s I/O pin 1 = Enable ADC0 acts as analog input pin
NOTE Note the pin priority of the COS1 and COS0 bits of IOCA0 Control register when P60/ADE0 acts as analog input or as digital I/O. The Comparator/OP select bits are as shown in a table under Section 6.2.6. The P60/ADE0/CO pin priority is as follows: P60/ADE0/CO PRIORITY High CO Medium ADE0 Low P60
6.7.1.2 R9 (ADCON: ADC Control Register) Bit
SYMBOL *Init_Value
7
VREFS 0
6
CKR1 0
5
CKR0 0
4
ADRUN 0
3
ADPD 0
2
ADIS2 0
1
ADIS1 0
0
ADIS0 0
*Init_Value: Initial value at power on reset
ADCON register controls the operation of the AD conversion and decides which pin should be currently active. Bit 7(VREFS): The input source of the Vref of the ADC 0 = The Vref of the ADC is connected to Vdd (default value), and the P53/VREF pin carries out the function of P53 1 = The Vref of the ADC is connected to P53/VREF
NOTE The P53/PWM3/VREF pin cannot be applied to PWM3 and VREF at the same time. IF P53/PWM3/VREF acts as VREF analog input pin, then PWM3E must be "0".. The P53/PWM3/VREF pin priority is as follows: P53/PWM3/VREF PIN PRIORITY High VREF Medium PWM3 Low P53
44 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Bit 6 ~ Bit 5 (CKR1 ~ CKR0): The prescaler oscillator clock rate of ADC 00 = 1: 4 (default value) 01 = 1: 16 10 = 1: 64 11 = 1: WDT ring oscillator frequency
CKR0:CKR1 Operation Mode Max. Operation Frequency 00 01 10 11 Fsco/4 Fsco/16 Fsco/64 Internal RC 1 MHz 4 MHz 16MHz -
Bit 4 (ADRUN):
ADC starts to RUN. 0 = reset on completion of the conversion. This bit cannot be reset though software. 1 = an AD conversion is started. This bit can be set by software.
Bit 3 (ADPD):
ADC Power-down mode. 0 = switch off the resistor reference to save power even while the CPU is operating. 1 = ADC is operating
Bit 2 ~ Bit 0 (ADIS2 ~ ADIS0): Analog Input Select. 000 = AN0/P60 001 = AN1/P61 010 = AN2/P62 011 = AN3/P63 100 = AN4/P64 101 = AN5/P65 110 = AN6/P66 111 = AN7/P67 These bits can only be changed when the ADIF bit and the ADRUN bit are both LOW.
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 45
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM 6.7.1.3 RA (ADOC: ADC Offset Calibration Register) 7
CALI
6
SIGN
5
VOF[2]
4
VOF[1]
3
VOF[0]
2
"0"
1
"0"
0
"0"
Bit 7 (CALI): Calibration enable bit for ADC offset 0 = Calibration disable; 1 = Calibration enable. Bit 6 (SIGN): Polarity bit of offset voltage 0 = Negative voltage; 1 = Positive voltage. Bit 5 ~ Bit 3 (VOF[2] ~ VOF[0]): Offset voltage bits. VOF[2]
0 0 0 0 1 1 1 1
VOF[1]
0 0 1 1 0 0 1 1
VOF[0]
0 1 0 1 0 1 0 1
EM78P417/8/9N
0LSB 2LSB 4LSB 6LSB 8LSB 10LSB 12LSB 14LSB
ICE418N
0LSB 1LSB 2LSB 3LSB 4LSB 5LSB 6LSB 7LSB
Bit 2 ~ Bit 0: Unimplemented, read as `0'.
6.7.2 ADC Data Register (ADDATA/RB, ADDATA1H/RC, ADDATA1L/RD)
When the AD conversion is completed, the result is loaded to the ADDATA, ADDATA1H and ADDATA1L registers. The ADRUN bit is cleared, and the ADIF is set.
6.7.3 ADC Sampling Time
The accuracy, linearity, and speed of the successive approximation of AD converter are dependent on the properties of the ADC and the comparator. The source impedance and the internal sampling impedance directly affect the time required to charge the sample holding capacitor. The application program controls the length of the sample time to meet the specified accuracy. Generally speaking, the program should wait for 2s for each K of the analog source impedance and at least 2s for the low-impedance source. The maximum recommended impedance for analog source is 10K at Vdd=5V. After the analog input channel is selected, this acquisition time must be done before the conversion is started.
46 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.7.4 AD Conversion Time
CKR0 and CKR1 select the conversion time (Tct), in terms of instruction cycles. This allows the MCU to run at the maximum frequency without sacrificing the AD conversion accuracy. For the EM78P417/8/9N, the conversion time per bit is about 4s. The table below shows the relationship between Tct and the maximum operating frequencies.
CKR0:CKR1 00 01 10 11 Operation Mode Fsco/4 Fsco/16 Fsco/64 Internal RC Max. Operation Max. Conversion Frequency Rate/Bit 1 MHz 4MHz 16MHz 250kHz (4us) 250kHz (4us) 250kHz( 4us) 14kHz (71us) Max. Conversion Rate 15*4us=60us(16.7kHz) 15*4us=60us(16.7kHz) 15*4us=60us(16.7kHz) 15*71us=1065us(0.938kHz)
NOTE
Pin not used as an analog input pin can be used as regular input or output pin. During conversion, do not perform output instruction to maintain precision for all of the pins.
6.7.5 ADC Operation during Sleep Mode
In order to obtain a more accurate ADC value and reduce power consumption, the AD conversion remains operational during sleep mode. As the SLEP instruction is executed, all the MCU operations will stop except for the Oscillator, TCC, TIMER1, TIMER2, TIMER3, and AD conversion. The AD Conversion is considered completed as determined by: 1. ADRUN bit of R9 register is cleared ("0" value) 2. Wake-up from AD conversion (where it remains in operation during sleep mode) The results are fed into the ADDATA, ADDATA1H, and ADDATA1L registers when the conversion is completed. If the ADWE is enabled, the device will wake up. Otherwise, the AD conversion will be shut off, no matter what the status of ADPD bit is.
6.7.6 Programming Process/Considerations
6.7.6.1 Programming Process Follow these steps to obtain data from the ADC: 1. Write to the eight bits (ADE7:ADE0) on the R8 (AISR) register to define the characteristics of R6 (digital I/O, analog channels, or voltage reference pin) 2. Write to the R9/ADCON register to configure AD module: a) Select ADC input channel ( ADIS2:ADIS0 ) b) Define AD conversion clock rate ( CKR1:CKR0 ) c) Select the VREFS input source of the ADC d) Set the ADPD bit to 1 to begin sampling
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 47
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM 3. Set the ADWE bit, if the wake-up function is employed 4. Set the ADIE bit, if the interrupt function is employed 5. Write "ENI" instruction, if the interrupt function is employed 6. Set the ADRUN bit to 1 7. Write "SLEP" instruction or Polling. 8. Wait for wake-up or for ADRUN bit to be cleared ("0" value) 9. Read the ADDATA or ADDATA1H and ADDATA1L conversion data registers. If ADC input channel changes at this time, the ADDATA, ADDATA1H, and ADDATA1L values can be cleared to `0'. 10. Clear the interrupt flag bit (ADIF). 11. For next conversion, go to Step 1 or Step 2 as required. At least 2 Tct is required before the next acquisition starts. NOTE
In order to obtain accurate values, it is necessary to avoid any data transition on I/O pins during AD conversion
6.7.6.2 Sample Demo Programs A. Define a General Registers R_0 == 0 PSW == 3 PORT5 == 5 PORT6 == 6 RE== 0XE RF== 0XF ; Indirect addressing register ; Status register
; Wake-up control resister ; Interrupt status register
B. Define a Control Register IOC50 == 0X5 IOC60 == 0X6 C_INT== 0XF ; Control Register of Port 5 ; Control Register of Port 6 ; Interrupt Control Register
C. ADC Control Register ADDATA == 0xB AISR == 0x08 ADCON == 0x9 ; The contents are the results of ADC ; ADC Input select register ;7 6 5 4 3 2 1 0 ; VREFS CKR1 CKR0 ADRUN ADPD ADIS2 ADIS1 ADIS0
D. Define Bits in ADCON ADRUN == 0x4 ADPD == 0x3 ; ADC is executed as the bit is set ; Power Mode of ADC
48 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM E. Program Starts ORG 0 JMP INITIAL ; Initial address ;
ORG 0x08 ; Interrupt vector ; ; ;(User program section) ; ; CLR RF ; To clear the ADIF bit BS ADCON, ADRUN ; To start to execute the next AD conversion if necessary RETI INITIAL: MOV A,@0B00000001 ; To define P60 as an analog input MOV AISR,A MOV A,@0B00001000 ; To select P60 as an analog input channel, and AD power on MOV ADCON,A ; To define P60 as an input pin and set clock rate at fosc/16 En_ADC: MOV A, @0BXXXXXXX1 ; To define P50 as an input pin, and the others IOW PORT6 ; are dependent on applications MOV A, @0BXXXX1XXX ; Enable the ADWE wake-up function of ADC, "X" by application MOV RE,A MOV A, @0BXXXX1XXX ; Enable the ADIE interrupt function of ADC, "X" by application IOW C_INT ENI ; Enable the interrupt function BS ADCON, ADRUN ; Start to run the ADC
; If the interrupt function is employed, the following three lines may be ignored POLLING: JBC ADCON, ADRUN JMP POLLING
; To check the ADRUN bit continuously; ; ADRUN bit will be reset as the AD conversion is completed
; ; ;(User program section) ; ;
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 49
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.8
Dual Sets of PWM (Pulse Width Modulation)
6.8.1 Overview
In PWM mode, PWM1, PWM2, and PWM3 pins produce up to a 10-bit resolution PWM output (see. the functional block diagram below). A PWM output consisted of a time period and a duty cycle, and it keeps the output high. The baud rate of the PWM is the inverse of the time period. Fig. 6-11 (PWM Output Timing) depicts the relationships between a time period and a duty cycle.
DL2H + DL2L
latch To PWM1IF
Fosc
1:2 1:4 1:8 1:16 1:32 1:64 1:128 1:256
DT2H + DT2L MUX Comparator
Duty Cycle Match
PWM1 R Q
TMR1H + TMR1L
reset
S
IOC80, 5
Comparator
T1P2 T1P1 T1P0 T1EN
Period Match
PRD1 Data Bus
DL2H + DL2L
latch
Data Bus
To PWM2IF
T2P2 T2P1 T2P0 T2EN
DT2H + DT2L
Comparator
Duty Cycle Match
PWM2 Fosc
TMR2H + TMR2L
1:2 1:4 1:8 1:16 1:32 1:64 1:128 1:256
reset
R S
Q
MUX Comparator
Period Match
IOC80, 6
PRD2
latch To PWM3IF
Fosc
1:2 1:4 1:8 1:16 1:32 1:64 1:128 1:256
DL3H + DL3L
DT3H + DT3L MUX Comparator
Duty Cycle Match
PWM3 R Q
TMR3H + TMR3L
reset
S
IOC80, 7
Comparator
T3P2 T3P1 T3P0 T3EN
Period Match
PRD3 Data Bus Data Bus
Fig. 6-10 The Three PWMs Functional Block Diagram 50 * Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
Period
Duty Cycle DT1 = TMR1
PRD1 = TMR1
Fig. 6-11 PWM Output Timing
6.8.2 Increment Timer Counter (TMRX: TMR1H/TWR1L, TMR2H /TWR2L, or TMR3H/TWR3L)
TMRX are ten-bit clock counters with programmable prescalers. They are designed for the PWM module as baud rate clock generators. TMRX can be read only. If employed, they can be turned off for power saving by setting the T1EN bit [IOC80<3>], T2EN bit [IOC90<6>]. or T3EN bit [IOC90<7>] to 0.
6.8.3 PWM Time Period (PRDX : PRD1 or PRD2)
The PWM time period is defined by writing to the PRDX register. When TMRX is equal to PRDX, the following events occur on the next increment cycle: TMRX is cleared The PWMX pin is set to 1 The PWM duty cycle is latched from DT1/DT2/DT3 to DL1/DL2/DL3
NOTE The PWM output will not be set, if the duty cycle is 0
The PWMXIF pin is set to 1 The following formula describes how to calculate the PWM time period: PERIOD = (PRDX + 1) * 4 * (1/Fosc) * CLKS/2 * (TMRX prescale value ) Example: PRDX=49; Fosc=4MHz; CLKS bit of Code Option Register =0 (2 oscillator periods); TMRX(0,0,0)=1:2, then PERIOD=(49 + 1) * 4 * (1/4M) * 2/2 * 2 =100us
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 51
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.8.4 PWM Duty Cycle (DTX: DT1H/ DT1L, DT2H/ DT2L and DT3H/DT3L; DLX: DL1H/DL1L, DL2H/DL2L and DL3H/DL3L )
The PWM duty cycle is defined by writing to the DTX register, and is latched from DTX to DLX while TMRX is cleared. When DLX is equal to TMRX, the PWMX pin is cleared. DTX can be loaded anytime. However, it cannot be latched into DLX until the current value of DLX is equal to TMRX. The following formula describes how to calculate the PWM duty cycle: Duty Cycle = (DTX) * (1/Fosc) * CLKS/2 * (TMRX prescale value ) Example: DTX=10; Fosc=4MHz; CLKS bit of Code Option Register =0 (2 oscillator periods); TMRX(0,0,0)=1:2, then Duty Cycle=10 * (1/4M) * 2/2 * 2 =5us
6.8.5 Comparator X
Changing the output status while a match occurs, will set the TMRXIF flag at the same time.
6.8.6 PWM Programming Process/Steps
Load PRDX with the PWM time period. 1. Load DTX with the PWM Duty Cycle. 2. Enable interrupt function by writing IOCF0, if required. 3. Set PWMX pin to be output by writing a desired value to IOC80. 4. Load a desired value to IOC51 with TMRX prescaler value and enable both PWMX and TMRX.
6.9
Timer
6.9.1 Overview
Timer1 (TMR1), Timer2 (TMR2), and Timer3 (TMR3) (TMRX) are 10-bit clock counters with programmable prescalers. They are designed for the PWM module as baud rate clock generators. TMRX can be read only. The TIMER1, TIMER2, and TIMER3 will stop running when sleep mode occurs with AD conversion not running. However, if AD conversion is running when sleep mode occurs, the TIMER1, TIMER2 and TIMER3 will keep on running.
52 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.9.2 Function Description
The following figure shows the TMRX block diagram followed by descriptions of its signals and blocks:
Fosc
1:2 1:4 1:8 1:16 1:32 1:64 1:128 1:256
MUX TMR1X
reset
To PWM1IF Period Match
Comparator
T1P2 T1P1 T1P0 T1EN
PRD1 Data Bus Data Bus
PRD2
T2P2 T2P1 T2P0 T2EN
Comparator
Period Match
Fosc
1:2 1:4 1:8 1:16 1:32 1:64 1:128 1:256
TMR2X MUX
reset
To PWM2IF
*TMR1X = TMR1H + TMR1L; *TMR2X = TMR2H + TMR2L; *TMR3X = TMR3H + TMR3L
Fosc
1:2 1:4 1:8 1:16 1:32 1:64 1:128 1:256
MUX TMR3X
reset
To PWM13F Period Match
Comparator
T3P2 T3P1 T3P0 T3EN
PRD3 Data Bus Data Bus
Fig. 6-12 TMRX Block Diagram
Fosc: Input clock. Prescaler (T1P2, T1P1 and T1P0 / T2P2, T2P1 and T2P0 / T3P2, T3P1 and T3P0): The options 1:2, 1:4, 1:8, 1:16, 1:32, 1:64, 1:128, and 1:256 are defined by TMRX. It is cleared when any type of reset occurs. TMR1X, TMR2X and TMR3X (TMR1H/TWR1L, TMR2H/TMR2L, & TMR3H/TMR3L): Timer X register; TMRX is increased until it matches with PRDX, and then is reset to 1 (default valve).
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 53
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM PRDX (PRD1, PRD2 and PRD3): PWM time period register. ComparatorX (Comparator 1 and Comparator 2): Reset TMRX while a match occurs. The TMRXIF flag is set at the same time.
6.9.3 Programming the Related Registers
When defining TMRX, refer to the related registers of its operation as shown in the table below. It must be noted that the PWMX bits must be disabled if their related TMRXs are employed. That is, Bit 7 ~ Bit 5 of the PWMCON register must be set to `0'. 6.9.3.1 Related Control Registers of TMR1, TMR2, and TMR3 Address
IOC80 IOC90
Name
TMRCON/IOC90
Bit 7
T3EN
Bit 6
T2EN
Bit 5
T3P2
Bit 4
"0" T3P1
Bit 3
T1EN T3P0
Bit 2
T1P2 T2P2
Bit 1
T1P1 T2P1
Bit 0
T1P0 T2P0
PWMCON/IOC80 PWM3E PWM2E PWM1E
6.9.4 Timer Programming Process/Steps
1. Load PRDX with the TIMER duration 2. Enable interrupt function by writing IOCF0, if required 3. Load a desired a TMRX prescaler value to PWMCON and TMRCON and enable TMRX and disable PWMX
6.10 Comparator
EM78P418/9N has one comparator comprising of two analog inputs and one output. The comparator can be utilized to wake up EM78P418/9N from sleep mode. The comparator circuit diagram is depicted in the figure below.
Cin Cin+ CMP + CO
CinCin+
Output
30mV
Fig. 6-13 Comparator Circuit Diagram & Operating Mode 54 * Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.10.1 External Reference Signal
The analog signal that is presented at Cin- compares to the signal at Cin+, and the digital output (CO) of the comparator is adjusted accordingly by taking the following notes into considerations:
NOTE The reference signal must be between Vss and Vdd. The reference voltage can be applied to either pin of comparator. Threshold detector applications may be of the same reference. The comparator can operate from the same or different reference sources.
6.10.2 Comparator Outputs
The compared result is stored in the CMPOUT of IOCA0. The comparator outputs are sent to CO(P60) through programming Bit 1, Bit 0 of the IOCA0 register to <1,0>. See Section 6.2.6, IOCA0 (CMPCON: Comparator Control Register) for Comparator/OP select bits function description.
NOTE The CO and ADEO of the P60/ADE0/CO pins cannot be used at the same time. The P60/ADE0/CO pin priority is as follows: P60/ADE0/CO PRIORITY High Medium Low CO ADE0 P60
The following figure shows the Comparator Output block diagram.
To C0 From OP I/O CMRD
EN
EN
Q To CMPOUT
D
Q
D
RESET To CPIF CMRD From other comparator
Fig. 6-14 Comparator Output Configuration Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 55
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.10.3 Using Comparator as an Operation Amplifier
The comparator can be used as an operation amplifier if a feedback resistor is connected from the input to the output externally. In this case, the Schmitt trigger can be disabled for power saving by setting Bit 1, Bit 0 of the IOCA0 register to <1,1>. See Section 6.2.6, IOCA0 (CMPCON: Comparator Control Register) for Comparator/OP select bits function description.
6.10.4 Comparator Interrupt
CMPIE (IOCF0.7) must be enabled for the "ENI" instruction to take effect Interrupt is triggered whenever a change occurs on the comparator output pin The actual change on the pin can be determined by reading the Bit CMPOUT, IOCA0<2> CMPIF (RF.7), the comparator interrupt flag, can only be cleared by software
6.10.5 Wake-up from SLEEP Mode
If enabled, the comparator remains active and the interrupt remains functional, even under SLEEP mode. If a mismatch occurs, the interrupt will wake up the device from SLEEP mode. The power consumption should be taken into consideration for the benefit of energy conservation. If the function is unemployed during SLEEP mode, turn off comparator before entering into sleep mode.
6.11 Oscillator
6.11.1 Oscillator Modes
The EM78P417/8/9N can be operated in four different oscillator modes, such as High XTAL oscillator mode (HXT), Low XTAL oscillator mode (LXT), External RC oscillator mode (ERC), and RC oscillator mode with Internal RC oscillator mode (IRC). You can select one of them by programming the OSC2, OCS1, and OSC0 in the CODE Option register.
56 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM The Oscillator modes defined by OSC2, OCS1, and OSC0 are described below. Oscillator Modes
ERC (External RC oscillator mode); P54/OSCO acts as P54 ERC (External RC oscillator mode); P54/OSCO acts as OSCO IRC (Internal RC oscillator mode); P54/OSCO acts as P54 IRC (Internal RC oscillator mode); P54/OSCO acts as OSCO LXT (Low XTAL oscillator mode) HXT High XTAL oscillator mode) (default)
1
OSC2
0 0 0 0 1 1
OSC1
0 0 1 1 1 1
OSC0
0 1 0 1 0 1
1 1
2 2
3
3
Under ERC mode, OSCI is used as oscillator pin. OSCO/P54 is defined by code option WORD0 Bit6 ~ Bit4. Under IRC mode, P55 is normal I/O pin. OSCO/P54 is defined by code option WORD0 Bit6 ~ Bit4. Under LXT and HXT modes; OSCI and OSCO are used as oscillator pins. These pins cannot and should not be defined as normal I/O pins.
2
3
NOTE The transient point of the system frequency between HXT and LXY is around 400kHz.
The maximum operating frequency limit of crystal/resonator at different VDDs, are as follows:
Conditions VDD 2.3 Two clocks 3.0 5.0 Max. Freq. (MHz) 4 8 20
6.11.2 Crystal Oscillator/Ceramic Resonators (XTAL)
EM78P417/8/9N can be driven by an external clock signal through the OSCI pin as illustrated below.
OSCI
Ext. Clock
EM78P417/ 8/ 9N
OSCO
Fig. 6.15 External Clock Input Circuit
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 57
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM In the most applications, Pin OSCI and Pin OSCO can be connected with a crystal or ceramic resonator to generate oscillation. Fig. 6-16 below depicts such circuit. The same applies to the HXT mode and the LXT mode.
C1 OSCI EM78P417/ 8/ 9N OSCO RS C2
Fig. 6-16 Crystal/Resonator Circuit
XTAL
The following table provides the recommended values for C1 and C2. Since each resonator has its own attribute, you should refer to the resonator specifications for appropriate values of C1 and C2. RS, a serial resistor, may be required for AT strip cut crystal or low frequency mode. Capacitor selection guide for crystal oscillator or ceramic resonators:
Oscillator Type Ceramic Resonators Frequency Mode HXT Frequency 455 kHz 2.0 MHz 4.0 MHz 32.768kHz LXT Crystal Oscillator HXT 100KHz 200KHz 455KHz 1.0MHz 2.0MHz 4.0MHz C1(pF) 100~150 20~40 10~30 25 25 25 20~40 15~30 15 15 C2(pF) 100~150 20~40 10~30 15 25 25 20~150 15~30 15 15
6.11.3 External RC Oscillator Mode
For some applications that do not require precise timing calculation, the RC oscillator (Fig. 6-17 right) could offer you with effective 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. Moreover, the frequency also changes slightly from one chip to another due to the manufacturing process variation.
58 *
Vcc Rext
OSCI Cext
EM78P417/ 8/ 9N
Fig. 6-17 External RC Oscillator Mode Circuit Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM In order to maintain a stable system frequency, the values of the Cext should be no less than 20pF, and that the value of Rext should be no greater than 1M. If the frequency cannot be kept within this range, the frequency can be affected easily 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 will become unstable because the NMOS cannot discharge the capacitance current correctly. Based on the above reasons, it must be kept in mind that all supply voltage, the operation temperature, the components of the RC oscillator, the package types, and the way the PCB is layout, have certain effect on the system frequency. The RC Oscillator frequencies:
Cext Rext 3.3k 20 pF 5.1k 10k 100k 3.3k 100 pF 5.1k 10k 100k 3.3k 300 pF 5.1k 10k 100k Average Fosc 5V,25C 3.5 MHz 2.5 MHz 1.30 MHz 140 KHz 1.27 MHz 850 KHz 450 KHz 48 KHz 560 KHz 370 KHz 196 KHz 20 KHz Average Fosc 3V,25C 3.2 MHz 2.3 MHz 1.25 MHz 140 KHz 1.21 MHz 820 KHz 450 KHz 50 KHz 540 KHz 360 KHz 192 KHz 20 KHz
NOTE: 1. Measured on DIP packages. 2. Design reference only 3. The frequency drift is about 30%
6.11.4 Internal RC Oscillator Mode
EM78P417/8/9N offers a versatile internal RC mode with default frequency value of 4MHz. Internal RC oscillator mode has other frequencies (1MHz, 8MHz, and 455KHz) that can be set by CODE OPTION (WORD1), RCM1, and RCM0. Table below describes the EM78P417/8/9N internal RC drift with the variation of voltage, temperature, and process.
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 59
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Internal RC Drift Rate (Ta=25
Internal RC Frequency 4MHz 8MHz 1MHz 455MHz
, VDD=5V 5%, VSS=0V)
Drift Rate
Temperature (-40 ~+80 ) 10% 10% 10% 10%
Voltage (2.3V~5.5V) 5% 6% 5% 5%
Process 4% 4% 4% 4%
Total 19% 20% 19% 19%
Theoretical values are for reference only. Actual values may vary depending on actual process.
6.12 Power-on Considerations
Any microcontroller is not warranted to start operating properly before the power supply stabilizes in steady state. EM78P417/8/9N is equipped with Power On Voltage Detector (POVD) with detection level range of 1.9V to 2.1V. The circuitry eliminates the extra external reset circuit. It will work well if Vdd rises quickly enough (50 ms or less). However, under critical applications, extra devices are still required to assist in solving power-on problems.
6.12.1 External Power-on Reset Circuit
The circuit shown in the VDD following figure implements an external RC to produce a /RESET R D reset pulse. The pulse width (time constant) should EM78P417/ 8/ 9N be kept long enough to Rin C allow Vdd to reach the minimum operating voltage. This circuit is used when the power supply has a slow Fig. 6-18 External Power on Reset Circuit power rise time. Because the current leakage from the /RESET pin is about 5A, it is recommended that R should not be great than 40 K. This way, the voltage at Pin /RESET is held below 0.2V. The diode (D) acts as a short circuit at power-down. The "C" capacitor is discharged rapidly and fully. Rin, the current-limited resistor, prevents high current discharge or ESD (electrostatic discharge) from flowing into Pin /RESET.
60 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.12.2 Residual Voltage Protection
When the battery is replaced, device power (Vdd) is removed but residual voltage remains. The residual voltage may trips below Vdd minimum, but not to zero. This condition may cause a poor power on reset. Fig. 6-16 and Fig. 6-20 show how to create a protection circuit against residual voltage.
VDD EM78P417/ 8/ 9N
Q1 10K 33K
VDD
/RESET
100K 1N4684
Fig. 6-19 Residual Voltage Protection Circuit 1
VDD EM78P417/ 8/ 9N
Q1
R1
VDD
/RESET
R3 R2
Fig. 6-20 Residual Voltage Protection Circuit 2
6.13 Code Option
EM78P417/8/9N has two CODE option words and one Customer ID word that are not a part of the normal program memory. Word 0
Bit12 ~ Bit0
Word1
Bit12 ~ Bit0
Word 2
Bit12 ~ Bit0
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 61
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
6.13.1 Code Option Register (Word 0)
WORD 0 Bit 12 Bit 11 Bit 10
- - -
Bit 9
TYPE
Bit 8
Bit 7
Bit 6
Bit 5
OSC1
Bit 4
OSC0
Bit 3
HLP
Bit 2
PR2
Bit 1
PR1
Bit 0
PR0
CLKS ENWDTB OSC2
Bit 12 ~ 10: Bit 9 (TYPE):
Not used (reserved). These bits are set to "1" all the time Type selection for EM78P419N or EM78P418N or EM78P417N. 0 = EM78P419N 1 = EM78P417N/EM78P418N (default)
Bit 8 (CLKS):
Instruction time period option bit 0 = two oscillator time periods 1 = four oscillator time periods (default) Refer to the Section 6.15 for Instruction Set
Bit 7 (ENWDTB):
Watchdog timer enable bit 0 = Enable 1 = Disable (default)
Bit 6, 5 & 4 (OSC2, OSC1 & OSC0): Oscillator Modes Selection bits Oscillator Modes
ERC (External RC oscillator mode); P54/OSCO acts as P54 ERC (External RC oscillator mode); P54/OSCO acts as OSCO IRC (Internal RC oscillator mode); P54/OSCO acts as P54 IRC (Internal RC oscillator mode); P54/OSCO acts as OSCO LXT (Low XTAL oscillator mode) HXT High XTAL oscillator mode) (default)
1
OSC2
0 0 0 0 1 1
OSC1
0 0 1 1 1 1
OSC0
0 1 0 1 0 1
1 1
2 2
3
3
Under ERC mode, OSCI is used as oscillator pin. OSCO/P54 is defined by code option WORD0 Bit6 ~ Bit4. Under IRC mode, P55 is normal I/O pin. OSCO/P54 is defined by code option WORD0 Bit6 ~ Bit4. Under LXT and HXT modes; OSCI and OSCO are used as oscillator pins. These pins cannot and should not be defined as normal I/O pins.
2
3
NOTE The transient point of the system frequency between HXT and LXY is around 400kHz.
Bit 3 (HLP):
Power consumption selection 0 = Low power consumption, applies to working frequency at 4MHz or below 4MHz 1 = High power consumption, applies to working frequency above 4MHz
62 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Bit 2 ~ 0 (PR2 ~ PR0): Protect Bit PR2 ~ PR0 are protect bits. Each protect status is as follows: PR2
0 0 0 0 1 1 1 1
PR1
0 0 1 1 0 0 1 1
PR0
0 1 0 1 0 1 0 1
Protect
Enable Enable Enable Enable Enable Enable Enable Disable
6.13.2 Code Option Register (Word 1)
Bit 12 Bit 11 Bit 10
- - -
Bit 9
-
Bit 8
NRHL
WORD 1 Bit 7 Bit 6 Bit 5
NRE CYES C3
Bit 4
C2
Bit 3
C1
Bit 2
C0
Bit 1
RCM1
Bit 0
RCM0
Bits 12 ~ 9: Bit 8 (NRHL):
Not used (reserved). These bits are set to "1" all the time Noise rejection high/low pulses define bit. INT pin is falling edge trigger 0 = Pulses equal to 8/fc [s] is regarded as signal. 1 = Pulses equal to 32/fc [s] is regarded as signal. (default)
NOTE The noise rejection function is turned off under the LXT and sleep mode.
Bit 7 (NRE):
Noise rejection enable 0 = disable noise rejection 1 = enable noise rejection (default). However under Low XTAL oscillator (LXT) mode, the noise rejection circuit always disabled.
Bit 6 (CYES):
Instruction cycle selection bit 0 = one instruction cycle 1 = two instruction cycles (default)
Bits 5, 4, 3 & Bit2 ( C3, C2, C1, & C0 ): Calibrator of internal RC mode. These bits must always be set to "1" only (auto calibration)
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 63
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Bit 1 & Bit 0 (RCM1 & RCM0): RC mode selection bits RCM 1
1 1 0 0
RCM 0
1 0 1 0
Frequency(MHz)
4 8 1 455kHz
6.13.3 Customer ID Register (Word 2)
WORD 2 Bit 12 Bit 11 Bit 10
X X X
Bit 9
X
Bit 8
X
Bit 7
X
Bit 6
X
Bit 5
X
Bit 4
X
Bit 3
X
Bit 2
X
Bit 1
X
Bit 0
X
Bit 12 ~ 0 : Customer's ID code
6.14 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 time periods), unless the program counter is changed by instructions "MOV R2,A," "ADD R2,A," or by instructions of arithmetic or logic operation on R2 (e.g., "SUB R2,A," "BS(C) R2,6," "CLR R2," etc.). In this case, these instructions need one or two instruction cycles as determined by Code Option Register CYES bit. In addition, the instruction set has the following features: 1. Every bit of any register can be set, cleared, or tested directly. 2. The I/O registers can be regarded as general registers. That is, the same instruction can operate on I/O registers. The symbol "R" represents a register designator that specifies which one of the registers (including operational registers and general-purpose registers) is to be utilized by the instruction. The symbol "b" represents a bit field designator that selects the value for the bit located in the register "R" that is affected by the operation. The symbol "k" represents an 8 or 10-bit constant or literal value.
64 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM The following are the list of the EM78P417/8/9N instruction set Instruction Binary HEX Mnemonic
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0001 0001 0001 0010 0010 0010 0010 0011 0011 0011 0011 0100 0100 0100 0100 0101 0101 0101 0101 0110 0110 0110 0110 0111 0111 0111 0111 100b 101b 110b 111b 00kk 0000 0000 0000 0001 0000 0010 0000 0011 0000 0100 0000 rrrr 0001 0000 0001 0001 0001 0010 0001 0011 0001 0100 0001 rrrr 01rr rrrr 1000 0000 11rr rrrr 00rr rrrr 01rr rrrr 10rr rrrr 11rr rrrr 00rr rrrr 01rr rrrr 10rr rrrr 11rr rrrr 00rr rrrr 01rr rrrr 10rr rrrr 11rr rrrr 00rr rrrr 01rr rrrr 10rr rrrr 11rr rrrr 00rr rrrr 01rr rrrr 10rr rrrr 11rr rrrr 00rr rrrr 01rr rrrr 10rr rrrr 11rr rrrr 00rr rrrr 01rr rrrr 10rr rrrr 11rr rrrr bbrr rrrr bbrr rrrr bbrr rrrr bbrr rrrr kkkk kkkk 0000 0001 0002 0003 0004 000r 0010 0011 0012 0013 0014 001r 00rr 0080 00rr 01rr 01rr 01rr 01rr 02rr 02rr 02rr 02rr 03rr 03rr 03rr 03rr 04rr 04rr 04rr 04rr 05rr 05rr 05rr 05rr 06rr 06rr 06rr 06rr 07rr 07rr 07rr 07rr 0xxx 0xxx 0xxx 0xxx 1kkk NOP DAA CONTW SLEP WDTC IOW R ENI DISI RET RETI CONTR IOR R MOV R,A CLRA CLR R SUB A,R SUB R,A DECA R DEC R OR A,R OR R,A AND A,R AND R,A XOR A,R XOR R,A ADD A,R ADD R,A MOV A,R MOV R,R COMA R COM R INCA R INC R DJZA R DJZ R RRCA R RRC R RLCA R RLC R SWAPA R SWAP R JZA R JZ R BC R,b BS R,b JBC R,b JBS R,b CALL k
Operation
No Operation Decimal Adjust A A CONT 0 WDT, Stop oscillator 0 WDT A IOCR Enable Interrupt Disable Interrupt [Top of Stack] PC [Top of Stack] PC, Enable Interrupt CONT A IOCR A AR 0A 0R R-A A R-A R R-1 A R-1 R A VR A A VR R A&RA A&RR ARA ARR A+RA A+RR RA RR /R A /R R R+1 A R+1 R R-1 A, skip if zero R-1 R, skip if zero R(n) A(n-1),R(0) C, C A(7) R(n) R(n-1),R(0) C, C R(7) R(n) A(n+1),R(7) C, C A(0) R(n) R(n+1),R(7) C, C R(0) R(0-3) A(4-7),R(4-7) A(0-3) R(0-3) R(4-7) R+1 A, skip if zero R+1 R, skip if zero 0 R(b) 1 R(b) if R(b)=0, skip if R(b)=1, skip PC+1 [SP],(Page, k) PC
Status Affected
None C None T,P T,P 1 None None None None None None 1 None None Z Z Z,C,DC Z,C,DC Z Z Z Z Z Z Z Z Z,C,DC Z,C,DC Z Z Z Z Z Z None None C C C C None None None None 2 None 3 None None None None * 65
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM Instruction Binary HEX Mnemonic
1 1 1 1 1 1 1 1 01kk 1000 1001 1010 1011 1100 1101 1111 kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk 1kkk 18kk 19kk 1Akk 1Bkk 1Ckk 1Dkk 1Fkk
Operation
Status Affected
JMP k (Page, k) PC None MOV A,k kA None OR A,k AkA Z AND A,k A&kA Z XOR A,k AkA Z RETL k k A,[Top of Stack] PC None SUB A,k k-A A Z,C,DC ADD A,k k+A A Z,C,DC 1 This instruction is applicable to IOC50 ~ IOCF0, IOC51 ~ IOCF1 only. 2 This instruction is not recommended for RF operation. 3 This instruction cannot operate under RF.
7
Absolute Maximum Ratings
Items
Temperature under bias Storage temperature Input voltage Output voltage Working Voltage Working Frequency -40C -65C Vss-0.3V Vss-0.3V 2.5V DC
Rating
to to to to to to 85C 150C Vdd+0.5V Vdd+0.5V 5.5V 20MHz
66 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
8
DC Electrical Characteristics
(Ta= 25 C, VDD= 5.0V, VSS= 0V )
Parameter XTAL: VDD to 5V XTAL: VDD to 3V ERC: VDD to 5V IRC:VDD to 5V IRC:VDD to 5V IRC:VDD to 5V IRC:VDD to 5V Input High Threshold Voltage (Schmitt trigger ) Input Low Threshold Voltage (Schmitt trigger ) Input Leakage Current for input pins Input High Voltage (Schmitt trigger ) Input Low Voltage (Schmitt trigger ) Input High Threshold Voltage (Schmitt trigger ) Input Low Threshold Voltage (Schmitt trigger ) Input High Threshold Voltage (Schmitt trigger ) Input Low Threshold Voltage (Schmitt trigger ) Clock Input High Voltage Condition Two cycle with two clocks R: 5.1K, C: 100 pF RCM0:RCM1=1:1 RCM0:RCM1=1:0 RCM0:RCM1=0:1 RCM0:RCM1=0:0 OSCI in RC mode OSCI in RC mode VIN = VDD, VSS Ports 5, 6, 7 Ports 5, 6, 7 /RESET /RESET TCC,INT TCC,INT OSCI in crystal mode OSCI in crystal mode VOH = VDD-0.5V (IOH =-6mA) VOL = GND+0.5V (IOL =12mA) Pull-high active, input pin at VSS -50 Pull-low active, input pin at Vdd 25 All input and I/O pins at VDD, output pin floating, WDT disabled All input and I/O pins at VDD, output pin floating, WDT enabled /RESET= 'High', Fosc=32KHz (Crystal type,CLKS="0"), output 15 pin floating, WDT disabled /RESET= 'High', Fosc=32KHz (Crystal type,CLKS="0"), output pin floating, WDT enabled /RESET= 'High', Fosc=4MHz (Crystal type, CLKS="0"), output pin floating, WDT enabled /RESET= 'High', Fosc=10MHz (Crystal type, CLKS="0"), output pin floating, WDT enabled -1.0 Min. DC DC F30% 3.84 7.68 0.96 436.8 Typ. Max. 20 8 F30% 4.16 8.32 1.06 473.2 Unit MHz MHz KHz MHz MHz MHz KHz V V 1.0 A V V V V V V V V mA mA -240 120 2.0 15 20 35 A A A A A
Symbol FXT IRC1 IRC2 IRC3 IRC4 VIHRC VILRC IIL VIH1 VIL1 VIHT1 VILT1 VIHT2 VILT2 VIHX1
850 4.0 8.0 1.0 455 3.5 1.5 0 3.75 1.25 2.0 1.0 3.75 1.25 3.5 1.5 -6.0 12.0 -75 40 1.0
VILX1 Clock Input Low Voltage Output High Voltage IOH1 (Ports 5, 6, 7) Output Low Voltage IOL1 (Ports 5, 6,7) IPH Pull-high current IPL Pull-low current ISB1 ISB2 ICC1 Power down current Power down current Operating supply current at two clocks Operating supply current at two clocks Operating supply current at two clocks Operating supply current at two clocks
ICC2
25
35
A
ICC3
1.7
2.2
mA
ICC4
3.0
3.5
mA
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 67
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
8.1
Symbol VAREF VASS VAI IAI1 Ivdd Ivref Ivdd IAI2 IVref
AD Converter Characteristic
(Vdd=2.5V to 5.5V,Vss=0V,Ta=25
Parameter Analog reference voltage Analog input voltage Analog supply current Vdd=VAREF=5.0V, VASS =0.0V(V reference from Vdd) Vdd=VAREF=5.0V, VASS =0.0V(V reference from VREF) Vdd=5.0V, OP used Output voltage swing 0.2V to 4.8V Vdd=VAREF=5.0V, VASS =0.0V Vdd = 2.5 to 5.5V Ta=25 Vdd = 2.5 to 5.5V Ta=25 Vdd=VAREF=5.0V, VASS =0.0V Vdd=VAREF=5.0V, VASS =0.0V
)
Min. 2.5 Vss VASS 750 -10 500 200 450 10 0 0 0 0 0 850 0 600 250 550 11 4 0.5 4 2 8 8 0.9 8 4 10 Typ. Max. Vdd Vss VAREF 1000 +10 820 300 650 Unit V V V uA uA uA uA uA Bits LSB LSB LSB LSB K us 15 VAREF 0.2 4.8 0.3 2 0.3 5 TAD V V V/us LSB
Condition VAREF - VASS 2.5V
Analog supply current
IOP RN LN DNL FSE OE ZAI TAD TCN ADIV ADOV ADSR PSR NOTE:
OP current Resolution Linearity error Differential nonlinear error Full scale error Offset error Recommended impedance of analog voltage source ADC clock duration AD conversion time ADC OP input voltage range ADC OP output voltage swing ADC OP slew rate Power Supply Rejection
Vdd=VAREF=5.0V, VASS =0.0V Vdd=VAREF=5.0V, VASS =0.0V Vdd=VAREF=5.0V, VASS =0.0V Vdd=VAREF=5.0V, VASS =0.0V,RL=10K Vdd=VAREF=5.0V, VASS =0.0V Vdd=5.0V0.5V
4 15 0 0 4.7 0.1 0
1. These parameters are hypothetical (not tested) and are provided for design reference only. 2. There is no current consumption when ADC is off other than minor leakage current. 3. AD conversion result will not decrease when the input voltage is increased, and no missing code will result. 4. These parameters are subject to change without further notice.
68 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
8.2
Symbol SR IVR OVS Iop Ico PSRR Vs
Comparator (OP) Characteristic
(Vdd = 5.0V,Vss=0V,Ta=25
Parameter
)
Condition Min. 0.1 0 0 4.7 250 0.2 4.8 350 300 Typ. 0.2 5 0.3 5 500 Max. Unit V/us V V uA uA 70 5.5 dB V
Slew rate Input voltage range Output voltage swing Supply current of OP Supply current of Comparator Power-supply Rejection Ration for OP Operating range NOTE: Vdd= 5.0V, VSS =0.0V Vdd =5.0V, VSS =0.0V Vd =5.0V, VSS =0.0V,RL=10K
50 2.5
60
1. These parameters are hypothetical (not tested) and are provided for design reference only. 2. These parameters are subject to change without further notice.
8.3
Device Characteristics
The graphs below were derived based on a limited number of samples and they are provided for reference only. Hence, the device characteristic shown herein cannot be guaranteed as fully accurate. In these graphs, the data maybe out of the specified operating warranted range.
IRC OSC Frequency (VDD=3V)
Frequency (M Hz) .
Temperature (
)
Fig. 8-1 Internal RC OSC Frequency vs. Temperature, VDD=3V
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 69
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
IRC OSC Frequency (VDD=5V)
Frequency (M Hz) .
Temperature ( )
Fig. 8-2 Internal RC OSC Frequency vs. Temperature, VDD=5V
9
AC Electrical Characteristic
(Ta=25 C, VDD=5V5%, VSS=0V)
Symbol Dclk Tins Ttcc Tdrh Trst Twdt Tset Thold Tdelay Tdrc Parameter Input CLK duty cycle Instruction cycle time (CLKS="0") TCC input time period Device reset hold time /RESET pulse width Watchdog timer duration Input pin setup time Input pin hold time Output pin delay time ERC delay time Cload=20pF Ta = 25C 15 45 1 Ta = 25C Ta = 25C Ta = 25C Crystal type RC type Conditions 45 100 500 (Tins+20)/N* 11.3 2000 11.3 16.2 0 20 50 3 25 55 5 21.6 16.2 21.6 Min Type 50 Max 55 DC DC Unit % ns ns ns ms ns ms ns ns ns ns
* N = selected prescaler ratio
70 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
10 Timing Diagrams
AC Test Input/Output Waveform
VDD-0.5V
0.75VDD 0.25VDD
TEST POINTS
0.75VDD 0.25VDD
GND+0.5V
AC Testing : Input is driven at VDD-0.5V for logic "1",and GND+0.5V for logic "0".Timing measurements are made at 0.75VDD for logic "1",and 0.25VDD for logic "0".
RESET Timing (CLK="0")
NOP
Instruction 1 Executed
CLK
/RESET
Tdrh
TCC Input Timing (CLKS="0")
Tins CLK
TCC
Ttcc
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 71
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
APPENDIX A Package Types
OTP MCU EM78P417NP EM78P417NM EM78P418NP EM78P418NM EM78P419NK EM78P419NM Package Type DIP SOP DIP SOP Skinny DIP SOP Pin Count 18 pin 18 pin 20 pin 20 pin 24 pin 24 pin Package Size 300mil 300mil 300mil 300mil 300mil 300mil
B Packaging Configurations
B.1 18-Lead Plastic Dual in line (PDIP) 300 mil
72 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
B.2 18-Lead Plastic Small Outline (SOP)
300 mil
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 73
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
B.3 20-Lead Plastic Dual in line (PDIP)
300 mil
74 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
B.4 20-Lead Plastic Small Outline (SOP)
300 mil
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 75
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
B.5 24-Lead Plastic Dual in line (PDIP)
300 mil
76 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
B.6 24-Lead Plastic Small Outline (SOP)
300 mil
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)
* 77
EM78P417N/418N/419N
8-Bit Microprocessor with OTP ROM
C Quality Assurance and Reliability
Test Category Solderability Test Conditions Solder temperature=2455 , for 5 seconds up to the stopper using a rosin-type flux Step 1: TCT, 65 (15mins)~150 (15mins), 10 cycles Remarks
Step 2: Bake at 125 , TD (endurance)=24 hrs Step 3: Soak at 30C/60% TD (endurance)=192 hrs Pre-condition Step 4: IR flow 3 cycles (Pkg thickness 2.5mm or Pkg volume 350mm3 ----2255 ) (Pkg thickness 2.5mm or Pkg volume 350mm3 ----2405 Temperature cycle test Pressure cooker test High temperature / High humidity test High-temperature storage life High-temperature operating life Latch-up ESD (HBM) -65 (15mins)~150 (15mins), 200 cycles ) For SMD IC (such as SOP, QFP, SOJ, etc)
TA =121 , RH=100%, pressure=2 atm, TD (endurance)= 96 hrs TA=85 , RH=85% TD (endurance)=168 , 500 hrs
TA=150 , TD (endurance)=500, 1000 hrs TA=125 , VCC=Max. operating voltage, TD (endurance) =168, 500, 1000 hrs TA=25 , VCC=Max. operating voltage, 150mA/20V IP_ND,OP_ND,IO_ND TA=25 , 3KV IP_NS,OP_NS,IO_NS IP_PD,OP_PD,IO_PD, IP_PS,OP_PS,IO_PS,
ESD (MM)
TA=25 ,
300V
VDD-VSS(+),VDD_VSS (-)mode
C.1 Address Trap Detect
An address trap detect is one of the MCU embedded fail-safe functions that detects MCU malfunction caused by noise or the like. Whenever the MCU attempts to fetch an instruction from a certain section of ROM, an internal recovery circuit is auto started. If a noise caused address error is detected, the MCU will repeat execution of the program until the noise is eliminated. The MCU will then continue to execute the next program.
78 *
Product Specification (V1.0) 06.23.2005
(This specification is subject to change without further notice)


▲Up To Search▲   

 
Price & Availability of EM78P417N

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X