液晶LCD162通信子程序及用法

来源:本站
导读:目前正在解读《液晶LCD162通信子程序及用法》的相关信息,《液晶LCD162通信子程序及用法》是由用户自行发布的知识型内容!下面请观看由(电工技术网 - www.9ddd.net)用户发布《液晶LCD162通信子程序及用法》的详细说明。

;--------液晶LCD-162通信子程序及用法----------;----------------------------------------------DISPWLL        CLRF   RD        MOVLW  B'01000000'        MOVWF  TRISC        MOVLW  0FFH        MOVWF  TRISD        BCF    RC,RS3          BSF    RC,RW3        BSF    RC,E        MOVF   RD,W        MOVWF  BUFFER        BTFSC  BUFFER,7        GOTO   DISPWLL2        CLRWDT        BCF    RC,E        BCF    RC,RW3        BSF    RC,E        BCF    RC,RS3        BCF    RC,RW3        GOTO   DISPWDISPWHL        CLRF   RD        MOVLW  B'01000000'        MOVWF  TRISC        MOVLW  0FFH        MOVWF  TRISD        BCF    RC,RS3           BSF    RC,RW3        BSF    RC,E        MOVF   RD,W        MOVWF  BUFFER        BTFSC  BUFFER,7        GOTO   DISPWHL2        CLRWDT        BCF    RC,E        BCF    RC,RW3        BSF    RC,E        BCF    RC,RS3        BSF    RC,RS3        BCF    RC,RW3DISPW        MOVLW  0        MOVWF  TRISD        BCF    RC,RW3            BSF    RC,E        MOVF   DATA3,W        MOVWF  RD        BCF    RC,E        NOP        BSF    RC,RW3        BSF    RC,E        BCF    RC,E             RETLW  0;------------------------------;******************************;       实际用法;------------------------------;       芯片复位程序;------------------------------DISPSTART        MOVLW  B'00110000'        MOVWF  DATA3        CALL   DISPWLL        CALL   DELAY        MOVLW  B'00110000'        MOVWF  DATA3        CALL   DISPWLL        CALL   DELAY        MOVLW  B'00110000'        MOVWF  DATA3        CALL   DISPWLL               MOVLW  B'00111000'        MOVWF  DATA3        CALL   DISPWLL        MOVLW  B'00001000'        MOVWF  DATA3        CALL   DISPWLL        MOVLW  B'00000001'        MOVWF  DATA3        CALL   DISPWLL        MOVLW  B'00000111'        MOVWF  DATA3        CALL   DISPWLL;------------------        CALL   DISPS        MOVLW  B'00000001'        MOVWF  DATA3        CALL   DISPWLL        CALL   WELCOME;---------------------------- DISPLAY SATUP;       显示模式设置;----------------------------DISPS        MOVLW  B'00111000'        MOVWF  DATA3        CALL   DISPWLL                MOVLW  B'00001100'        MOVWF  DATA3        CALL   DISPWLL                MOVLW  B'00000110'        MOVWF  DATA3        CALL   DISPWLL        RETLW  0;---------------------------- ;       显示'WELCOME'程序;------------------------------WELCOME        MOVLW  D'0'          ; WELCOME TO USE        MOVWF  LBYTE        MOVLW  D'14'        MOVWF  COUNT9        MOVLW  0C3H        MOVWF  DATA3        CALL   DISPWLL        CALL   CABIAO        RETLW  0;------------------------CABIAO        BSF    STATUS,RP0        MOVLW  2FH        MOVWF  81H        BCF    STATUS,RP0        MOVF   LBYTE,W        CALL   TABLE0        MOVWF  DATA3        CLRWDT        CALL   DISPWHL        INCF   LBYTE,1        DECFSZ COUNT9,1        GOTO   CABIAO        RETLW  0;-------------------------;******************************        ORG    0100H;******************************TABLE0                               ADDWF  PCL,1        RETLW  57H       ;WELCOME  TO  USE            RETLW  45H        RETLW  4CH        RETLW  43H        RETLW  4FH        RETLW  4DH        RETLW  45H        RETLW  20H        RETLW  54H        RETLW  4FH        RETLW  20H        RETLW  55H        RETLW  53H        RETLW  45H              ;46;-----------------------------        END

提醒:《液晶LCD162通信子程序及用法》最后刷新时间 2024-03-14 01:07:46,本站为公益型个人网站,仅供个人学习和记录信息,不进行任何商业性质的盈利。如果内容、图片资源失效或内容涉及侵权,请反馈至,我们会及时处理。本站只保证内容的可读性,无法保证真实性,《液晶LCD162通信子程序及用法》该内容的真实性请自行鉴别。