EM73P362
4-BIT MICRO-CONTROLLER FOR LCD PRODUCT
PROGRAM EXAMPLE :
LDIA
OUTA
LDIA
OUTA
OUTA
LDIA
OUTA
:
#0FH
P5
#00H
P3
P18
#0101B
P17
;enable melody mode
Auto load timer mode
In this mode, there are four different internal pulse rates can be selected by P17. The HTC loads the
initial values by the counter registers (P3, P5) and increases at the rising edges of internal pulse generated
by the time base. The value of TCB increases one when the high speed counter overflows and generates
an overflow interrupt (TRGB) when the TCB overflows.
PROGRAM EXAMPLE :
LDIA
STATBL
STATBM
STATBH
OUTA
OUTA
OUTA
LDIA
OUTA
:
#00H
; initial TCB & HTC register
P5
P3
P18
#1011B
P17
; auto load timer mode, internal pulse rate : XIN/26
LDIA
OUTA
INA
#00H
P17
P3
; disable timer mode
; store the counter value to RAM[00] - RAM[04]
STA
INA
00H
P5
STA
01H
LDATBL
STA
LDATBM
STA
LDATBH
STA
02H
03H
04H
* This specification are subject to be changed without notice.
26
11.1.2001