English
Language : 

EM73A89B Datasheet, PDF (9/58 Pages) ELAN Microelectronics Corp – 4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
EM73A89B
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
Preliminary
PROGRAM EXAMPLE: Load the data of RAM address "143h" to RAM address "032h".
OUT #0001B,P9
; RAM bank1
LDL #3h
; LR← 3
LDH #4h
; HR← 4
LDAM
; Acc← RAM[134h]
OUT #0000B,P9
; RAM bank0
LDL #2h
; LR← 2
LDH #3h
; HR← 3
STAM
; RAM[023h]← Acc
(2) Direct addressing mode:
The address in the bank is directly specified by 8 bits code of the second byte in the instruction field.
instruction field
xxxx xxxx
P9(1,0)
RAM address
xxxx xxxx
PROGRAM EXAMPLE: Load the data of RAM address "143h" to RAM address "023h".
OUT #0001B,P9
LDA 43h
; Acc← RAM[143h]
OUT #0000B,P9
STA 23h
; RAM[023h]← Acc
(3) Zero-page addressing mode:
The zero-page is in the bank 0 (address 000h~00Fh). The address is the lower 4 bits code of the second byte
in the instruction field.
instruction field
yyyy
RAM address 00 0000 yyyy
PROGRAM EXAMPLE: Write immediate "0Fh" to RAM address "005h".
STD #0Fh, 05h
; RAM[05h]← 0Fh
* This specification are subject to be changed without notice.
8.16.2001 9