Please help!
I have a 28x1 chip and a Parallax GPS module. I want to connect serially to recieve information like heading and lat/long.
The GPS module has a 'smart mode' if its raw pin is left HIGH, which means I should be able to request specific information from the module.
As yet I have been unable to get any data from the module as I cannot work out how to specify the serial input/output pins on the portc (whenever I specify 7 it automatically selects the portb output pin.
What am I doing wrong? Should I use a 'let dirsc =' command to specify when I want to read out or in? Or do the commands serout and serin do that for me?
All I know is that the programmer doesn't understand c7 or C7, and will not select the port.
here is a sample of code that I have been working on:
init:
pause 2000
main:
let dirsc = %00010000
pause 300
serout 4,T4800,("!GPS",$01)
pause 300
let dirsc = %00000000
serin 4,T4800,b1,b2,b3
debug
goto main
If there is anyone that has used GPS successfully or can help with serial communication of this kind, I would be very appreciative. If not I'll have to go back to using a basic stamp...not something I want to do!
Thanks
Jazz
I have a 28x1 chip and a Parallax GPS module. I want to connect serially to recieve information like heading and lat/long.
The GPS module has a 'smart mode' if its raw pin is left HIGH, which means I should be able to request specific information from the module.
As yet I have been unable to get any data from the module as I cannot work out how to specify the serial input/output pins on the portc (whenever I specify 7 it automatically selects the portb output pin.
What am I doing wrong? Should I use a 'let dirsc =' command to specify when I want to read out or in? Or do the commands serout and serin do that for me?
All I know is that the programmer doesn't understand c7 or C7, and will not select the port.
here is a sample of code that I have been working on:
init:
pause 2000
main:
let dirsc = %00010000
pause 300
serout 4,T4800,("!GPS",$01)
pause 300
let dirsc = %00000000
serin 4,T4800,b1,b2,b3
debug
goto main
If there is anyone that has used GPS successfully or can help with serial communication of this kind, I would be very appreciative. If not I'll have to go back to using a basic stamp...not something I want to do!
Thanks
Jazz