Shop OBEX P1 Docs P2 Docs Learn Events
GPS to VGA code on Object Exchange — Parallax Forums

GPS to VGA code on Object Exchange

bulkheadbulkhead Posts: 405
edited 2007-12-02 17:58 in Propeller 1
obex.parallax.com/objects/225/

I am trying to get the Parallax GPS printing to my terminal window ("PC_Interface") but I am a bit confused on how it works.

GPS_IO_mini has a "start" method but no parameter to pass it the pin Looking closer I see this:
uart.start(serRecv,serXmit,1,4800)

with serXmit =0 and serRecv =1. The GPS unit only has 1 I/O that's bidirectional, so how does that work?

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'm new to the propeller!

Comments

  • LeonLeon Posts: 7,620
    edited 2007-12-02 17:58
    Most GPS modules just send out a stream of ASCII characters by default, so a serial receive function is all that is needed.

    I had a look at that code, it is receiving on bit 1 and transmitting on bit 0. serXmit and serRcv are the parameters you were looking for. Are you sure that the module you are using has a single bidirectional pin?

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle

    Post Edited (Leon) : 12/2/2007 6:15:26 PM GMT
Sign In or Register to comment.