power up problem


Closed Thread
Results 1 to 5 of 5
  1. #1
    rookieofbasic's Avatar
    rookieofbasic Guest

    Question power up problem

    Hi guys!
    I have problem with power up my pic project. The problem appears when i power up my pic hardware after leaving if off for a couple of hours. I have to turn it on and off several times in order for it to work.

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


    Did you find this post helpful? Yes | No

    Default

    I've probably written this several times over the years, but like a car that requires Fuel, Air and Spark, provide those and it's guaranteed to work, a PIC also requires three things, and in the PIC's case it's Power, Clock and Reset. If you have those correct, the your PIC is also guaranteed to run.

    From what you write (which is very little and doesn't give us much information on which to base a comment), I'll suspect a power supply with a very slow rise-time at Power-On. If it's a Battery, it's probably weak. If it's from a dedicated Line Power Supply, is it under-rated for the current you are drawing from it? If it's a weak PSU and if you have large smoothing Capacitors then that could also be a reason.

    Melanie

  3. #3
    rookieofbasic's Avatar
    rookieofbasic Guest


    Did you find this post helpful? Yes | No

    Default

    Thanx alot Mel, I use the battery to power up the circuit. It may be just does not provide enough current at first couple attempts. But this design suppose to be a portable unit, so i can't connect it straight to the 5V power supply. I also use to 4mhz crystal. I got the keypad and the lcd to work, also have the data to save into the memory bank. I am trying to send the data which i saved in the bank to the Serial out, by using TXREG. I tried a couple of different methods of serial out("serout, baudrate,[]", and "POKE TXREG") without any success. Do you have any suggestion?

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


    Did you find this post helpful? Yes | No

    Default

    Just temporarily as a test, put a 220uF (or similar) directly across the Battery and THEN switch the PIC circuit On/Off from that Battery/Cap combination. The Capacitor may well be able to provide a reservoir to overcome the initial current draw which is probably causing a lazy PSU startup. If this works, you can easily construct a pre-charge circuit to charge a capacitor at switch-on and thereafter turn the PIC on a second or so later.

  5. #5
    Join Date
    Oct 2003
    Location
    Cyprus
    Posts
    12


    Did you find this post helpful? Yes | No

    Default

    Hi,
    as Melanie said, you may have a weak power supply.
    On the other hand, it is a good idea to check u r reset circuitry whether it brings the MCLR pin to logic high. Check this at the moment u r circuit does not start. Also at this moment, try to trace your clock. Does your crystal oscillates?

    Perhaps a capacitor on the RESET network (if you use one) has leakage current to ground. Just an assumption.

    Anyway, I always enjoy and read the answers given by Melanie
    Regards
    Kypros

Similar Threads

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

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