EM73A89B is an advanced single chip CMOS 4-bit micro-controller. It contains 16K-byte ROM, 1012-nibble
RAM, 4-bit ALU, 13-level subroutine nesting, 22-stage time base, two 12-bit timer/counters for the kernel
function, and one high speed conter. EM73A89B also equipped with 6 interrupt sources, 3~7 I/O ports (including
1 input port and 2~7 bidirection ports), LCD display (64x16 or 64x32), built-in watch-dog-timer and speech
synthesizer.
It's low power consumption and high speed feature are further strengten with DUAL, SLOW, IDLE and STOP
operation mode for optimized power saving.
FEATURES
Operation voltage: 2.2V to 3.6V.
Clock source: Dual clock system. Low-frequency oscillator is 32KHz. Crystal oscillator or RC
Instruction set: 107 powerful instructions.
Instruction cycle time: 0.85µs for 9.2M or 1.7µs for 4.6M Hz selected by mask option(high speed clock).
ROM capacity: 16K x 8 bits.
RAM capacity: 1012 x 4 bits.
Input port: 1 port (P0.0-P0.3), IDLE/STOP releasing function is available by mask option.
Bidirection port: 2~7 ports (P1, P2, P4, P5, P6, P7, P8). IDLE/STOP release function for P8(0..
Built-in watch-dog-timer counter : It is available by mask option.
12-bit timer/counter: Two 12-bit timer/counters are programmable for timer, event counter and pulse
Built-in time base counter : 22 stages.
Subroutine nesting: Up to 13 levels.
High speed counter: The high speed counter includes one 8-bit high speed counter and a resistor to
LCD driver: 64x32 or 64x16 dots, 1/32 or 1/16 duty, 1/5 bias by mask option.
Speech synthesizer: 992K speech data ROM (use as 992K nibbles data ROM).
PWM or current D/A: Output selection by mask option.
Power saving function: SLOW, IDLE, STOP operation modes.
Package type: Chip form 126 pins.
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
oscillator by mask option and high-frequency oscillator is a built-in internal
oscillator.
122µs for 32768 Hz (low speed clock, frequency double).
(each input pin has a pull-up and pull-down resistor available by mask option).
3) is available by mask option. P1, P2, P5, P6, P7 are shared with LCD pins.
width measurement mode.
Internal interrupt . . . . . . 2 timer overflow interrupts, 1 time base interrupt.
1 speech/HTC interrupt.
frequency oscillator. It has resistor to frequrncy oscillation mode, melody mode
and auto load timer mode.
* This specification are subject to be changed without notice.
CLKOSC-GCapacitor connecting pin for internal high frequency oscillator.
LXINOSC-B/OSC-H Crystal/Resistor connecting pin for low speed clock source.
LXOUTOSC-BCrystal connecting pin for low speed clock source.
P0(0..3)/WAKEUP0..3INPUT-B4-bit input port with IDLE/STOP releasing function
P4.0(RX),P4.2(RY),I/O-X13-bit bidirection I/O pins or RF oscillation input pins.
P4.3(RZ)mask option :open-drain (apply to RF oscillation)
high current push-pull
normal current push-pull
low current push-pull
mask option :open-drain
high current push-pull
normal current push-pull
low current push-pull
* This specification are subject to be changed without notice.
8.16.2001
2
Page 3
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
SymbolPin-typeFunction
P8.0(INT1)/WAKEUPA I/O-X12-bit bidirection I/O port with external interrupt sources input and IDLE
P8.2(INT0)/WAKEUPC/STOP releasing function
mask option :wakeup enable, normal current push-pull
wakeup ensable, low current push-pull
wakeup disable, high current push-pull
wakeup disable, normal current push-pull
wakeup disable, low current push-pull
wakeup disable, open drain
P8.1(TRGB)/WAKEUPB I/O-X12-bit bidirection I/O port with time/counter A,B external input and IDLE
P8.3(TRGA)/WAKEUPD/STOP releasing function
mask option :wakeup enable, normal current push-pull
wakeup ensable, low current push-pull
wakeup disable, high current push-pull
wakeup disable, normal current push-pull
wakeup disable, low current push-pull
wakeup disable, open drain
VCA, VCB, V1~V6LCD bias voltage pins
BZ1/VOPWM or current D/A output pin for speech synthesizer by mask option
BZ2PWM output pin for speech synthesizer
TESTTie Vss as package type, no connecting as COB type.
*16 COMMONS :
COM0~COM15LCD common output pins
SEG0~SEG59LCD segment output pins
P1(0..3)/SEG63..60I/O-P4-bit bidirection I/O pins with LCD segment pins
Reset start address
INT0 ; interrupt service routine entry address
SPI or HTCI
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.16.2001
4
Page 5
EM73A89B
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 or 11B, the bank0 and bank1 of program ROM will be selected. P3(1..0)=01B, the bank0
and bank2 will be selected. P3(1..0)=10B, the bank0 and bank3 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.
SEG29
SEG30
SEG31
SEG32
SEG33
SEG34
SEG35
SEG36
SEG37
SEG38
SEG39
SEG40
SEG41
SEG42
SEG43
SEG44
SEG45
SEG46
SEG47
SEG48
SEG49
SEG50
SEG51
SEG52
SEG53
SEG54
SEG55
SEG56
SEG57
SEG58
SEG59
SEG60
SEG61
8.16.2001
SEG62
SEG63
7
Page 8
EM73A89B
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 1012 nibble data memory consists of four banks (bank 0 ~ bank 3). There are 244x4 bits (address
000h~0F3h) in bank 0 and 768x4 bits (address 100h ~ 3FFh) in bank 1 ~ bank 3.
The bank is selected by P9.
P9Initial value : * * 0 0
* * RBK
RBKRAM bank
0 0Bank0
0 1Bank1
1 0Bank2
1 1Bank3
The Data Memory consists of three Address mode, namely -
(1) Indirect addressing mode:
The address in the bank is specified by the HL registers.
P9(1,0)
HRLR
RAM address
* This specification are subject to be changed without notice.
8.16.2001
8
Page 9
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
PROGRAM EXAMPLE: Load the data of RAM address "143h" to RAM address "032h".
OUT#0001B,P9; RAM bank1
LDL#3h; LR← 3
LDH# 4h; HR← 4
LDAM; Acc← RAM[134h]
OUT#0000B,P9; RAM bank0
LDL#2h; LR← 2
LDH# 3h; HR← 3
STAM; RAM[023h]← Acc
(2) Direct addressing mode:
The address in the bank is directly specified by 8 bits code of the second byte in the instruction field.
instruction field
xxxxxxxx
P9(1,0)
EM73A89B
RAM address
PROGRAM EXAMPLE: Load the data of RAM address "143h" to RAM address "023h".
OUT#0001B,P9
LDA43h; Acc← RAM[143h]
OUT#0000B,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
0000
yyyy
RAM address
PROGRAM EXAMPLE: Write immediate "0Fh" to RAM address "005h".
STD#0Fh, 05h; RAM[05h]← 0Fh
00
* This specification are subject to be changed without notice.
8.16.2001
9
Page 10
EM73A89B
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.16.2001
10
Page 11
EM73A89B
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
SPI (speech end 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.16.2001
11
Page 12
EM73A89B
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.16.2001
12
Page 13
EM73A89B
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".
ALU supports subtraction function with instructions SUBM #k, SUBA #k, SBCAM, DECM... . The
subtraction operation affects CF and ZF. Under subtraction operation, if the result is negative, CF will
be "0", and a borrow out, otherwise, if the result is positive, CF will be "1". For ZF, if the result of subtraction
operation is "0", the ZF is "1", likewise, ZF is "1".
* This specification are subject to be changed without notice.
8.16.2001
13
Page 14
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
EXAMPLE:
Preliminary
Operation Carry Zero
8-4=410
7-F= -8(1000)00
9-9=011
(3) Rotation:
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.16.2001
14
Page 15
EM73A89B
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.
CLK
LXIN
LXOUT
High-frequency
generator
Low-frequency
generator
fc
System clock
fs
mode control
P14
P16
P19
P22
LXIN
LXOUT
Crystal connection
VDD
* This specification are subject to be changed without notice.
System control
R
LXIN
open
RC oscillator connection
R=2.2MΩ
LXOUT
8.16.2001
15
Page 16
EM73A89B
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. EM73A89B has four operation modes (DUAL, SLOW, IDLE and
STOP operation modes).
The 4-bit µc is in the DUAL 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, speech synthesizer and sound generator are available for the DUAL operation mode.
SLOW OPERATION MODE
The SLOW operation mode is single clock system (low-frequency clock oscillating). It can be changed to
the DUAL 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. Speech synthesizer and sound generator are
disabled in this mode.
* This specification are subject to be changed without notice.
8.16.2001
16
Page 17
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
P223210Initial value : ***0
Preliminary
* ** SOM
SOMSelect operation mode
0DUAL operation mode
1SLOW operation mode
P1432 10 Initial value : 0000
ACT WKS SINT CPUS
CPUSCPU statusWKSWakeup status
0DUAL operation mode0Wakeup not by internal timer
1SLOW operation mode1Wakeup by internal timer
Port14 is the status register for CPU. P14.0 (CPU status) is a read-only bit. P14.2 (wakeup status) will be
set as "1" when CPU is waked by internal timer. P14.2 will be cleared as "0" when user out data to P14.
P14.1 is the interrupt source selector (refer to interrupt). P14.3 is the speech acknowledge signal (refer to
speech synthesizer control).
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 high speed counter and speech synthesizer are
disabled in this 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 and P8(0..3)/WAKEUPA..D).
0 1Enable IDLE mode0 0P0(0..3), P8(0..3) pin input
* *no function0 1P0(0..3), P8(0..3) pin input and 1 sec signal
1 0P0(0..3), P8(0..3) pin input and 0.5 sec signal
1 1P0(0..3), P8(0..3) pin input and 15.625 ms signal
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 or P8(0..3)/WAKEUP A..D).
LCD display, high speed counter and speech synthesizer are disabled in this mode.
* This specification are subject to be changed without notice.
8.16.2001
17
Page 18
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
P163210Initial value : *000
* SWWT
SWWTEnable STOP mode
1 0 1Enable STOP mode
* * *no function
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 interrupt
P9BUF:RES1; P9 (RAM bank) buffer for interrupt
:
SPI: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.16.2001
18
Page 19
EM73A89B
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.16.2001
19
Page 20
EM73A89B
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.16.2001
20
Page 21
EM73A89B
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.16.2001
21
Page 22
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
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
LatchEnable conditionentry address
ExternalExternal interrupt (INT0)1IL5EI=1002h
InternalSpeech or HTC interrupt (SPI or HTCI) 2IL4EI=1, MASK3=1004h
InternalTimerA overflow interrupt (TRGA)3IL3EI=1, MASK2=1006h
InternalTimerB overflow interrupt (TRGB)4IL2EI=1, MASK1=1008h
InternalTime base interrupt(TBI)5IL100Ah
ExternalExternal interrupt(INT1)6IL0EI=1, MASK0=1 00Ch
INTERRUPT STRUCTURE
Reset by system reset and program
instruction
Reset by system reset and program
instruction
Set by program instruction
MASK0 MASK1 MASK1 MASK2 MASK3
IL1
TRGB
r2
EI
TRGA
r3
IL2
Priority checker
IL3
INT1
r0
IL0
TBI
r1
Interrupt requestInterrupt entry address
SPI or
HTCI
r4
IL4
Entry address generator
INT0
r5
IL5
Interrupt controller:
IL0-IL5: Interrupt latch. Hold all interrupt requests from all interrupt sources. IL's can not
be set by program, but can be reset by program or system reset, so IL can only
decide which interrupt source can be accepted.
MASK0-MASK3: Except INT0, MASK register may permit or inhibit all interrupt sources.
EI: Enable interrupt Flip-Flop may promit or inhibit all interrupt sources, when inter-
rupt occurs, EI is auto cleared to "0", after RTI instruction is executed, EI is auto
set to "1" again.
Priority checker: Check interrupt priority when multiple interrupts occur.
* This specification are subject to be changed without notice.
8.16.2001
22
Page 23
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
INTERRUPT OPERATION
Preliminary
The procedure of interrupt operation:
1. Push PC and all flags to stack.
2. Set interrupt entry address into PC.
3. Set SF = 1.
4. Clear EI to inhibit other interrupts occur.
5. Clear the IL with which interrupt source has already been accepted.
6. Excute interrupt subroutine from the interrupt entry address.
7. CPU accept RTI, restore PC and flags from stack. Set EI to accept other interrupt requests.
PROGRAM EXAMPLE: To enable interrupt of "INT0, TRGA"
LDIA#0100B ;
EXAE; set mask register "0100b"
EICIL010111B ; enable interrupt F.F. and clear IL3 and IL5
INTERRUPT SOURCE SELECTION REGISTER
P143 2 1 0Initial value : 0000
ACT WKS SINT CPUS
P14.1 is the interrupt source selection register for speech ending interrupt (SPI) and high speed counter
overflow interrupt (HTCI) selection. When SINT=0, the program address "0004H" is the interrupt entry
address of SPI. When SINT=1, the program address "0004H" is the interrupt entry address of HTCI.
P14.0 and P14.2 are the CPU flages (refer to system operation mode). P14.3 is the speech acknowledge
signal (refer to speech synthesizer control).
HIGH SPEED COUNTER
EM73A89B has one high speed counter for resistor to frequency oscillation mode, melody mode and auto load
timer mode. This function is available for the DUAL and SLOW operation mode. The resistor to frequency
oscillation (RFO) circuit as show below :
F
RF
P18(3..2)
Counter
clock
rate
FRF/2
P20(1..0)
Rate
gating
rate
X
P13
8-bit Counter
P20(3..2)
Mode
P12
P17
VCR
HTCI interrupt
TCB
PWM ckt or D/A
P4.0(RX)
P4.2(RY)
P4.3(RZ)
P18(1..0)
MUX
Resistor
to
frequency
oscillator
* This specification are subject to be changed without notice.
8.16.2001
23
Page 24
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
CONTROL OF HIGH SPEED COUNTER
The high speed counter is controlled by the command registers (P20, P18) :
P20 3 2 1 0 Initial value : 0000
MODERATE
MODESelection of HTC mode
0 0Disable HTC
0 1Auto load timer mode
1 0Melody mode
1 1Resistor to frequency oscillation mode
RATEInternal pulse rate / Counter start request frequency
( Hz ) Resistor to frequency Auto load timer mode /
RFIPInput frequency of RFORFINSelection of RFO Pin
0 0F
0 1F
1 0F
1 1F
4. 0 0Normal I/O
4. / 4 0 1P4.0 (RX) for RFO
4. / 16 1 0P4.2 (RY) for RFO
4. / 64 1 1P4.3 (RZ) for RFO
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), P20 and P18
are the command ports 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 can't be generated when the HTC
is in the melody mode or disabled.
* This specification are subject to be changed without notice.
8.16.2001
24
Page 25
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
8-BIT BINARY COUNTER
Preliminary
Write the preset value to the registers
The value of 8-bit binary counter can be presetted by P13 and P12. The value of registers can be loaded into
the 8-bit binary counter when the counter starts counting or occurs overflow. When the 8-bit binary counter
overflows, the HTCI interrupt will be generated. If you write values to the registers before the next overflow
occurs, the preset value can be changed.
Read the count value from the registers
The count value of 8-bit binary counter can be read out from P13 and P12. The value is unstable when you
read out the value during counting. Thus, you must disable the counter before reading out the value.
20-BIT COUNTER FUNCTION
The 8-bit binary counter is connected to TCB which is one 12-bit general counter and becomes to the 20bit counter. The TCB increases one when the 8-bit binary counter overflows and generats an overflow
interrupt (TRGB) when the TCB overflows. The TRGB cannot be generated when the HTC is in the melody
or disable.
FUNCTION OF HIGH SPEED COUNTER
The HTC has three modes which are RFO mode, melody mode and auto load timer mode.
The HTC is disabled when the CPU is reseted or in the STOP/IDLE operation mode. Users must enable
it by yourself when the CPU is waked up.
Resistor to frequency oscillation mode
In this mode, the HTC is counted by the rising edges of input pulses from P4.1 (CS) and the value of
window gate width is specified by P20. In this case, the window gate width interval is from the time base
output fall to rise and the value of window gate width setting is the same as the time base interrupt frequency.
The time base can be generated a fixed frequency interrupt when the time base interrupt (TBI) is enabled.
The content of the HTC can be read and initialized by the TBI interrupt service routine.
HTC input pulse
Time base
8-bit binary counter
8-bit binary counter
overflow
TCB counter
Program
ex. TBI interrupt frequency is LXIN/2
(P20=1111B). The window gate width of RFO is 2
n+1000100 01nFF
00001
Disable
HTC and
read data.
TBI interrupt service routine
15
Hz (P25=0101B). The pulse rate of RFO is LXIN/215 Hz
Enable HTC
and write data.
Window gate width
14
/LXIN sec. (LXIN=32KHz)
* This specification are subject to be changed without notice.
* This specification are subject to be changed without notice.
8.16.2001
26
Page 27
TBI1:OUTAP10
INAP9
OUT#0,P9
STAP9BUF
EXHLHLBUF
LDIA#00H; disable RFO before reading the counter value
OUTAP20
INAP12; store the counter value to RAM[00] - RAM[04]
STA00H
INAP13
STA01H
LDATBL
STA02H
LDATBM
STA03H
LDATBH
STA04H
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
TBIEND: EXHLHLBUF
LDAP9BUF
OUTAP9
INAP10
RTI
MAIN:STD#00H,RFCON
LDIA#0001B; P4.0 (RX) output
OUTAP18
LDIA#0010B; enable timebase interrupt
EXAE
EICIL0
LDIA#1111B; the pulse rate of RFO=2
OUTAP20
LDIA#0101B; enable timebase, interrupt frequency : LXIN / 2
OUTAP25
:
; main program
15
/LXIN sec.
15
Hz
* This specification are subject to be changed without notice.
8.16.2001
27
Page 28
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
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 DUAL operation
mode.
In the melody mode, HTC will output the square wave to the PWM circuit or D/A converter.
The 8-bit tone frequency register is P13 and P12. The tone frequency will be changed when users output
the different data to P12. Thus, the data must be output to P13 before P12 when users want to change
the 8-bit tone frequency (TF). This mode is only available for DUAL operation mode.
* This specification are subject to be changed without notice.
8.16.2001
28
Page 29
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Volume control register (P17)
Preliminary
The are 16 levels of volume for sound generator. P17 is the volume control register.
Port17
3 2 1 0
VCR
VCRts/tp
111115/16
111014/16
::
00011/16
00000/16
PROGRAM EXAMPLE:
LDIA#0CH
OUTAP13
LDIA#0EH
OUTAP12
LDIA#0111B; volume control
OUTAP17
LDIA#1010B; 1430 Hz tone output
OUTAP20
Initial value : 0000
ts
1
tp=
CLK/64 (CLK=4.6MHz)
tp
LCD DRIVER
It can directly drive the liquid crystal display (LCD) and has 64 segment pins, 16 or 32 common pins by mask
option. There are total 64x16 or 64x32 dots can be display. The V1~V5, VA and VB pins have to connect the
capacitors for LCD voltage multiplier.
* This specification are subject to be changed without notice.
SEG31
SEG32
SEG33
SEG34
SEG35
SEG36
SEG37
SEG38
SEG39
SEG40
SEG41
SEG42
SEG43
SEG44
SEG45
SEG46
SEG47
SEG48
SEG49
SEG50
SEG51
SEG52
SEG53
SEG54
SEG55
SEG56
SEG57
SEG58
SEG59
SEG60
SEG61
SEG62
SEG63
8.16.2001
30
Page 31
LCD waveform :
(1)1/32 duty, 1/5 bias
COM0
COM1
:
:
:
:
COM31
SEG1
SEG0
: ON
: OFF
COM0
V5
V4
V3
V2
V1
VSS
COM1
VSS
COM31
V5
V4
V3
V2
V1
VSS
SEG0
Preliminary
V5
V4
V3
V2
V1
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
V5
V4
V3
V2
V1
VSS
SEG0 - COM0
V5
V4
V3
V2
V1
VSS
ON
-V1
-V2
-V3
-V4
-V5
SEG0 - COM1
V5
V4
V3
V2
V1
VSS
OFF
-V1
-V2
-V3
-V4
-V5
Frame freq.=64Hz
* This specification are subject to be changed without notice.
8.16.2001
31
Page 32
(2)1/16 duty, 1/5 bias
SEG1
SEG0
COM0
COM1
:
:
:
:
COM15
COM0
VSS
COM1
VSS
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
V5
V4
V3
V2
V1
V5
V4
V3
V2
V1
: ON
: OFF
COM15
V5
V4
V3
V2
V1
VSS
SEG0
V5
V4
V3
V2
V1
VSS
SEG0 - COM0
SEG0 - COM1
ON
OFF
VSS
-V1
-V2
-V3
-V4
-V5
VSS
-V1
-V2
-V3
-V4
-V5
V5
V4
V3
V2
V1
V5
V4
V3
V2
V1
Frame freq.= 64Hz
* This specification are subject to be changed without notice.
8.16.2001
32
Page 33
SPEECH SYNTHESIZER
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
Set tone freq.
P12,13 Write
P11 Write
Set data address
(write 5 times)
speech
ROM
P11 Read
Read data
Set melody mode
P20 Write
Sound effect generator
P24 Write
Set speech address
(write 4 times)
Set tone amplitude
P17 Write
speech
decoder
P23 Write
Set sample rate
P14.3 read
Speech active
D/A
PWM
BZ1/VO
BZ2
SPI interrupt
Block diagram of speech and sound effect
EM73A89B speech synthesizer operates as following :
1. Send the speech start address to the address latch by writing P24 four times.
2. Choose the sampling rate, enable the speech synthesizer by writing P23.
3. The ROM address counters send the ROM address A6 .. A19 to the speech ROM.
4. ACT is the speech acknowledge signal. When the speech synthesizer has voice output. ACT is high.
When ACT is changed from high to low, the speech synthesizer can generate the speech ending
interrupt SPI. The ACT signal can be read from P14.3.
SPEECH SYNTHESIZER CONTROL
Speech sample rate control register (P23 write) :
P23 3210Initial value : 1111
SR
SRSample rate selection
0000CLK/64/2/3port 23 -- initialization is "1111".
0001 CLK/64/2/4port 24 -- initialization is pointed to the low0010CLK/64/3/3nibble of start address latch.
0011CLK/64/3/4
0100CLK/64/2/7The frequency of CLK is decided by mask option.
0101CLK/64/4/4
0110CLK/64/6/3
0111CLK/64/6/4
1***Disable speech
* This specification are subject to be changed without notice.
8.16.2001
33
Page 34
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
Speech active flag (P14.3 read) :
P14 3210Initial value : 0000
ACT WKS SINT CPUS
ACT is the speech acknowledge signal. When the speech synthesizer has voice output, ACT is high. When
ACT is high → low, the speech synthesizer can generate the speech ending interrupt SPI.
P14(0,2) are CPU status flags (refer to CPU status). P14.1 is the interrupt source selector (refer to interrupt).
Speech start address register (P24 write) :
P24 3210Initial value : 1111
Port 24
P24L1P24L2P24L3P24L4
A9A8A7A6A13A12 A11 A10A17 A16 A15 A14--A19 A18
Send the speech start address to the speech synthesizer by writing P24 four times. There is a pointer counter
to point the address latch (P24L1, P24L2, P24L3, P24L4). It will increase one when write P24. So, the first
time writing P24 to P24L1, the second time is P24L2, the third time is P24L3, the fourth time is P24L4 and the
fifth time is P24L1 latch again, ... etc. The pointer counter point to P24L1 when CPU is reset or P23 is written.
In the DUAL operation mode, the speech synthesizer is available. In the other operation modes, it is disable.
EM73A89B
PROGRAM EXAMPLE:
CHIPROM16K
;--------RAM define area-----------------
DSEG
ORG10H
HLBUF:RES2; HL buffer for in terrupt
P9BUF:RES1; P9 (RAM bank) buffer for interrupt
:
SPI: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.16.2001
34
Page 35
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
;----------Main program------------------MAIN :
:
LDIA#0000B
OUTA P14; select SPI interrupt
LDIA#SPEECH/40H; set speech start address
OUTA P24
LDIA#SPEECH/400H
OUTA P24
LDIA#SPEECH/4000H
OUTA P24
LDIA#SPEECH/40000H
OUTA P24
LDIA#0011B; set sampling rate and start playing
OUTA P23
:
WAIT :
TTPP14,3; wait speed end
BWAIT
:
Preliminary
USING SPEECH ROM AS DATA ROM
The speech ROM can be used for speech synthesizer and for data ROM simutaneously.
First, write initial address to P11 five times, then you can read P11 to get data, and the address counter
increases one automatically.
The read operation should be all done before you leave normal mode and change to slow mode.
* This specification are subject to be changed without notice.
8.16.2001
35
Page 36
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
; READ DATA
INAP11; read DATA_ADR
STATEMP
INAP11
STATEMP+1
:
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).
LXIN/2
13
WDT counter
0
12
3
RESET pin
counter clear request
WDT control
P21
WDT
command port
mask option
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.16.2001
36
Page 37
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
RESETTING FUNCTION
Preliminary
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, 11, 12, 13, 14, 16, 18, 19, 20, 21, 22,00h
25, 27, 28, 29
P0, 1, 2, 4, 5, 6, 7, 8, 17, 23, 240Fh
CLK, LXINStart 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.16.2001
37
Page 38
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
EM73A89B I/O PORT DESCRIPTION :
PortInput functionOutput functionNote
0EInput port , wakeup function
1EInput portEOutput port / LCD segment pins
2EInput portEOutput port / LCD pins
3IROM bank selectionIROM bank selection
4EInput portEOutput port / RFO pins
5EInput portEOutput port / LCD pins
6EInput portEOutput port / LCD pins
7EInput portEOutput port / LCD pins
8EInput port, wakeup function,EOutput port
external interrupt input
9IRAM bank selectionIRAM bank selection
10IGeneral purpose registerIGeneral purpose register
11IRead data registerIData ROM address register
12--IHigh speed counter registerLow nibble
13--IHigh speed counter registerHigh nibble
14ICPU status, ACT flagICPU status, interrupt souce selector
15---16ISTOP mode control register
17ITONE volume control register
18IHTC control register
19IIDLE mode control register
20IHTC control register
21IWDT control register
22IDUAL/SLOW mode control register
23ISpeech sampling rate register
24ISpeech start address register
25ITimebase control register
26-27ILCD control register
28ITimer/counter A control register
29ITimer/counter B control register
30-31--
* This specification are subject to be changed without notice.
8.16.2001
38
Page 39
APPLICATION CIRCUIT
V
BA T
0.1µF
3V
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
0.1µF
V
DD
P0.0
P0.1
P0.2
100
V
DD2
VA
VB
V
BA T
SEG0~
SEG63
COM0~
COM31
EM73A89B
LCD PANNEL
0.1µF
RESET
100Ω
0.1µF
BZ1
BZ2
RESET
LXOUT
VSS
EM73A89B
V5
V4
V3
V2
V1
LXIN
CLK
all 0.1µF
32.768KHz
20P
0.022µF
* This specification are subject to be changed without notice.
8.16.2001
39
Page 40
RESET PIN TYPE
TYPE RESET-A
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
RESET
OSCILLATION PIN TYPE
TYPE OSC-BTYPE OSC_G
LXIN
LXOUT
TYPE OSC-H
VDD
LXIN
mask option
Crystal
Osc.
RC Osc.
CLK
Internal
Osc.
INPUT PIN TYPE
TYPE INPUT-ATYPE INPUT-B
: mask option
* This specification are subject to be changed without notice.
P0
/WAKEUP
WAKEUP function
mask option
TYPE INPUT_A
8.16.2001
40
Page 41
I/O PIN TYPE
TYPE I/OTYPE I/O-P
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
mask option
path B
path A
TYPE I/O
Special function
output
Output
data
latch
Input
data
Output
data
: mask option
TYPE I/O-Q1TYPE I/O-X1
: mask option
path B
path A
TYPE I/O_N
TYPE I/O_Q1
SEL
Special function
control input
Input data
Output
data
latch
Output
data
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.
8.16.2001
41
Page 42
PAD DIAGRAM (16 COMMONS)
SEG31
SEG30
SEG29
SEG28
SEG27
SEG26
SEG25
SEG24
SEG23
SEG22
SEG21
SEG20
SEG19
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
SEG2
SEG1
SEG0
COM0
COM1
COM2
COM3
COM4
COM5
COM6
COM7
COM8
COM9
COM10
COM11
COM12
COM13
COM14
COM15
VSS
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
V5
VA
VB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
V1
V3
V4
122115
EM73A89B
V2
SEG63/P1.0
SEG62/P1.1
(0,0)
SEG61/P1.2
SEG60/P1.3
SEG59
114116117118119120121123124125126
SEG58
113
SEG57
112
111
110
109
108
107
106
105
104
103
102
101
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
83
82
81
80
79
78
77
76
75
74
73
72
71
70
69
68
67
66
65
64
EM73A89B
SEG56
SEG55
SEG54
SEG53
SEG52
SEG51
SEG50
SEG49
SEG48
SEG47
SEG46
SEG45
SEG44
SEG43
SEG42
SEG41
SEG40
SEG39
SEG38
SEG37
SEG36
SEG35
SEG34
SEG33
SEG32
P7.3
P7.2
P7.1
P7.0
P6.3
P6.2
P6.1
P6.0
P5.3
P5.2
P5.1
P5.0
P2.3
P2.2
P2.1
P2.0
LXOUT
LXIN
VDD
CLK
P4.0
P4.1
P4.2
P4.3
50 5152 53 54 55 56 57 58 59 60 61 62 63
VDD2
BZ1/VO
BZ2
VSS
TEST
RESET
P8.3
P8.2
P8.1
* This specification are subject to be changed without notice.