lcd1602液晶显示程序
lcd1602是字符型液晶屏,可以显示2行,可以显示16个字符。这款产品市场上大多数都是用的SPLC780D的芯片,和KS0066兼容。拿我们CYW-B1602A来看,下面是编程资料:
RS EQU P3.3
RW EQU P3.1
E EQU P3.0
ORG 0000H
LJMP MAIN
ORG 0200H
mesg_num: DB 20H,21H,22H,23H,24H,25H,26H,27H,28H,29H,2AH,2BH,2CH,2DH,2EH,2FH,30H,31H,32H,33H