EM73880 is an advanced single chip CMOS 4-bit micro-controller. It contains 8K-byte ROM, 244-nibble RAM,
4-bit ALU, 13-level subroutine nesting, 22-stage time base, two 12-bit timer/counters for the kernel function.
EM73880 also contains 6 interrupt sources, 1 input port, 2 bidirection ports, LCD display (32x4), and one high
speed timer/counter,sound generator, and speech synthesizer.
EM73880 has plentiful operating modes (SLOW, IDLE, STOP) intended to reduce the power consumption.
FEATURESFEATURES
FEATURES
FEATURESFEATURES
• Operation voltage: 2.4V to 3.6V.
• Clock source: Dual clock system. Low-frequency oscillator (32.768 KHz) could be Crystal or RC
oscillator high-frequency oscillator is a built-in for 4.6 MHz.
• Instruction set: 107 powerful instructions.
• Instruction cycle time : 1.7us for 4.6 MHz (high speed clock).
244 µs for 32768 Hz (low speed clock).
• ROM capacity: 8192 X 8 bits.
• RAM capacity: 244 X 4 bits.
• Input port: 1 port (P0). P0(0..3) and IDLE releasing function are available by mask option.
• Bidirection port: 2 ports (P4, P8). P4.1 is shared with HTC external input. P8(0..3) and IDLE releasing
function are available by mask option.
• 12-bit timer/counter: Two 12-bit timer/counters are programmable for timer, event counter and pulse width
measurement.
• High speed timer/counter : One 8-bit high speed timer/counters is programmable for auto load timer, melody
output and pulse width measurement.
Power supply (+) / speech synthesizer power supply(+)
Power supply (-)
RESETRESET-ASystem reset input signal, low active
mask option :none
pull-up
CLKOSC-GCapacitor connecting pin for internal high frequency OSC.
LXINOSC-B/OSC-H Crstal/RC connecting pin for low speed clock source
LXOUTOSC-BCrstal/RC connecting pin for low speed clock source
P0(0..3)/WAKEUP0..3INPUT-K4-bit input port with IDLE releasing function
wakeup disable, none
P4.0I/O-R1-bit bidirection I/O port
* This specification are subject to be changed without notice.
11.30.2001
2
Page 3
EM73880EM73880
EM73880
EM73880EM73880
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
PIN DESCRIPTIONSPIN DESCRIPTIONS
PIN DESCRIPTIONS
PIN DESCRIPTIONSPIN DESCRIPTIONS
SymbolSymbol
Symbol
SymbolSymbol
P4.1/TRGHI/O-Q1-bit bidirection I/O port with HTC external input
P4(2,3)I/O-Q2-bit bidirection I/O port with high current source
P8.0/WAKEUPA,I/O-S2-bit bidirection I/O port with external interrupt source input only
P8.2/INT0/WAKEUPCP8.2 and IDLE releasing function
P8.1(TRGB)/WAKEUPB I/O-S2-bit bidirection I/O port with time/counter A,B external input and IDLE
P8.3(TRGA)/WAKEUPDreleasing function
BZ1, BZ2Speech output pin
VA,VB, V1, V2, V3Connect the capacitors for LCD bias voltage
COM0~COM3LCD common output pins
SEG0~SEG31LCD segment output pins
TESTTie Vss as package type, no connecting as COB type
Pin-typePin-type
Pin-type
Pin-typePin-type
FunctionFunction
Function
FunctionFunction
mask option :NMOS open-drain
PMOS open-drain
low current push-pull
normal current push-pull
high current push-pull
mask option :NMOS open-drain
PMOS open-drain
low current push-pull
normal current push-pull
high current push-pull
mask option :wakeup enable, low current push-pull
wakeup enable, normal current push-pull
wakeup disable, open-drain
wakeup disable, low current push-pull
wakeup disable, normal current push-pull
mask option :wakeup enable, low current push-pull
wakeup enable, normal current push-pull
wakeup disable, open-drain
wakeup disable, low current push-pull
wakeup disable, normal current push-pull
FUNCTION DESCRIPTIONSFUNCTION DESCRIPTIONS
FUNCTION DESCRIPTIONS
FUNCTION DESCRIPTIONSFUNCTION DESCRIPTIONS
PROGRAM ROM (8K X 8 bits)PROGRAM ROM (8K X 8 bits)
PROGRAM ROM (8K X 8 bits)
PROGRAM ROM (8K X 8 bits)PROGRAM ROM (8K X 8 bits)
8 K x 8 bits program ROM contains user's program and some fixed data.
The basic structure of program ROM can be divided into 6 parts.
1. Address 000h: Reset start address.
2. Address 002h - 00Ch : 6 kinds of interrupt service routine entry addresses.
3. Address 00Eh-086h :SCALL subroutine entry address, only available at 00Eh,016h,01Eh,026h, 02Eh,
036h, 03Eh, 046h, 04Eh, 056h, 05Eh, 066h, 06Eh, 076h, 07Eh, 086h.
5. Address 000h - 1FFFh :Except used as above function, the other region can be used as user's program region.
6. Address 1000h - 1FFFh : Fixed data stortage area.
* This specification are subject to be changed without notice.
11.30.2001
3
Page 4
EM73880EM73880
EM73880
EM73880EM73880
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
address 8192 x 8 bits
PreliminaryPreliminary
000hReset start address
002hINT0; External interrupt service routine entry address
004hHTCI; High speed timer interrupt service entry address
006hTRGA; Timer/counterA interrupt service routine entry address LCALL entry
008hTRGB; Timer/counter B interrupt service routine entry address address
00AhTBI; Time base interrupt service routine entry address
00ChSPI
00Eh
086h
800h
.
.
.
SCALL, subroutine call entry address
1000
FFFhfixed data area
Bank1
1FFF
User's program and fixed data are stored in the program ROM. User's program is according the PC value
to send next executed instruction code . Fixed data can be read out.
The program counter is a 13-bit binary counter. The PC can defined 8K ROM.
Table -look-up instruction is depended on the Data Pointer (DP) to indicate to ROM address, then to get the
ROM code data. The fixed data only can be put in bank1.
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 which can store the program ROM address to be the pointer for the ROM code
data. First, user load ROM address into DP by instruction "STADPL, STADPM, STADPH", then user can
get 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.
There is total 244 - nibble data RAM from address 00 to F3h
Data RAM includes 3 parts: zero page region, stacks and data area.
* This specification are subject to be changed without notice.
11.30.2001
4
Page 5
EM73880EM73880
EM73880
EM73880EM73880
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
Increment
Address
00h~0Fh
10h~1Fh
20h~2Fh
30h~3Fh
40h~4Fh
:
B0h ~ BFh
C0h ~ CFh
D0h ~ DFh
E0h ~ EFh
F0h ~ F3h
level 0
level 4
level 8
level C
zero page
LCD display RAM
level 1
level 5
level 9
level 2
level 6
level A
level 3
level 7
level B
LCD display RAM:
RAM address from 20h ~ 3Fh are the LCD display RAM area, the RAM data of this region can't be operated
by instruction LDHL xx and EXHL.
ZERO- PAGE:
From 00h to 0Fh is the location of zero-page . It is used as the pointer in zero -page addressing mode for the
instruction of "STD #k,y; ADD #k,y; CLR y,b; CMP k,y".
PROGRAM EXAMPLE: To wirte immediate data "07h" to address "03h" of RAM and to clear bit 2 of RAM.
There are 13 - level (maximum) stack for user using for subroutine (including interrupt and CALL). User
can assign any level be the starting stack by giving the level number to stack pointer (SP).
When user using any instruction of CALL or subroutine, before entry the subroutine, the previous PC address
will be saved into stack until return from those subroutines ,the PC value will be restored by the data saved
in stack.
DATA AREA:
Except the special area used by user, the whole RAM can be used as data area for storing and loading general
data.
ADDRESSING MODE
(1) Indirect addressing mode:
Indirect addressing mode indicates the RAM address by specified HL register.
For example: LDAM ; Acc ← RAM[HL]
STAM ; RAM[HL] ← Acc
(2) Direct addressing mode:
Direct addressing mode indicates the RAM address by immediate data.
* This specification are subject to be changed without notice.
11.30.2001
5
Page 6
EM73880EM73880
EM73880
EM73880EM73880
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
For example:
(3) Zero-page addressing mode
For zero-page region, user can using direct addressing to write or do any arithematic, comparsion or bit
manupulated operation directly.
For example:
PROGRAM COUNTER (8K ROM)PROGRAM COUNTER (8K ROM)
PROGRAM COUNTER (8K ROM)
PROGRAM COUNTER (8K ROM)PROGRAM COUNTER (8K ROM)
Program counter ( PC ) is composed by a 13-bit counter, which indicates the next executed address for the
instruction of program ROM.
For a 8K - byte size ROM, PC can indicate address form 0000h - 1FFFh, for BRANCH and CALL instrcutions,
PC is changed by instruction indicating.
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 following:
INT0INT0
INT0 (External interrupt from P8.2)
INT0INT0
PC000000000010
HTCHTC
HTC (High speed counter)
HTCHTC
PC000000000100
TRGATRGA
TRGA (Timer A overflow interrupt)
TRGATRGA
PC000000000110
TRGBTRGB
TRGB (Time B overflow interrupt)
TRGBTRGB
PC000000001000
TBITBI
TBI (Time base interrupt)
TBITBI
PC000000001010
SPISPI
SPI (Speech Interrupt)
SPISPI
PC000000001100
(4) Reset operation:(4) Reset operation:
(4) Reset operation:
(4) Reset operation:(4) Reset operation:
PC000000000000
(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 is a 4-bit data register for temporary data . For the arithematic, logic and comparative opertion
.., ACC plays a role which holds the source data and result .
* This specification are subject to be changed without notice.
11.30.2001
8
Page 9
EM73880EM73880
EM73880
EM73880EM73880
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
FLAGSFLAGS
FLAGS
FLAGSFLAGS
There are three kinds of flag, CF ( Carry flag ), ZF ( Zero flag ), SF ( Status flag ), these 3 1-bit flags are affected
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 executed .
(1) Carry Flag ( CF )
The carry flag is affected by following operation:
a. Addition : CF as a carry out indicator, when the addition operation has a carry-out, CF will be "1",
in another word, if the operation has no carry-out, CF will be "0".
b. Subtraction : CF as a borrow-in indicator, when the subtraction operation must has a borrow, in the CF
will be "0", in another word, if no borrow-in, CF will be "1".
c. Comparision: CF is as a borrow-in indicator for Comparision operation as the same as 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 : For TFCFC instruction, the content of CF sends into SF then clear itself "0".
For TTSFC instruction, the content of CF sends into SF then set itself "1".
(2) Zero Flag ( ZF )
ZF is affected by the result of ALU, if the ALU operation generate a "0" result, the ZF will be "1",
otherwise, the ZF will be "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 will be satisified, otherwise,
branch condition will not be satisified by SF = 0 .
PROGRAM EXAMPLE:
Check following arithematic operation for CF, ZF, SF
* This specification are subject to be changed without notice.
11.30.2001
9
Page 10
EM73880EM73880
EM73880
EM73880EM73880
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
ALUALU
ALU
ALUALU
The arithematic operation of 4 - bit data is performed in ALU unit. There are 2 flags can be affected by the
result of ALU operation, ZF and SF . The operation of ALU can be affected by CF only .
ALU STRUCTUREALU STRUCTURE
ALU STRUCTURE
ALU STRUCTUREALU STRUCTURE
ALU supported user arithematic operation function, including : addition, subtraction and rotaion.
DATA BUS
ALU
ZF CF SF
ALU FUNCTIONALU FUNCTION
ALU FUNCTION
ALU FUNCTIONALU FUNCTION
(1) Addition:
For instruction ADDAM, ADCAM, ADDM #k, ADD #k,y .... ALU supports addition function.
The addition operation can affect CF and ZF. For addition operation, if the result is "0", ZF will be "1",
otherwise, not equal "0", ZF will be "0", When the addition operation has a carry-out. CF will be "1",
otherwise, CF will be "0".
EXAMPLE:
OperationCarryZero
3+4=700
7+F=610
0+0=001
8+8=011
(2) Subtraction:
For instruction SUBM #k, SUBA #k, SBCAM, DECM... ALU supports user subtraction function . The
subtraction operation can affect CF and ZF, For subtraction operation, if the result is negative, CF will
be "0", it means 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 will be "1", otherwise, ZF will be "1".
EXAMPLE:
Operation Carry Zero
8-4=410
7-F= -8(1000)00
9-9=011
* This specification are subject to be changed without notice.
11.30.2001
10
Page 11
EM73880EM73880
3
EM73880
EM73880EM73880
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
(3) Rotation:
There are two kinds of rotation operation, one is rotation left, the other is rotation right.
RLCA instruction rotates Acc value to left, shift the CF value into the LSB bit of Acc and the shift out data
will be hold in CF.
MSBLSB
ACC
CF
RRCA instruction operation rotates Acc value to right, shift the CF value into the MSB bit of Acc and the
shift out data will be hold in CF.
MSBLSB
ACC
CF
PROGRAM EXAMPLE: To rotate Acc 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 address of RAM memory and also
2 independent temporary 4-bit data registers. For some instruction, L register can be a pointer to indicate the
pin number ( Port4 ) .
HL REGISTER STRUCTUREHL REGISTER STRUCTURE
HL REGISTER STRUCTURE
HL REGISTER STRUCTUREHL REGISTER STRUCTURE
2 1 0
H REGISTER
3 2 1 0
L REGISTER
* This specification are subject to be changed without notice.
11.30.2001
11
Page 12
EM73880EM73880
EM73880
EM73880EM73880
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
HL REGISTER FUNCTIONHL REGISTER FUNCTION
HL REGISTER FUNCTION
HL REGISTER FUNCTIONHL REGISTER FUNCTION
(1)For instruction : LDL #k, LDH #k, THA, THL, INCL, DECL, EXAL, EXAH, HL register used as a
temporary register .
PROGRAM EXAMPLE:
LDL #05h;
LDH #0Dh;
(2) For instruction LDAM, STAM, STAMI .., HL register used as a pointer for the address of RAM memory.
PROGRAM EXAMPLE: Store immediate data #Ah into RAM of address 35h.
LDL #5h;
LDH #3h;
STDMI #0Ah; RAM[35] ← Ah
(3) For instruction : SELP, CLPL, TFPL, L regieter be a pointer to indicate the bit of I/O port.
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 which 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 accepted, the SP will be decreased one automatically, in another word, if
returning from a subroutine, the SP will be increased one .
The data transfer between ACC and SP is by instruction of "LDASP" and "STASP".
Load immediate data "5h" into L register, "Dh" into H register.
DATA POINTER (DP)DATA POINTER (DP)
DATA POINTER (DP)
DATA POINTER (DP)DATA POINTER (DP)
Data pointer is a 12-bit register which stores the address of ROM can indicate 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 slow clock source comes from crystal
(resonator) or RC oscillation is decided by mask option, and it's 32.768 KHz. The high freq OSC is built by
a internal clock source that will be 4.6 MHz.
There are two clock generator for system clock control. P14 is the status register for the CPU status. P16,
P19 and P22 are the system clock mode control ports.
* This specification are subject to be changed without notice.
11.30.2001
12
Page 13
0.022uF
LXOUT
LXIN
CLK
High-frequency
generator
Low-frequency
generator
EM73880EM73880
EM73880
EM73880EM73880
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
fc
System clock
fs
mode control
P14
P16
P19
P22
Mask option for choose Crystal or RC oscillator
20PF
Crystal connection
SYSTEM CLOCK MODE CONTROLSYSTEM CLOCK MODE CONTROL
SYSTEM CLOCK MODE CONTROL
SYSTEM CLOCK MODE CONTROLSYSTEM CLOCK MODE CONTROL
LXIN
LXOUT
System control
R
VDD
open
RC oscillator connection
LXIN
LXOUT
R=1.2MΩ
The system clock mode controller can start or stop the high-frequency and low-frequency clock oscillator
and switch between the basic clocks. EM73880 has four operation modes (NORMAL, SLOW,IDLE and
STOP operation modes).
Reset
I/O wakeup
Reset
Reset release
STOP
operation
mode
NORMAL
operation
mode
High osc : stopped
Low osc : stopped
Command
(P16)
High osc : oscillating
Low osc : oscillating
Command
(P22)
Command
(P22)
Command
(P16)
RESET
operation
Reset
Operation Mode Oscillator System Clock Available function Operation Mode Oscillator System Clock Available function
Operation Mode Oscillator System Clock Available function
Operation Mode Oscillator System Clock Available function Operation Mode Oscillator System Clock Available function
Reset
IDLE
(CPU
stops)
High osc : stopped
Low osc : oscillating
Command
(P19)
I/O or internal timer wakeup
SLOW
operation
mode
High osc : stopped
Low osc : oscillating
One instruction cycle One instruction cycle
One instruction cycle
One instruction cycle One instruction cycle
NORMAL High, Low frequency High frequency clock LCD, HST, Speech sound 8 / fc
SLOW Low frequencyLow frequency clock LCD, HST 8 / fs
IDLELow frequencyCPU stopsLCD -
STOPNoneCPU stopsAll disable -
* This specification are subject to be changed without notice.
11.30.2001
13
Page 14
EM73880EM73880
EM73880
EM73880EM73880
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
NORMAL OPERATION MODENORMAL OPERATION MODE
NORMAL OPERATION MODE
NORMAL OPERATION MODENORMAL OPERATION MODE
The 4-bit µc is in the NORMAL operation mode when the CPU is reseted. This mode is a dual clock system
(high-frequency and low-frequency clocks oscillating). It can be changed to SLOW or STOP operation
mode by the command register (P22 or P16).
LCD display and high speed timer/counter with melody output are available for the NORMAL operation
mode.
SLOW OPERATION MODESLOW OPERATION MODE
SLOW OPERATION MODE
SLOW OPERATION MODESLOW OPERATION MODE
The SLOW operation mode is a single clock system (low-frequency clock oscillating). It can be changed to
the DUAL operation mode with the commoand register (P22), STOP operation mode with P16 and IDLE
operation mode with P19.
LCD display and high speed timer/counter with melody output are available for the SLOW operation
mode.
0LXIN source is not stable0NORMAL operation mode
1LXIN source is stable1SLOW operation mode
WKSWakeup status
0Wakeup not by internal timer
1Wakeup by internal timer
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 to '1' when CPU is wake-up by internal timer. P14.2 will be cleared to
'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 SLOW operations except for the low-frequency clock and LCD
driver. It retains the internal status with low power consumption without stopping the clock function 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 or P8(0..3)/WAKEUPA..D).
* This specification are subject to be changed without notice.
11.30.2001
14
Page 15
EM73880EM73880
EM73880
EM73880EM73880
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
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 or P8(0..3)/WAKEUP A..D).
LCD display and high speed timer/counter with melody output are disabled in the mode.
Timer/counters can support user three special functions:
1. Even counter
2. Timer.
3. Pulse-width measurement.
* This specification are subject to be changed without notice.
11.30.2001
15
Page 16
EM73880EM73880
EM73880
EM73880EM73880
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
These three functions can be executed by 2 timer/counter independently.
For timerA, the counter data is saved in timer register TAH, TAM, TAL, which user can set counter initial
value and read the counter value by instruction "LDATAH(M,L), STATAH(M,L)" and timer register is
TBH, TBM, TBL and W/R instruction "LDATBH (M,L), STATBH (M,L)".
The basic structure of timer/counter is composed by two same structure counter, these two counters can be
set initial value and send counter value to timer register, P28 and P29 are the command ports for timerA
and timer B, user can choose different operation mode and different internal clock rate by setting these two
ports. When timer/counter overflow, it will generate a TRGA(B) interrupt request to interrupt control unit.
INTERRUPT CONTROL
TRGA request
12 BIT COUNTER
P8.3/
TRGA
internal clock
TIMER/COUNTER CONTROLTIMER/COUNTER CONTROL
TIMER/COUNTER CONTROL
TIMER/COUNTER CONTROLTIMER/COUNTER CONTROL
EVENT COUNTER CONTROL
TIMER CONTROL
PULSE-WIDTH MEASUREMENT
P28
CONTROL
TMSA
DATA BUS
IPSA
P29
TRGB request
12 BIT COUNTER
EVENT COUNTER CONTROL
TIMER CONTROL
PULSE-WIDTH MEASUREMENT
CONTROL
TMSBIPSB
P8.1/
TRGB
MUX
internal clock
high speed timer/counter
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.
* This specification are subject to be changed without notice.
11.30.2001
16
Page 17
EM73880EM73880
T
EM73880
EM73880EM73880
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 can be programmable for timer, event counter and pulse width measurement. Each timer/
counter can execute any one of these functions independly.
EVENT COUNTER MODE
For event counter mode, timer/counter increases one at any rising edge of P8.1/TRGB for timerB (P8.3/
TRGA for timer A). When timerB (timerA) counts overflow, it will give interrupt control an interrupt request
TRGB (TRGA).
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
For timer mode ,timer/counter increase one at any rising edge of internal pulse . User can choose 4 kinds
of internal pulse rate by setting IPSB for timerB (IPSA for timerA).
When timer/counter counts overflow, TRGB (TRGA) will be generated 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 = 0F0AH
PULSE WIDTH MEASUREMENT MODE
* This specification are subject to be changed without notice.
11.30.2001
17
Page 18
EM73880EM73880
P
EM73880
EM73880EM73880
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
For the pulse width measurement mode, the counter only incresed by the rising edge of internal pulse rate as
external timer/counter input (P8.1/TRGB, P8.3/TRGA), interrupt request will be 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 .
8-bit high speed timer/counter (HTC) supports three special functions : auto load timer, melody output
and pulse width measurement modes. The HTC is available for the NORMAL and SLOW operation mode.
The HTC can be set initial value and send counter value to counter registers (P11 and P10), P31 is the
command port for HTC, user can choose different operation mode and different internal clockrate by setting
the port. The timer/counter increase one at the rising edge of internal pulse. The HTC can generate an overflow
interrupt (HTCI) when it overflows.
÷2
F
HTC
HTCI interrupt
Timer/counter B
P4.1/TRGH
P31(3,2)
XIN
P31(1,0)
Input data
8-bit binary counter
P11
P10
Overflow
Reload
Data bus
P31 is the command register of the 8-bit high speed timer/counter.
P11 and P10 are the counter registers of the 8-bit high speed timer/counter. P10 is the lower nibble register
and P11 is the higher nibble register. (HT is the value of counter registers.)
* This specification are subject to be changed without notice.
3210P103210Initial value : 0000 0000 (HT)
P11
Higher nibble registerLower nibble register
11.30.2001
18
Page 19
EM73880EM73880
R
i
i
EM73880
EM73880EM73880
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
The value of 8-bit binary up counter can be presetted by P10 and P11. The value of registers can loaded into
the HTC when the counter starts counting or occurs overflow. If user write value to the registers before the
next overflow occurs, the preset value can be changed.
The preset value will be changed when users output the different data to P10. Thus, the data must be output
to P11 before P10 when users want to change the preset value.
The count value of HTC can be read from P10 and P11. The value is unstable when user read the value during
counting. Thus, user must disable the counter before reading the value.
The P4.1/RGH pin will be the input pin in the event counter and pulse width measurement mode. User must
output high to P4. 1/TRGH and then it can be the HTC external input pin. When the HTC is disabled, the P4.
1 pin is a normal I/O pin.
INTERRUPT FUNCTIONINTERRUPT FUNCTION
INTERRUPT FUNCTION
INTERRUPT FUNCTIONINTERRUPT FUNCTION
There are 6 interrupt sources, 2 external interrupt sources, 4 internal interrupt sources . Multiple
interrupts are admitted according the priority .
* This specification are subject to be changed without notice.
11.30.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
Interrupt controller:
IL0-IL5: Interrupt latch . Hold all interrupt requests from all interrupt sources. ILr can not be
set by program, but can be reset by program or system reset, so IL only can decide
which interrupt source can be accepted.
MASK0-MASK3: Except INT0 ,MASK register can promit or inhibit all interrupt sources.
EI: Enable interrupt Flip-Flop can promit or inhibit all interrupt sources, when inter-
rupt happened, EI is cleared to "0" automatically, after RTI instruction happened,
EI will be set to "1" again .
Priority checker: Check interrupt priority when multiple interrupts happened.
INTERRUPT FUNCTIONINTERRUPT FUNCTION
INTERRUPT FUNCTION
INTERRUPT FUNCTIONINTERRUPT FUNCTION
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 happened.
5. Clear the IL for which interrupt source has already be accepted.
6. To 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.
PreliminaryPreliminary
EM73880EM73880
EM73880
EM73880EM73880
PROGRAM EXAMPLE: To enable interrupt of "INT0, TRGA"
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 .. A18 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.
* This specification are subject to be changed without notice.
11.30.2001
20
Page 21
PreliminaryPreliminary
Preliminary
PreliminaryPreliminary
SPEECH SYNTHESIZER CONTROLSPEECH SYNTHESIZER CONTROL
SPEECH SYNTHESIZER CONTROL
SPEECH SYNTHESIZER CONTROLSPEECH SYNTHESIZER CONTROL
Speech sample rate control register (P5 write) :
3210Initial value : *000
SINTSR
EM73880EM73880
EM73880
EM73880EM73880
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
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
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, or when HTC
overflow interrupt SPI.
Speech start address register (P6 write) :
Sample rate selectionSample rate selection
Sample rate selection
Sample rate selectionSample rate selection
Sample rateSample rate
Sample rate
Sample rateSample rate
3210Initial value : 1111
Port 6
P6L1P6L2P6L3P6L4
A9A8A7A6A13A12A11A10A17A16A15A14 ----
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.
11.30.2001
21
Page 22
EM73880EM73880
EM73880
EM73880EM73880
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
MELODY (SOUND EFFECT) CONTROLMELODY (SOUND EFFECT) CONTROL
MELODY (SOUND EFFECT) CONTROL
MELODY (SOUND EFFECT) CONTROLMELODY (SOUND EFFECT) CONTROL
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
CLK/8
4 kinds
of divider
f1
Tone
generator
f2x2
Random
generator
÷2
f2
÷2
Output
control
PWM ckt.
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
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
8-bit tone frequency (TF).
* This specification are subject to be changed without notice.
11.30.2001
22
Page 23
Random generator
EM73880EM73880
EM73880
EM73880EM73880
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
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.
Port17
Initial 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#1101B; 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.
11.30.2001
23
Page 24
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
EM73880EM73880
EM73880
EM73880EM73880
WDTSet watch-dog-timer detect time
03 x 2
17 x 2
13
/LXIN = 3 x 213/32K Hz = 0.75 sec
13
/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
:
:
LCD DRIVERLCD DRIVER
LCD DRIVER
LCD DRIVERLCD DRIVER
EM73880 can directly drive the liquid crystal display (LCD) and has 32 segment, 4 common output pins (1/
2 bias, 1/3 bias). There are total 32x4 dots can be display. The V1, V2, V3, VA, VB, VDD and VSS pins are
the LCD bias generator.
CONTROL OF LCD DRIVERCONTROL OF LCD DRIVER
CONTROL OF LCD DRIVER
CONTROL OF LCD DRIVERCONTROL OF LCD DRIVER
The LCD driver control command register is P27. When LDC is 0, the LCD is disabled, and user could change
Duty in this situation only the COM and SEG pins are VSS. When LDC is 1, the LCD driver enables.
When the CPU is reseted or during the STOP operation mode, the LCD driver is disabled.
* This specification are subject to be changed without notice.
11.30.2001
24
Page 25
EM73880EM73880
EM73880
EM73880EM73880
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
The LCD display data is stored in the display data area of the data memory (RAM).
The display data area begins with address 20H during reset. The LCD display data area ia as below :
* This specification are subject to be changed without notice.
11.30.2001
25
Page 26
EM73880EM73880
EM73880
EM73880EM73880
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
LCD DRIVING METHODSLCD DRIVING METHODS
LCD DRIVING METHODS
LCD DRIVING METHODSLCD DRIVING METHODS
There are six kinds of driving methods can be selected by DUTY (P27.0~P27.2). The drivinf waveforms of
LCD driver are as below :
• •
VDD=3VVDD=3V
•
VDD=3V
• •
VDD=3VVDD=3V
(1) 1/4 duty (1/3 bias)
V
COM0
COM1
COM2
COM3
SEG0
SEG0-COM0
ON
SEG0-COM1
OFF
LCD=VDD
V
VA
VB
Frame
(2 ) 1/3 duty (1/3 bias)
V
V
LCD
=3/2V
DD
DD
3V
V3
2V
V2
1V
V1
V
SS
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
-V1
-V2
-V3
V3
V2
V1
Vss
-V1
-V2
-V3
VA
VB
V
DD
4.5V
V3
3V
V2
1.5V
V1
V
SS
LCD=VDD
VA
VB
Frame
V
LCD
=3/2V
DD
V
DD
3V
V3
2V
V2
1V
V1
V
SS
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
V3
V2
V1
Vss
-V1
-V2
-V3
V3
V2
V1
Vss
-V1
-V2
-V3
VA
VB
V
DD
4.5V
V3
3V
V2
1.5V
V1
V
SS
(3) 1/4 duty (1/2 bias)
COM0
COM1
COM2
COM3
SEG0
SEG0-COM0
ON
SEG0-COM1
OFF
V
LCD=VDD
VA
VB
Frame
V
DD
3V
V3
1.5V
V2
V1
V
SS
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
-V1
-V3
V3
V1
Vss
-V1
-V3
(4) 1/3 duty (1/2 bias)
V
LCD=VDD
V
DD
3V
V3
1.5V
V2
VA
V1
VB
V
SS
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
-V1
-V3
V3
V1
Vss
Frame
-V1
-V3
* This specification are subject to be changed without notice.
V
LCD=VDD
VA
VB
Frame
(6) static(5) 1/2 duty (1/2 bias)
V
LCD=VDD
V
VA
VB
ON
Frame
DD
V3
V2
V1
V
SS
V3
Vss
OFF
V3
Vss
-V3
V3
Vss
-V3
11.30.2001
3V
1.5V
V3
V1
Vss
26
V
DD
3V
V3
1.5V
V2
V1
V
SS
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
-V1
-V3
V3
V1
Vss
-V1
-V3
Page 27
EM73880EM73880
EM73880
EM73880EM73880
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
RESETTING FUNCTIONRESETTING FUNCTION
RESETTING FUNCTION
RESETTING FUNCTIONRESETTING FUNCTION
When CPU in normal working condition and RESET pin holds in low level for three instruction cycles at least,
then CPU begins to initialize the whole internal states, and 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 state Initial value
Program counter 0000h
Status flag 01h
Interrupt enable flip-flop ( EI ) 00h
MASK0 ,1, 2, 3 00h
Interrupt latch ( IL ) 00h
P4, P5, P10, 11,14, 16, 19, 25, 27, 28, 29, 31 00h
P4, 8, 17, 23, 24 0Fh
Both oscillator Start 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 V
RESET
and a diode to VDD.
SS
* This specification are subject to be changed without notice.
11.30.2001
27
Page 28
EM73880 I/O PORT DESCRIPTION :EM73880 I/O PORT DESCRIPTION :
EM73880 I/O PORT DESCRIPTION :
EM73880 I/O PORT DESCRIPTION :EM73880 I/O PORT DESCRIPTION :
EM73880EM73880
EM73880
EM73880EM73880
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
PortPort
Port
PortPort
0EInput port , wakeup function
1---2---3---4EInput portEOutput port, P4.1/HST
5ISpeech active signalISpeech sample rate control register-6--ISpeech address address
7---8EInput port, wakeup function,EOutput port
9---10--IHigh speed timer/counterlow nibble
11--IHigh speed timer/counterhigh nibble
12---13---14ICPU statusIClear P14.0 to 0
15---16ISTOP mode control register
17Volumn control register
18-19IIDLE mode control register
20-21WDT counter
22ISlow mode control register
23-24-25ITimebase control register
26-27ILCD control register
28ITimer/counter A control register
29ITimer/counter B control register
30-31IHTC control register
Input functionInput function
Input function
Input functionInput function
Output functionOutput function
Output function
Output functionOutput function
NoteNote
Note
NoteNote
* This specification are subject to be changed without notice.
11.30.2001
28
Page 29
ABSOLUTE MAXIMUM RATINGSABSOLUTE MAXIMUM RATINGS
ABSOLUTE MAXIMUM RATINGS
ABSOLUTE MAXIMUM RATINGSABSOLUTE MAXIMUM RATINGS
ItemsItems
Items
ItemsItems
Sym.Sym.
Sym.
Sym.Sym.
EM73880EM73880
EM73880
EM73880EM73880
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
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.
Supply currentI
DD
Min.Min.
Min.
Min.Min.
Typ.Typ.
Typ.
Typ.Typ.
Max.Max.
Max.
Max.Max.
UnitUnit
Unit
UnitUnit
-7001200µAVDD=3.3V,no load,NORMAL mode,
Fc=4.6MHz, Fs=32KHz
-1220µAV
=3.3V,no load,SLOW mode,RC osc.
DD
(R=1.2MΩ)
-715µAV
=3.3V,no load,SLOW mode,Crystal osc.
DD
(Fs=32KHz)
=3.3V,IDLE mode,RC osc.(R=1.2MΩ)
DD
=3.3V,IDLE mode,Crystal osc.
DD
=3.3V, STOP mode
DD
Hysteresis voltageV
Input currentI
V
HYS+
HYS-
IH
-1015µAV
-510 µAV
-0.11µAV
0.50V
0.20V
DD
DD
- 0.75V
-0.40V
VRESET, P0, P8
DD
V
DD
-2030µAP0, Pull-down, VIH=V
-30-2 0-µAP0, Pull-up, VIH=V
--1µAP0, None
--±1µARESET, Open-drain, V
Output voltageV
I
IL
OH
--40-70µALow current Push-pull, VDD=3.3V,VIL=0.4V
2.42.6-VHigh current push-pull, SOUND,
V
=2.7V, IOH=-1mA
DD
2.02.4-VNormal current push-pull,
V
=2.7V, IOH=-60µA
DD
Leakage currentI
Input resistorR
V
OL
LO
IN
-0.10.3VVDD=2.7V,IOL=1mA
--1µAOpen-drain, VDD=3.3V, VO=3.3V
50100300KΩRESET
OPR
=50oC
OPR
ConditionCondition
Condition
ConditionCondition
=25oC)
ConditionsConditions
Conditions
ConditionsConditions
DD
SS
=3.3V,VIH=3.3/0V
DD
* This specification are subject to be changed without notice.
11.30.2001
29
Page 30
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.
LCD bias voltageV1
1
(
/2 bias)V2
V3-
LCD bias voltageV1
1
(
/3 bias)V2
V3Output current ofI
BZ1, BZ2I
OH
OL
Min.Min.
Min.
Min.Min.
1
/2VDD-0.11/2V
1
/2VDD-0.11/2V
1
/3VDD-0.11/3V
2
/3VDD-0.12/3V
Typ.Typ.
Typ.
Typ.Typ.
V
DD
V
DD
Max.Max.
Max.
Max.Max.
1
/2VDD+0.1VI1=5µA
DD
1
/2VDD+0.1VI2=5µA
DD
VDD+0.1VI3=5µA
DD
DD
-VI1=5µA
2
/3VDD+0.1VI2=5µA
VDD+0.1VI3=5µA
UnitUnit
Unit
UnitUnit
30--mAVDD=3V, VBZ=1.5V
30--mA
OPR
=25oC)
ConditionsConditions
Conditions
ConditionsConditions
EM73880EM73880
EM73880
EM73880EM73880
* This specification are subject to be changed without notice.
11.30.2001
30
Page 31
RESET PIN TYPERESET PIN TYPE
RESET PIN TYPE
RESET PIN TYPERESET PIN TYPE
TYPE RESET-A
EM73880EM73880
EM73880
EM73880EM73880
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
RESET
OSCILLATION PIN TYPEOSCILLATION PIN TYPE
OSCILLATION PIN TYPE
OSCILLATION PIN TYPEOSCILLATION PIN TYPE
TYPE OSC-BTYPE OSC-D
LXIN
LXOUT
TYPE OSC-H
VDD
LXIN
mask option
Crystal
Osc.
RC Osc.
CLK
Internal
OSC.
INPUT PIN TYPEINPUT PIN TYPE
INPUT PIN TYPE
INPUT PIN TYPEINPUT PIN TYPE
TYPE INPUT-K
positive
edge
detector
negative
edge
detector
I/O PIN TYPEI/O PIN TYPE
I/O PIN TYPE
I/O PIN TYPEI/O PIN TYPE
input data
WAKEUP
mask option
: mask option
TYPE I/O-NTYPE I/O-Q
: mask option: mask option
* This specification are subject to be changed without notice.
11.30.2001
31
Page 32
TYPE I/O-RTYPE I/O-R
TYPE I/O-R
TYPE I/O-RTYPE I/O-R
EM73880EM73880
EM73880
EM73880EM73880
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
TYPE I/O-STYPE I/O-S
TYPE I/O-S
TYPE I/O-STYPE I/O-S
Special function
control input
Input
data
Output
data
TYPE I/O-Q
: mask option
path B
path A
Output
data
latch
Input
data
Output
data
Special function
output
path B
path A
TYPE I/O-N
WAKEUP function
mask option
SEL
Output
data
latch
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.
11.30.2001
32
Page 33
PAD DIAGRAMPAD DIAGRAM
PAD DIAGRAM
PAD DIAGRAMPAD DIAGRAM
EM73880EM73880
EM73880
EM73880EM73880
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
LXOUT
LXIN
VDD
P4.3
P4.2
P4.1
P4.0
BZ1
19
12
13
15
16
17
18
14
VSS
911
V1
8
V2
V3
VA
7
VB
COM0
COM1
(0,0)
EM73880
COM3
COM2
SEG0
68123456
SEG1
6667
SEG2
65
SEG3
64
63
62
60
59
58
57
56
55
54
53
52
51
50
SEG4
SEG5
SEG6
SEG7
SEG8
SEG9
SEG10
SEG11
SEG12
SEG13
SEG14
SEG15
SEG16
SEG17
BZ2
VDD2
P8.3
P8.2
P8.1
P8.0
20
21
22
23
24
25
28
RESET
29
CLK
3031
TEST
P0.3
32
P0.2
34 35 36
33
P0.1
P0.0
Unit : µm
Chip Size : 2490 x 2960 µm
Note : For PCB layout, IC substrate must be floated or connected to VSS.
SEG31
SEG30
37
SEG29
38 39
SEG28
49
48
47
46
45
43
42
41
40
SEG27
SEG18
SEG19
SEG20
SEG21
SEG22
SEG23
SEG24
SEG25
SEG26
* This specification are subject to be changed without notice.
11.30.2001
33
Page 34
EM73880EM73880
EM73880
EM73880EM73880
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