Program
;==========
;= LCM.inc =
;==========
;this header file depends on what type of uC is used
ifndef HEADER_HT48C30
#define HEADER_HT48C30
#include ht48c30.inc
endif
;--------------------------------------------------------------
;for
DV-16100NRB
LCM_CLS
EQU 01H
CURSOR_HOME
EQU 02H
CURSOR_SR
EQU 14H
CURSOR_SL
EQU 10H
INCDD_CG_SHF_C
EQU 06H
TURN_ON_DISP
EQU 0FH
LCD_ON_CSR_OFF
EQU 0CH
;--------------------------------------------------------------
LCM_DATA
EQU pb
;define port B equal LCM data port
LCM_DATA_CTRL
EQU pbc
;
LCM_CTRL
EQU pc
;define port C eaual LCM control port
LCM_CTRL_CTRL
EQU pcc
;
;--------------------------------------------------------------
;LCM Display Commands and control Signal name.
E
EQU 0
;signal pin number
RW
EQU 1
;
RS
EQU 2
;
;===========
;= main.asm =
;===========
#define HEADER_HT48C30
#include ht48c30.inc
#include lcm.inc
;--------------------------------------------------------------
;#define four_bit
;define four_bit for 4-bit mode
extern busy_chk:near
;import external module
extern delay:near
;
extern write_char:near
;
extern snd_cmd:near
;
;--------------------------------------------------------------
data .section ’data’
;== data section ==
counter0
db ?
counter1
db ?
msg
db ?
tmp
db ?
;--------------------------------------------------------------
code .section at 0 ’code’ ;== program section ==
org
00H
;
jmp
start
;
Chapter 15 Input/Output Applications
197
Содержание 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 ...