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 skimask View Post
    You mean a ground lug, like the 3rd pin? If so, that's a chassis ground. If something shorts out inside the case of the PSU, the juice returns through that line. I wouldn't worry about it too much in a wall wart type power supply.
    Very good, thanks.

  2. #2
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Would it be worth trying a 350W Computer PSU?
    Are it's outputs (5VDC & 12VDC) regulated?

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by masosi View Post
    Would it be worth trying a 350W Computer PSU?
    Are it's outputs (5VDC & 12VDC) regulated?
    More trouble than it's worth. Get a NiMH battery pack and a charger. Smaller, more controllable, etc. And those computer PSU's DO require a minimum load and you have to do some trickery to them to get them to work.

  4. #4
    Join Date
    Apr 2007
    Posts
    34


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by skimask View Post
    More trouble than it's worth. Get a NiMH battery pack and a charger. Smaller, more controllable, etc. And those computer PSU's DO require a minimum load and you have to do some trickery to them to get them to work.
    Ok, thanks again.


    I can see a LED flash on PORTA.1 and now PORTB.5 when it does SerOut, so I guess the ports are fine.
    So if its not timing, not the programming, not the chip, not the COM port and not Hyperterminal - I DON'T KNOW WHAT TO DO!!!

  5. #5
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile stuff to try

    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

    2) Try it without TX connected

    3) A must - add a decoupling capacitor across VDD and VSS (10 uF should do or anything close to this)

    4) You do have pin 5 connected to your PIC ground?

    5) try another power supply that can be regulated (or 3 AA batteries in series)

    6) Do you have access to an oscilloscope? see what is coming out of PortA.1 and pin 2 on the cable?

    7) Check your hyperterminal settings to make sure you have 300 selected and the parity off

    8) you have been using a crystal like in your sketch?

    report back
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  6. #6
    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

  7. #7
    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!

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