Interfacing GPS receiver module with PIC16F876


Closed Thread
Results 1 to 5 of 5

Hybrid View

  1. #1
    skimask's Avatar
    skimask Guest

    Default

    For one thing, you're using both HSERIN and SERIN. Which is it? Can't really have both without resetting the serial port pins back and forth between the serial module and general purpose I/O.
    And, 2nd, you do realize this is a PicBasicPro forum, not a Proton Basic forum, right? PicBasicPro doesn't do DIMs and I'm not sure, but I don't think Proton does PAUSE.
    So, again, which is it?

  2. #2

    Default GPS fields can be variable length

    I am not sure you can use the explicit array approach (Rx[26] = "," etc) as the NMEA sentences are variable length and what might be a comma this time may not be a comma when the field data changes.

    I posted code to decode/parse GPS sentences a year or two back.
    Have a look at:-

    http://www.picbasic.co.uk/forum/show...ghlight=parser

    HTH
    BrianT

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166

    Default

    theblackhourse, This section of code does not look right...
    '_______________________________

    temp2 = temp2 >> 1
    temp1=temp2
    charcount = charcount + 1
    temp2 = RX[charcount]
    temp1.7 = temp1.7 OR temp2.2
    temp1.1 = temp1.6 OR temp2.1
    temp1.5 = temp1.5 OR temp2.0
    TX[txcounter] = temp1
    txcounter = txcounter + 1
    '_______________________________

    I beleive the line "temp1.1 = temp1.6 OR temp2.1" should be "temp1.6 = temp1.6 OR temp2.1" Also I think with a little thought you can get this series of lines down to about 10 or so...

    Dave Purola,
    N8NTA

Similar Threads

  1. Replies: 0
    Last Post: - 17th June 2009, 03:55
  2. Replies: 1
    Last Post: - 27th July 2008, 06:14
  3. Replies: 4
    Last Post: - 15th May 2008, 09:43
  4. interfacing gps receiver with 16f877a
    By sakhyvava in forum GPS
    Replies: 1
    Last Post: - 27th September 2006, 09:13
  5. GPS Receiver
    By lester in forum Adverts
    Replies: 2
    Last Post: - 22nd February 2006, 12:47

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts