Power problems


Closed Thread
Results 1 to 40 of 51

Thread: Power problems

Hybrid View

  1. #1
    Join Date
    Jun 2008
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    Guys,
    Everything is working perfect when I use the programmer power.
    A ~700 lines code.
    The problem is very simple when connecting outside power source.

  2. #2
    Join Date
    Jun 2008
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    I build a temporary new board and it works ok.
    Maybe something is wrong with the other board.
    I might build it fro scratch again.
    Thanks.

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by menta View Post
    Guys,
    Everything is working perfect when I use the programmer power.
    A ~700 lines code.
    The problem is very simple when connecting outside power source.
    Does it run if you manually RESET (pull MCLR to ground) it after power up?
    If so, put a capacitor across MCLR and ground, and a resistor between Vdd and MCLR.
    The problem might be that MCLR is coming up faster than Vdd.
    An R/C across MCLR might slow it up just enough to meet the chip's MCLR timings.

  4. #4
    Join Date
    Jun 2008
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    On the temporary board the led was blinking very fast (suppose to have 1 sec pause)
    Only when I set MCLR to +5v it started to run ok.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Sounds like bad soldering or bad connections. Glad you have it sorted though. External power source making it work points to sever current loss accross your tranny/7805 circuit. Could it be your bridge rectifier is shot in the tranny? low power output?

  6. #6
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by menta View Post
    On the temporary board the led was blinking very fast (suppose to have 1 sec pause)
    Only when I set MCLR to +5v it started to run ok.
    The LED was probably dumping your +5v line repeatedly causing a brown out causing your PIC to reset making it look like it was blinking really fast (which it probably was). If your MCLR was floating (i.e. not connected), same thing may happen (i.e. brown out triggers MCLR just by chance). Connecting MCLR to Vdd might've help alleviate the situation, but sounds to me like a temporary fix.
    Not a good practice to leave MCLR floating, unless you are absolutely sure it's tied internally (which I'm not sure the 16F877A has that exact option).
    Add an extra resistor inline with your LED (make it really dim), pull the +5v off of MCLR and see what happens (less current flow across the LED, less load on the main +5v rail, etc).
    Then maybe try adding another capacitor between Vdd and Vss...can never have too much of that...

  7. #7
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    Never mind

  8. #8


    Did you find this post helpful? Yes | No

    Talking

    Dammit!!!! Didn't spot the MCLR pin wasn't connected in the schematic. Maybe need new glasses!!!!!!

  9. #9
    Join Date
    Jun 2008
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    Well, I really dont know what do more.
    On the test board everything was ok. The LED was blinking, the LCD shows the numbers.
    Now I wrap it again and it aint work, unless I touch the 8Mhz crystal with my hand ;-0

  10. #10
    Join Date
    Jun 2008
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    And ofcourse, if using the programmer power , everything is ok (with MCLR stright to the +5v)

  11. #11
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by menta View Post
    Well, I really dont know what do more.
    On the test board everything was ok. The LED was blinking, the LCD shows the numbers.
    Now I wrap it again and it aint work, unless I touch the 8Mhz crystal with my hand ;-0
    That usually indicates a missing ground and/or pullup or pulldown somewhere, likely on MCLR, or missing cap's between Vdd and Vss (both pairs and across the pairs).

  12. #12
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    Look at the grounds. Make sure they are very nice, short, and fat traces (or wires). The traces (or wires) from the crystal to the PIC should be as short as possible. The capacitors on the crystal should also be as close as possible to the PIC, with direct connection to GND. Pay good attention to the MCLR connection (follow the datasheet, they did not went through all that trouble for no reason).

    This is what I tried to explain before. The 877A has external MCLR and external oscillator (the 887 has the capability to run both of them internally - not good comparison).

  13. #13
    Join Date
    Jun 2008
    Posts
    84


    Did you find this post helpful? Yes | No

    Default

    How do you explain that when using the power from the programmer, everything is OK ?

Similar Threads

  1. Battery powered applications
    By NavMicroSystems in forum Off Topic
    Replies: 7
    Last Post: - 22nd June 2009, 07:12
  2. Pic getting part power from Analog Port
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 22nd April 2009, 10:34
  3. HSerin problems on power up
    By Luckyborg in forum Serial
    Replies: 8
    Last Post: - 21st April 2009, 19:49
  4. 12 Servo's together does not seem to work, Power problem
    By macx75 in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th December 2006, 19:30
  5. problems on power up of PIC
    By dmairspotter in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 13th June 2006, 14:11

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