|
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
|
▷ |