Hi,
I'm busy since a while to connect an GPS-Receiver with 9600 bps. to an 08M2 without success.
The only thing I can see is garbage on the screen (F8)
Here is the code I use:
setfreq m16 ; resonator-speed to 16MHz
hsersetup B9600_16, %00; baud 9600 at 16MHz
mainser:
b1 = $FF ; set up a non-valid value
serin 3, N9600_16, b1 ; receive 1 byte into b1
if b1 <> $FF then ; if a byte was received
hserout 0,(b1) ; echo it back out
end if
goto mainser ; loop
This is more or less the code from the manual2.
With an Arduino the GPS-Receiver is working without problems.
Please help.
Regards du1mga
I'm busy since a while to connect an GPS-Receiver with 9600 bps. to an 08M2 without success.
The only thing I can see is garbage on the screen (F8)
Here is the code I use:
setfreq m16 ; resonator-speed to 16MHz
hsersetup B9600_16, %00; baud 9600 at 16MHz
mainser:
b1 = $FF ; set up a non-valid value
serin 3, N9600_16, b1 ; receive 1 byte into b1
if b1 <> $FF then ; if a byte was received
hserout 0,(b1) ; echo it back out
end if
goto mainser ; loop
This is more or less the code from the manual2.
With an Arduino the GPS-Receiver is working without problems.
Please help.
Regards du1mga