Is there an area for hardware items?


Closed Thread
Results 1 to 10 of 10
  1. #1
    Join Date
    Mar 2005
    Location
    Madison, WI, USA
    Posts
    20

    Default Is there an area for hardware items?

    I wonder if there is an area to post a hardware related question. I understand if the answer is No due to the fact it is such a large scope.

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Just shoot with your question... you never know it might be of interest to somebody somewhere... this section is pretty good in which to ask it...

  3. #3
    Join Date
    Mar 2005
    Location
    Madison, WI, USA
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Hardware Problem

    After laying out and etching two boards and populating them with parts I now remember a problem I had a year ago trying to use two PIC16F84A's together on the same board. I finally got so frustrated with the business that I switched to another device with more pinouts (a 16F877, I think.)

    Last night I finally connected a secondary board with a PIC16F628A to the ground and 5VDC buses of a primary with another 16F628A. The primary has an LM7805 on it to source both PIC's. When tested apart, both boards run and test out perfectly.

    When I connect the secondary to the power buses of the primary, the PIC on the secondary board fails to operate. I have checked the Vss and Vdd pins on the secondary and I get 5VDC on Both!

    Here are the design facts:
    - Both 16F628A's are set to run on their respective internal clocks at 4MHz
    - Both 16F628A's have !MCLR enabled (pulled up with a 4700ohm external resistor) to be used as a manual pushbutton reset.
    - Comparitors ar disabled on both PIC's
    - I always solder a filter cap right under the socket across Vss and Vdd, in this case a mono. ceramic 1uF, 50v and did so on both PIC's.
    - Finally, I did not make the error of putting 5VDC on both pins of the power connector, and there are no circuit paths on the secondary board which would cause that. I am certain that all ground traces/pins end up at the 7805 center pin, and there are no shorts. The filter caps are the only bridges.

    This is really bewildering. I can't believe an industrial application of plc's wouldn't have a situation where multiple devices would be used together in the same sub-system so device isolation must be an art.

    Does anybody know why my PIC's don't ever play well together? Is there some harmonics problem between the two clocks that the filter caps. don't overcome? I've often wondered about this. I don't have the years of experience to recognize things like that (the art.)

  4. #4
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by afbecker
    When tested apart, both boards run and test out perfectly.

    When I connect the secondary to the power buses of the primary, the PIC on the secondary board fails to operate. I have checked the Vss and Vdd pins on the secondary and I get 5VDC on Both!
    Sounds like a problem with the ground trace to the second board.

    You say it works fine on its own, so is the terminal you are taking ground from on the first board somehow rising to +5v when the first board is running?

    Regards
    Keith

    www.diyha.co.uk
    www.kat5.tv

  5. #5
    Join Date
    Mar 2005
    Location
    Madison, WI, USA
    Posts
    20


    Did you find this post helpful? Yes | No

    Default More on 2 PIC NM

    Kieth,

    Well,

    I'll have to check that out this evening. It should be continuous to the 7805 center pin with no bridges but I could meter it nonetheless and see where that leads.

    I have had a reply from the MicroChip forum from a fellow who paralleled 4 PIC's together on the same bus and had no problems.

    My difficulty showed up at 1:00 a.m. so that may be part of it!

  6. #6
    Join Date
    Aug 2005
    Location
    Denver
    Posts
    25


    Did you find this post helpful? Yes | No

    Default

    If it was me, I'd establish one single point as ground, probably the center pin of the LM7805. Then I'd check all the possible points on both boards with a multimeter to see if there's any DC bias. I agree that it sounds like something is wrong in the power distribution or grounding.

  7. #7
    Join Date
    Mar 2005
    Location
    Madison, WI, USA
    Posts
    20


    Did you find this post helpful? Yes | No

    Default Found it...

    You were all quite right.

    I searched through the whole thing and found the ground trace was incomplete. The condition was no doubt the result of last minute circuit changes made at 1:00 a.m.

    I learned several things here with everybody's contribution. First don't panic about fault conditions occurring in the wee hours. Second, it is possible to see Vss floating at 5VDC with no ground and a connection at Vdd. Finally it appears that several PIC's can live happily together on the same bus.

    I appreciate the help. Next time I hope the subject of discussion will be a PicBasic programming one.

    Allan

  8. #8
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by afbecker
    I searched through the whole thing and found the ground trace was incomplete.
    Glad you found it

    First don't panic about fault conditions occurring in the wee hours.
    Slight correction to that statement.....

    Dont panic about fault conditions occuring after you have been working for too long !

    I doubt there is a single person on this list who hasnt made an error due to tiredness or distraction.

    I think my worst error was when I was repairing a turntable that had a faulty transformer. I was wiring in a temporary replacement when someone distracted me. When I continued I joined up the wrong wires and stuffed 240V mains straight into the PCB that was supposed to take 20V AC.

    Not ALL the IC's exploded... some just blistered... but the turntable had to go to that great disco in the sky
    Keith

    www.diyha.co.uk
    www.kat5.tv

  9. #9
    Join Date
    Aug 2005
    Location
    Denver
    Posts
    25


    Did you find this post helpful? Yes | No

    Cool We've all done things like that...

    Quote Originally Posted by keithdoxey
    I think my worst error was when I was repairing a turntable that had a faulty transformer. I was wiring in a temporary replacement when someone distracted me. When I continued I joined up the wrong wires and stuffed 240V mains straight into the PCB that was supposed to take 20V AC.

    Not ALL the IC's exploded... some just blistered... but the turntable had to go to that great disco in the sky
    My favorite was accidentally reversing the power leads on the pc board for a new project. I (and a whole room full of people) hit the floor thinking it was gunshots when the electrolytic capacitors exploded.

  10. #10
    Join Date
    Jan 2006
    Location
    Toronto
    Posts
    109


    Did you find this post helpful? Yes | No

    Default

    Its also a good idea to use .1uF caps at the pic instead of the 1uF, .1uF seems to be the industry standard for decoupling. I use them on every ic on my boards and i also use them between any external i/o and gnd. I find this filters out all ac noise I receive on cables going to sensors etc. I also use ferites on the input power and power lines between boards. They are probable not necessary but I don't like to take any chances when building Idustrial Controllers because you can get a lot of noise from the motors etc.

Similar Threads

  1. < We need hints and tips area of forum >
    By electroken in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 19th December 2009, 16:34
  2. multiple serin/serout items
    By kenpo in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 27th April 2007, 23:47
  3. The Test Area Forum
    By Darrel Taylor in forum Forum Requests
    Replies: 3
    Last Post: - 1st July 2005, 18:35
  4. New Products & Sale Items
    By Bruce in forum Adverts
    Replies: 3
    Last Post: - 21st February 2005, 23:04

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