Quote Originally Posted by leinske
Hello evrybody, I am working on a project to read som GPS info from PC serial port and displaying the result on an LCD display.
Iwant to read the speed and course to display it on an LCD display the GPS output looks like
$GPRMC,192144.62,A,5041.6058,N,00412.6124,E,0.45,3 57.74,081205,,*0B

the part I want to read is 0.45 (speed) and 357.74 (course)

I think it will be possible with the command SERIN and I want to use a PIC16F628 the baut rate must be 4800
Can anywan help me i think that it can possible with the skip n characters ????
thanks for helping me
First of all, use a crystal or resonator. If you don't, you will waste time tweeking the oscillator, and have it malfunction if the temperature changes.
I'd use the hardware UART first, then serin2 if necessary. Every character needs to be counted. In other words, commas and spaces too. I don't have the PBP book of revelations with me, so I will get back to you, but do a search on GPS and the Basic stamp. I found exactly what you are looking for. If you don't find it,or no one else chimes in, I will post it later. Quite simply,

'wait' for "$GPMRC" then skip (nn),speed_var, skip(nn), vector_string / 6.

This is not correct, but the best my feeble mind can create without the book in front of me. The nn's represent the number of places to skip.

Hope this helps,
Ron