BSF STATUS,RP0 ;定义RA口,RC口全部为输出
MOVLW 07H
MOVWF ADCON1 ;设置RA口全部为普通数字IO口
MOVLW 00H
MOVWF TRISA
MOVWF TRISC
BCF STATUS,RP0
CALL DELAY ;调用廷时,刚上电LCD复位不一定有PIC快
MOVLW 01H
MOVWF PORTC ;清屏
CALL ENABLE
MOVLW 38H
MOVWF PORTC ;8位2行5x7点阵
CALL ENABLE
MOVLW 0FH ;显示器开、光标开、闪烁开
MOVWF PORTC
CALL ENABLE
MOVLW 06H ;文字不动,光标自动右移
MOVWF PORTC
CALL ENABLE
MOVLW 80H
MOVWF PORTC ;显示位置
CALL ENABLE
CALL WRITE1 ;调用送第一行数子程序“WWW.myeducs.Cn"
MOVLW 0C0H
MOVWF PORTC &nbs