Power Up problem


Closed Thread
Results 1 to 5 of 5
  1. #1

    Default Power Up problem

    Using a 16F877A with a New Haven serial display. Once in a while, like one time out of 30 times, when I give this board power the display goes all black. At first I was thinking something was wrong with the board or PIC until I built another one. Then I thought maybe it was a problem with the serial display. So I put some code in the PIC that turns on and off a couple outputs 50 times a second. Then I hooked up the scope to the output and powered up the board until I got the display to black out. The outputs from my PIC didn't do anything. So that is telling me its a problem with my PIC and some deal with the initial power up .

    I have built a board with a normal 5v regulator and then another board with a Dc/DC converter. I am doing the converter for other reasons yet it does the same thing with either. I have the MCLR pin tied to VDD with a 4.7k resistor and diode like on the ICSP diagram found on MELABS website.

    Do I need a cap on the MCLR line? Would that help? I am traveling now and thought I would put this up on the forum. I thought maybe I need to activate the power up timer. Will that fix the problem or do I need to add hardware?

  2. #2


    Did you find this post helpful? Yes | No

    Default

    Power up timer might help...
    Also, have you got a capacitor on the power lines between regulator and PIC?

  3. #3


    Did you find this post helpful? Yes | No

    Default

    On your MCLR pin, you need a pullup resistor 4.7k and a cap to ground. Try 1uF~4.7uF. You want voltage to come up quickly and not linger below threshold for too long on the pin. At the same time you want to filter out voltage hiccups.

    Nick
    Last edited by Macgman2000; - 30th October 2009 at 03:22.

  4. #4
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Hi Tobias,
    Power up timer enable and insert a short pause in the start up code of your PIC to allow the serial LCD time to stabilize, .01 µF at the PIC power pins and make sure the serial out line has the proper pull up / pull down resistors as required. Pull up for data TRUE, pull down for data INVERTED. This allows the port to idle in the correct state. Be sure to provide a pull up resistor on the MCLR if you have enabled it in your config statement.
    HTH
    JS
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  5. #5


    Did you find this post helpful? Yes | No

    Default

    Thanks guys I appreciate the input I will give it a go with the suggested changes when I get home on saturday.

Similar Threads

  1. power problem (newbie here!)
    By clocks in forum General
    Replies: 10
    Last Post: - 2nd May 2009, 13:18
  2. 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
  3. OT - power supply problem
    By docwisdom in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 2nd March 2006, 00:14
  4. Power up problem
    By Ken McDonald in forum General
    Replies: 1
    Last Post: - 28th December 2004, 17:06
  5. power up problem
    By rookieofbasic in forum General
    Replies: 4
    Last Post: - 2nd April 2004, 12:01

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