Hi,
This is the way time can be read "on the fly" from a serial GPS receiver module like this one
The PIC is waiting for the string $GPGGA, from the GPS module to arrive, then it fills an array with the 6 next incoming characters and displays them.Code:GPGGA_Time: SERIN2 GPSfrom,GPSbps,[WAIT("$GPGGA,"),STR GPS_D\6] LCDOUT $FE,2,GPS_D(0),GPS_D(1),":",GPS_D(2),GPS_D(3),":",GPS_D(4),GPS_D(5) GOTO MAIN:
Bookmarks