Strange SerOut Problem


Closed Thread
Results 1 to 40 of 40

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by paul borgmeier View Post
    1) Are you sure you have pin 2 correct and pin 5 correct (you are using a 9 pin connector that is straight thru?) see http://www.airborn.com.au/rs232.html
    Correct

    Quote Originally Posted by paul borgmeier View Post
    2) Try it without TX connected
    Will do again - didn't make a difference last time

    Quote Originally Posted by paul borgmeier View Post
    3) A must - add a decoupling capacitor across VDD and VSS (10 uF should do or anything close to this)
    Will do

    Quote Originally Posted by paul borgmeier View Post
    4) You do have pin 5 connected to your PIC ground?
    Yes

    Quote Originally Posted by paul borgmeier View Post
    5) try another power supply that can be regulated (or 3 AA batteries in series)
    Will do

    Quote Originally Posted by paul borgmeier View Post
    6) Do you have access to an oscilloscope? see what is coming out of PortA.1 and pin 2 on the cable?
    I don't have one unfortunately - an LED flashes like mad though...

    Quote Originally Posted by paul borgmeier View Post
    7) Check your hyperterminal settings to make sure you have 300 selected and the parity off
    Have checked that many times!

    Quote Originally Posted by paul borgmeier View Post
    8) you have been using a crystal like in your sketch?
    4MHz with capacitors as drawn

  2. #2
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default Further Investigations Reveal...

    My computer won't talk to a serial modem anymore... and it won't echo its own data from Tx to Rx either...
    That explains it!

    Then a new question pops up... How was the serial JDM2 programmer verifying the PIC's contents? (I know the PIC was being programmed successfully too!)

    Anyway, I'll get my hands on a new set of serial ports tomorrow

    Skimask and Paul, thankyou so much for your help so far! I've learnt alot even though the ideas havn't solved my problem! Thanks again!

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


    Did you find this post helpful? Yes | No

    Default

    In post 5 I asked about the PC port, and you said that the same thing happened on another computer. ?????

    As far as the programmer software reading back correctly, all I can say is it happens. I have a PICKIT1 that will read back errors if I use the software that microchip supplied, but mplab does not. Both software work. I would guess in this case the "lesser" software does not have something correct in its receiving side, like a checksum miss calc.

    Again, check the signal with a meter. TX will show low (Maybe even a negative value) when idle and will spike anywhere from 2.5 to 25 V+ at transmit. If you have a machine less than 10 years old or using a usb/serial adpt, you will most likely see 2.5 to maybe 6.
    Dave
    Always wear safety glasses while programming.

  4. #4
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    In post 5 I asked about the PC port, and you said that the same thing happened on another computer. ?????
    I know! I checked it and it was fine, and the other computer behaved the same... I must have stuffed that up! (Not sure how though!)

  5. #5
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Talking All Is Well!

    The new serial ports let everything behave as it should!
    I wish I knew the port was dead 2 weeks ago!!!

    Thanks again everyone, very good help

    Regards,
    Tom.

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. Serout to serial servo
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 12th August 2009, 16:46
  3. Strange Serout Behaviour
    By bluesmoke in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th August 2009, 04:12
  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. Replies: 11
    Last Post: - 13th July 2005, 19:26

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