Trouble reading GPS from "NEO-6" module


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Feb 2013
    Posts
    1,124


    Did you find this post helpful? Yes | No

    Default Re: Trouble reading GPS from "NEO-6" module

    Thanks.
    I never used hardware serial port
    according to the datasheet for 16F886, there are 4 pins dedicated to the MSSP moduie

    RA5 - SS
    RC3- SCK/SCL
    RC4- SDI/SDA
    RC5 - SDO

    Which one should I use for serial GPS, as these seem to be for SPI/I2C ?

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: Trouble reading GPS from "NEO-6" module

    None of these.

    We are talking about USART and not MSSP.

    The pins of interest are RC7 as Usart Rx pin and RC6 as Usart Tx pin.

    You have once to set the appropriate registers at the top of your program and start enjoy the speed and reliability of the serial port.

    Code:
    DEFINE HSER_RCSTA 90h
    DEFINE HSER_TXSTA 24h				'9600 baud rate, BRGH=1 @8MHz clock
    DEFINE HSER_BAUD 9600
    DEFINE HSER_SPBRG 25
    DEFINE HSER_CLROERR 1
    Ioannis

  3. #3
    Join Date
    Feb 2013
    Posts
    1,124


    Did you find this post helpful? Yes | No

    Default Re: Trouble reading GPS from "NEO-6" module

    I think that settings are incorrect, because
    aska:
    hserout ["Init:",10,13]
    pause 200
    goto aska

    Outputs something not correct, like question marks.

    DEFINE HSER_RCSTA 90h
    DEFINE HSER_TXSTA 24h '9600 baud rate, BRGH=1 @8MHz clock
    DEFINE HSER_BAUD 9600
    DEFINE HSER_SPBRG 25
    DEFINE HSER_CLROERR 1

    these might need tuning?

  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,133


    Did you find this post helpful? Yes | No

    Default Re: Trouble reading GPS from "NEO-6" module

    The output is TTL logic. Meaning you have to use a RS-232 driver to use it with PC. Either a transistor or a MAX232 type chip.

    Ioannis

  5. #5
    Join Date
    Feb 2013
    Posts
    1,124


    Did you find this post helpful? Yes | No

    Default Re: Trouble reading GPS from "NEO-6" module

    I'm using USB serial adapter with TTL logic, which works just fine with SEROUT2/SERIN2 statements.

  6. #6
    Join Date
    Feb 2013
    Posts
    1,124


    Did you find this post helpful? Yes | No

    Default Re: Trouble reading GPS from "NEO-6" module

    Fixed it
    just tried all values for
    DEFINE HSER_SPBRG 50
    and 50 worked.

    Now will try to read GPS

  7. #7
    Join Date
    Feb 2013
    Posts
    1,124


    Did you find this post helpful? Yes | No

    Default Re: Trouble reading GPS from "NEO-6" module

    But that does not work for GPS
    reading junk again, and more weird junk

Similar Threads

  1. Replies: 17
    Last Post: - 13th July 2020, 15:20
  2. Replies: 0
    Last Post: - 14th November 2013, 03:32
  3. Replies: 3
    Last Post: - 15th October 2012, 08:06
  4. sending string to module GSM with character ""
    By volcane in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd May 2010, 02:26
  5. 16F88 - AD converter module always "ON"
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th September 2006, 12:11

Members who have read this thread : 3

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