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
Summary of Contents for HT-IDE
Page 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Page 12: ...HT IDE User s Guide 2 ...
Page 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Page 24: ...HT IDE User s Guide 14 ...
Page 70: ...HT IDE User s Guide 60 ...
Page 76: ...HT IDE User s Guide 66 ...
Page 92: ...HT IDE User s Guide 82 ...
Page 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Page 94: ...HT IDE User s Guide 84 ...
Page 148: ...HT IDE User s Guide 138 ...
Page 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Page 154: ...HT IDE User s Guide 144 ...
Page 192: ...HT IDE User s Guide 182 ...
Page 194: ...HT IDE User s Guide 184 ...
Page 218: ...HT IDE User s Guide 208 ...
Page 235: ...P a r t V Appendix Part V Appendix 225 ...
Page 236: ...HT IDE User s Guide 226 ...
Page 250: ...HT IDE User s Guide 240 ...