Main
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
Product Specification
D OC . V ERSION 1.2
ELAN
All Rights Reserved
Printed in Taiwan
ELAN MICROELECTRONICS CORPORATION
Contents
6.8 Infrared Remote Control Application/PWM Waveform Generation...................51
APPENDIX
Specification Revision History
EM78P259N/260N
Product Specification (V1.2) 05.18.2007 1
1 General Description
2 Features
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
3 Pin Assignment
(1) 18-Pin DIP/SOP
Fig. 3-1 EM78P259NP/M
(2) 20-Pin DIP/SOP/SSOP
5 Pin Description
5.1 EM78P259NP/M
5.2 EM78P260NP/M/KM
EM78P259N/260N
6 Function Description
6.1 Operational Registers
6.1.1 R0 (Indirect Address Register)
6.1.2 R1 (Time Clock /Counter)
during power-on reset, /RESET, or WDT time out reset. 6.1.3 R2 (Program Counter) and Stack
Page
8-Bit Microprocessor with OTP ROM
Product Specification (V1.2) 05.18.2007 7
(This specification is subject to change without further notice)
EM78P259N/260N
6.1.4 R3 (Status Register)
6.1.5 R4 (RAM Select Register)
EM78P259N/260N
6.1.6 R5 ~ R6 (Port 5 ~ Port 6)
6.1.7 R7 (Port 7)
EM78P259N/260N
6.1.8 R8 (AISR: ADC Input Select Register)
EM78P259N/260N
6.1.9 R9 (ADCON: ADC Control Register)
EM78P259N/260N
6.1.10 RA (ADOC: ADC Offset Calibration Register)
6.1.11 RB (ADDATA: Converted Value of ADC)
EM78P259N/260N
6.1.12 RC (ADDATA1H: Converted Value of ADC)
6.1.13 RD (ADDATA1L: Converted Value of ADC)
6.1.14 RE (Interrupt Status 2 & Wake-up Control Register)
EM78P259N/260N
6.1.15 RF (Interrupt Status 2 Register)
6.1.16 R10 ~ R3F
EM78P259N/260N
6.2 Special Purpose Registers
6.2.1 A (Accumulator)
6.2.2 CONT (Control Register)
EM78P259N/260N
6.2.3 IOC50 ~ IOC70 (I/O Port Control Register)
6.2.4 IOC80 (Comparator and TCCA Control Register)
EM78P259N/260N
6.2.5 IOC90 (TCCB and TCCC Control Register)
EM78P259N/260N
6.2.6 IOCA0 (IR and TCCC Scale Control Register)
EM78P259N/260N
EM78P259N/260N
6.2.7 IOCB0 (Pull-down Control Register)
6.2.8 IOCC0 (Open-Drain Control Register)
EM78P259N/260N
6.2.9 IOCD0 (Pull-high Control Register)
6.2.10 IOCE0 (WDT Control & Interrupt Mask Registers 2)
EM78P259N/260N
6.2.11 IOCF0 (Interrupt Mask Register)
EM78P259N/260N
6.2.12 IOC51 (TCCA Counter)
6.2.13 IOC61 (TCCB Counter)
EM78P259N/260N
6.2.14 IOC71 (TCCBH/MSB Counter)
6.2.15 IOC81 (TCCC Counter)
EM78P259N/260N
6.2.16 IOC91 (Low Time Register)
6.2.17 IOCA1 (High Time Register)
6.2.18 IOCB1 High/Low Time Scale Control Register)
EM78P259N/260N
6.2.19 IOCC1 (TCC Prescaler Counter)
EM78P259N/260N
6.3 TCC/WDT and Prescaler
6.4 I/O Ports
Product Specification (V1.2) 05.18.2007 29
(This specification is subject to change without further notice)
30 Product Specification (V1.2) 05.18.2007
PCRD
TI 0
TI 8
6.5 Reset and Wake-up
6.5.1 Reset and Wake-up Operation
Page
Page
8-Bit Microprocessor with OTP ROM
34 Product Specification (V1.2) 05.18.2007
Signal Sleep Mode Normal Mode
Page
8-Bit Microprocessor with OTP ROM
36 Product Specification (V1.2) 05.18.2007
Address Name Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Product Specification (V1.2) 05.18.2007 37
Address Name Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
38 Product Specification (V1.2) 05.18.2007
Address Name Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Product Specification (V1.2) 05.18.2007 39
Address Name Reset Type Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
8-Bit Microprocessor with OTP ROM
Fig. 6-7 Controller Reset Block Diagram
40 Product Specification (V1.2) 05.18.2007
6.6 Interrupt
Page
8-Bit Microprocessor with OTP ROM
*
occurs
RETI
EM78P259N/260N
6.7 Analog-to-Digital Converter (ADC)
ADC ( successive approximation )
8-1 Analog Switch
6.7.1 ADC Control Register (AISR/R8, ADCON/R9, ADOC/RA)
Page
Page
EM78P259N/260N
6.7.2 ADC Data Register (ADDATA/RB, ADDATA1H/RC, ADDATA1L/RD)
6.7.3 ADC Sampling Time
6.7.4 AD Conversion Time
6.7.5 ADC Operation during Sleep Mode
EM78P259N/260N
6.7.6 Programming Process/Considerations
Page
Page
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
6.8 Infrared Remote Control Application/PWM Waveform Generation
6.8.1 Overview
H/W Modulator
HF IROUT pin
EM78P259N/260N
6.8.2 Function Description
EM78P259N/260N
IROUT
Fcarrier
Page
Page
EM78P259N/260N
6.9 Timer/Counter
6.9.1 Overview
6.9.2 Function Description
Page
EM78P259N/260N
6.9.3 Programming the Related Registers
6.10 Comparator
Cin-- +CMP
Cin+ CO
EM78P259N/260N
6.10.1 External Reference Signal
6.10.2 Comparator Output
EM78P259N/260N
6.10.3 Using a Comparator as an Operation Amplifier
6.10.4 Comparator Interrupt
6.10.5 Wake-up from Sleep Mode
EM78P259N/260N
6.11 Oscillator
6.11.1 Oscillator Modes
EM78P259N/260N
6.11.2 Crystal Oscillator/Ceramic Resonators (Crystal)
EM78P259N/260N
6.11.3 External RC Oscillator Mode
EM78P259N/260N
6.11.4 Internal RC Oscillator Mode
EM78P259N/260N
6.12 Power-on Considerations
6.12.1 Programmable WDT Time-out Period
6.12.2 External Power-on Reset Circuit
EM78P259N/260N
6.12.3 Residual Voltage Protection
EM78P259N/260N
6.13 Code Option
6.13.1 Code Option Register (Word 0)
EM78P259N/260N
6.13.2 Code Option Register (Word 1)
EM78P259N/260N
6.13.3 Customer ID Register (Word 2)
6.14 Instruction Set
8-Bit Microprocessor with OTP ROM
The following are the EM78P259N/260N instruction set
7 Absolute Maximum Ratings
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
8 DC Electrical Characteristics
Ta=25 C, VDD=5.0V5%, VSS=0V
8-Bit Microprocessor with OTP ROM
Internal RC Electrical Characteristics (Ta=25C, VDD=5 V, VSS=0V)
Internal RC Electrical Characteristics (Ta=-40 ~85C, VDD=2.2~5.5 V, VSS=0V)
8-Bit Microprocessor with OTP ROM
8.1 AD Converter Characteristics
Vdd=2.5V to 5.5V, Vss=0V, Ta=25C
8-Bit Microprocessor with OTP ROM
8.2 Comparator (OP) Characteristics
Vdd = 5.0V, Vss=0V, Ta=25C
Temperature ()
8.3 Device Characteristics
IRC OSC Frequency (VDD=3V)
9 AC Electrical Characteristic
Ta=25C, VDD=5V5%, VSS=0V
Product Specification (V1.2) 05.18.2007 77
10 Timing Diagrams
RESET Timing (CLK="0")
TCC Input Timing (CLKS="0")
AC Test Input/Output Waveform
APPENDIX A Package Type
B Package Information
B.1 18-Lead Plastic Dual in line (PDIP) 300 mil
B.2 18-Lead Plastic Small Outline (SOP) 300 mil
80 Product Specification (V1.2) 05.18.2007
B.3 20-Lead Plastic Shrink Small Outline (SSOP) 209 mil
Product Specification (V1.2) 05.18.2007 81
B.4 20-Lead Plastic Dual-in-line (PDIP) 300 mil
82 Product Specification (V1.2) 05.18.2007
B.5 20-Lead Plastic Small Outline (SOP) 300 mil
C Quality Assurance and Reliability
C.1 Address Trap Detect