set
LCM_CTRL.E
;
clr
LCM_CTRL.E
;
call
busy_chk
;check busy flag
mov
a,LCM_CLS
;clean display
call
snd_cmd
;
call
busy_chk
;check busy flag
mov
a,TURN_ON_DISP
;turn on display
call
snd_cmd
;
call
busy_chk
;check busy flag
mov
a,INCDD_CG_SHF_C
;auto increase mode
call
snd_cmd
;(cursor left and DD RAM 1)
;---------------------------------------------------------
;inc addr of DD ram & shift
;the cursor to the right at
;the time of write to DD/CG
;RAM.
;---------------------------------------------------------
call
busy_chk
;check busy flag
mov
a,LCM_CLS
;clear display
call
snd_cmd
;
call
busy_chk
;check busy flag
mov
a,CURSOR_HOME
;cursor home
call
snd_cmd
;
call
busy_chk
;check busy flag
clr
tblp
;load table pointer (=0)
;start show "HOLTEK 8 bit
µ
C"
agn:
tabrdl msg
;load message data
mov
a,msg
;
mov
tmp,a
;
mov
a,24h
;line end=24h
xorm
a,msg
;
sz
msg
;if line end?
jmp
agn1
;no. show next char
jmp
secn_line
;yes. show next line
agn1:
call
busy_chk
;check busy flag
mov
a,tmp
;
call
write_char
;write char to LCM
inc
tblp
;next char (tblp+1)
jmp
agn
;repeat from agn
secn_line:
inc
tblp
;next char (tblp+1)
call
busy_chk
;check busy flag
mov
a,0c0h
;move cursor to 2nd line
call
snd_cmd
;(1st line:00h~, 2nd line:40h~)
call
busy_chk
snd_line:
tabrdl msg
;load message data
Chapter 15 Input/Output Applications
199
Содержание HT-IDE
Страница 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Страница 12: ...HT IDE User s Guide 2 ...
Страница 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Страница 24: ...HT IDE User s Guide 14 ...
Страница 70: ...HT IDE User s Guide 60 ...
Страница 76: ...HT IDE User s Guide 66 ...
Страница 92: ...HT IDE User s Guide 82 ...
Страница 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Страница 94: ...HT IDE User s Guide 84 ...
Страница 148: ...HT IDE User s Guide 138 ...
Страница 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Страница 154: ...HT IDE User s Guide 144 ...
Страница 192: ...HT IDE User s Guide 182 ...
Страница 194: ...HT IDE User s Guide 184 ...
Страница 218: ...HT IDE User s Guide 208 ...
Страница 235: ...P a r t V Appendix Part V Appendix 225 ...
Страница 236: ...HT IDE User s Guide 226 ...
Страница 250: ...HT IDE User s Guide 240 ...