EM73P968 is an advanced single chip CMOS 4-bit one time programming (OTP) micro-controller. It contains
16K-byte ROM, 2.5K nibbles RAM, 4-bit ALU, 13-level subroutine nesting, 22-stage time base, two 12-bit timer/
counters for the kernel function. EM73P968 also contains 6 interrupt sources, 1 input port, 8 bidirection ports, Max
LCD display (52x5), built-in watch-dog-timer and high speed Timer/Counter.
An analog to digital (A/D) converter having 8-bit multipler analog input and 8-bit resolution. Serial peripheral
interface (SPI).
EM73P968 has plentiful operating modes (SLOW, IDLE, STOP) intended to reduce the power consumption.
Instruction set: 107 powerful instructions.
Instruction cycle time : Up to 2us for 4 MHz (high speed clock).
ROM capacity: 16K x 8 bits.
RAM capacity: 2.5K x 4 bits.
Input port: 1 port, P0(0..3), IDLE/STOP releasing function are available by mask option.
Output port: 9 pins (P17.0, P30, P31), P17.0, P30, P31 are shared with LCD pins.
Bidirection port: 9 ports (P1, P2, P4, P5, P6, P7, P8, P11, P15). IDLE/STOP releasing function are
12-bit timer/counter: Two 12-bit timer/counters are programmable for timer, event counter and pulse width
A/D converter: An analog to digital (A/D) converter having 8-bit multipler analog input and 8-bit
SPI: Serial peripheral interface.
Built-in watch-dog-timer : It is available by mask option.
Built-in time base counter : 22 stages.
Built-in high Speed Timer/Counter : Could be timer.
Subrountine nesting: Up to 13 levels.
XOUTOSC-ACrystal connecting pin
LXINOSC-B/OSC-H2 Crystal/RC connecting pin for low speed clock source
LXOUTOSC-BCrystal connecting pin for low speed clock source
P0(0..3)/WAKEUP(0..3) INPUT-K4-bit input port with IDLE/STOP releasing function
Power supply (+)
Power supply (-)
ADC power (+)
ADC power (-)
mask option :none
pull-up
P0.0/ACLK : address counter clock for programming OTP.
P0.1/PGMB : program data to OTP cells for programming OTP.
P0.2/OEB : data output enable for programming OTP.
P0.3/DCLK : data in/out clock signal for programming OTP.
mask option 1 : wakeup disable
wakeup enable
mask option 2 : low current pull up
normal current pull up
high current pull up
none
* This specification are subject to be changed without notice.
8.14.2001
2
Page 3
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
PIN DESCRIPTIONS
Symbol Pin-typeFunction
P8.0(INT1)/WAKEUPA I/O-R12-bit bidirection I/O port with external interrupt sources input and IDLE/
/DINSTOP releasing function
P8.2(INT0)/WAKEUPCP8.0/DIN : data input for programming OTP
mask option 1 : wakeup disable
wakeup enable
mask option 2 : low current push pull
normal current push pull
high current push pull
none
P8.1(TRGB)/WAKEUPB, I/O-R12-bit bidirection I/O port with timer/counter A, B external input and
/DOUTIDLE/STOP releasing function
P8.3(TRGA)/WAKEUPDP8.1/DOUT : data output for programming OTP
mask option 1 : wakeup disable
wakeup enable
mask option 2 : low current push pull
normal current push pull
high current push pull
none
P6(0..3)/WAKEUP(20..23) I/O-R18-bit bidirection I/O port with IDLE/STOP releasing function.
AIN (0..3)Share with A/D analog input pin.
P7(0..3)/WAKEUP(24..27)mask option 1 : wakeup disable
AIN (4..7)wakeup enable
mask option 2 : low current push pull
normal current push pull
high current push pull
none
P4(0..3)/WAKEUP(12,15) I/O-R14-bit bidirection I/O port with IDLE/STOP releasing function
mask option 1 : wakeup disable
wakeup enable
mask option 2 : low current push pull
normal current push pull
high current push pull
none
* This specification are subject to be changed without notice.
8.14.2001
3
Page 4
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
PIN DESCRIPTIONS
Symbol Pin-typeFunction
P1(0..3)/WAKEUP(4..7) I/O-R118-bit bidirection I/O pins with IDLE/STOP releasing function
P2(0..3)/WAKEUP(8..11)mask option 1 : wakeup disable
P5(0..3)/WAKEUP(16..19)wakeup enable
P11(0..3)/mask option 2 : low current push pull
WAKEUP(28..31)normal current push pull
P15.2/P15.3/high current push pull
WAKEUP(34,35)none
P15.0/WAKEUP(32)1-bit bidirection I/O pins with IDLE/STOP releasing function. Share with
SPI data input/output pin.
mask option 1 : wakeup disable
wakeup enable
mask option 2 : low current push pull
normal current push pull
high current push pull
none
P15.1/WAKEUP(33)I/O-R11-bit bidirection I/O pins with IDLE/STOP releasing function.Share with
normal current push pull
high current push pull
none
P17.0/COM4Output-L1-bit output pin with LCD common pin
mask option :LCD common pin
Push pull
Open-drain
P30(0..3)/SEG(51..48)Output-M8-bit output pins are shared with LCD segment pin
P31(0..3)/SEG(47..44)mask option :LCD segment pin
Low current push pull
Normal current push pull
High current push pull
Open drain
COM0~COM3LCD common output pins
SEG0~SEG43LCD segment output pins
VRLC, V1, V2, V3--LCD bias voltage pins
TEST--Test pin must be connected to VSS
VPP : high voltage (12V) power source for programming OTP
* This specification are subject to be changed without notice.
8.14.2001
4
Page 5
* This specification are subject to be changed without notice.
Reset start address
INT0 ; interrupt service routine entry address
HTCI / ADI
TRGA
TRGB
TBI
INT1
SCALL, subroutine call entry address
Bank 1
Bank 2
Bank 3
Subroutine call entry address
designated by [LCALL a]
instruction
Data table for
[LDAX],[LDAXI]
instruction
* This specification are subject to be changed without notice.
8.14.2001
6
Page 7
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
User's program and fixed data are stored in the program ROM. User's program is executed using the PC value
Preliminary
to fetch an instruction code.
The 16Kx8 bits program ROM can be divided into 4 banks. There are 4Kx8 bits per bank.
The program ROM bank is selected by P3(1..0). The program counter is a 13-bit binary counter. The PC and
P3 are initialized to "0" during reset.
When P3(1..0)=00B, the bank0 and bank1 of program ROM will be selected. P3(1..0)=01B, the bank0 and
bank2 will be selected.
P3=xx00B
AddressP3=xx11BP3=xx01BP3=xx10B
0000h
:
:Bank0Bank0Bank0
0FFFh
1000h
:
:Bank1Bank2Bank3
1FFFh
PROGRAM EXAMPLE:
BANK 0
START::
:
:
LDIA#00H; set program ROM to bank1
OUTA P3
BXA1
:
XA ::
:
LDIA#01H; set program ROM to bank2
OUTA P3
BXB1
:
XB ::
:
LDIA#02H; set program ROM to bank3
OUTA P3
BXC1
:
Fixed data can be read out by table-look-up instruction. Table-look-up instruction is requires the Data point
(DP) to indicate the ROM address in obtaining the ROM code data (Except bank 0) :
LDAXAcc
LDAXIAcc
←←
← ROM[DP]
←←
←←
← ROM[DP]
←←
L
,DP+1
H
DP is a 12-bit data register that stores the program ROM address as pointer for the ROM code data.
User has to initially load ROM address into DP with instructions "STADPL", and "STADPM, STADPH",
then to obtain the lower nibble of ROM code data by instruction "LDAX" and higher nibble by instruction
"LDAXI".
PROGRAM EXAMPLE: Read out the ROM code of address 1777h by table-look-up instruction.
* This specification are subject to be changed without notice.
8.14.2001
9
Page 10
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
ZERO- PAGE:
From 000h to 00Fh is the zero-page location. It is used as the zero-page address mode pointer for the
instruction of "STD #k,y; ADD #k,y; CLR y,b; CMP k,y".
PROGRAM EXAMPLE: To write immediate data "07h" to RAM [03] and to clear bit 2 of RAM [0Eh].
STD #07h, 03h ; RAM[03] ← 07h
CLR 0Eh,2 ; RAM[0Eh]
STACK:
There are 13 - level (maximum) stack levels that user can use for subroutine (including interrupt and CALL).
User can assign any level be the starting stack by providing the level number to stack pointer (SP).
When an instruction (CALL or interrupt) is invoked, before enter the subroutine, the previous PC address
is saved into the stack until returned from those subroutines, the PC value is restored by the data saved in stack.
DATA AREA:
← 0
2
Except the area used by user's application, the whole RAM can be used as data area for storing and loading
general data.
ADDRESSING MODE
The 2548 nibble data memory consists of ten banks (bank 0 ~ bank 9). There are 244x4 bits (address
000h~0F3h) in bank 0 and 2304x4 bits (address 100h ~ 9FF) in bank 1 ~ bank 9.
The bank is selected by P9.
P9(3..0)Initial value : 0 0 0 0
RBK BankRAM address(hex)
0 0 0 000 0 0 ~ 0 F F
0 0 0 111 0 0 ~ 1 F F
0 0 1 022 0 0 ~ 2 F F
0 0 1 133 0 0 ~ 3 F F
0 1 0 044 0 0 ~ 4 F F
0 1 0 155 0 0 ~ 5 F F
0 1 1 066 0 0 ~ 6 F F
0 1 1 177 0 0 ~ 7 F F
1 0 0 088 0 0 ~ 8 F F
1 0 0 199 0 0 ~ 9 F F
1 0 1 0~00 0 0 ~ 0 F F
1 1 1 1
The Data Memory consists of three Address mode, namely -
(1) Indirect addressing mode:
The address in the bank is specified by the HL registers.
* This specification are subject to be changed without notice.
P9(3,2,1,0)
RAM address
HRLR
8.14.2001
10
Page 11
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
PROGRAM EXAMPLE: Load the data of RAM address "143h" to RAM address "032h".
The address in the bank is directly specified by 8 bits code of the second byte in the instruction field.
instruction field
xxxxxxxx
P9(3..0)
EM73P968
RAM address
PROGRAM EXAMPLE: Load the data of RAM address "143h" to RAM address "023h".
OUT#0001B,P9
LDA43h; Acc← RAM[143h]
OUT#0001B,P9
STA23h; RAM[023h]← Acc
(3) Zero-page addressing mode:
The zero-page is in the bank 0 (address 000h~00Fh). The address is the lower 4 bits code of the second byte
in the instruction field.
xxxxxxxx
instruction field
yyyy
RAM address
PROGRAM EXAMPLE: Write immediate "0Fh" to RAM address "005h".
STD#0Fh, 05h; RAM[05h]← 0Fh
00 00
0000
yyyy
* This specification are subject to be changed without notice.
8.14.2001
11
Page 12
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PROGRAM COUNTER (16K ROM)
Preliminary
Program counter ( PC ) is composed by a 13-bit counter, which indicates the next executed address for the
instruction of program ROM instruction.
For BRANCH and CALL instructions, PC is changed by instruction indicating. PC only can indicate the address
from 0000h-1FFFh. The bank number is decided by P3.
(1) Branch instruction:
SBR a
Object code: 00aa aaaa
Condition: SF=1; PC ← PC
( branch condition satisified )
12-6.a
PC Hold original PC value+1aaaaaa
SF=0; PC← PC +1( branch condition not satisified )
PC Original PC value + 1
LBR a
Object code: 1100 aaaa aaaa aaaa
Condition: SF=1; PC ← PC
( branch condition satisified )
12.a
Hold
PC
a a a a a a aaaaaa
+2
SF=0; PC← PC +2( branch condition not satisified )
Condition: SF=1; PC ← a ( branch condition satisified )
PCaaaaaaaaaaaa a
SF=0 ; PC ← PC + 3 ( branch condition not satisified )
PCOriginal PC value + 3
(2) Subroutine instruction:
SCALL a
Object code: 1110 nnnn
Condition : PC ← a ; a=8n+6 ; n=1..Fh ; a=86h, n=0
PC00000aaaaa aaa
LCALL a
Object code: 0100 0aaa aaaa aaaa
Condition: PC ← a
* This specification are subject to be changed without notice.
8.14.2001
12
Page 13
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
PC00aaaaaaaaaa a
RET
Object code: 0100 1111
Condition: PC ← STACK[SP]; SP + 1
PCThe return address stored in stack
RT I
Object code: 0100 1101
Condition : FLAG. PC ← STACK[SP]; EI ← 1; SP + 1
PCThe return address stored in stack
(3) Interrupt acceptance operation:
When an interrupt is accepted, the original PC is pushed into stack and interrupt vector will be loaded into
PC. The interrupt vectors are as follows :
INT0 (External interrupt from P8.2)
PC00000000000 1 0
TRGH (High speed counter interrupt)
PC000000000010 0
TRGA (Timer A overflow interrupt)
PC0000000000 1 1 0
TRGB (Time B overflow interrupt)
PC00000000 0 1 0 0 0
TBI (Time base interrupt)
PC00000000 0 1 0 1 0
INT1 (External interrupt from P8.0)
PC00000000 0 1 1 0 0
(4) Reset operation:
PC00000000000 0 0
* This specification are subject to be changed without notice.
8.14.2001
13
Page 14
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
(5) Other operations:
For 1-byte instruction execution: PC + 1
For 2-byte instruction execution: PC + 2
For 3-byte instruction execution: PC + 3
ACCUMULATOR
Accumulator(ACC) is a 4-bit data register for temporary data storage. For the arithematic, logic and
comparative opertion.., ACC plays a role which holds the source data and result.
FLAGS
There are three kinds of flag, CF (Carry flag), ZF (Zero flag) and SF (Status flag), these three 1-bit flags
are included by the arithematic, logic and comparative .... operation.
All flags will be put into stack when an interrupt subroutine is served, and the flags will be restored after
RTI instruction is executed.
(1) Carry Flag ( CF )
The carry flag is affected by the following operations:
a. Addition : CF as a carry out indicator, under addition operation, when a carry-out occures, the CF is "1",
likewise, if the operation has no carry-out, CF is "0".
b. Subtraction : CF as a borrow-in indicator, under subtraction operation, when a borrow occures, the CF
is "0", likewise, if there is no borrow-in, the CF is "1".
c. Comparision : CF as a borrow-in indicator for Comparision operation as in the subtraction operation.
d. Rotation : CF shifts into the empty bit of accumulator for the rotation and holds the shift out data after
rotation.
e. CF test instruction : Under TFCFC instruction, the CF content is sent into SF then clear itself as "0".
Under TTSFC instruction, the CF content is sent into SF then set itself as "1".
(2) Zero Flag ( ZF )
ZF is affected by the result of ALU, if the ALU operation generates a "0" result, the ZF is "1", likewise, the
ZF is "0".
(3) Status Flag ( SF )
The SF is affected by instruction operation and system status.
a. SF is initiated to "1" for reset condition.
b. Branch instruction is decided by SF, when SF=1, branch condition is satisified, likewise, when SF = 0,
branch condition is unsatisified.
* This specification are subject to be changed without notice.
8.14.2001
14
Page 15
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PROGRAM EXAMPLE:
Preliminary
Check following arithematic operation for CF, ZF, SF
The arithematic operation of 4-bit data is performed in ALU unit. There are 2 flags that can be affected by
the result of ALU operation, ZF and SF. The operation of ALU is affected by CF only.
ALU STRUCTURE
ALU supported user arithematic operation functions, including Addition, Subtraction and Rotaion.
DATA BUS
ALU
ZF CF SF
ALU FUNCTION
(1) Addition:
ALU supports addition function with instructions ADDAM, ADCAM, ADDM #k, ADD #k,y .... .
The addition operation affects CF and ZF. Under addition operation, if the result is "0", ZF will be "1",
otherwise, ZF will be "0". When the addition operation has a carry-out, CF will be "1", otherwise, CF will
be "0".
Two types of rotation operation are available, one is rotation left, the other is rotation right.
RLCA instruction rotates Acc value counter-clockwise, shift the CF value into the LSB bit of Acc and hold
the shift out data in CF.
MSBLSB
ACC
CF
RRCA instruction operation rotates Acc value clockwise, shift the CF value into the MSB bit of Acc and
hold the shift out data in CF.
MSBLSB
ACC
CF
PROGRAM EXAMPLE: To rotate Acc clockwise (right) and shift a "1" into the MSB bit of Acc.
TTCFS; CF ← 1
RRCA; rotate Acc right and shift CF=1 into MSB.
HL REGISTER
HL register are two 4-bit registers, they are used as a pair of pointer for the RAM memoryaddress. They are
used as also 2 independent temporary 4-bit data registers. For certain instructions, L register can be a pointer
to indicate the pin number (Port4 only).
HL REGISTER STRUCTURE
3 2 1 0
H REGISTER
3 2 1 0
L REGISTER
HL REGISTER FUNCTION
(1) HL register is used as a temporary register for instructions : LDL #k, LDH #k, THA, THL, INCL, DECL,
EXAL, EXAH.
PROGRAM EXAMPLE:
LDL #05h;
LDH #0Dh;
Load immediate data "5h" into L register, "0Dh" into H register.
(2) HL register is used as a pointer for the address of RAM memory for instructions : LDAM, STAM, STAMI ..
PROGRAM EXAMPLE: Store immediate data "#0Ah" into RAM of address 35h.
* This specification are subject to be changed without notice.
8.14.2001
16
Page 17
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
LDL #5h;
LDH #3h;
STDMI #0Ah; RAM[35] ← Ah
(3) L register is used as a pointer to indicate the bit of I/O port for instructions : SELP, CLPL, TFPL,
(When LR = 0 indicate P4.0)
PROGRAM EXAMPLE: To set bit 0 of Port4 to "1"
LDL#00h;
SEPL ; P4.0 ← 1
STACK POINTER (SP)
Stack pointer is a 4-bit register that stores the present stack level number.
Before using stack, user must set the SP value first, CPU will not initiate the SP value after reset condition.
When a new subroutine is received, the SP is decreased by one automatically, likewise, if returning from a
subroutine, the SP is increased by one.
The data transfer between ACC and SP is done with instructions "LDASP" and "STASP".
DATA POINTER (DP)
Data pointer is a 12-bit register that stores the ROM address can indicating the ROM code data specified
by user (refer to data ROM).
CLOCK AND TIMING GENERATOR
The clock generator is supported by a dual clock system. The high-frequency oscillator is internal oscillator.
The low-frequency oscillator may be sourced from crystal, the working frequency is 32 KHz.
CLOCK GENERATOR STRUCTURE
There are two clock generator for system clock control unit, P14 is the status register that hold the CPU
status. P16, P19 and P22 are the command register for system clock mode control.
Mask option for choose Crystal or RC oscillator
XIN
XOUT
LXIN
LXOUT
High-frequency
generator
Low-frequency
generator
fc
System clock
fs
mode control
P14
P16
P19
P22
Mask option for choose Crystal or RC oscillator
LXIN/XIN
LXOUT/XOUT
Crystal connection or
(
Res=100K for high frequency osc
System control
Res
RC connection
/ Res=1M for slow frequency osc)
* This specification are subject to be changed without notice.
LXIN/XIN
LXOUT/XOUT
8.14.2001
17
Page 18
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
SYSTEM CLOCK MODE CONTROL
Preliminary
The system clock mode controller can start or stop the high-frequency and low-frequency clock oscillator
and switch between the basic clocks. EM73P968 has four operation modes (NORMAL, SLOW, IDLE and
NORMALHigh, Low frequency High frequency clockLCD, SPI, A/D, HTC.8 / fc
SLOWLow frequencyLow frequency clockLCD4 / fs
IDLELow frequencyCPU stopsLCD-
STOPNoneCPU stopsAll disable-
NORMAL OPERATION MODE
The 4-bit µc is in the NORMAL operation mode when the CPU is reseted. This mode is dual clock system
(high-frequency and low-frequency clocks oscillating). It can be changed to SLOW or STOP operation
mode with the command register (P22 or P16).
LCD display and high speed timer/counter are available for the NORMAL operation mode.
SLOW OPERATION MODE
The SLOW operation mode is single clock system (low-frequency clock oscillating). It can be changed to
the NORMAL operation mode with the command register (P22), STOP operation mode with P16 and IDEL
operation mode with P19.
LCD display is available for the SLOW operation mode.
* This specification are subject to be changed without notice.
8.14.2001
18
Page 19
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
P223210 Initial value : 0000
Preliminary
*SOM
SOMLow-frequency
0002^3/LXIN RC solw to normal
0012^4/LXIN RC solw to normal
010 2^11/LXIN X'tal slow to normal
011 2^12/LXIN X'tal slow to normal
1** normal to slow
P14
Port14 is the status register for CPU. P14.0 (CPU status) and. P14.2 (wakeup status) will be set to "1" when
CPU is wake-up by internal timer. P14.2 will be cleared to "0" when user out data to P14. INT2_S is low, the
program address "0004H" is the interrupt entry address of HTCI. INT2_S is high, the program address
"0004H" is the interrupt entry address of ADI.
32 10 Initial value : *000
INT2_S WKS SPI_F CPUS
SPI_FSPI_FlagCPUSCPU status
0SPI register is empty0NORMAL operation mode
1SPI register is full1SLOW operation
WKSWakeup status
0Wakeup not by internal timer
1Wakeup by internal timer
IDLE OPERATION MODE
The IDLE operation mode suspends all CPU functions except the low-frequency clock oscillation and the
LCD driver. It keeps the internal status with low power consumption without stopping the slow clock
oscillator and LCD display.
LCD display is available for the IDLE operation mode. The IDLE operation mode will be wakeup and return
to the SLOW operation mode by the internal timing generator or I/O pins (P0(0..3)/WAKEUP 0..3, P1(0..3)/
WAKEUP 4..7, P2(0..3)/WAKEUP 8..11, P4(0..3)/WAKEUP 12..15, P5(0..3)/WAKEUP 16..19, P6(0..
3)/WAKEUP 20..23, P7(0..3)/WAKEUP 24..27, P8(0..3)/WAKEUPA..D, P11(0..3)/WAKEUP 28..31,
and P15(0..3)/WAKEUP 32..35).
1 0P0,P1,P2,P4,P5,P6,P7,P8,P11,P15 pin input and 0.5 sec
signal
1 1P0,P1,P2,P4,P5,P6,P7,P8,P11,P15 pin input and 15.625
ms signal
* This specification are subject to be changed without notice.
8.14.2001
19
Page 20
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
STOP OPERATION MODE
The STOP operation mode suspends system operation and holds the internal status immediately before the
suspension with low power consumption. This mode will be released by reset or I/O pins (P0(0..3)/
WAKEUP 0..3, P1(0..3)/WAKEUP 4..7, P2(0..3)/WAKEUP 8..11, P4(0..3)/WAKEUP 12..15, P5(0..3)/
WAKEUP 16..19, P6(0..3)/WAKEUP 20..23, P7(0..3)/WAKEUP 24..27, P8(0..3)/WAKEUPA..D, P11
(0..3)/WAKEUP 28..31, and P15(0..3)/WAKEUP 32..35).
LCD display and high speed timer/counter with melody output are disabled in STOP mode.
Initial value : 0000 P16 3 2 1 0
SWWT Set wake up
1 0 0 2^9/XIN for RC osc.
1 1 1 2^19/XIN for Crystal osc.
*
Stop wake up time (go to NORMAL)
*
*
1 0 1 2^10/XIN for RC osc.
*
1 1 0 2^18/XIN for Crystal osc.
*
EM73P968
GENERAL PURPOSE REGISTER (P10)
P10 is a 4-bit general purpose register which can be read, written and rested by all I/O instructions.
(including : INA, INM, OUT, OUTA, OUTM, SEP, CLP, TTP, TFP)
PROGRAM EXAMPLE:
CHIP ROM16K
;--------RAM define area-----------------
DSEG
ORG10H
HLBUF:RES2; HL buffer for in terrupt
P9BUF:RES1; P9 (RAM bank) buffer for interrupt
:
HTCI:OUTA P10; save Acc to general purpose register P10
INAP9
OUT#0000B,P910 instruction bytes
STAP9BUF; save RAM bank to P9BUF
EXHLHLBUF; save HL to HLBUF
:
:
EXHLHLBUF; restore HLBUF to HL
LDAP9BUF; resotre P9BUF to RAM bank10 instruction bytes
OUTA P9
INAP10; restore register P10 to Acc
RTI
* This specification are subject to be changed without notice.
8.14.2001
20
Page 21
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
TIME BASE INTERRUPT (TBI)
The time base can be used to generate a single fixed frequency interrupt. Eight types of frequencies can be
selected with the "P25" setting.
P25 3210
initial value : 0000
P25NORMAL operation modeSLOW operation mode
0 0 x xInterrupt disableInterrupt disable
0 1 0 0Interrupt frequency LXIN / 2
0 1 0 1Interrupt frequency LXIN / 2
0 1 1 0Interrupt frequency LXIN / 2
0 1 1 1Interrupt frequency LXIN / 2
1 1 0 0Interrupt frequency LXIN / 21 HzReserved
1 1 0 1Interrupt frequency LXIN / 26 HzInterrupt frequency LXIN / 26 Hz
1 1 1 0Interrupt frequency LXIN / 28 HzInterrupt frequency LXIN / 28 Hz
1 1 1 1Interrupt frequency LXIN / 2
1 0 x xReservedReserved
3
HzReserved
15
HzInterrupt frequency LXIN / 2
5
HzReserved
14
HzInterrupt frequency LXIN / 2
10
HzInterrupt frequency LXIN / 2
14
10
15
Hz
Hz
Hz
TIMER / COUNTER (TIMERA, TIMERB)
Timer/counters support three special functions:
1. Even counter
2. Timer.
3. Pulse-width measurement.
These three functions can be executed by 2 timer/counter independently.
With timerA, the counter data is saved in timer register TAH, TAM, TAL. User can set counter initial
value and read the counter value by instruction "LDATAH(M,L)" and "STATAH(M,L)". With timer B
register is TBH, TBM, TBL and the W/R instruction are "LDATBH (M,L)" and "STATBH (M,L)".
The basic structure of timer/counter is composed by two identical counter module, these two modules can
be set initial timer or counter value to the timer registers, P28 and P29 are the command registers for timerA
and timer B, user can choose different operation modes and internal clock rates by setting these two
registers. When timer/counter overflows, it will generate a TRGA(B) interrupt request to interrupt control
unit.
12 BIT COUNTER
INTERRUPT CONTROL
TRGA request
DATA BUS
TRGB request
12 BIT COUNTER
P8.3/
TRGA
internal clock
EVENT COUNTER CONTROL
TIMER CONTROL
PULSE-WIDTH MEASUREMENT
P28
CONTROL
TMSAIPSA
P29
* This specification are subject to be changed without notice.
EVENT COUNTER CONTROL
TIMER CONTROL
PULSE-WIDTH MEASUREMENT
CONTROL
TMSBIPSB
P8.1/
TRGB
internal clock
8.14.2001
21
Page 22
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
TIMER/COUNTER CONTROL
P8.1/TRGB, P8.3/TRGA are the external timer inputs for timerB and timerA, they are used in event
counter and pulse-width measurement mode.
Timer/counter command port: P28 is the command port for timer/counterA and P29 is for the timer/
counterB.
Timer/counterA,B are programmable for timer, event counter and pulse width measurement mode. Each
timer/counter can execute any of these functions independently.
EVENT COUNTER MODE
Under event counter mode, the timer/counter is increased by one at any rising edge of P8.1/TRGB for timerB
(P8.3/TRGA for timer A). When timerB (timerA) counts overflow, it will provide an interrupt request
TRGB (TRGA) to interrupt control unit.
P8.1/TRGB (P8.3/TRGA)
TimerB (TimerA) value nn+1n+2n+3n+4n+5n+6
PROGRAM EXAMPLE: Enable timerA with P28
LDIA #0100b;
OUTAP28; Enable timerA with event counter mode
* This specification are subject to be changed without notice.
8.14.2001
22
Page 23
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
TIMER MODE
Under timer mode, the timer/counter is increased by one at any rising edge of internal pulse. User can choose
up to 4 types of internal pulse rate by setting IPSB for timerB (IPSA for timerA).
When timer/counter counts overflow, an interrupt request will be sent to interrupt control unit.
Internal pulse
TimerB (TimerA )value
nn+1n+2n+3n+4n+5n+6n+7
PROGRAM EXAMPLE: To generate TRGA interrupt request after 60 ms with system clock LXlN=32KHz
NOTE:The preset value of timer/counter register is calculated as following procedure.
Internal pulse rate: LXIN/2
3
; LXIN = 32KHz
The time of timer counter count one = 23 /LXIN = 8/32768=0.244ms
The number of internal pulse to get timer overflow = 60 ms/0.244ms = 245.901= 0F6h
The preset value of timer/counter register = 1000h - 0F6h = F0Ah
PULSE WIDTH MEASUREMENT MODE
Under the pulse width measurement mode, the counter is incresed at the rising edge of internal pulse during
external timer/counter input (P8.1/TRGB, P8.3/TRGA) in high level, interrupt request is generated as soon as
timer/counter count overflow.
P8.1/TRGB(P8.3/TRGA)
Internal pulse
TimerB(TimerA) value
nn+1n+2n+3n+4n+5
PROGRAM EXAMPLE: Enable timerA by pulse width measurement mode.
LDIA#1100b ;
OUTAP28; Enable timerA with pulse width measurement mode.
* This specification are subject to be changed without notice.
8.14.2001
23
Page 24
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
HIGH SPEED TIMER/COUNTER
EM73P968 has one 8-bit high speed timer/counter (HTC). It supports two special functions : auto load timer
and melody output. The HTC is available for the NORMAL and SLOW operation mode.
The HTC can be set initial value and send counter value to counter registers (P12 and P13), P20 is the
command port for HTC, user can choose different operation mode and different internal clockrate by setting
the port. The timer/counter increase one at the rising edge of internal pulse. The HTC can generate an overflow
interrupt (HTCI) when it overflows. The HTCI cannot be generated when the HTC is in the melody mode
or disabled.
INTERRUPT FUNCTION
Six interrupt sources are available, 2 from external interrupt sources and 4 from internal interrupt sources.
Multiple interrupts are admitted according to their priority.
TypeInterrupt sourcePriority Interrupt InterruptProgram ROM
P12 and P13 are the 8-bit binary counter registers of the HTC. P12 is lower nibble register and P13 is higher
nibble register.
"
#
$
%
P13 P12
3 2 1 03 2 1 0 Initial value : 0000 0000
Higher nibble registerLower nibble register
The HTC can be set initial value and send counter value to counter registers (P13 and P12), and P20 are the
command ports for HTC, user can choose different operation mode and different internal clockrate. The
timer/counter increase one at the rising edge of internal pulse. The HTC can generate an overflow interrupt
(HTCI) when it overflows. The HTCI can not be generated when the HTC is disabled.
The value of 8-bit binary up counter can be presetted by P12 and P13. The value of registers can loaded into
the HTC when the counter starts counting or occurs overflow. If user write value to the registers before the
next overflow occurs, the preset value can be changed.
The preset value will be changed when users output the different data to P12 and P13.
The count value of HTC can be read from P12 and P13. The value is unstable when user read the value during
counting. Thus, user must disable the counter before reading the value.
* This specification are subject to be changed without notice.
8.14.2001
26
Page 27
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
FUNCTION OF HIGH SPEED COUNTER
Preliminary
The HTC has auto load timer mode.
The HTC is disabled when the CPU is reseted or in the SLOW/STOP/IDLE operation mode. Users
must enable it by self when the CPU is waked up.
Auto load timer mode
In this mode, there are four different internal pulse rates can be selected by P20. The HTC loads the
initial values by the counter registers (P12, P13) and increases at the rising edges of internal pulse generated
by the time base. The value of TCB increases one when the high speed counter overflows and generates
an overflow interrupt (TRGB) when the TCB overflows. This mode is only available for NORMAL operation
mode.
* This specification are subject to be changed without notice.
8.14.2001
27
Page 28
EM73P968
g
h
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
ANALOG TO-DIGITAL CONVERTER (ADC)
The analog to - digital consists of an 8-bit analog multiplexer (P6, P7), one control register (P26), two data
register (P12,P13), and ADC with 8-bit resolution.
The ADC module utilizes successive approximation to convert the unknown analog signal to a digital value.
The result is fed to the P12,P13, Input channel are select by the analog input multiplexer the P17 register bits
SEL0, SEL1 and SEL2. The A/D converter is disable when the CPU is reset or in the STOP/IDLE/SLOW
operation mode. User must enable it by self when the CPU is NORMAL operation mode.
* This specification are subject to be changed without notice.
8.14.2001
28
Page 29
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
ADC control register
P26(BIT)321 0Initial value : 0000
SYMBOLADEN*F_RUNSTART
Port 26 is A/D control register , when P26.3 (ADEN) is high A/D converter enable , P26.3 is low A/D converter
disable , P26.1(F_RUN) is high, select A/D conversion is free run , P26.1(F_RUN) is slow , A/D could not
convert P26.0(START) is high , A/D converter is only one time.
A/D clock rate control register
P23(BIT)321 0Initial value : 0000
SYMBOL** A/D rate select
A/D rate A/D clock rate
0 0CLK / 2
0 1CLK / 2
1 0CLK / 2
1 1CLK / 2
CLK=system clock (4M)
Preliminary
5
6
7
7
ADC Data Register (P12,P13)
When we use ADC , first ADC must get P12,P13 ,because P12,P13 share with SPI , ADC and HTC when
the A/D conversion is complete ,the result is load to the P12,P13, and the ADC can generate an interrupt (ADI),
the INT2_S ( P14.3) is set high.
* This specification are subject to be changed without notice.
8.14.2001
29
Page 30
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
PROGRAM EXAMPLE : input P6.0 an analog message to coverter
CHIP16K
;---------------------- RAM define area ----------------------
LBR ADI
;----------------------------------------------------------------------START:
LDIA#0001B; A/D clock rate=60K
OUTAP23
LDIA#0001B
OUTAP18; P12,P13
LDIA#1001B
OUTAP26; ADC enable & ADC run one time
LDIA #0000B
OUTAP17; P6.0 input an analog
LOOP:
BLOOP; wait the ADC interrupt to occur & interrupt Flag to be Set
(INT2 _S)
BLOOP
:
:
ADI:
INAP12
STAADBUF
INAP13
STAADBUF
RET
→ADC
EM73P968
* This specification are subject to be changed without notice.
8.14.2001
30
Page 31
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
SERIAL PERIPHERAL INTERFACE (SPI)
The Serial Peripheral Interface (SPI) circuitry consists of two control register P18, P24 , one data register (P12,
P13) ,one shift register. The MSTR select the source of the serial clock from the internal or the external clock.
at the same time, only transfer can occur or receive can occur. The SPI is available for the NORMAL
operation mode.
Internal bus
SPI_F
MSTR
CLK0~1
SPI Control Register :
P24(Bit) 3210
SYMBOL MSTR DOROCLKS1CLKS0
CLKS0~CLKS1: SPI transmission clock rate select
This is the clock rate selection bits, on master mode, we have four Kinds of rate can select.
2
CTR0~1
2
CLOCK
GENERATOR
DCOL
SPIE
DORD
8- BIT Shift register
Output latch
8
SPI
reg
P12, P13
8
SDO
SDI
SCK
P15
Clock RateP24(1,0 BIT)
CLKS1CLKS0
Fc/2^500
Fc/2^601
Fc/2^710
Fc/2^811
DORD: Data transmission order
0: LSB first
the data in the 8-bit shift register is shifted in/out LSB first
1: MSB first
the data in the 8-bit shift register is shifted in/out LSB first
* This specification are subject to be changed without notice.
8.14.2001
31
Page 32
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
MSTR: master or slave mode select
0: Master mode
SPI is in master mode and SCK is configured as an output pin.
SPI clock source is internal clock.
1: slave mode
SPI is in slave mode and SCK is configured as an input pin.
SCK receives the serial clock externally.
P18(Bit)3210
SYMBOLSPIE*CTR1CTR0
SPIE: Serial Peripheral Interface Enable
1: Serial Peripheral Interface Enable
0: Serial Peripheral Interface disable
P12, P13 control table
CTR1CTR0Select resume
00HTC counter
01A/D converter
10SPI shift data
11Unused
EM73P968
SPI control bit:
SPI_F( P14.1): SPI control flag
when SPI register (P12, P13) is empty SPI_F clear 0
when SPI register (P12, P13) is full, SPI_F set 1
P3(Bit)3210
SYMBOL DCOL* ROM bank select
DCOL (P3.3): SPI control flag
When SPI shift register is empty DCOL clear 0.
When SPI shift register is full DCOL set 1.
SDO: Serial data out ( share with P15.0)
When MSTR set to 0 , SDO is an output pin, share with P15.0,
When the SPI is enable , data are shift out form SDO (P15.0)
SDI: Serial data out (share with P15.0)
When MSTR set to 1 , SDI is an input pin, share with P15.0,
When the SPI is enable , data are shift in form SDI (P15.0)
SCK: Serial Clock (share with P15.1)
The SCK pin for synchronization of both input and output data stream through SDI and SDO pins. When the
MSTR is set, SCK become an output and the Serial clock is supplied to the internal system. When the MSTR
is clear, SCK become an intput and the Serial clock is supplied to the external system. The clock speed in slave
mode is dependent upon the speed of the external system and has a maximum speed up till the internal system
clock.
* This specification are subject to be changed without notice.
8.14.2001
32
Page 33
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
SCK: Serial Clock (share with P15.1)
The SCK pin for synchronization of both input and output data stream through SDI and SDO pins. When the
MSTR is set, SCK become an output and the Serial clock is supplied to the internal system. When the MSTR
is clear, SCK become an intput and the Serial clock is supplied to the external system. The clock speed in slave
mode is dependent upon the speed of the external system and has a maximum speed up till the internal system
clock.
PROGRAM EXAMPLE :
transmission 16 bit (ABAB H) serial data LBS first, clock rate Fc/2^8 (Fc=4MHz)
TTPP14,1
BNEXT; wait SPI register is empty and input next data (8 bits)
LDIA#0AH
OUTAP13; 0AH → P13
LDIA#0BH
OUTAP12; 0BH → P12
SEPP14,1
NEXT1:
TTPP14,1; wait SPI register is empty and input next data (8 bits)
BNEXT1
NEXT2:
TTPP3.3
BNEXT2; wait all data transfer over
LDIA#0
OUTAP18; SPI disable
→ P13,
* This specification are subject to be changed without notice.
8.14.2001
33
Page 34
SPI TIMING DIAGRAM
DATA OUTPUT TIMING
SCK
SDO
MSTR=0
DORD=0
SDO
MSTR=0
DORD=1
DATA
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
MSB BIT6 BIT5 BIT4
LSB BIT1
BIT2
BIT3
BIT3
IT4
BIT2 BIT1
BIT5 BIT6
EM73P968
LSB
SB
SAMPLE
SPI_F
DATA INPUT TIMING
SCK
SDO
MSTR=0
DORD=0
SDO
MSTR=0
DORD=1
DATA
SAMPLE
SPI_F
MSB BIT6 BIT5 BIT4
BIT3
BIT2 BIT1
LSB
LSB BIT1 BIT2 BIT3 BIT4 BIT5 BIT6 MSB
* This specification are subject to be changed without notice.
8.14.2001
34
Page 35
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
LCD DRIVER
EM73P968 can directly drive the liquid crystal display (LCD) and has 52 segment and 4 or 5 common output
pins by mask option. There are total 52x4 or 52x5 dots can be display. The VRLC pin is the LCD driver power
input, there is the voltage of (VCC-VRLC) to LCD.
P17.0 share with com 4. When the mask option select 1/4 duty, the P17.0 is an output pin and LCD have 4
common. When the mask option select 1/5 duty, the P17.0 is a LCD pin and LCD have 5 common.
LCD driver control command register (P27) :
Port273210 Initial value : 0000
LDC * * *
LDCLCD display control
0LCD display disable
1LCD display enable
* : Don't care.
Example :
LDIA#1000B; enable LCD, reference voltage of LCD is 1.5V.
OUTAP27
:
LDIA#0000B; disable LCD
OUTAP27
LCD RAM
20H-2CH
30H-3CH
40H-4CH
50H-5CH
60H-6CH
012345 6789
COM0
COM1
COM2
COM3
COM4
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
SEG9
SEG10
SEG11
SEG12
SEG13
SEG14
SEG15
SEG16
SEG17
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
SEG24
SEG25
SEG26
SEG27
SEG28
SEG29
SEG30
SEG31
SEG32
SEG33
SEG34
SEG35
SEG36
ABCDEF
SEG37
SEG38
SEG39
SEG40
SEG41
SEG42
SEG43
SEG44
SEG45
SEG46
SEG47
SEG48
SEG49
SEG50
SEG51
* This specification are subject to be changed without notice.
8.14.2001
35
Page 36
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
DrivingRAM SEG0SEG1SEG2SEG3
Methodaddressbit0bit1bit2bit3
20H
1/51/430H
dutyduty40H
50H
-60H
DrivingRAM SEG4SEG5SEG6SEG7
Methodaddressbit0bit1bit2bit3
21H
1/51/431H
dutyduty41H
51H
-61H
:
:
EM73P968
DrivingRAM SEG48SE49SEG50SEG51
Methodaddressbit0bit1bit2bit3
2CH
1/51/43CH
dutyduty4CH
5CH
-6CH
(2) 1/4 duty (1/3 bias)
COM0
COM1
COM2
COM3
SEG0
ON
OFF
Frame
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
-V1
-V2
-V3
V3
V2
V1
Vss
-V1
-V2
-V3
COM0
COM1
COM2
COM3
COM4
SEG0
SEG0-COM0
SEG0-COM1
(1) 1/5 duty (1/3 bias)
ON
OFF
Frame
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
-V1
-V2
-V3
V3
V2
V1
Vss
-V1
-V2
-V3
SEG0-COM0
SEG0-COM1
* This specification are subject to be changed without notice.
8.14.2001
36
Page 37
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
WATCH-DOG-TIMER (WDT)
Watch-dog-timer can help user to detect the malfunction (runaway) of CPU and give system a timeup signal every
certain time. User can use the time up signal to give system a reset signal when system is fail.
This function is available by mask option. If the mask option of WDT is enabled, it will stop counting when CPU
is reseted or in the STOP operation mode.
The basic structure of Watch-Dog-Timer control is composed by a 4-stage binary counter and a control unit.
The WDT counter counts for a certain time to check the CPU status, if there is no malfunction happened, the
counter will be cleared and continue counting. Otherwise, if there is a malfunction happened, the WDT control
will send a WDT signal (low active) to reset CPU. The WDT checking period is assign by P21 (WDT command
port).
13
LXIN/2
counter clear request
WDT counter
0
12
WDT control
3
RESET pin
mask option
P21
WDT
command port
P21 is the control port of watch-dog-timer, and the WDT time up signal is connected to RESET.
Port 213210Initial value :0000
CWC** WDT
CWCClear watchdog timer counter
0Clear counter then return to 1
1Nothing
WDTSet watch-dog-timer detect time
03 x 213/LXIN = 3 x 213/32K Hz = 0.75 sec
13
17 x 2
/LXIN = 7 x 213/32K Hz = 1.75 sec
PROGRAM EXAMPLE
To enable WDT with 7 x 213/LXIN detection time.
LDIA#0001B
OUTA P21; set WDT detection time and clear WDT counter
:
:
* This specification are subject to be changed without notice.
8.14.2001
37
Page 38
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
RESETTING FUNCTION
When CPU in normal working condition and RESET pin is held in low level for three instruction cycles at least,
then CPU begins to initialize the whole internal states, when RESET pin changes to high level, CPU begins
to work in normal condition.
The CPU internal state during reset condition is as following table :
Hardware condition in RESET stateInitial value
Program counter0000h
Status flag01h
Interrupt enable flip-flop ( EI )00h
MASK0 ,1, 2, 300h
Interrupt latch ( IL )00h
P3, 9, 10, 12, 13, 14, 16, 19, 20, 21, 22, 25,00h
27, 28, 29
P0, 1, 2, 4, 5, 6, 7, 8, 11, 15, 17, 30, 310Fh
LXIN, XINStart oscillation
The RESET pin is a hysteresis input pin and it has a pull-up resistor available by mask option.
The simplest RESET circuit is connect RESET pin with a capacitor to VSS and a diode to VDD.
RESET
* This specification are subject to be changed without notice.
8.14.2001
38
Page 39
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
EM73P968 I/O PORT DESCRIPTION :
PortInput functionOutput functionNot e
0EInput port, wakeup function
1EInput port, wakeup functionEOutput port
2EInput port, wakeup functionEOutput port
3IROM bank selectionIROM bank selection, P3.3 SPI use
4EInput port, wakeup functionEOutput port
5EInput port, wakeup functionEOutput port
6EInput port, wakeup functionEOutput port
P15.0 input data with SPI,P15.0 output data with SPI,
P15.1 input clock with SPIP15.1 output clock with SPI
16ISTOP mode control register
17IOutput port P17.0/COM4
P17.1-P17.3 A/D control register
18IInterrupt status register
P12, P13 control register
19IIDLE mode control register
20IHTC control register
21IWDT control register
22INORMAL/SLOW mode control register
23IADC control register
24SPI control register
25ITimebase control register
26A/D control register
27ILCD control register
28ITimer / counter A control register
29ITimer / counter B control register
30IOutput port / SEG(51..48)
31IOutput port / SEG(47..44)
* This specification are subject to be changed without notice.
8.14.2001
39
Page 40
RESET PIN TYPE
TYPE RESET-A
EM73P968
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
RESET
OSCILLATION PIN TYPE
TYPE OSC-ATYPE OSC-B
XIN
XOUT
TYPE OSC-H1 (Low frequency)TYPE OSC-H2 (High frequency)
VDD
1Mohm
LXIN
mask option
Crystal
Osc.
RC Osc.
10Kohm
VDD
OSC
LXIN
Crystal
Osc.
LXOUT
RC Osc.
INPUT PIN TYPE
TYPE INPUT-K
input data
WAKEUP
mask option
negative
: mask option
edge
detector
I/O PIN TYPE
TYPE I/O-NTYPE I/O-O
: mask option
* This specification are subject to be changed without notice.
TYPE I/O-N
: mask option
path B
path A
Output
data
latch
Input
data
Output
data
Special function
output
8.14.2001
40
Page 41
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
TYPE I/O-QTYPE I/O-R1
path B
path A
TYPE I/O-Q
Output
data
latch
EM73P968
Input
data
Output
data
: mask option
WAKEUP function
mask option
TYPE I/O-STYPE I/O-Z
path B
path A
TYPE I/O-N
WAKEUP function
mask option
SEL
Output
data
latch
Special function
control input
Input
data
TYPE I/O-Q
Output
data
path B
path A
: mask option
OUTPUT-LOUTPUT-M
TYPE I/O-Q
Output
data
latch
Output
data
TYPE I/O
Output
data
latch
Output
data
latch
Special function
output
Input
data
S
R
Special function
output
Power-on
reset
Output
data
Output
data
: mask option
Special function
output
: mask option
Special function
output
Path A :For set and clear bit of port instructions, data goes through path A from output data latch to CPU.
Path B :For input and test instructions, data from output pin go through path B to CPU and the output data latch
will be set to high.
* This specification are subject to be changed without notice.