GPS串口数据接收程序实例
; TEMP1,0
BTFSS STATUS,Z
GOTO BREAK0
CALL PAND
MOVWF TEMP1
MOVLW 'G' ;detect G
SUBWF TEMP1,0
BTFSS STATUS,Z
GOTO BREAK0
CALL PAND
MOVWF TEMP1
MOVLW 'G' ;detect G
SUBWF TEMP1,0
BTFSS STATUS,Z
GOTO BREAK0
CALL PAND
MOVWF TEMP1
MOVLW 'A' ;detect A
SUBWF TEMP1,0
BTFSS STATUS,Z
GOTO BREAK0
CALL PAND ;跳过逗号
RETURN
;************接收函数******************
RECEIVE
CALL PAND ;开始时间数据接收
MOVWF T1
CALL PAND
MOVWF T2
CALL PAND
&nbs 《GPS串口数据接收程序实例(第5页)》
本文链接地址:http://www.oyaya.net/fanwen/view/174041.html
BTFSS STATUS,Z
GOTO BREAK0
CALL PAND
MOVWF TEMP1
MOVLW 'G' ;detect G
SUBWF TEMP1,0
BTFSS STATUS,Z
GOTO BREAK0
CALL PAND
MOVWF TEMP1
MOVLW 'G' ;detect G
SUBWF TEMP1,0
BTFSS STATUS,Z
GOTO BREAK0
CALL PAND
MOVWF TEMP1
MOVLW 'A' ;detect A
SUBWF TEMP1,0
BTFSS STATUS,Z
GOTO BREAK0
CALL PAND ;跳过逗号
RETURN
;************接收函数******************
RECEIVE
CALL PAND ;开始时间数据接收
MOVWF T1
CALL PAND
MOVWF T2
CALL PAND
&nbs 《GPS串口数据接收程序实例(第5页)》