EMC EM73461B 4-bit micro-controller for lcd product Datasheet

EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
GENERAL DESCRIPTION
EM73461B is an advanced single chip CMOS 4-bit micro-controller. It contains 4K/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. EM73461B also contains 6 interrupt sources, 1 input port, 2 bidirection ports, LCD display (32x4), and
one high speed timer/counter with melody output.
EM73461B has plentiful operating modes (SLOW, IDLE, STOP) intended to reduce the power consumption.
FEATURES
• Operation voltage
• Clock source
•
•
•
•
•
•
•
•
•
•
•
•
•
•
: 2.4V to 3.6V.
: Dual clock system. Low-frequency oscillator is Crystal or RC oscillator (32K Hz,
connect an external resistor) by mask option and high-frequency oscillator is RC
oscillator (connect an external resistor), or built-in internal oscillator.
Instruction set
: 109 powerful instructions for 4K ROM / 107 powerful instructoins for 8K ROM.
Instruction cycle time : 0.85µs for 9.2M or 1.7µs for 4.6M or 2µs for 4MHz. Selected by mask option (high
speed clock).
122 µs or 244µs by frequency double mask option for 32768 Hz (low speed clock).
ROM capacity
: 4096 X 8 bits / 8192 X 8 bits ROM are choosed by mask option.
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.0 and SOUND is available by mask option. 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.
Built-in time base counter : 22 stages.
Subroutine nesting
: Up to 13 levels.
Interrupt
: External . . . . . 2 input interrupt sources.
Internal . . . . . . 2 Timer overflow interrupts, 1 time base interrupt.
1 high speed timer overflow interrupt.
LCD driver
: 32 X 4 dots, 1/4duty, 1/3duty, 1/2duty, static, 1/2 bias, 1/3 bias; 6 options selectable.
Power saving function : SLOW, IDLE, STOP operation mode.
Package type
: Chip form
61 pins.
APPLICATIONS
EM73461B is suitable for application in family applicance, consumer products, hand held games and the toy
controller.
* This specification are subject to be changed without notice.
12.26.2001
1
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
FUNCTION BLOCK DIAGRAM
RESET
Reset
Control
CLK
LXOUT LXIN
Clock
Generator
Clock
Generator
(slow)
Timing
Generator
Sleep Mode
Control
System Control
Data pointer
Time
Base
ROM
Timer/Counter
(TA,TB)
Stack pointer
ACC
Data Bus
Interrupt
Control
Instruction Decoder
Instruction Register
Stack
ALU
ROM
Flag
Z
C
S
PC
G
HR
LR
DP
SP
I/O Control
P0.0/WAKEUP0
P0.1/WAKEUP1
P0.2/WAKEUP2
P0.3/WAKEUP3
LCD
P4.0/SOUND
P4.1TRGH
P4.2
P4.3
P8.0(INT1)/WAKEUPA
P8.1(TRGB)/WAKEUPB
P8.2(INT0)/WAKEUPC
P8.3(TRGA)/WAKEUPD
SOUND
SEG0~SEG31
HTC
COM0~COM3
VA
VB
V1
V2
V3
PIN DESCRIPTIONS
Symbol
V DD
V SS
RESET
CLK
LXIN
LXOUT
P0(0..3)/WAKEUP0..3
P4.0/SOUND
Pin-type
Function
Power supply (+)
Power supply (-)
RESET-A
System reset input signal, low active
mask option :
none
pull-up
OSC-I/OSC-G RC clock source or capacitor connecting pin for high frequency oscillator
OSC-B/OSC-H1 Crystal/RC connecting pin for low speed clock source
OSC-B
Crystal connecting pin for low speed clock source
INPUT-K
4-bit input port with IDLE releasing function
mask option :
wakeup enable, negative edge release, pull-up
wakeup enable, negative edge release, none
wakeup enable, positive edge release, pull-down
wakeup enable, positive edge release, none
wakeup disable, pull-up
wakeup disable, pull-down
wakeup disable, none
I/O-R
1-bit bidirection I/O port or inverse sound effect output
mask option :
SOUND enable, high current push-pull
SOUND disable, open-drain
* This specification are subject to be changed without notice.
12.26.2001
2
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
PIN DESCRIPTIONS
Symbol
Pin-type
P4.1/TRGH
I/O-T
P4(2,3)
I/O-R
P8.0(INT1)/WAKEUPA, I/O-S
P8.2(INT0)/WAKEUPC
P8.1(TRGB)/WAKEUPB I/O-S
P8.3(TRGA)/WAKEUPD
SOUND
VA,VB, V1, V2, V3
COM0~COM3
SEG0~SEG31
TEST
Function
SOUND disable, low current push-pull
SOUND disable, normal current push-pull
SOUND disable, high current push-pull
1-bit bidirection I/O port with HTC external input
mask option :
NMOS open-drain
PMOS open-drain
low current push-pull
normal current push-pull
high current push-pull
2-bit bidirection I/O port with high current source
mask option :
NMOS open-drain
PMOS open-drain
low current push-pull
normal current push-pull
high current push-pull
2-bit bidirection I/O port with external interrupt source input and IDLE
releasing function
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
2-bit bidirection I/O port with time/counter A,B external input and IDLE
releasing function
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
Melody output
Connect the capacitors for LCD bias voltage
LCD common output pins
LCD segment output pins
Tie Vss as package type, no connecting as COB type.
FUNCTION DESCRIPTIONS
PROGRAM ROM (4K X 8 bits)
4 K x 8 bits program ROM contains user's program and some fixed data.
The basic structure of program ROM can be divided into 5 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.
4. Address 000h - 7FFh : LCALL subroutine entry address.
5. Address 000h - FFFh : Except used as above function, the other region can be used as user's program region.
* This specification are subject to be changed without notice.
12.26.2001
3
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
address
000h
002h
004h
006h
008h
00Ah
00Ch
00Eh
086h
..
.
4096 x 8 bits
Reset start address
INT0; External interrupt service routine entry address
HTCI; High speed timer interrupt service entry address
TRGA; Timer/counterA interrupt service routine entry address
TRGB; Timer/counter B interrupt service routine entry address
TBI; Time base interrupt service routine entry address
INT1; External interrupt service routine entry address
SCALL, subroutine call entry address
..
.
FFFh
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 by table-look-up instruction.
Table-look-up instruction :
Table -look-up instruction is depended on the Data Pointer (DP) to indicate to ROM address, then to get the
ROM code data.
LDAX
LDAXI
Acc ← ROM[DP] L
Acc ← ROM[DP] H,DP+1
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 777h by table-look-up instruction.
LDIA #07h;
STADPL
STADPM
STADPH
:
LDL #00h;
LDH #03h;
LDAX
STAMI
LDAXI
STAM
;
ORG 777h
DATA 56h;
:
; DP3-0 ← 07h
; DP5-4 ← 07h
; DP8-6 ← 07h, Load DP=777h
; ACC ← 6h
; RAM[30] ← 6h
; ACC ← 5h
; RAM[31] ← 5h
* This specification are subject to be changed without notice.
12.26.2001
4
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PROGRAM ROM (8K X 8 bits)
inary
Prelim
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 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.
4. Address 0000h - 07FFh : LCALL subroutine entry address.
5. Address 0000h - 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.
address
000h
002h
004h
006h
008h
00Ah
00Ch
00Eh
086h
800h
:
FFFh
1FFFh
8192 x 8 bits
Reset start address
INT0; External interrupt service routine entry address
HTCI; High speed timer interrupt service entry address
TRGA; Timer/counterA interrupt service routine entry address
TRGB; Timer/counter B interrupt service routine entry address
TBI; Time base interrupt service routine entry address
INT1; External interrupt service routine entry address
SCALL, subroutine call entry address
1000h
:
Bank 1
LCALL entry address
fixed data area
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 by table-look-up instruction.
Please note that fixed data only can be stored in 8K ROM Bank 1.
The program counter is a 13-bit binary counter. The PC can defined 8K ROM.
* This specification are subject to be changed without notice.
12.26.2001
5
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
Table-look-up instruction :
Table -look-up instruction is depended on the Data Pointer (DP) to indicate to ROM address, then to get the
ROM code data.
LDAX
LDAXI
Acc ← ROM[DP] L
Acc ← ROM[DP] H,DP+1
DP is a 13-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 for 8K ROM.
LDIA #07h;
STADPL
STADPM
STADPH
:
LDL #00h;
LDH #03h;
LDAX
STAMI
LDAXI
STAM
;
BANK 1;
ORG1777h
DATA 56h;
:
; DP3-0 ← 07h
; DP5-4 ← 07h
; DP8-6 ← 07h, Load DP=1777h
; ACC ← 6h
; RAM[30] ← 6h
; ACC ← 5h
; RAM[31] ← 5h
DATA RAM ( 244-nibble )
There is total 244 - nibble data RAM from address 00 to F3h
Data RAM includes 3 parts: zero page region, stacks and data area.
Increment
Address
00h~0Fh
10h~1Fh
20h~2Fh
30h~3Fh
40h~4Fh
:
B0h ~ BFh
C0h ~ CFh
D0h ~ DFh
E0h ~ EFh
F0h ~ F3h
zero page
LCD display RAM
level 0
level 4
level 8
level C
level 1
level 5
level 9
level 2
level 6
level A
* This specification are subject to be changed without notice.
level 3
level17
level B
12.26.2001
6
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
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.
STD #07h, 03h ; RAM[03] ← 07h
CLR 0Eh,2 ; RAM[0Eh]2 ← 0
STACK:
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.
For example: LDA x ; Acc← RAM[x]
STA x ; RAM[x] ← Acc
(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: STD #k,y ; RAM[y] ← #k
ADD #k,y; RAM[y] ← RAM[y] + #k
* This specification are subject to be changed without notice.
12.26.2001
7
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
PROGRAM COUNTER (4K/8K ROM)
Program counter ( PC ) is composed by a 12-bit counter for 4K ROM/13-bit counter for 8K ROM which indicates
the next executed address for the instruction of program ROM.
For a 4K - byte size ROM, PC can indicate address form 000h - FFFh, for BRANCH and CALL instrcutions,
PC is changed by instruction indicating.
For a 8K - byte size ROM, PC can indicate address form 0000h - 1FFFh, for BRANCH and CALL instrcutions,
PC is changed by instruction indicating.
(1) Branch instruction:
SBR a
Object code: 00aa aaaa
Condition: SF=1; PC ← PC 11-6.a ( branch condition satisified )
PC
Hold original PC value+1 a
a
a
a
a
a
(for 4K/8K ROM)
SF=0; PC ← PC +1( branch condition not satisified )
PC
Original PC value + 1
LBR a
Object code: 1100 aaaa aaaa aaaa
Condition: SF=1; PC ← a ( branch condition satisified )
PC
a
a
a
a
a
a
a
a
a
a
a
a
(for 4K/8K ROM)
SF=0 ; PC ← PC + 2 ( branch condition not satisified )
PC
Original PC value + 2
SLBR a
Object code: 0101 0101 1100 aaaa aaaa aaaa (a : 1000 ~ 1FFFh)
0101 0111 1100 aaaa aaaa aaaa (a : 0000 ~ 0FFFh)
Condition: SF=1; PC ← a ( branch condition satisified )
PC
a
a
a
a
a
a
a
a
a
a
a
a
(only for 8K ROM)
SF=0 ; PC ← PC + 2 ( branch condition not satisified )
PC
Original PC value + 2
* This specification are subject to be changed without notice.
12.26.2001
8
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
(2) Subroutine instruction:
SCALL a
Object code: 1110 nnnn
Condition : PC ← a ; a=8n+6 ; n=1..15 ; a=86h, n=0
PC 0
0
0
0
a
a
a
a
a
a
a
a
LCALL a
Object code: 0100 0 aaa aaaa aaaa
Condition: PC ← a
PC 0 a a a a a
a
a
a
a
a
a
RET
Object code: 0100 1111
Condition: PC ← STACK[SP]; SP + 1
PC
The return address stored in stack
(for 4K ROM)
PC
The return address stored in stack
(for 8K ROM)
RT I
Object code: 0100 1101
Condition : FLAG. PC ← STACK[SP]; EI ← 1; SP + 1
PC
The return address stored in stack
(for 4K ROM)
PC
The return address stored in stack
(for 8K ROM)
(3) Interrupt acceptance operation:
When an interrupt is accepted, the original PC is pushed into stack and interrupt vector will be loaded into
PC,The interrupt vectors are as following:
INT0 (External interrupt from P8.2)
PC 0
0
0
0
0
0
0
0
0
0
1
0
PC 0
0
0
0
0
0
0
0
0
0
0
1
(for 4K ROM)
0
(for 8K ROM)
TRGA (Timer A overflow interrupt)
PC 0
0
0
0
0
0
0
0
0
1
1
0
PC 0
0
0
0
0
0
0
0
0
0
1
1
* This specification are subject to be changed without notice.
(for 4K ROM)
0
(for 8K ROM)
12.26.2001
9
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
TRGB (Time B overflow interrupt)
PC 0
0
0
0
0
0
0
0
1
0
0
0
PC 0
0
0
0
0
0
0
0
0
1
0
0
(for 4K ROM)
0
(for 8K ROM)
TBI (Time base interrupt)
PC 0
0
0
0
0
0
0
0
1
0
1
0
PC 0
0
0
0
0
0
0
0
0
1
0
1
(for 4K ROM)
0
(for 8K ROM)
INT1 (External interrupt from P8.0)
PC 0
0
0
0
0
0
0
0
1
1
0
0
PC 0
0
0
0
0
0
0
0
0
1
1
0
(for 4K ROM)
0
(for 8K ROM)
(4) Reset operation:
PC 0
0
0
0
0
0
0
0
0
0
0
0
PC 0
0
0
0
0
0
0
0
0
0
0
0
(for 4K ROM)
0
(for 8K ROM)
(5) Other operations:
For 1-byte instruction execution: PC + 1
For 2-byte instruction execution: PC + 2
ACCUMULATOR
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.
FLAGS
There are four kinds of flag, CF ( Carry flag ), ZF ( Zero flag ), SF ( Status flag ) and GF ( General flag ),
these 4 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.
* This specification are subject to be changed without notice.
12.26.2001
10
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
(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.
@ (4) General Flag ( GF )
GF is a one bit general purpose register which can be set, clear, test by instruction SGF, CGF and TGS.
PROGRAM EXAMPLE:
Check following arithematic operation for CF, ZF, SF
@ : just for 4K ROM.
* This specification are subject to be changed without notice.
12.26.2001
11
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
CF
-
LDIA #00h;
LDIA #03h;
ADDA #05h;
ADDA #0Dh;
ADDA #0Eh;
ZF
1
0
0
0
0
SF
1
1
1
0
0
ALU
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 STRUCTURE
ALU supported user arithematic operation function, including : addition, subtraction and rotaion.
DATA BUS
ALU
ZF CF SF GF
ALU 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:
Operation
3+4=7
7+F=6
0+0=0
8+8=0
Carry
Zero
0
1
0
1
0
0
1
1
(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".
* This specification are subject to be changed without notice.
12.26.2001
12
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
EXAMPLE:
Operation
8-4=4
7-F= -8(1000)
9-9=0
Carry
1
0
1
Zero
0
0
1
(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.
MSB LSB
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.
MSB LSB
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 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 STRUCTURE
3 2 1 0
3 2 1 0
H REGISTER L REGISTER
HL REGISTER FUNCTION
* This specification are subject to be changed without notice.
12.26.2001
13
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
(1) For instruction : LDL #k, LDH #k, THA, THL, INCL, DECL, EXAL, EXAH, HL register used as a
temporary register.
PROGRAM EXAMPLE: Load immediate data "5h" into L register, "Dh" into H register.
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 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".
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 GENERATOR
The clock generator is supported by a single clock system, the clock source comes from crystal (resonator)
or RC oscillation is decided by mask option, the working frequency range is 480 K Hz to 4 MHz depending
on the working voltage.
CLOCK GENERATOR STRUCTURE
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.
12.26.2001
14
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
fc
High-frequency
generator
CLK
P14
Low-frequency
generator
LXOUT
System control
20PF
CLK
LXIN
LXIN
330KΩ
0.022uF
P19
P22
Mask option for choose Crystal or RC oscillator
CLK
P16
System clock
mode control
fs
LXIN
1.2MΩ
LXOUT
20PF
PLL connection
RC connection
Crystal connection
RC connection
SYSTEM 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. EM73461B has four operation modes (NORMAL, SLOW,IDLE and
STOP operation modes).
STOP
operation
mode
I/O wakeup
High osc : stopped
Low osc : stopped
Command
(P16)
Reset
Reset
Command
(P16)
Command
(P22)
Command
(P22)
Reset release
RESET
operation
High osc : oscillating
Low osc : oscillating
NORMAL
operation
mode
Reset
SLOW
operation
mode
High osc : stopped
Low osc : oscillating
Command
(P19)
Reset
I/O or internal timer wakeup
IDLE
(CPU
stops)
High osc : stopped
Low osc : oscillating
Operation Mode
NORMAL
SLOW
IDLE
STOP
Oscillator
High, Low frequency
Low frequency
Low frequency
None
System Clock
High frequency clock
Low frequency clock
CPU stops
CPU stops
* This specification are subject to be changed without notice.
Available function One instruction cycle
LCD, High speed timer
8/fc
LCD, High speed timer 4/fs or 8/fs by mask option
LCD
All disable
12.26.2001
15
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
NORMAL 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(fc) and low-frequency(fs) clocks oscillating). It can be changed to SLOW or STOP
operation mode by the command register (P22 or P16).
The instruction cycle is 8/fc in NORMAL operation mode.
LCD display and high speed timer/counter with melody output are available for the NORMAL operation
mode.
SLOW OPERATION MODE
The SLOW operation mode is a single clock system (low-frequency(fs) 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.
The instruction cycle is 4/fs or 8/fs by frequency double mask option in SLOW operation mode.
LCD display and high speed timer/counter with melody output are available for the SLOW operation mode.
P22
3
*
2
SOM
1
*
SOM
0
1
P14
3
*
0
*
Initial value : 0000
Select operation mode
NORMAL operation mode
SLOW operation mode
2
WKS
1
0
LFS CPUS
Initial value : *000
LFS
0
1
Low-frequency status
LXIN source is not stable
LXIN source is stable
WKS
0
1
Wakeup status
Wakeup not by internal timer
Wakeup by internal timer
CPUS
0
1
CPU status
NORMAL operation mode
SLOW operation mode
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 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.
12.26.2001
16
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
P19
3
2
1
IDME
IDME
0 1
* *
0
inary
Prelim
Initial value : 0000
SIDR
Enable IDLE mode
Enable IDLE mode
Reserved
SIDR
0 0
0 1
1 0
1 1
Select IDLE releasing condition
P0(0..3), P8(0..3) pin input
P0(0..3), P8(0..3) pin input and 1 sec signal
P0(0..3), P8(0..3) pin input and 0.5 sec signal
P0(0..3), P8(0..3) pin input and 15.625 ms signal
STOP OPERATION MODE
The STOP operation mode suspends system operation and holds the internal status immediately before the
suspension with low power consumption. This mode will be released by reset or I/O pins (P0(0..3)/
WAKEUP 0..3 or P8(0..3)/WAKEUP A..D).
LCD display and high speed timer/counter with melody output are disabled in the mode.
P16
3
2
SPME
1
0
SWWT
SPME
0 1
* *
Initial value : 0000
Enable STOP mode
Enable STOP mode
Reserved
SWWT
0 0
0 1
1 0
1 1
Set wake-up warm-up time
wait normal frequency ready (26/fc)
wait slow frequency ready (214/fs)
wait slow frequency ready (27/fs)
Reserved
TIME BASE INTERRUPT ( TBI )
The time base can be used to generate a fixed frequency interrupt. There are 8 kinds of frequencies can be
selected by setting P25.
P25
3
2
1
0
initial value : 0000
0
0
0
0
0
1
1
1
1
1
P25
0 x
1 0
1 0
1 1
1 1
1 0
1 0
1 1
1 1
0 x
x
0
1
0
1
0
1
0
1
x
NORMAL operation mode
Interrupt disable
Interrupt frequency LXIN / 23 Hz
Interrupt frequency LXIN / 24 Hz
Interrupt frequency LXIN / 25 Hz
Interrupt frequency LXIN / 214 Hz
Interrupt frequency LXIN / 21 Hz
Interrupt frequency LXIN / 26 Hz
Interrupt frequency LXIN / 28 Hz
Interrupt frequency LXIN / 210 Hz
Reserved
SLOW operation mode
Interrupt disable
Reserved
Reserved
Reserved
Interrupt frequency LXIN / 214 Hz
Reserved
Interrupt frequency LXIN / 26 Hz
Interrupt frequency LXIN / 28 Hz
Interrupt frequency LXIN / 210 Hz
Reserved
TIMER / COUNTER ( TIMERA, TIMERB )
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.
12.26.2001
17
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
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
TRGB request
TRGA request
DATA BUS
12 BIT COUNTER
12 BIT COUNTER
EVENT COUNTER CONTROL
P8.3/
TRGA
internal clock
EVENT COUNTER CONTROL
TIMER CONTROL
TIMER CONTROL
PULSE-WIDTH MEASUREMENT
CONTROL
PULSE-WIDTH MEASUREMENT
CONTROL
P28
IPSA
TMSA
P29
TMSB
P8.1/
TRGB
MUX
internal clock
high speed timer/counter
IPSB
TIMER/COUNTER CONTROL
P8.1/TRGB, P8.3/TRGA are the external timer inputs for timerB and timerA, they are used in event
counter and pulse-width measurement mode.
Timer/counter command port: P28 is the command port for timer/counterA and P29 is for the timer/
counterB.
Port 28
3
2
TMSA
1
0
IPSA
Initial state: 0000
Port 29
3
2
TMSB
1
0
TIMER/COUNTER MODE SELECTION
TMSA (B)
Function description
0 0
Stop
0 1
Event counter mode
1 0
Timer mode
1 1
Pulse width measurement mode
IPSB
Initial state: 0000
INTERNAL PULSE-RATE SELECTION
IPSA NORMAL mode SLOW mode
Reserved
0 0
LXIN/23 Hz
0 1
LXIN/27 Hz
LXIN/27 Hz
11
1 0
LXIN/2 Hz
LXIN/211 Hz
1 1
LXIN/215 Hz
LXIN/215 Hz
INTERNAL PULSE-RATE SELECTION
IPSB NORMAL mode SLOW mode
0 0
Depend on high speed timer/counter
0 1
LXIN/25 Hz
LXIN/25 Hz
9
1 0
LXIN/2 Hz
LXIN/29 Hz
1 1
LXIN/213 Hz
LXIN/213 Hz
* This specification are subject to be changed without notice.
12.26.2001
18
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
TIMER/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 n
n+1
n+2
n+3
n+4
n+5
n+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
TimerB (TimerA )value
n
n+1
n+2
n+3
n+4
n+5
n+6
n+7
PROGRAM EXAMPLE: To generate TRGA interrupt request after 60 ms with system clock LXlN=32KHz
LDIA #0100B;
EXAE; enable mask 2
EICIL 110111B; interrupt latch ←0, enable EI
LDIA #0AH;
STATAL;
LDIA #00H;
STATAM;
LDIA #0FH;
STATAH;
LDIA #1000B;
OUTA P28; enable timerA with internal pulse rate: LXIN/23 Hz
NOTE:
The preset value of timer/counter register is calculated as following procedure.
Internal pulse rate: LXIN/23 ; 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.
12.26.2001
19
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
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.
P8.1/TRGB(P8.3/TRGA)
Internal pulse
n
TimerB(TimerA) value
n+1
n+2
n+3
n+4
n+5
PROGRAM EXAMPLE: Enable timerA by pulse width measurement mode.
LDIA #1100b;
OUTA P28; Enable timerA with pulse width measurement mode.
HIGH SPEED TIMER/COUNTER
EM73461B has one 8-bit high speed timer/counter (HTC). It 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. The HTCI cannot be generated when the HTC is in the melody mode
or disabled.
Output data
¡ 2
FHTC
P4.0/SOUND
P31(3,2)
8-bit binary counter
mask option
SOUND
P31(1,0)
XIN
Overflow
HTCI interrupt
Timer/counter B
Reload
P11
P10
Input data
P4.1/TRGH
Data bus
P31 is the command register of the 8-bit high speed timer/counter.
P31
3
2
HTMS
HTMS
0
0
1
1
0
1
0
1
1
0
Initial value : 0000
HIPS
* : only for 9.2MHz
HIPS
Clock rate selection
NORMAL mode
SLOW mode
0
Stop
0 0
LXIN/2 Hz
LXIN/20 Hz
2
Auto load timer mode
0 1
LXIN/2 Hz
LXIN/22 Hz
4
5
Melody mode
1 0
fc/2 or fc/2 *
Reserved
Pulse width measurement mode 1 1
fc/26 or fc/28 *
Reserved
Mode selection
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.)
P11
3
2
1
0
Higher nibble register
P10
3
2
1
0
Lower nibble register
* This specification are subject to be changed without notice.
Initial value : 0000 0000 (HT)
12.26.2001
20
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
** FHTC=[(XIN/2X)/(100H-HT)]/2, HT=0~255
** Example : LXIN=32K Hz, HIPS=01, HT=11110000B=0F0H.
⇒FHTC=[(32K Hz/22)/(100H-0f0H)]/2=256 Hz.
LDIA
OUTA
LDIA
OUTA
LDIA
OUTA
#1111B
P11
#0000B
P10
#1001B
P31
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 and P11.
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.0/SOUND and SOUND pins will output the squre wave in the melody mode. When the CPU is not
in the melody mode, the P4.0/SOUND is high and SOUND is low.
The P4.1/RGH pin will be the input pin in the 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 FUNCTION
There are 6 interrupt sources, 2 external interrupt sources, 4 internal interrupt sources. Multiple
interrupts are admitted according the priority.
Type
External
Internal
Internal
Internal
Internal
External
Interrupt source
Priority Interrupt
Interrupt
Program ROM
Latch Enable condition entry address
Externalinterrupt(INT0)
High speed timer overflow interrupt (HTCI)
TimerA overflow interrupt (TRGA)
TimerB overflow interrupt (TRGB)
Time base interrupt(TBI)
Externalinterrupt(INT1)
1
2
3
4
5
6
IL5
IL4
IL3
IL2
IL1
IL0
EI=1
EI=1,MASK3=1
EI=1,MASK2=1
EI=1,MASK1=1
EI=1,MASK0=1
002H
004H
006H
008H
00AH
00CH
INTERRUPT STRUCTURE
MASK0 MASK1 MASK1 MASK2 MASK3
Reset by system reset and program
instruction
INT1
r0
TBI
r1
TRGB
r2
TRGA
r3
HTCI
r4
INT0
r5
IL0
IL1
IL2
IL3
IL4
IL5
Priority checker
Reset by system reset and program
instruction
Set by program instruction
EI
Interrupt request
* This specification are subject to be changed without notice.
Entry address generator
Interrupt entry address
12.26.2001
21
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
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
EI
: Except INT0, MASK register can promit or inhibit all interrupt sources.
: Enable interrupt Flip-Flop can promit or inhibit all interrupt sources, when interrupt 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 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.
PROGRAM EXAMPLE: To enable interrupt of "INT0, TRGA"
LDIA #1100B;
EXAE; set mask register "1100B"
EICIL 111111B ; enable interrupt F.F.
LCD DRIVER
EM73461B 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 DRIVER
The LCD driver control command register is P27. When LDC is 0, the LCD is disabled, 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.
Port27
2 1
0
Initial value : 0000
LDC
LDC
0
1
DUTY
LCD display control
LCD display disable
LCD display enable
DUTY
Driving method select
0 0 0
1/4 duty (1/3 bias)
0 0 1
1/4 duty (1/2 bias)
0 1 0
1/3 duty (1/3 bias)
0 1 1
1/3 duty (1/2 bias)
1 0 0
1/2 duty (1/2 bias)
1 0 1
Static
1 1 *
Reserved
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.
12.26.2001
22
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
RAM
COM3
COM2
COM1
address
bit3
bit2
bit1
SEG0
20H
SEG1
21H
SEG2
22H
:
:
:
:
SEG30
3EH
SEG31
3FH
The relation between LCD display data and driving method
Driving method
bit3
bit2
bit1
bit0
1/4 duty
COM3
COM2
COM1
COM0
1/3 duty
COM2
COM1
COM0
1/2 duty
COM1
COM0
Static
COM0
LCD frame frequency : According to the drive method to set the frame frequency.
Duty
Frame frequency (Hz)
1/4 duty
64 x (4/4) = 64
1/3 duty
64 x (4/3) = 85
1/2 duty
64 x (4/2) = 128
Static
64
COM0
bit0
PROGRAM EXAMPLE :
LDIA
#0001B
; 1/4 duty, 1/2 bias
OUTA
P27
LDIA
#1001B
; enable LCD
OUTA
P27
LCD 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=3V
(1) 1/4 duty (1/3 bias)
VDD
V3
V2
VA
VB
(2 ) 1/3 duty (1/3 bias)
VDD
3V
V3
2V
1V
V1
V2
VA
VB
VSS
VDD
4.5V
V3
3V
1.5V
V1
VSS
V2
VA
VB
1V
V1
COM1
V3
V2
V1
Vss
V3
V2
V1
Vss
COM2
V3
V2
V1
Vss
V3
V2
V1
Vss
COM3
V3
V2
V1
Vss
SEG0
V3
V2
V1
Vss
V3
V2
V1
Vss
SEG0-COM0
ON
V3
V2
V1
Vss
-V1
-V2
-V3
V3
V2
V1
Vss
-V1
-V2
-V3
SEG0-COM1
OFF
V3
V2
V1
Vss
-V1
-V2
-V3
V3
V2
V1
Vss
-V1
-V2
-V3
* This specification are subject to be changed without notice.
Frame
V2
VA
VB
VSS
V3
V2
V1
Vss
Frame
V3
2V
V3
V2
V1
Vss
COM0
VDD
3V
4.5V
3V
1.5V
V1
VSS
12.26.2001
23
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
(3) 1/4 duty (1/2 bias)
V3
V2
VA
VB
(5) 1/2 duty (1/2 bias)
(4) 1/3 duty (1/2 bias)
VDD
VDD
3V
1.5V
V1
VB
VSS
V3
1.5V
V2
VA
VDD
VDD
3V
V3
(6) static
V2
V1
VA
VSS
VB
3V
V3
1.5V
V2
VA
V1
COM0
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
COM1
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
COM2
V3
V1
Vss
V3
V1
Vss
COM3
V3
V1
Vss
SEG0
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
V3
V1
Vss
-V1
-V3
V3
V1
Vss
-V1
-V3
V3
V1
Vss
-V1
-V3
V3
V1
Vss
-V1
-V3
V3
V1
Vss
-V1
-V3
V3
V1
Vss
-V1
-V3
SEG0-COM1
OFF
Frame
Frame
VSS
V3
Vss
ON
SEG0-COM0
ON
V1
VB
VSS
3V
1.5V
OFF
V3
V1
Vss
V3
Vss
-V3
V3
Vss
-V3
Frame
Frame
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 ).
WDT counter
LXIN/213
0
1
2
3
RESET pin
counter clear request
mask option
WDT control
P21
WDT
command port
* This specification are subject to be changed without notice.
12.26.2001
24
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
P21 is the control port of watch-dog-timer, and the WDT time up signal is connected to RESET.
Port 21
3
CWC
2
*
1
*
0
Initial value :0000
WDT
CWC
0
1
Clear watchdog timer counter
Clear counter then return to 1
Nothing
WDT
0
1
Set watch-dog-timer detect time
3 x 213/LXIN = 3 x 213/32K Hz = 0.75 sec
7 x 213/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
:
:
RESETTING 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
Program counter
Status flag
Interrupt enable flip-flop ( EI )
MASK0 ,1, 2, 3
Interrupt latch ( IL )
P10, 11,14, 16, 19, 25, 27, 28, 29, 31
P4, 8, 23, 24
Both oscillator
Initial value
0000h
01h
00h
00h
00h
00h
0Fh
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 VSS and a diode to VDD.
RESET
* This specification are subject to be changed without notice.
12.26.2001
25
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
EM73461B I/O PORT DESCRIPTION :
Port
0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
E
E
E
I
Input function
Input port , wakeup function
---Input port
---Input port, wakeup function,
-----CPU status
--
Output function
E
E
I
I
I
I
I
I
I
I
I
I
I
---Output port, P4.0/SOUND
---Output port
-High speed timer/counter
High speed timer/counter
--Clear P14.0 to 0
-STOP mode control register
--IDLE mode control register
-WDT control register
Slow mode control register
--Timebase control register
-LCD control register
Timer/counter A control register
Timer/counter B control register
-HTC control register
* This specification are subject to be changed without notice.
Note
low nibble
high nibble
12.26.2001
26
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
ABSOLUTE MAXIMUM RATINGS
Items
Sym.
Supply Voltage
Input Voltage
Output Voltage
Power Dissipation
Operating Temperature
Storage Temperature
Ratings
V DD
V IN
VO
PD
T OPR
TSTG
Conditions
-0.5V to 6V
-0.5V to VDD+0.5V
-0.5V to VDD+0.5V
300mW
0oC to 50oC
-55oC to 125oC
TOPR=50 oC
RECOMMANDED OPERATING CONDITIONS
Items
Sym.
Supply Voltage
Input Voltage
Operating Frequency
V DD
V IH
V IL
FC
Fs
Ratings
Condition
2.4V to 3.6V
0.90xVDD to VDD
0V to 0.10xVDD
4MHz TO 9.2MHz
32KHz
CLK (RC osc, Cap)
LXIN, LXOUT
DC ELECTRICAL CHARACTERISTICS (VDD=3±0.3V, VSS=0V, TOPR=25oC)
Parameters
Supply current
Hysteresis voltage
Input current
Sym.
Min.
Typ.
Max. Unit
I DD
300
500
1200
µA
200
320
600
µA
4
7
15
µA
10
15
20
µA
2
6
-
5
10
0.1
10
15
1
V HYS+
V HYSI IH
I IL
Output voltage
Leakage current
V OH
V OL
I LO
-60
-100
-30
2.2
40
-40
-200
-50
2.4
60
1
±1
-500
-70
-
µA
µA
µA
V
V
µA
µA
µA
µA
µA
µA
V
2.0
2.4
-
V
-
-
0.3
1
V
µA
0.50VDD 0.65VDD
0.20VDD 0.30VDD
0.75VDD
0.40VDD
* This specification are subject to be changed without notice.
Conditions
VDD=3.3V, no load, NORMAL mode,
Fc=4.6MHz(PLL1), Fs=32KHz, No Load
VDD=3.3V, no load, NORMAL mode,
Fc=4MHz(RC), Fs=32KHz, No Load
VDD=3.3V,No Load,SLOW mode,
Fs=32KHz(X'tal)
VDD=3.3V,No Load,SLOW mode,
Fs=32KHz(RC)
VDD=3.3V, IDLE mode (X'tal)
VDD=3.3V, IDLE mode(RC)
VDD=3.3V, STOP mode
RESET, P0, P8
P0, Pull-down, VIH=VDD
P0, Pull-up, VIH=VSS
P0, None
RESET, VDD=3.3V,VIH=3.3/0V
Normal current Push-pull,VDD=3.3V,VIL=0.4V
Low current push-pull, VDD=3.3V, VIL=0.4V
High current push-pull, SOUND
VDD=2.7V, IOH=-2mA
Normal current push-pull,
VDD=2.7V, IOH=-40µA
VDD=2.7V,IOL=1mA
Open-drain, VDD=3.3V, VO=3.3V
12.26.2001
27
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
DC ELECTRICAL CHARACTERISTICS (VDD=3±0.3V, VSS=0V, TOPR=25oC)
Parameters
Input resistor
LCD bias voltage
(1/2 bias)
LCD bias voltage
(1/3 bias)
Frequency stability
Frequency variation
Sym.
R IN
V1
V2
V3
V1
V2
V3
Min.
Typ.
35
50
1
1
1
1
/2VDD-0.1
/2VDD-0.1
1
/3VDD-0.1
2
/3VDD-0.1
-
-
/2VDD
/2VDD
VDD
1
/3VDD
2
/3VDD
VDD
5
5
Max. Unit
70
KΩ
V
1
/2VDD+0.1 V
VDD+0.1
V
V
2
/3VDD+0.1 V
VDD+0.1
V
20
%
20
%
* This specification are subject to be changed without notice.
Conditions
RESET
I1=5µA
I2=5µA
I3=5µA
I1=5µA
I2=5µA
I3=5µA
Fc=4MHz,RC osc,[F(3V)-F(2.4V)]/F(3V)
Fc=4MHz, VDD=3V,RC osc,
[F(typical)-F(worse case)]/F(typical)
12.26.2001
28
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
APPLICATION CIRCUIT
VDD
VDD
0.1u F
3V
V DD
P 0 .0
SEG 0 ~ SEG 31
P 0 .1
COM 0 ~ COM 3
LCD
PANNEL
P 0 .2
V LCD =
VLCD = VDD
3
V DD
2
VDD
SOUND
V DD
V3
V2
V1
SOUND
V2
V3
V1
0.1uF
0.1uF
0.1uF
0.1uF
VA
0.1u F
Low frequency use x 'tal
VB
LXOUT
20 pF
32.768 KHz
RESET
RESET
Low frequency use RC
LXIN
1.2 MΩ
20 pF
LXIN
0.1u F
High frequency use PLL
High frequency use RC
330 K Ω
0.022 u F
VSS
CLK
CLK
EM73461B
* This specification are subject to be changed without notice.
12.26.2001
29
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
RESET PIN TYPE
TYPE RESET-A
RESET
mask option
OSCILLATION PIN TYPE
TYPE OSC-B
20P
TYPE OSC-H1
LXIN
LXIN
Crystal
Osc.
20P
RC Osc.
1.2 MΩ
LXOUT
TYPE OSC-I
CLK
TYPE OCS_G
CLK
RC Osc.
Internal Osc.
0.022uF
330KΩ
INPUT PIN TYPE
TYPE INPUT-K
positive
edge
input data detector
WAKEUP
mask option
: mask option
negative
edge
detector
I/O PIN TYPE
TYPE I/O-N
TYPE I/O-Q
: mask option
* This specification are subject to be changed without notice.
: mask option
12.26.2001
30
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
TYPE I/O-R
TYPE I/O-S
path B
Input
data
path A
path B
SEL
path A
Output
data
latch
TYPE I/O-Q
Output
data
Special function
output
: mask option
TYPE I/O-N
Special function
control input
Input
data
Output
data
latch
Output
data
WAKEUP function
mask option
TYPE I/O-T
path B
Input
data
path A
TYPE I/O-Q
: mask option
Path A :
Path B :
Output
data
latch
Output
data
Special function
output
For set and clear bit of port instructions, data goes through path A from output data latch to CPU.
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.
12.26.2001
31
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
SEG10
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
SEG1
SEG0
COM3
COM2
PAD DIAGRAM
SEG2
inary
m
i
l
e
r
P
ELAN
61 60 59 58 57 56 55 54 53 52 51 50 49
COM1
1
COM0
2
VB
3
VA
4
V3
5
V2
48
SEG11
47
SEG12
46
SEG13
45
SEG14
44
SEG15
6
43
SEG16
V1
7
42
SEG17
VSS
8
41
SEG18
CLK
9
40
SEG19
LXOUT
10
39
SEG20
LXIN
11
38
SEG21
37
SEG22
VDD
12
36
SEG23
P4.3
13
35
SEG24
P4.2
14
34
SEG25
P4.1
15
33
SEG26
P4.0
16
32
SEG27
SOUND
17
31
SEG28
(0,0)
EM73461B
SEG29
SEG30
SEG31
P0.0
P0.1
P0.2
P0.3
TEST
RESET
P8.0
P8.1
P8.2
P8.3
18 19 20 21 22 23 24 25 26 27 28 29 30
Unit : µm
Chip Size : 1660 x 2630 µm
Note : For PCB layout, IC substrate must be floated or connected to VSS.
* This specification are subject to be changed without notice.
12.26.2001
32
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
Pad No.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Symbol
COM1
COM0
VB
VA
V3
V2
V1
VSS
CLK
LXOUT
LXIN
VDD
P4.3
P4.2
P4.1
P4.0
SOUND
P8.3
P8.2
P8.1
P8.0
RESET
TEST
P0.3
P0.2
P0.1
P0.0
SEG31
SEG30
SEG29
SEG28
SEG27
SEG26
SEG25
SEG24
SEG23
SEG22
SEG21
SEG20
SEG19
X
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-672.7
-665.9
-555.4
-445.0
-334.5
-224.0
-113.6
-3.1
110.9
221.3
335.3
451.6
562.1
672.6
673.5
673.5
673.5
673.5
673.5
673.5
673.5
673.5
673.5
673.5
* This specification are subject to be changed without notice.
Y
948.9
838.5
728.0
617.6
499.8
377.6
267.1
153.5
14.1
-96.3
-206.8
-329.0
-451.3
-566.3
-676.8
-791.8
-906.8
-1157.7
-1157.7
-1157.7
-1157.7
-1157.7
-1157.7
-1157.7
-1157.7
-1157.7
-1157.7
-1157.7
-1157.7
-1157.7
-928.9
-818.4
-708.0
-597.5
-487.0
-376.6
-266.1
-155.7
-45.2
65.3
12.26.2001
33
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
Pad No.
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Symbol
SEG18
SEG17
SEG16
SEG15
SEG14
SEG13
SEG12
SEG11
SEG10
SEG9
SEG8
SEG7
SEG6
SEG5
SEG4
SEG3
SEG2
SEG1
SEG0
COM3
COM2
X
673.5
673.5
673.5
673.5
673.5
673.5
673.5
673.5
659.6
549.2
438.7
328.3
217.8
107.3
-3.1
-113.6
-224.0
-334.5
-445.0
-555.4
-665.9
* This specification are subject to be changed without notice.
Y
175.7
286.2
396.6
507.1
617.6
728.0
838.5
948.9
1159.9
1159.9
1159.9
1159.9
1159.9
1159.9
1159.9
1159.9
1159.9
1159.9
1159.9
1159.9
1159.9
12.26.2001
34
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
INSTRUCTION TABLE
(1) Data Transfer
Mnemonic
LDA
x
LDAM
LDAX
LDAXI
LDH
#k
LDHL x
LDIA #k
LDL
#k
STA
x
STAM
STAMD
STAMI
STD
#k,y
STDMI #k
THA
TLA
Object code (binary)
0110 1010 xxxx xxxx
0101 1010
0110 0101
0110 0111
1001 kkkk
0100 1110 xxxx xx00
1101 kkkk
1000 kkkk
0110 1001 xxxx xxxx
0101 1001
0111 1101
0111 1111
0100 1000 kkkk yyyy
1010 kkkk
0111 0110
0111 0100
Operation description
Acc←RAM[x]
Acc ←RAM[HL]
Acc←ROM[DP] L
Acc←ROM[DP] H,DP+1
HR←k
LR←RAM[x],HR←RAM[x+1]
Acc←k
LR←k
RAM[x]←Acc
RAM[HL]←Acc
RAM[HL]←Acc, LR-1
RAM[HL]←Acc, LR+1
RAM[y]←k
RAM[HL]←k, LR+1
Acc←HR
Acc←LR
Byte
2
1
1
1
1
2
1
1
2
1
1
1
2
1
1
1
Cycle
2
1
2
2
1
2
1
1
2
1
1
1
2
1
1
1
C
-
Flag
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
S
1
1
1
1
1
1
1
1
1
1
C
C'
1
C'
1
1
(2) Rotate
Mnemonic
RLCA
RRCA
Object code (binary)
0101 0000
0101 0001
Operation description
←CF←Acc←
→CF→Acc→
Byte
1
1
Cycle
1
1
Flag
C
Z
C
Z
C
Z
S
C'
C'
Flag
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
S
C'
C'
C'
C'
C'
C'
C'
C
C
C
C'
(3)
3) Arithmetic operation
Mnemonic
ADCAM
ADD #k,y
ADDA #k
ADDAM
ADDH #k
ADDL #k
ADDM #k
DECA
DECL
DECM
INCA
Object code (binary)
0111
0100
0110
0111
0110
0110
0110
0101
0111
0101
0101
0000
1001 kkkk yyyy
1110 0101 kkkk
0001
1110 1001 kkkk
1110 0001 kkkk
1110 1101 kkkk
1100
1100
1101
1110
Operation description
Acc←Acc + RAM[HL] + CF
RAM[y]←RAM[y] +k
Acc←Acc+k
Acc←Acc + RAM[HL]
HR←HR+k
LR←LR+k
RAM[HL]←RAM[HL] +k
Acc←Acc-1
LR←LR-1
RAM[HL]←RAM[HL] -1
Acc←Acc + 1
* This specification are subject to be changed without notice.
Byte
1
2
2
1
2
2
2
1
1
1
1
Cycle
1
2
2
1
2
2
2
1
1
1
1
C
C
-
12.26.2001
35
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
INCL
INCM
SUBA #k
SBCAM
SUBM #k
0111 1110
0101 1111
0110 1110 0111 kkkk
0111 0010
0110 1110 1111 kkkk
LR←LR + 1
RAM[HL]←RAM[HL]+1
Acc←k-Acc
Acc←RAM[HLl - Acc - CF'
RAM[HL]←k - RAM[HL]
1
1
2
1
2
Operation description
Byte
Acc←Acc&k
Acc←Acc & RAM[HL]
RAM[HL]←RAM[HL]&k
Acc←Acc k
Acc ←Acc RAM[HL]
RAM[HL]←RAM[HL] k
Acc←Acc^RAM[HL]
2
1
2
2
1
2
1
Operation description
Byte
1
1
2
1
2
C
-
Z
Z
Z
Z
Z
C'
C'
C
C
C
(4) Logical operation
Mnemonic
1110 0110 kkkk
1011
1110 1110 kkkk
1110 0100 kkkk
1000
1110 1100 kkkk
1001
--
0110
0111
0110
0110
0111
0110
0111
----
ANDA #k
ANDAM
ANDM #k
ORA #k
ORAM
ORM #k
XORAM
Object code (binary)
Cycle
2
1
2
2
1
2
1
Flag
C
Z
Z
Z
Z
Z
Z
Z
Z
S
Z'
Z'
Z'
Z'
Z'
Z'
Z'
C
Flag
Z
S
(5) Exchange
Mnemonic
EXA x
EXAH
EXAL
EXAM
EXHL x
Object code (binary)
0110 1000 xxxx xxxx
0110 0110
0110 0100
0101 1000
0100 1100 xxxx xx00
Cycle
Acc↔RAM[x]
Acc↔HR
Acc↔LR
Acc↔RAM[HL]
LR↔RAM[x],
HR↔RAM[x+1]
2
1
1
1
2
2
2
1
-
Z
Z
Z
Z
1
1
1
1
2
2
-
-
1
Operation description
Byte
Flag
C
Z
S
If SF=1 then PC←PC11-6.a5-0
elsenull
If SF= 1 then PC←a else null
If SF=1 then PC←a else null
1
1
-
-
1
2
3
2
3
-
-
1
1
(6) Branch
Mnemonic
SBR a
@@
LBR a
SLBR a
Object code (binary)
00aa aaaa
1100 aaaa aaaa aaaa
0101 0101 1100 aaaa
aaaa aaaa
(a : 1000-1FFFh)
0101 0111 1100 aaaa
aaaa aaaa
(a : 0000-0FFFh)
Cycle
@@ : just for 8K ROM
* This specification are subject to be changed without notice.
12.26.2001
36
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
(7) Compare
Mnemonic
CMP #k,y
CMPA x
CMPAM
CMPH #k
CMPIA #k
CMPL #k
Object code (binary)
0100 1011 kkkk yyyy
0110 1011 xxxx xxxx
0111 0011
0110 1110 1011 kkkk
1011 kkkk
0110 1110 0011 kkkk
Operation description
Byte
k-RAM[y]
RAM[x]-Acc
RAM[HL] - Acc
k - HR
k - Acc
k-LR
2
2
1
2
1
2
Operation description
Byte
Cycle
2
2
1
2
1
2
C
Flag
Z
S
C
C
C
C
-
Z
Z
Z
Z
Z
Z
Z'
Z'
Z'
C
Z'
C
C
-
Flag
Z
-
S
1
1
1
1
1
1
1
1
*
*
*
*
*
*
*
Flag
Z
-
S
-
(8) Bit manipulation
Mnemonic
CLM b
CLP
p,b
CLPL
CLR
y,b
SEM
b
SEP
p,b
SEPL
SET
y,b
TF
y,b
TFA
b
TFM
b
TFP
p,b
TFPL
TT
y,b
TTP
p,b
Object code (binary)
1111 00bb
0110 1101 11bb pppp
0110 0000
0110 1100 11bb yyyy
1111 01bb
0110 1101 01bb pppp
0110 0010
0110 1100 01bb yyyy
0110 1100 00bb yyyy
1111 10bb
1111 11bb
0110 1101 00bb pppp
0110 0001
0110 1100 10bb yyyy
0110 1101 10bb pppp
RAM[HL]b←0
PORT[p]b←0
PORT[LR3-2+4]LR1-0←0
RAM[y]b←0
RAM[HL]b←1
PORT[p]b←1
PORT[LR3-2+4]LRl-0←1
RAM[y]b←1
SF←RAM[y]b'
SF←Acc b'
SF←RAM[HL]b'
SF←PORT[p]b'
SF←PORT[LR3-2+4]LR1-0'
SF←RAM[y]b
SF←PORT[p]b
1
2
1
2
1
2
1
2
2
1
1
2
1
2
2
Operation description
Byte
Cycle
1
2
2
2
1
2
2
2
2
1
1
2
2
2
2
(9) Subroutine
Mnemonic
Object code (binary)
LCALL a
0100 0aaa aaaa aaaa
SCALL a
1110 nnnn
RET
0100 1111
STACK[SP]←PC,
SP←SP -1, PC←a
STACK[SP]←PC,
SP←SP - 1, PC←a,
Cycle
2
2
C
-
1
2
-
-
-
1
2
-
-
-
a = 8n +6 (n=1~15),0086h (n =0)
SP←SP + 1, PC←STACK[SP]
* This specification are subject to be changed without notice.
12.26.2001
37
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
(10) Input/output
Mnemonic
INA
INM
OUT
OUTA
OUTM
p
p
#k,p
p
p
Object code (binary)
0110 1111 0100 pppp
0110 1111 1100 pppp
0100 1010 kkkk pppp
0110 1111 000p pppp
0110 1111 100p pppp
Operation description
Byte
Acc←PORT[p]
RAM[HL]←PORT[p]
PORT[p]←k
PORT[p]←Acc
PORT[p]←RAM[HL]
2
2
2
2
2
Operation description
Byte
Cycle
2
2
2
2
2
C
-
Flag
Z
Z
-
S
Z'
Z'
1
1
1
C
0
1
-
Flag
Z
-
S
1
1
*
*
*
*
(11) Flag manipulation
Mnemonic
@ CGF
@ SGF
TFCFC
@ TGS
TTCFS
TZS
Object code (binary)
0101 0111
0101 0101
0101 0011
0101 0100
0101 0010
0101 1011
GF←0
GF←1
SF←CF', CF←0
SF←GF
SF←CF, CF←1
SF←ZF
1
1
1
1
1
1
Operation description
Byte
IL←IL & r
EIF←0,IL←IL&r
EIF←1,IL←IL&r
MASK↔Acc
SP←SP+1,FLAG.PC
←STACK[SP],EIF ←1
2
2
2
1
1
Operation description
Byte
Cycle
1
1
1
1
1
1
(12) Interrupt control
Mnemonic
CIL
r
DICIL r
EICIL r
EXAE
RTI
Object code (binary)
0110 0011 11rr rrrr
0110 0011 10rr rrrr
0110 0011 01rr rrrr
0111 0101
0100 1101
Cycle
2
2
2
1
2
Flag
C
Z
*
*
S
1
1
1
1
*
Flag
Z
-
S
-
(13) CPU control
Mnemonic
NOP
Object code (binary)
0101 0110
no operation
1
Cycle
1
C
-
@ : just for 4K ROM
* This specification are subject to be changed without notice.
12.26.2001
38
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
Prelim
(14) Timer/Counter & Data pointer & Stack pointer control
Mnemonic
LDADPL
LDADPM
LDADPH
LDASP
LDATAL
LDATAM
LDATAH
LDATBL
LDATBM
LDATBH
STADPL
STADPM
STADPH
STASP
STATAL
STATAM
STATAH
STATBL
STATBM
STATBH
Object code (binary)
0110 1010 1111 1100
0101 0110 1111 1101
0101 0110 1111 1110
0101 0110 1111 1111
0110 1010 1111 0100
0101 0110 1111 0101
0101 0110 1111 0110
0110 1010 1111 1000
0101 0110 1111 1001
0101 0110 1111 1010
0110 1001 1111 1100
0110 1001 1111 1101
0110 1001 1111 1110
0110 1001 1111 1111
0110 1001 1111 0100
0110 1001 1111 0101
0110 1001 1111 0110
0110 1001 1111 1000
0110 1001 1111 1001
0110 1001 1111 1010
Operation description
Byte
Acc←[DP] L
Acc←[DP] M
Acc←[DP] H
Acc←SP
Acc←[TA] L
Acc←[TA]M
Acc←[TA] H
Acc←[TB]L
Acc←[TB]M
Acc←[TB]H
[DP] L←Acc
[DP] M←Acc
[DP] H←Acc
SP←Acc
[TA] L←Acc
[TA] M←Acc
[TA] H←Acc
[ TB]L←Acc
[TB]M←Acc
[TB] H←Acc
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
* This specification are subject to be changed without notice.
Cycle
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
Flag
C
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
Z
-
S
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
12.26.2001
39
EM73461B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
inary
m
i
l
e
r
P
**** SYMBOL DESCRIPTION
Symbol
Description
Symbol
HR
PC
SP
A CC
CF
SF
EI
MASK
ΤΑ
RAM[HL]
ROM[DP] L
[DP] L
[DP] H
H register
Program counter
Stack pointer
Accumulator
Carry flag
Status flag
Enable interrupt register
Interrupt mask
Timer/counter A
Data memory (address : HL )
Low 4-bit of program memory
Low 4-bit of data pointer register
High 4-bit of data pointer register
LR
DP
STACK[SP]
FLAG
ZF
GF
IL
PORT[p]
ΤΒ
RAM[x]
ROM[DP]H
[DP] M
[TA]L([TB]L)
[TA]M([TB]M)
Middle 4-bit of timer/counter A
(timer/counter B) register
Transfer
Addition
Logic AND
Logic XOR
Concatenation
8-bit RAM address
4-bit or 5-bit port address
6-bit interrupt latch
Contents of bit assigned by bit
1 to 0 of LR
Bit 3 to 2 of LR
[TA]H([TB]H)
LR 1-0
LR3-2
↔
--
←
+
&
^
.
x
p
r
'
#k
y
b
PC 11-6
a 5-0
* This specification are subject to be changed without notice.
Description
L register
Data pointer
Stack specified by SP
All flags
Zero flag
General flag @ just for 4K ROM
Interrupt latch
Port ( address : p )
Timer/counter B
Data memory (address : x )
High 4-bit of program memory
Middle 4-bit of data pointer register
Low 4-bit of timer/counter A
(timer/counter B) register
High 4-bit of timer/counter A
(timer/counter B) register
Exchange
Substraction
Logic OR
Inverse operation
4-bit immediate data
4-bit zero-page address
Bit address
Bit 11 to 6 of program counter
Bit 5 to 0 of destination address for
branch instruction
12.26.2001
40
Similar pages