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
    Well, what I really meant was to give PortB a try.
    Ok, will do shortly.

    Another thought: Is it a good thing or a bad thing that this power supply doesn't have a ground (earth) to mains??
    DC shouldn't have earth, should it?

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by masosi View Post
    Ok, will do shortly.

    Another thought: Is it a good thing or a bad thing that this power supply doesn't have a ground (earth) to mains??
    DC shouldn't have earth, should it?
    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.

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

  4. #4
    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?

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

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

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

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