EM73A88A is an advanced single chip CMOS 4-bit micro-controller. It contains 16K-byte ROM, 500-nibble
RAM, 4-bit ALU, 13-level subroutine nesting, 22-stage time base, two 12-bit timer/counters for the kernel
function. EM73A88A also equipped with 6 interrupt sources, 3 I/O ports (including 1 input port and 2 bidirection
ports), LCD display (64x16), built-in sound generator and speech synthesizer can direct drive speaker.
It's low power consumption and high speed feature are further strengten with DUAL, SLOW, IDLE and STOP
operation mode for optimized power saving.
FEATURESFEATURES
FEATURES
FEATURESFEATURES
• Operation voltage: 2.2V to 4.8V.
• Clock source: Dual clock system. Low-frequency oscillator is 32 KHz Crystal or RC oscillator
pull-up
CLKOSC-GCapacitor connecting pin for internal high frequency oscillator.
LXINOSC-B/OSC-H Crystal or RC osc connecting pin for low speed clock source.
LXOUTOSC-BCrystal osc connecting pin for low speed clock source.
P0(0..3)/WAKEUP0..3INPUT-B4-bit input port with IDLE/STOP releasing function
mask option :wakeup enable, pull-up
wakeup enable, none
wakeup disable, pull-up
wakeup disable, pull-down
wakeup disable, none
P4(0..3)I/O-O4-bit bidirection I/O port with high current source.
mask option :open-drain
push-pull, high current PMOS
push-pull, low current PMOS
P8.0(INT1)/WAKEUPAI/O-L2-bit bidirection I/O port with external interrupt sources input and IDLE
P8.2(INT0)/WAKEUPC/STOP releasing function
mask option :wakeup enable, push-pull
wakeup disable, push-pull
wakeup disable, open-drain
P8.1(TRGB)/WAKEUPB I/O-L2-bit bidirection I/O port with time/counter A,B external input and IDLE
P8.3(TRGA)/WAKEUPD/STOP releasing function
* This specification are subject to be changed without notice.
10.8.2001
2
Page 3
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
SymbolSymbol
Symbol
SymbolSymbol
Pin-typePin-type
Pin-type
Pin-typePin-type
FunctionFunction
Function
FunctionFunction
mask option :wakeup enable, push-pull
wakeup disable, push-pull
wakeup disable, open-drain
BZ1Tone / Speech PWM / D/A output pin
BZ2Tone / Speech PWM output pin
V1, V2, V3, V4, V5,LCD bias pins
VA, VB
COM0~COM15LCD common output pins
SEG0~SEG63LCD segment output pins
TESTTie Vss as package type, no connecting as COB type
FUNCTION DESCRIPTIONSFUNCTION DESCRIPTIONS
FUNCTION DESCRIPTIONS
FUNCTION DESCRIPTIONSFUNCTION DESCRIPTIONS
PROGRAM ROM ( 16K X 8 bits )PROGRAM ROM ( 16K X 8 bits )
PROGRAM ROM ( 16K X 8 bits )
PROGRAM ROM ( 16K X 8 bits )PROGRAM ROM ( 16K X 8 bits )
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
16 K x 8 bits program ROM contains user's program and some fixed data.
The basic structure of the program ROM may be categorized into 5 partitions.
1. Address 0000h: Reset start address.
2. Address 0002h - 000Ch : 6 kinds of interrupt service routine entry addresses.
3. Address 000Eh-0086h : SCALL subroutine entry address, only available at 000Eh, 0016h, 001Eh, 0026h, 002Eh,
0036h, 003Eh, 0046h, 004Eh, 0056h, 005Eh, 0066h, 006Eh, 0076h, 007Eh,0086h.
Subroutine call entry address
designated by [LCALL a]
instruction
Data table for
[LDAX],[LDAXI]
instruction
Bank 3
* This specification are subject to be changed without notice.
10.8.2001
3
Page 4
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
User's program and fixed data are stored in the program ROM. User's program is executed using the PC value
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.
AddressP3=xx00BP3=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) :
LDAXLDAX
LDAX
LDAXLDAX
LDAXILDAXI
LDAXI
LDAXILDAXI
Acc Acc
Acc
Acc Acc
Acc Acc
Acc
Acc Acc
←←
ROM[DP] ROM[DP]
←
ROM[DP]
←←
ROM[DP] ROM[DP]
←←
ROM[DP] ROM[DP]
←
ROM[DP]
←←
ROM[DP] ROM[DP]
LL
L
LL
,DP+1,DP+1
,DP+1
,DP+1,DP+1
HH
H
HH
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.
A total 500 - nibble data RAM is available from address 000 to 1FFh
Data RAM includes the zero page region, stacks and data areas.
* This specification are subject to be changed without notice.
10.8.2001
5
Page 6
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
Bank 0
Bank 1
Address
000h - 00Fh
010h - 01Fh
020h - 02Fh
:
:
:
0C0h - 0CFh
0D0h - 0DFh
0E0h - 0EFh
0F0h - 0F3h
100h - 10Fh
110h - 11Fh
:
:
:
1E0h - 1EFh
Increment
Level 0
Level 4
Level 8
Level 12
Zero-page
Level 1
Level 5
Level 9
Level 2
Level 6
Level 10
Increment
Level 3
Level 7
Level 11
1F0h - 1FFh
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].
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:
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 500 nibble data memory consists of two banks (bank 0 and bank 1). There are 244x4 bits (address
000h~0F3h) in bank 0 and 256x4 bits (address 100h~1FFh) in bank 1.
* This specification are subject to be changed without notice.
10.8.2001
6
Page 7
EM73A88AEM73A88A
R
R
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
The bank is selected by P9.3. When P9.3 is cleared to "0", the bank 0 is selected. When P9.3 is set to "1", the bank
1 is selected.
The Data Memory consists of three Address mode, namely -
(1) Indirect addressing mode:
The address in the bank is specified by the HL registers.
PROGRAM EXAMPLE: Load the data of RAM address "143h" to RAM address "032h".
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
AM address
PROGRAM EXAMPLE: Write immediate "0Fh" to RAM address "005h".
STD #0Fh, 05h ; RAM[05h]← 0Fh
0
* This specification are subject to be changed without notice.
0000
yyyy
10.8.2001
7
Page 8
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PROGRAM COUNTER (16K ROM)PROGRAM COUNTER (16K ROM)
PROGRAM COUNTER (16K ROM)
PROGRAM COUNTER (16K ROM)PROGRAM COUNTER (16K ROM)
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:(1) Branch instruction:
(1) Branch instruction:
(1) Branch instruction:(1) Branch instruction:
SBR aSBR a
SBR a
SBR aSBR a
Object code: 00aa aaaa
Condition: SF=1; PC ← PC
PC Hold original PC value+1aaaaaa
SF=0; PC← PC +1( branch condition not satisified)
PC Original PC value + 1
PreliminaryPreliminary
( branch condition satisified )
12-6.a
LBR aLBR a
LBR a
LBR aLBR a
Object code: 1100 aaaa aaaa aaaa
Condition: SF=1; PC ← PC
Hold
PC
PC Original PC value + 2
SLBR aSLBR a
SLBR a
SLBR aSLBR a
Object code: 0101 0101 1100 aaaa aaaa aaaa (a:1000h~1FFFh)
Condition: SF=1; PC ← a ( branch condition satisified)
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 :
INT0INT0
INT0 (External interrupt from P8.2)
INT0INT0
PC00000000000 1 0
SPISPI
SPI (speech end interrupt)
SPISPI
PC000000000010 0
TRGATRGA
TRGA (Timer A overflow interrupt)
TRGATRGA
PC0000000000 1 1 0
TRGBTRGB
TRGB (Time B overflow interrupt)
TRGBTRGB
PC00000000 0 1 0 0 0
TBI TBI
TBI (Time base interrupt)
TBI TBI
PC00000000 0 1 0 1 0
INT1INT1
INT1 (External interrupt from P8.0)
INT1INT1
PC00000000 0 1 1 0 0
(4) Reset operation:(4) Reset operation:
(4) Reset operation:
(4) Reset operation:(4) Reset operation:
PC00000000000 0 0
* This specification are subject to be changed without notice.
10.8.2001
9
Page 10
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
(5) Other operations:(5) Other operations:
(5) Other operations:
(5) Other operations:(5) Other operations:
For 1-byte instruction execution: PC + 1
For 2-byte instruction execution: PC + 2
For 3-byte instruction execution: PC + 3
ACCUMULATORACCUMULATOR
ACCUMULATOR
ACCUMULATORACCUMULATOR
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.
FLAGSFLAGS
FLAGS
FLAGSFLAGS
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.
10.8.2001
10
Page 11
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
PROGRAM EXAMPLE:
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 STRUCTUREALU STRUCTURE
ALU STRUCTURE
ALU STRUCTUREALU STRUCTURE
ALU supported user arithematic operation functions, including Addition, Subtraction and Rotaion.
DATA BUS
ALU
ZF CF SF
ALU FUNCTIONALU FUNCTION
ALU FUNCTION
ALU FUNCTIONALU 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.
10.8.2001
11
Page 12
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
EXAMPLE:
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 REGISTERHL REGISTER
HL REGISTER
HL REGISTERHL 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 STRUCTUREHL REGISTER STRUCTURE
HL REGISTER STRUCTURE
HL REGISTER STRUCTUREHL REGISTER STRUCTURE
3 2 1 0
H REGISTER
HL REGISTER FUNCTIONHL REGISTER FUNCTION
HL REGISTER FUNCTION
HL REGISTER FUNCTIONHL REGISTER FUNCTION
(1)HL register is used as a temporary register for instructions : LDL #k, LDH #k, THA, THL, INCL, DECL,
EXAL, EXAH.
3 2 1 0
L REGISTER
PROGRAM EXAMPLE:
LDL #05h;
LDH #0Dh;
(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.
Load immediate data "5h" into L register, "0Dh" into H register.
* This specification are subject to be changed without notice.
10.8.2001
12
Page 13
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
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 (SP)
STACK POINTER (SP)
STACK POINTER (SP)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 (DP)
DATA POINTER (DP)
DATA POINTER (DP)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 GENERATORCLOCK AND TIMING GENERATOR
CLOCK AND TIMING GENERATOR
CLOCK AND TIMING GENERATORCLOCK AND TIMING GENERATOR
The clock generator is supported by a dual clock system. The high-frequency oscillator is internal oscillator,
the working frequency is 4.6 MHz. The low-frequency oscillator may be sourced from crystal or RC osc,
the working frequency is 32 KHz.
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
* This specification are subject to be changed without notice.
System control
R
VDD
open
RC oscillator connection
R=1MΩ
LXIN
LXOUT
10.8.2001
13
Page 14
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
SYSTEM CLOCK MODE CONTROLSYSTEM CLOCK MODE CONTROL
SYSTEM CLOCK MODE CONTROL
SYSTEM CLOCK MODE CONTROLSYSTEM CLOCK MODE CONTROL
The system clock mode controller can start or stop the high-frequency and low-frequency clock oscillator
and switch between the basic clocks. EM73A88A has four operation modes (DUAL, SLOW, IDLE and
STOP operation modes).
RESET
operation
Reset
Reset
I/O wakeup
Reset
Reset release
STOP
operation
mode
NORMAL
operation
mode
Reset
IDLE
(CPU
stops)
High osc : stopped
Low osc : stopped
Command
(P16)
High osc : oscillating
Low osc : oscillating
Command
(P22)
Command
(P22)
Command
Command
(P16)
(P19)
I/O or internal timer wakeup
SLOW
operation
mode
High osc : stopped
Low osc : oscillating
High osc : stopped
Low osc : oscillating
Operation ModeOperation Mode
Operation Mode
Operation ModeOperation Mode
OscillatorOscillator
Oscillator
OscillatorOscillator
System ClockSystem Clock
System Clock
System ClockSystem Clock
Available functionAvailable function
Available function
Available functionAvailable function
One instruction cycleOne instruction cycle
One instruction cycle
One instruction cycleOne instruction cycle
NORMALHigh, Low frequency High frequency clock LCD, speech, sound gen.8 / fc
SLOWLow frequencyLow frequency clockLCD8 / fs
IDLELow frequencyCPU stopsLCD-
STOPNoneCPU stopsAll disable-
DUAL OPERATION MODEDUAL OPERATION MODE
DUAL OPERATION MODE
DUAL OPERATION MODEDUAL OPERATION MODE
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 MODESLOW OPERATION MODE
SLOW OPERATION MODE
SLOW OPERATION MODESLOW 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.
10.8.2001
14
Page 15
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
0LXIN source is not stable0DUAL operation mode
1LXIN source is stable1SLOW operation mode
WKSWakeup status
0Wakeup not by internal timer
1Wakeup by internal timer
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
Port14 is the status register for CPU. P14.0 (CPU status) and P14.1 (Low-frequency status) are read-only
bits. 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.
IDLE OPERATION MODEIDLE OPERATION MODE
IDLE OPERATION MODE
IDLE OPERATION MODEIDLE 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. Sound generator is 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).
1Enable IDLE mode0 0P0(0..3), P8(0..3) pin input
0no 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 MODESTOP OPERATION MODE
STOP OPERATION MODE
STOP OPERATION MODESTOP 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 and P8(0..3)/WAKEUP A..D).
LCD display and sound generator are disabled in the STOP operation mode.
* This specification are subject to be changed without notice.
10.8.2001
15
Page 16
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
P163210Initial value : 0000
*SPMESWWT
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
SPMEEnable STOP modeSWWTSet wake-up warm-up time
14
1Enable STOP mode002
/LXIN
0no function01210/LXIN
102
12
/LXIN
11no function
TIME BASE INTERRUPT (TBI )TIME BASE INTERRUPT (TBI )
TIME BASE INTERRUPT (TBI )
TIME BASE INTERRUPT (TBI )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
P25DUAL operation modeSLOW operation mode
0 0 x xInterrupt disableInterrupt disable
0 1 0 0Interrupt frequency LXIN / 2
3
HzReserved
0 1 0 1Interrupt frequency LXIN / 24 HzReserved
0 1 1 0Interrupt frequency LXIN / 25 HzReserved
0 1 1 1Interrupt frequency LXIN / 2
14
HzInterrupt frequency LXIN / 2
14
Hz
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
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.
* This specification are subject to be changed without notice.
10.8.2001
16
Page 17
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
i
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
INTERRUPT CONTROL
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
TRGA request
TRGB request
DATA BUS
12 BIT COUNTER
P8.3/
TRGA
nternal clock
TIMER/COUNTER CONTROLTIMER/COUNTER CONTROL
TIMER/COUNTER CONTROL
TIMER/COUNTER CONTROLTIMER/COUNTER CONTROL
EVENT COUNTER CONTROL
TIMER CONTROL
PULSE-WIDTH MEASUREMENT
P28
CONTROL
TMSAIPSA
12 BIT COUNTER
EVENT COUNTER CONTROL
TIMER CONTROL
PULSE-WIDTH MEASUREMENT
P29
CONTROL
TMSBIPSB
P8.1/
TRGB
internal clock
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.
Port 28
3 2 1 0
TMSAIPSA
Initial state: 0000
TIMER/COUNTER MODE SELECTION
TMSA (B) Function description
0 0 Stop
0 1 Event counter mode
Port 29
3 2 1 0
TMSBIPSB
Initial state: 0000
1 0 Timer mode
1 1 Pulse width measurement mode
INTERNAL PULSE-RATE SELECTION
IPSA(B) DUAL mode
0 0 LXIN/2 Hz
0 1 LXIN/2 Hz
1 0 LXIN/2 Hz
1 1 LXIN/2 Hz
3
7
11
15
SLOW mode
Reserved
LXIN/2 Hz
LXIN/2 Hz
LXIN/2 Hz
7
11
15
* This specification are subject to be changed without notice.
10.8.2001
17
Page 18
EM73A88AEM73A88A
T
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
TIMER/COUNTER FUNCTIONTIMER/COUNTER FUNCTION
TIMER/COUNTER FUNCTION
TIMER/COUNTER FUNCTIONTIMER/COUNTER FUNCTION
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;
OUTA P28; Enable timerA with event counter mode
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
imerB (TimerA )value
nn+1n+2n+3n+4n+5n+6
n+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
* This specification are subject to be changed without notice.
10.8.2001
18
Page 19
EM73A88AEM73A88A
P
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
Under the pulse width measurement mode, the counter is incresed at the rising edge of internal pulse during
PreliminaryPreliminary
external timer/counter input (P8.1/TRGB, P8.3/TRGA ) in high level, interrupt request is generated as soon as
timer/counter count overflow.
8.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.
Six interrupt sources are available, 2 from external interrupt sources and 4 from internal interrupt sources.
Multiple interrupts are admitted according to their priority.
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.
* This specification are subject to be changed without notice.
10.8.2001
19
Page 20
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
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.
INTERRUPT OPERATIONINTERRUPT OPERATION
INTERRUPT OPERATION
INTERRUPT OPERATIONINTERRUPT OPERATION
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 "1100b"
EICIL 010111B ; enable interrupt F.F. and clear IL3 and IL5
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
LCD DRIVERLCD DRIVER
LCD DRIVER
LCD DRIVERLCD DRIVER
It can directly drive the liquid crystal display ( LCD ) and has 64 segments, 16 commons output pins.
There are total 64x16 dots can be display. The V1~V5 are the LCD bias voltage input pins.
(1) LCD driver control command register:(1) LCD driver control command register:
(1) LCD driver control command register:
(1) LCD driver control command register:(1) LCD driver control command register:
Port27 3210 Initial value: 0000
LDC LDC
LDC
LDC LDC
* *
*
* *
LCD DISPLAY CONTROLLCD DISPLAY CONTROL
LCD DISPLAY CONTROL
LCD DISPLAY CONTROLLCD DISPLAY CONTROL
LDCFunction description
00LCD display disable
01Blanking
10no function
11LCD display enable
* : Don't care.
P27 is the LDC driver control command register. The initial value is 0000.
When LDC ( bit2 and bit3 of P27 ) is set to "00", the LCD display is disabled.
When LDC is set to "01", the LCD is blanking, the COM pins are inactive and the SEG pins
output the display data continuously.
When LDC is set to "11", the LCD display is enabled.
(2) LCD display data area:(2) LCD display data area:
(2) LCD display data area:
(2) LCD display data area:(2) LCD display data area:
**
*
**
The LCD display data is stored in the display data area of the data memory (RAM). The LCD display data
area is as illustrated below :
* This specification are subject to be changed without notice.
10.8.2001
20
Page 21
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
The display data from the display data area are automatically read out and send to the LCD driver directly by
PreliminaryPreliminary
the hardware. Therefore, the display patterns can be changed only by overwritting the contents of the display
data area through software.
The dispaly memory area that is not used to store the LCD display data could be used as the ordinary data
memory.
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
S
E
G
COM0
COM15
(4) LCD drive voltage :(4) LCD drive voltage :
(4) LCD drive voltage :
(4) LCD drive voltage :(4) LCD drive voltage :
0
: ON
: OFF
* TYPE A :
COM0
V5
V4
V3
V2
V1
Vss
COM1
SEG0
SEG0-COM0
ON
SEG0-COM1
OFF
Frame freq.=64Hz
* TYPE B :
COM0
V5
V4
V3
V2
V1
Vss
COM1
SEG0
SEG0-COM0
ON
SEG0-COM1
OFF
Frame freq.=64Hz
• The LCD bias voltage is supplied by voltage multiplier. The application circuit is illustated as below :
VA
0.1µF
VB
V5
V4
V3
V2
V1
SPEECH SYNTHESIZERSPEECH SYNTHESIZER
SPEECH SYNTHESIZER
SPEECH SYNTHESIZERSPEECH SYNTHESIZER
Set sound freq.
P23,24 Write
P7 Write
Set data address
(write 5 times)
0.1µF
0.1µF
0.1µF
0.1µF
0.1µF
Set sound mode
P30 Write
Set sound effect amplitude
P17 Write
Sound effect generator
speech
ROM
P7 Read
Read data
P6 Write
Set speech address
(write 4 times)
speech
decoder
P5 Write
Set sample rate
Block diagram of speech and sound effect
P5.3 read
Speech active
D/A
PWM
BZ1
BZ2
SPI interrupt
* This specification are subject to be changed without notice.
10.8.2001
22
Page 23
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
EM73A88A speech synthesizer operates as following :
1. Send the speech start address to the address latch by writing P6 four times.
2. Choose the sampling rate, enable the speech synthesizer by writing P5.
3. The ROM address counters send the ROM address A6 .. A17 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 P5.3.
SPEECH SYNTHESIZER CONTROLSPEECH SYNTHESIZER CONTROL
SPEECH SYNTHESIZER CONTROL
SPEECH SYNTHESIZER CONTROLSPEECH SYNTHESIZER CONTROL
Speech sample rate control register (P5 write) :
3210Initial value : *111
SR
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
SRSR
SR
SRSR
000PWM on CLK/64/1/324Kport 5 -- initialization is "*111".
001CLK/64/1/418Kport 6 -- initialization is pointed to the low010CLK/64/2/312Knibble of start address latch.
011CLK/64/2/49K
100CLK/64/3/38KCLK=4.6 MHz
101CLK/64/3/46K
111PWM off
Speech active flag (P5 read) :
3210Initial value : 0***
ACT***
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.
Speech start address register (P6 write) :
3210Initial value : 1111
Port 6
P6L1P6L2P6L3P6L4
A9A8A7A6A13A12 A11 A10A17 A16 A15 A14--- A18
Sample rate selectionSample rate selection
Sample rate selection
Sample rate selectionSample rate selection
Sample rateSample rate
Sample rate
Sample rateSample rate
Send the speech start address to the speech synthesizer by writing P6 four times. There is a pointer counter to
point the address latch (P6L1, P6L2, P6L3, P6L4). It will increase one when write P6. So, the first time
writing P6 to P6L1, the second time is P6L2, the third time is P6L3, the fourth time is P6L4 and the fifth time
is P6L1 latch again, ... etc. The pointer counter point to P6L1 when CPU is reset or P5 is writen.
In the NORMAL operation mode, the speech synthesizer is available. In the other operation modes, it is
disable.
* This specification are subject to be changed without notice.
10.8.2001
23
Page 24
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
PROGRAM EXAMPLE:
SP_ADR1EQU1234H; the start address of the speech section
OUTAP5
; wait speech end
WAITTTPP5,3; get speech active flag
BWAIT
USING SPEECH ROM AS DATA ROMUSING SPEECH ROM AS DATA ROM
USING SPEECH ROM AS DATA ROM
USING SPEECH ROM AS DATA ROMUSING SPEECH ROM AS DATA ROM
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
The speech ROM can be used for speech synthesizer and for data ROM simutaneously.
First, write initial address to P7 (five times), and after four cycles, you can read P7 to get data, and address
counter increases one automatically.The following read operations must be at an internval of instruction
cycles which are more than 3.
The read operation should be all done before you leave normal mode and change to slow mode.
D_ADR1EQU12345H; the start address of the speech ROM
:
LDIA#D_ADR1
OUTAP7
LDIA#D_ADR1/10H
OUTAP7
LDIA#D_ADR1/100H
OUTAP7
LDIA#D_ADR1/1000H
OUTAP7
LDIA#D_ADR1/10000H
OUTAP7
* This specification are subject to be changed without notice.
10.8.2001
24
Page 25
EM73A88AEM73A88A
C
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
NOP
NOP
NOP
NOP
; READ DATA
INAP7; read D_ADR1
STATEMP
NOP
INAP7; read D_ADR1+1
MELODY (SOUND EFFECT) CONTROLMELODY (SOUND EFFECT) CONTROL
MELODY (SOUND EFFECT) CONTROL
MELODY (SOUND EFFECT) CONTROLMELODY (SOUND EFFECT) CONTROL
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
4 cycles
3 cycles
One channel melody/sound effect output, controlled by port 23, 24, 17, and 30.
There is a built-in sound effect. It includes the tone generator and random generator. The tone generator is a
binary down counter and the random generator is a 9-bit liner feedback shift register.
P30
P23,P24
f2
2
2
Output
control
PWM / D/A ckt.
LK/8
4 kinds
of divider
f1
Tone
generator
Random
generator
f2x2
Sound effect command register (P30)
There are 4 kinds of basic frequency for sound generator which can be selected by P30. The output of sound
effect is tone and random combination.
Port30
3 2 1 0
BFREQSMODEInitial value : 0000
BFREQ Basic frequency (f1) selectSMODESound generator mode
00CLK/1600Disable
01CLK/3201Tone output
10CLK/6410Random outpu t
11Reserved11Tone+random output
(CLK=4.6MKz)
Tone frequency register (P23, P24)
The 8-bit tone frequency register is P24 and P23. The tone frequency will be changed when user output
the different data to P23. Thus, the data must be output to P24 before P23 when users want to change the 8bit tone frequency (TF).
* This specification are subject to be changed without notice.
** Example : CLK=4.6 MHz, BFREQ=10, TF=00110001B.
⇒ f1=143.75K Hz, f2=143.75K Hz/50/2=1430 Hz
10.8.2001
25
Page 26
Random generator
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
f(x)=x9+x4+1
123456789
+
Volume control register (P17)
The are 16 levels of volume for sound generator. P17 is the volume control register.
Port17Initial value : 1111
3 2 1 0
VCR
VCRts/tp
111115/16
111014/16
::
00011/16
ts
1
tp=
CLK/64 (CLK=4.6MHz)
tp
00000/16
PROGRAM EXAMPLE:
LDIA#1001B; basic frequency : CLK/32, tone output
OUTAP30
LDIA#0111B; volume control
OUTAP17
LDIA#0011B; 1430 Hz tone output
OUTAP24
LDIA#0001B
OUTAP23
WATCH-DOG-TIMER (WDT)WATCH-DOG-TIMER (WDT)
WATCH-DOG-TIMER (WDT)
WATCH-DOG-TIMER (WDT)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
P21
WDT
command port
3
RESET pin
mask option
* This specification are subject to be changed without notice.
10.8.2001
26
Page 27
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
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
:
:
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
RESETTING FUNCTIONRESETTING FUNCTION
RESETTING FUNCTION
RESETTING FUNCTIONRESETTING 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, 14, 16, 19, 21, 22, 25, 26, 27, 28, 29, 3000h
P507h
P0, 4, 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.
10.8.2001
27
Page 28
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
EM73A88A I/O PORT DESCRIPTION :EM73A88A I/O PORT DESCRIPTION :
EM73A88A I/O PORT DESCRIPTION :
EM73A88A I/O PORT DESCRIPTION :EM73A88A I/O PORT DESCRIPTION :
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PortPort
Port
PortPort
0EInput port , wakeup function
1---2---3--IP3(1..0) : ROM bank selection
4EInput portEOutput port
5IP5.3 : Speech active signal (ACT)ISpeech sample rate register
6--ISpeech start address register
7IDATA ROM dataIData start address register
8EInput port, wakeup function,EOutput port
9--IP9.3 : RAM bank selection
10---11---12---13---14ICPU status register-15---16ISTOP mode control register
17ISound effect volume control register
18-19IIDLE mode control register
20-21IWDT control register
22IDUAL/SLOW mode control register
23ISound effect frequency registerlow nibble
24ISound effect frequency registerhigh nibble
25ITimebase control register
26ILCD common start address register
27ILCD control register
28ITimer/counter A control register
29ITimer/counter B control register
30ISound effect command register
31--
Input functionInput function
Input function
Input functionInput function
external interrupt input
Output functionOutput function
Output function
Output functionOutput function
NoteNote
Note
NoteNote
* This specification are subject to be changed without notice.
10.8.2001
28
Page 29
APPLICATION CIRCUITAPPLICATION CIRCUIT
APPLICATION CIRCUIT
APPLICATION CIRCUITAPPLICATION CIRCUIT
V
BA T
0.1µF
3V
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
0.1µF
V
DD
P0.0
P0.1
P0.2
100
V
DD2
VA
VB
V
BA T
SEG0~
SEG63
COM0~
COM15
0.1µF
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
LCD PANNEL
RESET
100Ω
0.1µF
BZ1
BZ2
RESET
LXOUT
LXIN
VSS
EM73A88A
V5
V4
V3
V2
V1
CLK
all 0.1µF
32.768KHz
20P
0.022µF
* This specification are subject to be changed without notice.
10.8.2001
29
Page 30
ABSOLUTE MAXIMUM RATINGSABSOLUTE MAXIMUM RATINGS
ABSOLUTE MAXIMUM RATINGS
ABSOLUTE MAXIMUM RATINGSABSOLUTE MAXIMUM RATINGS
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
--250-500µANormal current push-pull,VDD=3.3V,P4(low),
P8
2.4--VPush-pull, P4(high current PMOS), SOUND,
V
=2.7V, IOH=-0.9mA
DD
2.02.4-VPush-pull, P4(low current PMOS), P8,
V
=2.7V, IOH=-40µA
DD
-0.150.3VVDD=2.7V,IOL=0.9mA, P4, P8
--1µAOpen-drain, VDD=3.3V, VO=3.3V
100200300KΩP0
300600900KΩRESET
* This specification are subject to be changed without notice.
10.8.2001
30
Page 31
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
DC ELECTRICAL CHARACTERISTICSDC ELECTRICAL CHARACTERISTICS
DC ELECTRICAL CHARACTERISTICS (VDD=3±0.3V, VSS=0V, T
DC ELECTRICAL CHARACTERISTICSDC ELECTRICAL CHARACTERISTICS
Parameters Sym. Parameters Sym.
Parameters Sym.
Parameters Sym. Parameters Sym.
Output currentI
of BZ1, BZ2I
Output current-234mAV
of VO
LCD bias voltageV
OH
OL
1
V
2
V
3
V
4
V
5
Min.Min.
Min.
Min.Min.
25-60mAVDD=3V,VBZ=1.5V,
25-60mA
Typ.Typ.
Typ.
Typ.Typ.
-0.9-VVDD=3V, LCD on, no load
-1.8-V
-2.7-V
-3.6-V
-4.5-V
Max.Max.
Max.
Max.Max.
UnitUnit
Unit
UnitUnit
=3V,VO=0.7V
DD
OPR
=25oC)
ConditionsConditions
Conditions
ConditionsConditions
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
* This specification are subject to be changed without notice.
10.8.2001
31
Page 32
RESET PIN TYPERESET PIN TYPE
RESET PIN TYPE
RESET PIN TYPERESET PIN TYPE
TYPE RESET-A
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
RESET
OSCILLATION PIN TYPEOSCILLATION PIN TYPE
OSCILLATION PIN TYPE
OSCILLATION PIN TYPEOSCILLATION PIN TYPE
TYPE OSC-BTYPE OSC-G
LXIN
LXOUT
TYPE OSC-H
mask option
Crystal
Osc.
CLK
Internal
Osc.
INPUT PIN TYPEINPUT PIN TYPE
INPUT PIN TYPE
INPUT PIN TYPEINPUT PIN TYPE
TYPE INPUT-ATYPE INPUT-B
LXIN
RC Osc.
: mask option
WAKEUP function
mask option
P0/WAKEUP TYPE INPUT-A
* This specification are subject to be changed without notice.
10.8.2001
32
Page 33
I/O PIN TYPEI/O PIN TYPE
I/O PIN TYPE
I/O PIN TYPEI/O PIN TYPE
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
TYPE I/OTYPE I/O
TYPE I/O
TYPE I/OTYPE I/O
TYPE I/O-NTYPE I/O-N
TYPE I/O-N
TYPE I/O-NTYPE I/O-N
mask option
: mask option
TYPE I/O-LTYPE I/O-L
TYPE I/O-L
TYPE I/O-LTYPE I/O-L
TYPE I/O
WAKEUP function
mask option
TYPE I/O-OTYPE I/O-O
TYPE I/O-O
TYPE I/O-OTYPE I/O-O
TYPE I/O-N
: mask option
path B
path A
path B
path A
SEL
Output
data
latch
Output
data
latch
Special function
control input
Input
data
Output
data
Input
data
Output
data
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.
10.8.2001
33
Page 34
PAD DIAGRAMPAD DIAGRAM
PAD DIAGRAM
PAD DIAGRAMPAD DIAGRAM
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
EM73A88AEM73A88A
EM73A88A
EM73A88AEM73A88A
SEG33
SEG32
P8.0
P8.1
P8.2
P8.3
P4.0
P4.1
P4.2
P4.3
P0.0
P0.1
P0.2
P0.3
VDD2
BZ1
BZ2
VSS
/RESET
CLK
TEST
LXIN
LXOUT
VDD
VA
VB
SEG31
SEG30
150
51
SEG35
149
52
SEG36
148
53
SEG37
147
54
SEG38
SEG34
151
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
V1
28
29
V2
V3
30
V4
31
V5
32
33
34
35
36
50
55
SEG39
145
56
SEG40
SEG41
SEG42
SEG43
143
144146
142
141
SEG44
140
(0,0)
SEG45
EM73A88A
58
57
59
60
6170
SEG46
139
62
63
138
SEG47
64
137
SEG48
136
65
SEG49
66
135
SEG50
67
134
SEG51
68
SEG52
132133
69
SEG53
131
117
116
115
114
113
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
SEG54
SEG55
SEG56
SEG57
SEG58
SEG59
SEG60
SEG61
SEG62
SEG63
COM15
COM14
COM13
COM12
COM11
COM10
COM9
COM8
COM7
COM6
COM5
COM4
COM3
COM2
COM1
COM0
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
SEG29
SEG28
SEG27
SEG26
SEG25
SEG24
SEG23
SEG22
SEG21
SEG20
SEG19
SEG18
SEG17
* This specification are subject to be changed without notice.
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG9
10.8.2001
34
Page 35
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT4-BIT MICRO-CONTROLLER FOR LCD PRODUCT