How long does it take for an 8 bit PIC to stabilize after Power-up?


+ Reply to Thread
Results 1 to 18 of 18

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: How long does it take for an 8 bit PIC to stabilize after Power-up?

    I imagine the power up timer is to wait for the crystal frequency to be stable, and that you could disable it
    if you had an external clock source continually running (not in your case).
    You could use a reset circuit (a resistor and a capacitor) on the MCLR pin to make a shorter reset time.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: How long does it take for an 8 bit PIC to stabilize after Power-up?

    Pretty sure the PWRT is belt and braces. If you don't need to startup in the minimum time and want to be completely stable.

    What would be the effect of a few clock cycles long/short slow/fast whatever?

    George

    George

  3. #3
    Join Date
    Feb 2013
    Location
    Northern California
    Posts
    9


    Did you find this post helpful? Yes | No

    Default Re: How long does it take for an 8 bit PIC to stabilize after Power-up?

    Quote Originally Posted by Art View Post
    I imagine the power up timer is to wait for the crystal frequency to be stable, and that you could disable it
    if you had an external clock source continually running (not in your case).
    You could use a reset circuit (a resistor and a capacitor) on the MCLR pin to make a shorter reset time.
    Thanks for the suggestion. I had considered adding a supercap to the power supply but didn't think to add a capacitor to the MCLR pin to retain the charge and prevent a reset.

    Craig

  4. #4
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: How long does it take for an 8 bit PIC to stabilize after Power-up?

    That’s actually not what I was suggesting, but instead to disable the powerup timer which usually holds MCLR,
    and use the MCLR pin yourself that will lower the power up time to what is acceptable with a stock reset circuit
    consisting of a resistor and capacitor. But if you can use a cap on the supply, the thing I’m working on now
    continues to multiplex a display for a couple of seconds after power off with two 470uF caps.

  5. #5


    Did you find this post helpful? Yes | No

    Default Re: How long does it take for an 8 bit PIC to stabilize after Power-up?

    I had a quick look at the datasheet and I see that the Oscillator Start-up Timer is not invoked if an internal clock is selected. I couldn't find a figure for how long the internal clock takes to stabilize but the "Oscillator Wake-up from Sleep start-up time" is 8us (worst case)

    I think it's important to note that the power up timer is optional, so MC must forsee a situation where it is not used.

    If you believe that some delay after power up is necessary, Art's idea is the way to go.

    if you have space, how about a string of NOPs at the reset vector?

    George

    How long is the power off for?

  6. #6
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: How long does it take for an 8 bit PIC to stabilize after Power-up?

    Interesting, I’d have thought it’s the internal RC clock that would be the option wanting to be stabilised,
    but really don’t know how the startup of either clock really looks on a scope, etc.

  7. #7


    Did you find this post helpful? Yes | No

    Default Re: How long does it take for an 8 bit PIC to stabilize after Power-up?

    I’d have thought it’s the internal RC clock that would be the option wanting to be stabilised
    Do you have any basis for that or is it just agut feeling? Is it an RC clock? I can't find in the datasheet what kind of osc the internal 4Mhz clock is, perhaps I didn't look hard enough.

    Seems to me the internal osc is physically closer, has optimal caps, and a load of other things I can't think of.

    Anyway I think your idea of using an RC to hold MCRL for a short while is vcg's only option if he is uncomfortable turning off PWRT (which he has to to achieve 50Ms reliably).

    George

  8. #8
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: How long does it take for an 8 bit PIC to stabilize after Power-up?

    it’s more than a feeling that it’s an RC clock.
    You would rarely need any external clock if it were any better, the clock wouldn’t need a calibration value,
    and the clock wouldn’t run faster if the chip is powered from a higher than spec voltage.
    It’s only a feeling that an RC clock would take the longest time to stabilise than any other option.

Similar Threads

  1. How do I use 10 bit A/D on 8 bit Pic? 12F675
    By polymer52 in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 1st April 2020, 20:10
  2. Replies: 3
    Last Post: - 24th September 2013, 18:01
  3. long countdown timer, how to save power?
    By Kamikaze47 in forum mel PIC BASIC Pro
    Replies: 29
    Last Post: - 15th November 2008, 05:15
  4. signed long (32-bit) variable
    By Stephan in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 11th September 2007, 03:40
  5. Long Distance Input's to Pic
    By GregK in forum General
    Replies: 3
    Last Post: - 21st April 2005, 09:37

Members who have read this thread : 9

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