Hello David.
I am using your NMEA parse module , but i am trying to outputing the parsed data to the USART2 , i modified the code but nothing happend , could you please help me or tell me what i am doing wrong ???
// device and clock
Device = 18F8722 // PIC18F8722
Clock = 10 // clock frequency equal to 10Mhz
Config
OSC = HSPLL // clock by 4 = 40.000 Mhz
// import modules...
Include "NMEA.bas"
Include "Usart.bas"
Include "Usart2.bas"
Include "Convert.bas"
' local variables
Dim NMEAItem As TNMEA
Dim Field As String
' program start
USART.SetBaudrate(br4800)
USART2.SetBaudrate(br4800)
While True
If NMEA.GetItem(NMEAItem) And NMEAItem.Valid Then
NMEA.GetField(NMEAItem,0,Field)
If Field = "$GPRMC" Then
USART2.Write(Field)
NMEA.GetField(NMEAItem, 9, Field)
USART2.Write(" [Date ", Field, "]")
NMEA.GetField(NMEAItem, 1, Field)
USART2.Write(", [Time ", Field, "]", 13, 10)
USART2.Write(13, 10)
EndIf
EndIf
Wend
NMEA parse module using both USART's
Moderators: David Barker, Jerry Messina
NMEA parse module using both USART's
Best Regards.
Mikayo
Mikayo