IBM EM78P259N/260N manual General Description, Features, Bit Microprocessor with OTP ROM

Page 7

EM78P259N/260N

8-Bit Microprocessor with OTP ROM

1 General Description

The EM78P259N and EM78P260N are 8-bit microprocessors designed and developed with low-power and high-speed CMOS technology. The series has an on-chip 2K×13-bit Electrical One Time Programmable Read Only Memory (OTP-ROM). It provides a protection bit to prevent intrusion of user’s code. Three Code option words are also available to meet user’s requirements.

With its enhanced OTP-ROM feature, the EM78P259N and EM78P260N provide a convenient way of developing and verifying user’s programs. Moreover, this OTP device offers the advantages of easy and effective program updates, using development and programming tools. User can avail of the ELAN Writer to easily program his development code.

2Features

„CPU configuration

2K×13 bits on-chip ROM

80×8 bits on-chip registers (SRAM)

8-level stacks for subroutine nesting

Less than 1.9 mA at 5V/4MHz

Typically 15 μA, at 3V/32kHz

Typically 1 μA, during Sleep mode

„I/O port configuration

3 bidirectional I/O ports : P5, P6, P7

17 I/O pins

Wake-up port : P5

8 Programmable pull-down I/O pins

8 programmable pull-high I/O pins

8 programmable open-drain I/O pins

External interrupt : P60

„Operating voltage range

Operating voltage: 2.3V~5.5V (Commercial)

Operating voltage: 2.5V~5.5V (Industrial)

„Operating temperature range

Operating temperature: 0°C ~70°C (Commercial)

Operating temperature: -40°C ~85°C (Industrial)

„Operating frequency range

Crystal mode:

DC~20MHz/2clks @ 5V, DC~100ns inst. cycle @ 5V DC~8MHz/2clks @ 3V, DC~250ns inst. cycle @ 3V

ERC mode:

DC~16MHz/2clks @ 5V, DC~125ns inst. cycle @ 5V DC~8MHz/2clks @ 3V, DC~250ns inst. cycle @ 3V

IRC mode:

Oscillation mode : 4MHz, 8MHz, 1MHz, 455kHz

Internal RC

 

 

 

Drift Rate

 

 

 

 

 

Temperature

 

Voltage

 

 

 

 

Frequency

 

 

 

Process

 

Total

 

 

(-40°C+85°C)

 

(2.3V~5.5V)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4MHz

 

±10%

 

±5%

 

±4%

 

±19%

8MHz

 

±10%

 

±6%

 

±4%

 

±20%

1MHz

 

±10%

 

±5%

 

±4%

 

±19%

455MHz

 

±10%

 

±5%

 

±4%

 

±19%

All these four main frequencies can be trimmed by programming with four calibrated bits in the ICE259N Simulator. OTP is auto trimmed by ELAN Writer.

„Peripheral configuration

8-bit real time clock/counter (TCC) with selective signal sources, trigger edges, and overflow interrupt

8-bit real time clock/counter (TCCA, TCCC) and

16-bit real time clock/counter (TCCB) with selective signal sources, trigger edges, and overflow interrupt

4-bit channel Analog-to-Digital Converter with 12-bit resolution in Vref mode

Easily implemented IR (Infrared remote control) application circuit

One pair of comparators or OP

„Six available interrupts:

TCC, TCCA, TCCB, TCCC overflow interrupt

Input-port status changed interrupt (wake-up from sleep mode)

External interrupt

ADC completion interrupt

Comparators status change interrupt

IR/PWM interrupt

„Special features

Programmable free running watchdog timer (4.5ms:18ms)

Power saving Sleep mode

Selectable Oscillation mode

Power-on voltage detector (2.0V ± 0.1V)

„Package type:

18-pin DIP 300mil : EM78P259NPS/NPJ

18-pin SOP 300mil : EM78P259NMS/NMJ

20-pin SOP 300mil : EM78P260NPS/NPJ

20-pin SOP 300mil : EM78P260NMS/NMJ

20-pin SSOP 209mil : EM78P260NKMS/NKMJ

Product Specification (V1.2) 05.18.2007

• 1

(This specification is subject to change without further notice)

Image 7
Contents EM78P259N/260N Elan Microelectronics Corporation Contents 6.1 Reset and Wake-upTCC/WDT and Prescaler Analog-To-Digital Converter ADC11.4 11.111.2 11.3Date Doc. Version Revision DescriptionGeneral Description FeaturesBit Microprocessor with OTP ROM Pin DIP/SOP/SSOP Block DiagramPin Assignment Pin DIP/SOPPin Description Symbol Pin No Type FunctionEM78P259NP/M EM78P260NP/M/KM 2 R1 Time Clock /Counter Function DescriptionOperational Registers 1 R0 Indirect Address RegisterEM78P259N/260N Cont Bit Microprocessor with OTP ROM Data Memory ConfigurationBits 5~0 5 R4 RAM Select RegisterBit 4 T BitBit 7 ~ Bit Bit 7 ~ Bit 4 C3 ~ C0 Calibrator of internal RC mode6 R5 ~ R6 Port 5 ~ Port 7 R7 Port8 R8 Aisr ADC Input Select Register Bit 3 Adpd 9 R9 Adcon ADC Control RegisterBit 2 ~ Bit 0 Unimplemented, read as ‘0’ RA Adoc ADC Offset Calibration RegisterRB Addata Converted Value of ADC Bit 5 ~ Bit 3 VOF2 ~ VOF0 Offset voltage bitsRD ADDATA1L Converted Value of ADC RC ADDATA1H Converted Value of ADCRE Interrupt Status 2 & Wake-up Control Register 16 R10 ~ R3F RF Interrupt Status 2 RegisterAll of these are 8-bit general-purpose registers Accumulator Special Purpose RegistersControl Register Bit 4 & Bit 3 COS1 & COS0 Comparator/OP Select bits 3 IOC50 ~ IOC70 I/O Port Control Register4 IOC80 Comparator and Tcca Control Register Bit 7 & Bit 6 Not usedBit 0 Tcccte Tccc signal edge Bit 6 Tccben Tccb enable bit 0 = disable TccbBit 4 Tccbte Tccb signal edge Tccc signal sourceIOCA0 IR and Tccc Scale Control Register Bit 0 Iroute Bit 3 IREBit 2 HF Bit 1 LGPBit OD67 OD66 OD65 OD64 OD63 OD62 OD61 OD60 IOCB0 Pull-down Control RegisterIOCC0 Open-Drain Control Register Bit PD57 PD56 PD55 PD54 PD53 PD52 PD51 PD50IOCE0 WDT Control & Interrupt Mask Registers IOCD0 Pull-high Control RegisterBit PH57 PH56 PH55 PH54 PH53 PH52 PH51 PH50 IOCF0 Interrupt Mask Register Lpwtif interrupt enable bit= Disable Lpwtif interrupt = Enable Lpwtif interrupt13 IOC61 Tccb Counter 12 IOC51 Tcca Counter15 IOC81 Tccc Counter 14 IOC71 TCCBH/MSB CounterIOCA1 High Time Register 16 IOC91 Low Time RegisterIOCB1 High/Low Time Scale Control Register Bit 2 ~ Bit 0 LTS2 ~ LTS0 Low time scale bits IOCC1 TCC Prescaler CounterTCC prescaler counter can be read and written to TCC/WDT and Prescaler MUX I/O PortsI/O Port and I/O Control Register Circuit for P60 /INT I/O Port and I/O Control Register Circuit for Port 50 ~ P57 Wake-up Wake-up and Interrupt Reset and Wake-upReset and Wake-up Operation Usage of Port 5 Input Change Wake-up/Interrupt FunctionEM78P259N/260N Select Segment Signal Sleep Mode Normal Mode Comparator Following summarizes the initialized values for registers Address Name Reset Type BitName Reset Type Bit HTR7 HTR6 HTR5 HTR4 HTR3 HTR2 HTR1 HTR0 Aisr Tcif Controller Reset Block DiagramT and P Status under Status R3 Register InterruptEvent EM78P259N/260N Interrupt Vector Interrupt Status Priority RetiBit 7 ~ Bit 3 ADE3 Bit 2 ADE2 Analog-to-Digital Converter ADCADC Control Register AISR/R8, ADCON/R9, ADOC/RA 1.1 R8 Aisr ADC Input Select RegisterP54/TCC/VREF Pin Priority High Medium Low 1.2 R9 Adcon AD Control RegisterP54 = ADC is operating While the CPU is operatingRA Adoc AD Offset Calibration Register AD Conversion Time ADC Operation during Sleep ModeADC Data Register ADDATA/RB, ADDATA1H/RC, ADDATA1L/RD ADC Sampling TimeProgramming Process Programming Process/ConsiderationsFollow these steps to obtain data from the ADC Define Bits in Adcon Sample Demo Programs Define a General RegisterDefine a Control Register ADC Control RegisterAD power on Overview Infrared Remote Control Application/PWM Waveform GenerationFcarrier Function DescriptionIRE Irout IR/PWM Related Status/Data Registers Programming the Related RegistersAddress Name Bit EM78P259N/260N Under Tcca Counter IOC51 Timer/CounterUnder Tccb Counter IOC61 Under Tccc Counter IOC81 Related Tccx Status/Data Registers ComparatorComparator Output External Reference SignalWake-up from Sleep Mode Using a Comparator as an Operation AmplifierComparator Interrupt Conditions OscillatorOscillator Modes Oscillator ModesOscillator Type Crystal Oscillator/Ceramic Resonators CrystalFrequency C1pF C2pF 18 Serial Mode Crystal/Resonator Circuit Diagram External RC Oscillator Mode40C ~ +85C 3V~5.5V Total Internal RC Oscillator ModeInternal Drift Rate RC Frequency Temperature Cext Rext Average Fosc 5V, 25C Average Fosc 3V, 25CExternal Power-on Reset Circuit Power-on ConsiderationsProgrammable WDT Time-out Period EM78P260N Residual Voltage ProtectionVdd EM78P259NWord Bit Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit Code OptionCode Option Register Word Word Word1 Bit12 ~ Bit0Bit 2 ~ 0 PR2 ~ PR0 Protect Bits = Pulses equal to 8/fc s is regarded as signal= Pulses equal to 32/fc s is regarded as signal default Bit Microprocessor with OTP ROM Bit 3 HLPInstruction Set Bit 1 & Bit 0 RCM1, RCM0 RC mode selection bitsCustomer ID Register Word Instruction Binary Following are the EM78P259N/260N instruction setMnemonic Operation Status Affected Items Rating Absolute Maximum RatingsSymbol Parameter Condition Min Typ Max Unit DC Electrical CharacteristicsTa=25 C, VDD=5.0V±5%, VSS=0V Voltage Min Typ Max Internal RC Drift RateVdd=2.5V to 5.5V, Vss=0V, Ta=25C AD Converter CharacteristicsDevice Characteristics Comparator OP CharacteristicsVdd = 5.0V, Vss=0V, Ta=25C Symbol Parameter Conditions Min Typ Max Unit AC Electrical CharacteristicTa=25C, VDD=5V±5%, VSS=0V TCC Input Timing CLKS=0 Timing DiagramsReset Timing CLK=0 AC Test Input/Output WaveformPackage Type Pin Count Package Size Package TypePackage Information 18-Lead Plastic Dual in line Pdip 300 mil838 18-Lead Plastic Small Outline SOP 300 mil650 Lead Plastic Shrink Small Outline Ssop 209 milLead Plastic Dual-in-line Pdip 300 mil Lead Plastic Small Outline SOP 300 mil Address Trap Detect Quality Assurance and ReliabilityTest Category Test Conditions Remarks