I want to change the hour time from a GPS module which is in separate characters into a number. For example 12 o'clock is an ascii character for '1' followed by an ascii character for '2'. I want to change the 2 characters and merge into 1 variable number '12' so I can simply then add or subtract to display different time zones.
main:
setfreq m16
serin c.4,T9600_16,("GGA"),b27,b0,b1,b2,b3,b4,b5
setfreq m4
serout c.1,N2400, (254,128,"UTC ",b0,b1,":",b2,b3,":",b4,b5," ")
goto main
main:
setfreq m16
serin c.4,T9600_16,("GGA"),b27,b0,b1,b2,b3,b4,b5
setfreq m4
serout c.1,N2400, (254,128,"UTC ",b0,b1,":",b2,b3,":",b4,b5," ")
goto main
Last edited: