Reading PIC serout in hyperterminal


Closed Thread
Results 1 to 6 of 6
  1. #1

    Exclamation Reading PIC serout in hyperterminal

    Hi
    I bought an EM 406A gps module. I want to see the data output in hyperterminal, so I gave +5v and Gnd to relevant pins of the GPS and attached the Tx pin of the GPS to the pin 11 of MAX232, and pin 14 of max232 went to pin2 of rs232 and gnd were made common by attaching rs232 pin5 to gps gnd as well.
    Nothing appeared on my hyperterminal. I then realised that TTL level of my GPS module is 0 - 2.85V.
    I put my GPS module aside.

    I have an already working project where PIC is attached to an GSM modem TC35i. It works fine. As it gets boring when things are working fine so I did an experiment to read the commands PIC is sending to my GSM in Hyperterminal.
    My connections stayed the same PIC tx >......Max 232 pin11 & max232 pin14 >......pin2 of rs232. Gnd common, BUT I still couldnīt read anything. I was hoping to see the AT commands PIC is sending regularly.

    Please help.
    ___________________
    WHY things get boring when they work just fine?

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


    Did you find this post helpful? Yes | No

    Default

    Not sure but I do not think the GPS need the RS232. I think the data is already inverted.

    Might be a similar problem when sending the AT commands.

    A code snippet might help.
    Dave
    Always wear safety glasses while programming.

  3. #3


    Did you find this post helpful? Yes | No

    Question

    Ok, I did as advised and its working now i.e.I removed the max 232 and connected pin2 or RS232 and Tx of the GPS module direct. Also can this GPS Tx pin be connected to any input pin on my pic direct?

    I am receiving somthing but it all seems garbage to me. Its not NMEA type data for sure.
    ___________________
    WHY things get boring when they work just fine?

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


    Did you find this post helpful? Yes | No

    Default

    Almost any pin will work. Just remember the analog ones need setup for digital.

    You may want to check th baud rate, and if 8,N,1 is set and the flow control is none. (normally)
    Dave
    Always wear safety glasses while programming.

  5. #5


    Did you find this post helpful? Yes | No

    Question

    Ok, made it work, I needed to convert 2.85 to 5 V and then to RS232. Getting the required data from the GPS on my hyperterminal.
    BUT
    Upon connecting the hyperterminal to PIC I can only see the commands PIC is sending and I am unable to reply to my PIC via hyperterminal. Has it got anything do with RTS & CTS and what do these pins do excatly?

    If my PIC sends AT command to my GSM, should it request an CTS first to be safe (As it is working without it now)?

    AND

    How can I also reply to my PIC via hyperterminal?

    Thanks in advance
    ___________________
    WHY things get boring when they work just fine?

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


    Did you find this post helpful? Yes | No

    Default

    All you need are the TX and RX lines.
    Micro Code Studio has a nice terminal built in. Much better than hyperterminal.
    It has a send and receive area. Type what you want to send and hot enter.
    Dave
    Always wear safety glasses while programming.

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. load .hex file in PIC with hyperterminal
    By irenuska23 in forum General
    Replies: 8
    Last Post: - 1st September 2009, 09:52
  3. Serout to serial servo
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 12th August 2009, 16:46
  4. Advice-scrutiny for my serial controller
    By kevlar129bp in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 13th December 2008, 17:11
  5. SERIN AND SEROUT PROBELM USING 16f690 PIC
    By Charles in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 18th January 2007, 03:59

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