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 conta ined in this specificati on. ELAN Microelectronics sha ll not
be liable for direct, indirect, special incide ntal, or conseque ntial dama ges arising from the use of s uch information
or material.
The software (if any) described in this specification is furnished under a license or nond isclosure agreement, and
may be used or copied only in accordance wi th 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 sup porte d and is prohibite d.
NO P A RT OF THIS SPECIFICATION MAY BE REPRODUCED OR TRANSMI TTED IN ANY FORM OR BY
ANY MEANS WITHOUT THE EXPRESSED WRITTEN PERMISSION OF ELAN MICROELECTRONICS.
Flat A, 19F. , World T ech Centre 95
How Ming Street, Kwun Tong
Kowloon, HONG KONG
Tel: +852 2723-3376
Fax: +852 2723-7780
elanhk@emc.com.hk
Shenzhen:
Elan Microelectronics
Shenzhen, Ltd.
3F , SSME C Bldg., Gaoxin S . A ve. I
Shenzhen Hi-tech Industrial Park
(South Area) Shenzhen
CHINA 518057
Tel: +86 755 2601-0565
Fax: +86 755 2601-0500
USA:
Elan Information Technology
Group (USA)
1821 Saratoga Ave., Suite 250
Saratoga, CA 95070
USA
Tel: +1 408 366-8225
Fax: +1 4 08 366-8220
Shanghai:
Elan Microelectronics
Shanghai, Ltd.
#23, Zone 115, Lane 572, Bibo Rd.
Zhangjiang Hi-Tech Park
Shanghai, CHINA 201203
Tel: +86 21 5080-3866
Fax: +86 21 5080-4600
Contents
Contents
1 General Description.................................................................................................. 1
1.1 Added the IRC drift rate in the feature 2006/05/29
1. Improved the contents and format of the Features
section, Fig.4-1 EM78P259N/260N Functional Block Diagram, Fig.6-2 TCC and WDT Block Diagram and
Fig.6-11 IR/PWM System Block Diagram.
5. Modified Section 8.1 AD Converter Characteristics,
Section 8.2 Comparator (OP) Characteristics and
Appendix A. Package Type.
2007/05/18
vi •Product Specification (V1.2) 05.18.2007
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.
(This specification is subject to change without further notice)
Drift Rate
Voltage
(2.3V~5.5V)
Process Total
• 1
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
Crystal type: Crystal input terminal or external clock input pin.
RC type: clock output with a duration of one instruction cycle
External clock signal input
If set as /RESET and remains at logic low, the device will be
reset
Voltage on /RESET/Vpp must not exceed Vdd during normal
mode
External Counter input
TCC is defined by CONT <5>
I
TCCA is defined by IOC80 <1>
TCCB is defined by IOC90 <5>
TCCC is defined by IOC90 <1>
Analog to Digital Converter
I
Defined by ADCON (R9) <1:0>
IR mode output pin, capable of driving and sinking
current=20mA when the output voltage drops to 0.7Vdd and
rise to0.3Vdd at Vdd=5V.
External reference voltage for ADC
Defined by ADCON (R9) <7>
External interrupt pin triggered by a falling or rising edge
Defined by CONT <7>
Product Specification(V1.2) 05.18.2007
(This specification is subject to change without further notice)
• 3
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
5.2 EM78P260NP/M/KM
Symbol Pin No. Type Function
P70 16 I/O
P60~P67 7~14 I/O
P50~P57
CIN-, CIN+
CO
OSCI 17 I
OSCO 16 I/O
/RESET 5 I
TCC, TCCA,
TCCB, TCCC
ADC0~ADC3
IR OUT 14 O
VREF 4 I
/INT 7 I
VDD 15 – Power supply
VSS 6 – Ground
1~4
17~20
13, 12
11
4, 8,
9, 10
2, 3,
18, 19
General purpose input/output pin
Default value after a power-on reset
General purpose input/output pin
Open-drain
Default value after a power-on reset
General purpose input/output pin
Pull-high/pull-down
I/O
Default value after a power-on reset
Wake up from sleep mode when the status of the pin changes
“-“ : the input pin of Vin- of the comparator
“+” : the input pin of Vin+ of the comparator
I
O
Pin CO is the comparator output
Defined by IOC80 <4:3>
Crystal type: Crystal input terminal or external clock input pin.
RC type: clock output with a duration of one instruction cycle
External clock signal input
If set as /RESET and remains at logic low, the device will be
reset
Voltage on /RESET/Vpp must not exceed Vdd during normal
mode
External Timer/Counter input
TCC is defined by CONT <5>
I
TCCA is defined by IOC80 <1>
TCCB is defined by IOC90 <5>
TCCC is defined by IOC90 <1>
Analog to Digital Converter
I
Defined by ADCON (R9) <1:0>
IR mode output pin, capable of driving and sinking
current=20mA when the output voltage drops to 0.7Vdd and
rise to0.3Vdd at Vdd=5V.
External reference voltage for ADC
Defined by ADCON (R9) <7>
External interrupt pin triggered by a falling or rising edge
Defined by CONT <7>
4 •
Product Specification (V1.2) 05.18.2007
(This specification is subject to change without further notice)
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 which is defined by the TE bit (CONT-4)
through the TCC pin, or by the instruction cycle clock.
Writable and readable as any other registers
The TCC prescaler counter (IOCC1) is assigned to TCC
The contents of the IOCC1 register is cleared –
• when a value is written to the TCC register.
• when a value is written to the TCC prescaler bits (Bits 3, 2, 1, 0 of the CONT
register)
•during power-on reset, /RESET, or WDT time out reset.
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
6.1.3 R2 (Program Counter) and Stack
R3
A9 A8 A10
00 PAGE0 0000~03FF
01 PAGE1 0400~07FF
R2 and hardware stacks are 12-bit wide. The structure is depicted in the table
under Section 6.1.3.1, Data Memory Configuration (subsequent page).
Generates 2K×13 bits on-chip ROM addresses to the relative programming
instruction codes. One program page is 1024 words long.
000H
003H
~
01EH
3FEH
7FFH
User Memory Space
The contents of R2 are all set to "0"s when a reset condition occurs.
Product Specification(V1.2) 05.18.2007
(This specification is subject to change without further notice)
• 5
EM78P259N/260N
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", etc.) will cause the ninth bit and the tenth bit (A8 ~ A9) of the PC to remain
unchanged.
In the case of EM78P259N/260N, the most significant bit (A10) will be loaded with
the content of 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.
6 •
Product Specification (V1.2) 05.18.2007
(This specification is subject to change without further notice)
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
6.1.3.1 Data Memory Configuration
Address R PAGE registersIOCX0 PAGE registers
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
R0
(Indirect Addressing Register)
R1
(Time Clock Counter)
R2
(Program Counter)
R3
(Status Register)
R4
(RAM Select Register)
R5
(Port 5)
R6
(Port 6)
R7
(Port 7)
(ADC Input Select Register
R8
R9
(ADC Control Register)
(ADC Offset Calibration
RA
Register)
(The converted value
RB
AD11~AD4 of ADC)
(The converted value
RC
AD11~AD8 of ADC)
(The converted value
RD
AD7~AD0 of ADC)
(Interrupt Status 2 and
RE
Wake-up Control Register
(Interrupt Status Register 1)
RF
Reserve
CONT
(Control Register)
Reserve
Reserve
Reserve
IOC50
(I/O Port Control Register)
IOC60
(I/O Port Control Register)
IOC70
(I/O Port Control Register)
(Comparator and TCCA
IOC80
Control Register)
(TCCB and TCCC
IOC90
Control Register)
(IR and TCCC Scale
IOCA0
Control Register)
(Pull-down Control
IOCB0
Register)
(Open-drain Control
IOCC0
Register)
IOCD0
(Pull-high Control Register)
(WDT Control Register and
IOCE0
Interrupt Mask Register 2)
IOCF0
(Interrupt Mask Register 1)
IOCX1 PAGE registers
Reserve
Reserve
Reserve
Reserve
Reserve
IOC51
IOC61
IOCA1
IOCB1
IOCC1
(TCCA Counter)
(TCCB LSB Counter)
IOC71
(TCCB HSB Counter)
IOC81
(TCCC Counter)
IOC91
(Low Time Register)
(High Time Register)
(High Time and Low Time
Scale control Register)
(TCC Prescaler Control)
Reserve
Reserve
Reserve
10
︰
1F
20
:
3F
General Registers
Bank 0Bank 1
Product Specification(V1.2) 05.18.2007
(This specification is subject to change without further notice)
• 7
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
6.1.4 R3 (Status Register)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
RST IOCS PS0 T P Z DC C
Bit 7 (RST): Bit of reset type
Set to “1” if wake-up from sleep on pin change, comparator status
change, or AD conversion completed. Set to “0” if wake-up from other
reset types
Bit 6 (IOCS): Select the Segment of IO control register
0 = Segment 0 (IOC50 ~ IOCF0) selected
1 = Segment 1 (IOC51 ~ IOCC1) selected
Bit 5 (PS0): Page select bits. PS0 is 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 is loaded into the
11th bit 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 bit. That is, the return address will always be back
to the page from where the subroutine was called, regardless of the
current PS0 bit setting.
PS0 Program Memory Page [Address]
0 Page 0 [000-3FF]
1 Page 1 [400-7FF]
Bit 4 (T):Time-out bit. Set to “1” by the "SLEP" and "WDTC" commands or during
power on; and reset to “0” by WDT time-out (see Section 6.5.2, The T
and P Status under STATUS Register for more details).
Bit 3 (P):Power-down bit. Set to “1” during power-on or by a "WDTC" command
and reset to “0” by a "SLEP" command (see Section 6.5.2, The T and P
Status under STATUS Register for more details).
Bit 2 (Z):Zero flag. Set to "1" if the result of an arithmetic or logic operation is
zero.
Bit 1 (DC): Auxiliary carry flag
Bit 0 (C): Carry flag
6.1.5 R4 (RAM Select Register)
Bit 7: Set to “0” all the time
Bit 6: Used to select Bank 0 or Bank 1 of the register
Bits 5~0: Used to select a register (Address: 00~0F, 10~3F) in indirect addressing
mode
See the table under Section 6.1.3.1, Data Memory Configuration for data memory
configuration.
8 •
Product Specification (V1.2) 05.18.2007
(This specification is subject to change without further notice)
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
6.1.6 R5 ~ R6 (Port 5 ~ Port 6)
R5 & R6 are I/O registers
The upper 2 bits of R5 are fixed to “0” (if EM78P259N is selected).
Only the lower 6 bits of R5 are available (this applies to EM78P259N only as
EM78P260N can use all the bits)
6.1.7 R7 (Port 7)
Bit 7 6 5 4 3 2 1 0
EM78P259N/260N ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ ‘0’ I/O
ICE259N C3 C2 C1 C0 RCM1 RCM0 ‘0’ I/O
Note: R7 is an I/O register
For EM78P259N/260N, only the lower 1 bit of R7 is available.
Bit 7 ~ Bit 2:
[With EM78P259N/260N]: Unimplemented, read as ‘0’.
[With Simulator (C3~C0, RCM1, & RCM0)]: are IRC calibration bits in IRC oscillator
mode. Under IRC oscillator mode of ICE259N simulator,
these are the IRC mode selection bits and IRC calibration bits.
Bit 7 ~ Bit 4 (C3 ~ C0): Calibrator of internal RC mode
C3 C2 C1 C0 Frequency (MHz)
0 0 0 0 (1-36%) x F
0 0 0 1 (1-31.5%) x F
0 0 1 0 (1-27%) x F
0 0 1 1 (1-22.5%) x F
0 1 0 0 (1-18%) x F
0 1 0 1 (1-13.5%) x F
0 1 1 0 (1-9%) x F
0 1 1 1 (1-4.5%) x F
1 1 1 1 F (default)
1 1 1 0 (1+4.5%) x F
1 1 0 1 (1+9%) x F
1 1 0 0 (1+135%) x F
1 0 1 1 (1+18%) x F
1 0 1 0 (1+22.5%) x F
1 0 0 1 (1+27%) x F
1 0 0 0 (1+31.5%) x F
1. Frequency values shown are theoretical and taken at an instance of
a high frequency mode. Hence, frequency values are shown for
reference only. Definite values depend on the actual process.
2. Similar way of calculation is also applicable to low frequency mode.
Product Specification(V1.2) 05.18.2007
(This specification is subject to change without further notice)
• 9
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
Bit 3 & Bit 2 (RCM1, RCM0): IRC mode selection bits
6.1.8 R8 (AISR: ADC Input Select Register)
The AISR register individually defines the pins of Port 5 as analog input or as digital I/O.
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
– – – – ADE3 ADE2 ADE1 ADE0
Bit 7 ~ Bit 4: Not used
Bit 3 (ADE3): AD converter enable bit of P53 pin
0 = Disable ADC3, P53 functions as I/O pin
1 = Enable ADC3 to function as analog input pin
RCM 1 RCM 0 Frequency (MHz)
1 1 4 (default)
1 0 8
0 1 1
0 0 455kHz
Bit 2 (ADE2): AD converter enable bit of P52 pin
0 = Disable ADC2, P52 functions as I/O pin
1 = Enable ADC2 to function as analog input pin
Bit 1 (ADE1): AD converter enable bit of P51 pin
0 = Disable ADC1, P51 functions as I/O pin
1 = Enable ADC1 to function as analog input pin
Bit 0 (ADE0): AD converter enable bit of P50 pin.
0 = Disable ADC0, P50 functions as I/O pin
1 = Enable ADC0 to function as analog input pin
10 •
Product Specification (V1.2) 05.18.2007
(This specification is subject to change without further notice)
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
6.1.9 R9 (ADCON: ADC Control Register)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
VREFS CKR1 CKR0 ADRUN ADPD – ADIS1 ADIS0
Bit 7 (VREFS): Input source of the Vref of the ADC
0 = The Vref of the ADC is connected to Vdd (default value), and the
P54/VREF pin carries out the function of P54
1 = The Vref of the ADC is connected to P54/VREF
NOTE
The P54/TCC/VREF pin cannot be applied to TCC and VREF at the same time.
If P54/TCC/VREF functions as VREF analog input pin, then CONT Bit 5 “TS”
must be “0.”
The P54/TCC/VREF pin priority is as follows:
P53/TCC/VREF Pin Priority
High Medium Low
VREF TCC P54
Bit 6 & Bit 5 (CKR1 & CKR0): Prescaler of oscillator clock rate of ADC
When Comparator enters sleep mode, this bit must be set to “Enable.“
Bit 1 (ICWE): Port 5 input change to wake-up status enable bit
0 = Disable Port 5 input change to wake-up status
1 = Enable Port 5 input change to wake-up status
When Port 5 change enters sleep mode, this bit must be set to
“Enable“.
Bit 0: Not implemented, read as ‘0’
6.1.15 RF (Interrupt Status 2 Register)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
LPWTIF HPWTIF TCCCIF TCCBIF TCCAIF EXIF ICIF TCIF
Note: “ 1 ” means with interrupt request “ 0 ” means no interrupt occurs
RF can be cleared by instruction but cannot be set.
IOCF0 is the relative interrupt mask register.
Reading RF will result to "logic AND" of RF and IOCF0.
Bit 7 (LPWTIF): Internal low-pulse width timer underflow interrupt flag for IR/PWM
function. Reset by software.
Bit 6 (HPWTIF): Internal high-pulse width timer underflow interrupt flag for IR/PWM
function. Reset by software.
Bit 5 (TCCCIF): TCCC overflow interrupt flag. Set when TCCC overflows. Reset by
software.
Bit 4 (TCCBIF): TCCB overflow interrupt flag. Set when TCCC overflows. Reset by
software.
Bit 3 (TCCAIF): TCCA overflow interrupt flag. Set when TCCC overflows. Reset by
software.
Bit 2 (EXIF):External interrupt flag. Set by falling edge on /INT pin. Reset by
software.
Bit 1 (ICIF): Port 5 input status change interrupt flag. Set when Port 5 input
changes. Reset by software.
Bit 0 (TCIF):TCC overflow interrupt flag. Set when TCC overflows. Reset by
software.
6.1.16 R10 ~ R3F
All of these are 8-bit general-purpose registers.
14 •
Product Specification (V1.2) 05.18.2007
(This specification is subject to change without further notice)
6.2 Special Purpose Registers
6.2.1 A (Accumulator)
Internal data transfer operation, or instruction operand holding usually involves the
temporary storage function of the Accumulator, which is not an addressable register.
6.2.2 CONT (Control Register)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
INTE INT TS TE PSTE PST2 PST1 PST0
Note: The CONT register is both readable and writable
Bit 6 is read only.
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.
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
Bit 5 (TS): TCC signal source
0 = internal instruction cycle clock. P54 is bi-directional I/O pin.
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.
Product Specification(V1.2) 05.18.2007
(This specification is subject to change without further notice)
• 15
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
Bit 2 ~ Bit 0 (PST2 ~ PST0): TCC prescaler bits
PST2 PST1 PST0 TCC Rate
0 0 0 1:2
0 0 1 1:4
0 1 0 1:8
0 1 1 1:16
1 0 0 1:32
1 0 1 1:64
1 1 0 1:128
1 1 1 1:256
Note: Tcc time-out period [1/Fosc x prescaler x 256 (Tcc cnt) x 1 (CLK=2)]
Tcc time-out 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.
Only the lower 6 bits of IOC50 can be defined (this applies to EM78P259N only,
since EM78P260N can use all the bits).
Only the lower 1 bit of IOC70 can be defined, the other bits are not available.
IOC50, IOC60, and IOC70 registers are all readable and writable
6.2.4 IOC80 (Comparator and TCCA Control Register)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
– – CMPOUTCOS1 COS0 TCCAENTCCATS TCCATE
Note: Bits 4~0 of the IOC80 register are both readable and writable
Bit 5 of the IOC80 register is read only.
Bit 7 & Bit 6: Not used
Bit 5 (CMPOUT): Result of the comparator output
This bit is read only.
Bit 4 & Bit 3 (COS1 & COS0): Comparator/OP Select bits
COS1 COS0 Function Description
0 0
0 1 Acts as Comparator and P64 functions as normal I/O pin
1 0 Acts as Comparator and P64 functions as Comparator output pin (CO)
1 1 Acts as OP and P64 functions as OP output pin (CO)
Bit 2 (TCCAEN): TCCA enable bit
0 = disable TCCA
1 = enable TCCA as a counter
Comparator and OP are not used. P64, P65, and P66 function as
normal I/O pins.
16 •
Product Specification (V1.2) 05.18.2007
(This specification is subject to change without further notice)
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
Bit 1 (TCCATS): TCCA signal source
0 =: internal instruction cycle clock. P61 is a bi-directional I/O pin. 1 = transit through the TCCA pin
Bit 0 (TCCATE): TCCA signal edge
0 = increment if transition from low to high takes place on the
TCCA pin
1 = increment if transition from high to low takes place on the
defined as IROUT. If HP=1, the TCCC counter scale uses the
low time segments of the pulse generated by Fcarrier frequency
modulation (see Fig. 6-11 in Section 6.8.2, Function
Description). When HP=0, the TCCC is an Up Counter.
Bit 2 (HF): High Frequency bit
0 = PWM application. IROUT waveform is achieved according to
high-pulse width timer and low-pulse width timer which
determines the high time width and low time width respectively
1 = IR application mode. The low time segments of the pulse
generated by Fcarrier frequency modulation (see Fig. 6-11 in
Section 6.8.2, Function Description)
Bit 1 (LGP): Long Pulse.
0 = high time register and low time register is valid
1 = high time register is ignored. A single pulse is generated.
Bit 0 (IROUTE): Control bit to define the P67 (IROUT) pin function
0 = P67 is defined as bi-directional I/O pin
1 = P67 is defined as IROUT. Under this condition, the I/O control
bit of P67 (Bit 7 of IOC60) must be set to “0”
Product Specification(V1.2) 05.18.2007
(This specification is subject to change without further notice)
• 19
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
6.2.7 IOCB0 (Pull-down Control Register)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
/PD57 /PD56 /PD55 /PD54 /PD53 /PD52 /PD51 /PD50
Note: The IOCB0 register is both readable and writable
Bit 7 (/PD57): Control bit used to enable the pull-down function of the P57 pin
(applicable to EM78P260N only)
0 = Enable internal pull-down
1 = Disable internal pull-down
Bit 6 (/PD56): Control bit used to enable the pull-down function of the P56 pin
(applicable to EM78P260N only)
Bit 5 (/PD55): Control bit used to enable the pull-down function of the P55 pin
Bit 4 (/PD54): Control bit used to enable the pull-down function of the P54 pin
Bit 3 (/PD53): Control bit used to enable the pull-down function of the P53 pin
Bit 2 (/PD52): Control bit used to enable the pull-down function of the P52 pin
Bit 1 (/PD51): Control bit used to enable the pull-down function of the P51 pin
Bit 0 (/PD50): Control bit used to enable the pull-down function of the P50 pin.
6.2.8 IOCC0 (Open-Drain Control Register)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
/OD67 /OD66 /OD65 /OD64 /OD63 /OD62 /OD61 /OD60
Note: The IOCC0 register is both readable and writable
Bit 7 (/OD67): Control bit used to enable the open-drain output of the P67 pin
Bit 6 (/OD66): Control bit used to enable the open-drain output of the P66 pin
Bit 5 (/OD65): Control bit used to enable the open-drain output of the P65 pin
Bit 4 (/OD64): Control bit used to enable the open-drain output of the P64 pin
Bit 3 (/OD63): Control bit used to enable the open-drain output of the P63 pin
Bit 2 (/OD62): Control bit used to enable the open-drain output of the P62 pin
Bit 1 (/OD61): Control bit used to enable the open-drain output of the P61 pin
Bit 0 (/OD60): Control bit used to enable the open-drain output of the P60 pin
20 •
Product Specification (V1.2) 05.18.2007
(This specification is subject to change without further notice)
EM78P259N/260N
8-Bit Microprocessor with OTP ROM
6.2.9 IOCD0 (Pull-high Control Register)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
/PH57 /PH56 /PH55 /PH54 /PH53 /PH52 /PH51 /PH50
Note: The IOCD0 register is both readable and writable
Bit 7 (/PH57): Control bit is used to enable the pull-high of the P57 pin (applicable to
EM78P260N only).
0 = Enable internal pull-high;
1 = Disable internal pull-high.
Bit 6 (/PH56): Control bit used to enable the pull-high function of the P56 pin
(applicable to EM78P260N only).
Bit 5 (/PH55): Control bit used to enable the pull-high function of the P55 pin.
Bit 4 (/PH54): Control bit used to enable the pull-high function of the P54 pin.
Bit 3 (/PH53): Control bit used to enable the pull-high function of the P53 pin.
Bit 2 (/PH52): Control bit used to enable the pull-high function of the P52 pin.
Bit 1 (/PH51): Control bit used to enable the pull-high function of the P51 pin.
Bit 0 (/PH50): Control bit used to enable the pull-high function of the P50 pin.
6.2.10 IOCE0 (WDT Control & Interrupt Mask Registers 2)
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
WDTE EIS ADIE CMPIE PSWE PSW2 PSW1 PSW0
Bit 7 (WDTE): Control bit used to enable Watchdog Timer
0 = Disable WDT
1 = Enable WDT
WDTE is both readable and writable
Bit 6 (EIS): Control bit used to define the function of the P60 (/INT) pin
0 = P60, bi-directional I/O pin
1 = /INT, external interrupt pin. In this case, the I/O control bit of P60
(Bit 0 of IOC60) 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 6 (R6). Refer to Fig. 6-4 (I/O Port and I/O
Control Register Circuit for P60 (/INT)) under Section 6.4 (I/O Ports).
■ EIS is both readable and writable.
Product Specification (V1.2) 05.18.2007
(This specification is subject to change without further notice)
• 21
Loading...
+ 62 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.