rs232


Closed Thread
Results 1 to 21 of 21

Thread: rs232

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Now I think I may see the problem. I will assume your GPS unit sends data at 4800?
    Here is a snippet from one of my programs. No 232 chip.
    Code:
    SERIN2 PORTB.1,16572,[WAIT("$GPGGA"),WAIT(","),DEC2 H,DEC2 M,DEC2 S,_
    
            WAIT(","),DEC2 ND,DEC2 NM,WAIT("."),DEC3 NMD,WAIT(",N,"),_
    
            DEC3 WD,DEC2 WM,WAIT("."),DEC3 WMD]
    Dave
    Always wear safety glasses while programming.

  2. #2
    Join Date
    Jun 2009
    Posts
    17


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    Now I think I may see the problem. I will assume your GPS unit sends data at 4800?
    Here is a snippet from one of my programs. No 232 chip.
    Code:
    SERIN2 PORTB.1,16572,[WAIT("$GPGGA"),WAIT(","),DEC2 H,DEC2 M,DEC2 S,_
    
            WAIT(","),DEC2 ND,DEC2 NM,WAIT("."),DEC3 NMD,WAIT(",N,"),_
    
            DEC3 WD,DEC2 WM,WAIT("."),DEC3 WMD]
    according to the datasheet its 9600


    would my test code work tho were i input the next 6 characters afer "GPGGA"

    then use serout2 str gps_data\6] would str gps_data\6 show the next 6 characters even it was a comma or dollar sign etc?

  3. #3
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    then use serout2 str gps_data\6] would str gps_data\6 show the next 6 characters even it was a comma or dollar sign etc?
    It should work.
    can you post the data sheet for the GPS module you are using
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Jun 2009
    Posts
    17


    Did you find this post helpful? Yes | No

    Default

    datasheet attached.
    Attached Images Attached Images

  5. #5
    Join Date
    Mar 2004
    Location
    UK-Midlands
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    Hi,

    As it runs off 3.3v here is a PDF on interfacing it. Hope it helps.
    http://www.crownhill.co.uk/datasheets/ZX4120%20GPS.pdf

    Bob

  6. #6
    Join Date
    Jun 2009
    Posts
    17


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by BobP View Post
    Hi,

    As it runs off 3.3v here is a PDF on interfacing it. Hope it helps.
    http://www.crownhill.co.uk/datasheets/ZX4120%20GPS.pdf

    Bob
    hi,

    i've got the pdf and ive refered to it alot when i got stuck, thats y i can't understand why its not working hmmm

Similar Threads

  1. Universal remote and Rs232
    By Michael in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 7th February 2010, 17:55
  2. UART vs software RS232
    By Michael in forum mel PIC BASIC Pro
    Replies: 27
    Last Post: - 5th September 2008, 18:27
  3. RS232 into 2 PC ports
    By manxman in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 30th August 2008, 13:33
  4. PIC18F4680 to PC via MAX232 (RS232 serial) no output
    By opticsteam1 in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th April 2008, 20:39
  5. RS232 to Weigand
    By Stevenindon in forum Serial
    Replies: 0
    Last Post: - 6th April 2006, 04:35

Members who have read this thread : 0

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