grandtippler
New Member
Hi All,
I'm trying to use a 28a to communicate with a GPS with a serial port.
The problem is that only every 2nd or 3rd character from the GPS is displayed on my LCD. The characters that get through are ok so I know I've got the baud rates ok.
Does anyone have any idea why I'm only getting every 2nd or 3rd char?
Here is the bit of the code which takes the serial data 8 chars at a time and dumps it to the display:::
Main:
for b0 = 50 to 58 ‘ start a loop
serin 1,N2400,b1
write b0,b1 ‘ write value into b1
next b0
for b0 = 50 to 58 ‘ start a loop
read b0,b1 ‘ write value into b1
byte = b1
GOSUB SendDataByte
next b0
goto Main
Thanks,
Brian Mc
I'm trying to use a 28a to communicate with a GPS with a serial port.
The problem is that only every 2nd or 3rd character from the GPS is displayed on my LCD. The characters that get through are ok so I know I've got the baud rates ok.
Does anyone have any idea why I'm only getting every 2nd or 3rd char?
Here is the bit of the code which takes the serial data 8 chars at a time and dumps it to the display:::
Main:
for b0 = 50 to 58 ‘ start a loop
serin 1,N2400,b1
write b0,b1 ‘ write value into b1
next b0
for b0 = 50 to 58 ‘ start a loop
read b0,b1 ‘ write value into b1
byte = b1
GOSUB SendDataByte
next b0
goto Main
Thanks,
Brian Mc