i am trying to display some gps data on an lcd screen. i have set up the screen to display the info i need, and i have got the info i want to display in each field, but when i start the system, i just get a two digit # displayed and not the info i want..


here is an example of the data string that i want to be able to display parts of....

eg1. $GPRMC,081836,A,3751.65,S,14507.36,E,000.0,360.0,1 30998,011.3,E*62
eg2. $GPRMC,225446,A,4916.45,N,12311.12,W,000.5,054.7,1 91194,020.3,E*68


225446 Time of fix 22:54:46 UTC
A Navigation receiver warning A = Valid position, V = Warning
4916.45,N Latitude 49 deg. 16.45 min. North
12311.12,W Longitude 123 deg. 11.12 min. West
000.5 Speed over ground, Knots
054.7 Course Made Good, degrees true
191194 UTC Date of fix, 19 November 1994
020.3,E Magnetic variation, 20.3 deg. East
*68 mandatory checksum

and here is the code i am using for my display.


@ DEVICE HS_OSC
DEFINE OSC 10
cmcon = 7
TRISA = %00000000



'variables
'-------------------------------------------------------------
lcd VAR PORTA.3
gps VAR PORTB.0
b0 VAR WORD
b1 VAR WORD
b2 VAR WORD
b3 VAR WORD
b4 VAR WORD
b5 VAR WORD
b6 VAR WORD
b7 VAR WORD
b8 VAR WORD
b9 VAR WORD
b10 VAR WORD
b11 VAR WORD
b12 VAR WORD

'setup serial lcd
'-------------------------------------------------------------

Pause 5000
SerOut2 lcd, 32,[254,"X"] 'clear screen
Pause 100
SerOut2 lcd, 32,[254,"X"] 'clear screen again
SerOut2 lcd, 32,[254,"P",100] 'change resolution
Pause 100
SerOut2 lcd, 32,[254,"G",1,1] 'set home point
SerOut2 lcd, 32,["WAYPOINT-"]
SerOut2 lcd, 32,[254,"G",1,2] 'set home ON 2nd line
SerOut2 lcd, 32,["N "]
SerOut2 lcd, 32,[254,"G",11,2] 'set home on 2rd line
SerOut2 lcd, 32,["W "]
SerOut2 lcd, 32,[254,"G",1,3] 'set home on 3th line
SerOut2 lcd, 32,["Speed- "]
SerOut2 lcd, 32,[254,"G",11,3] 'set home on 3th line
SerOut2 lcd, 32,["Alt- "]
SerOut2 lcd, 32,[254,"G",1,4] 'set home on 4th line
SerOut2 lcd, 32,["Dist- "]
SerOut2 lcd, 32,[254,"G",11,4] 'set home on 4th line
SerOut2 lcd, 32,["Sat- "]



'main program
'-------------------------------------------------------------

start:
SerIn2 gps, 24764, [WAIT("$GPRMC"),b0,b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b 11]

SerOut2 lcd, 32,[254,"G",2,2]
SerOut2 lcd, 32,[#b3," "]

SerOut2 lcd, 32,[254,"G",12,2]
SerOut2 lcd, 32,[#b5," "]

SerOut2 lcd, 32,[254,"G",8,3]
SerOut2 lcd, 32,[#b7," "]


Pause 2000


GoTo start
End


thanks