G
Guest
Guest
누군가 내 코드에서 LCD는 프로그램에 대한 문제를 찾을 수 있습니까?
코드 :다음 웹 사이트에서 도움을 / /로 :
/ / http://www.8052.com/tutlcd.phtml
/ / 정의DEF DB4 0
DEF DB5 1
DEF DB6 2
DEF DB7 3
DEF 엉 4
DEF RS 5
DEF RW를 6/ /로드 0 축압기에를 LOAD 0
$ 대문
외침 $ INIT_LCD
외침 $ CLEAR_LCD
RAMWRT 3 DAT '최고'
외침 $ WRITE_TEXT
RAMWRT 3 DAT '이메일'
외침 $ WRITE_TEXT
RAMWRT 3 DAT '패'
외침 $ WRITE_TEXT
RAMWRT 3 DAT '패'
외침 $ WRITE_TEXT
RAMWRT 3 DAT 'O'대신
외침 $ WRITE_TEXT
RAMWRT 3 DAT '
외침 $ WRITE_TEXT
RAMWRT 3 DAT '승'
외침 $ WRITE_TEXT
RAMWRT 3 DAT 'O'대신
외침 $ WRITE_TEXT
RAMWRT 3 DAT '연구'
외침 $ WRITE_TEXT
RAMWRT 3 DAT '패'
외침 $ WRITE_TEXT
RAMWRT 3 DAT '패'
외침 $ WRITE_TEXT$ READ_2_NIBBLES
BITSET 엉
IOWRT ACC
IOREAD
RAMWRT 4
BITCLR 엉
IOWRT ACC
BITSET 엉
IOWRT ACC
IOREAD
BITCLR 7
BITCLR 6
BITCLR 5
BITCLR 4
RAMWRT 5
BITCLR 엉
IOWRT ACC
RAMREAD 4
SHLE
SHLE
SHLE
SHLE
RAMWRT 4
RAMREAD 4
ADD가 RAM의 5
RAMWRT 2
귀환$ WRITE_2_NIBBLES
RAMREAD 3
BITSET 엉
IOWRT ACC
BITCLR 엉
IOWRT ACC
RAMREAD 3
Rol
Rol
Rol
Rol
BITSET 엉
IOWRT ACCBITCLR 엉
IOWRT ACC
귀환$ WAIT_LCD
BITCLR RS
IOWRT ACC
BITSET RW를
외침 $ READ_2_NIBBLES
RAMREAD 2
BITTST 7
점프 IFNOT ZZERO $ WAIT_LCD
BITCLR RW를
IOWRT ACC
귀환$ INIT_LCD
BITCLR RS
IOWRT ACC
BITCLR RW를
IOWRT ACC
BITCLR 엉
IOWRT ACC
BITSET 엉
IOWRT ACC
0x20 또는
IOWRT ACC
/ / MOV 데이터, # 28h
BITCLR 엉
IOWRT ACC
외침 $ WAIT_LCD
RAMWRT 3 DAT 0x20
/ / MOV, # 28h
/ / 여기에 쓰는 메모리가 필요합니다!
외침 $ WRITE_2_NIBBLES
외침 $ WAIT_LCD
/ / MOV, # 0Eh
RAMWRT 3 DAT 0x0E
외침 $ WRITE_2_NIBBLES
외침 $ WAIT_LCD
/ / MOV, # 06h
RAMWRT 3 DAT 0x06
외침 $ WRITE_2_NIBBLES
외침 $ WAIT_LCD
귀환$ CLEAR_LCD
BITCLR RS
IOWRT ACC
/ / MOV, # 01h
외침 $ WRITE_2_NIBBLES
외침 $ WAIT_LCD
귀환$ WRITE_TEXT
BITSET RS
IOWRT ACC
외침 $ WRITE_2_NIBBLES
외침 $ WAIT_LCD
귀환
코드 :다음 웹 사이트에서 도움을 / /로 :
/ / http://www.8052.com/tutlcd.phtml
/ / 정의DEF DB4 0
DEF DB5 1
DEF DB6 2
DEF DB7 3
DEF 엉 4
DEF RS 5
DEF RW를 6/ /로드 0 축압기에를 LOAD 0
$ 대문
외침 $ INIT_LCD
외침 $ CLEAR_LCD
RAMWRT 3 DAT '최고'
외침 $ WRITE_TEXT
RAMWRT 3 DAT '이메일'
외침 $ WRITE_TEXT
RAMWRT 3 DAT '패'
외침 $ WRITE_TEXT
RAMWRT 3 DAT '패'
외침 $ WRITE_TEXT
RAMWRT 3 DAT 'O'대신
외침 $ WRITE_TEXT
RAMWRT 3 DAT '
외침 $ WRITE_TEXT
RAMWRT 3 DAT '승'
외침 $ WRITE_TEXT
RAMWRT 3 DAT 'O'대신
외침 $ WRITE_TEXT
RAMWRT 3 DAT '연구'
외침 $ WRITE_TEXT
RAMWRT 3 DAT '패'
외침 $ WRITE_TEXT
RAMWRT 3 DAT '패'
외침 $ WRITE_TEXT$ READ_2_NIBBLES
BITSET 엉
IOWRT ACC
IOREAD
RAMWRT 4
BITCLR 엉
IOWRT ACC
BITSET 엉
IOWRT ACC
IOREAD
BITCLR 7
BITCLR 6
BITCLR 5
BITCLR 4
RAMWRT 5
BITCLR 엉
IOWRT ACC
RAMREAD 4
SHLE
SHLE
SHLE
SHLE
RAMWRT 4
RAMREAD 4
ADD가 RAM의 5
RAMWRT 2
귀환$ WRITE_2_NIBBLES
RAMREAD 3
BITSET 엉
IOWRT ACC
BITCLR 엉
IOWRT ACC
RAMREAD 3
Rol
Rol
Rol
Rol
BITSET 엉
IOWRT ACCBITCLR 엉
IOWRT ACC
귀환$ WAIT_LCD
BITCLR RS
IOWRT ACC
BITSET RW를
외침 $ READ_2_NIBBLES
RAMREAD 2
BITTST 7
점프 IFNOT ZZERO $ WAIT_LCD
BITCLR RW를
IOWRT ACC
귀환$ INIT_LCD
BITCLR RS
IOWRT ACC
BITCLR RW를
IOWRT ACC
BITCLR 엉
IOWRT ACC
BITSET 엉
IOWRT ACC
0x20 또는
IOWRT ACC
/ / MOV 데이터, # 28h
BITCLR 엉
IOWRT ACC
외침 $ WAIT_LCD
RAMWRT 3 DAT 0x20
/ / MOV, # 28h
/ / 여기에 쓰는 메모리가 필요합니다!
외침 $ WRITE_2_NIBBLES
외침 $ WAIT_LCD
/ / MOV, # 0Eh
RAMWRT 3 DAT 0x0E
외침 $ WRITE_2_NIBBLES
외침 $ WAIT_LCD
/ / MOV, # 06h
RAMWRT 3 DAT 0x06
외침 $ WRITE_2_NIBBLES
외침 $ WAIT_LCD
귀환$ CLEAR_LCD
BITCLR RS
IOWRT ACC
/ / MOV, # 01h
외침 $ WRITE_2_NIBBLES
외침 $ WAIT_LCD
귀환$ WRITE_TEXT
BITSET RS
IOWRT ACC
외침 $ WRITE_2_NIBBLES
외침 $ WAIT_LCD
귀환