External oscillator and startup


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263

    Question External oscillator and startup

    If using a stand-alone oscillator with a nominal 10 ms startup time, do I need to do anything special with the PIC to insure that either the oscillator or the chip is running first?
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    I would say no, looks like it is built in.

    This is from:
    http://ww1.microchip.com/downloads/e...Doc/70054b.pdf

    7.12 Oscillator Start-up Timer (OST)
    In order to ensure that a crystal oscillator (or ceramic resonator) has started and stabilized, an
    Oscillator Start-up Timer is provided. It is a simple 10-bit counter that counts 1024 TOSC cycles
    before releasing the oscillator clock to the rest of the system. The time-out period is designated
    as TOST. The amplitude of the oscillator signal must reach the VIL and VIH thresholds for the
    oscillator pins before the OST can begin to count cycles (see Figure 7-4).
    The TOST time is involved every time the oscillator has to restart (i.e., on POR, BOR and wake-up
    from SLEEP mode). The Oscillator Start-up Timer is applied to the LP oscillator and the XT, XTL
    and HS modes for the Primary oscillator.

  3. #3
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Unhappy

    Hmm. Well, at 4 MHz, that's about 250 microseconds; at 20 MHz, about 50. The oscillator spec gives a nominal startup time of 10 milliseconds. Perhaps I should put an RC circuit on the /MCLR pin.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by RussMartin View Post
    Hmm. Well, at 4 MHz, that's about 250 microseconds; at 20 MHz, about 50. The oscillator spec gives a nominal startup time of 10 milliseconds. Perhaps I should put an RC circuit on the /MCLR pin.
    For one thing, we don't know which PIC you're trying to use...
    Other than that, read up on the 'Power Up Timer'. 72ms of crystal-stabilizing-waiting bliss that should lay all of your worries to rest. It's always worked for me...

  5. #5
    Join Date
    Aug 2006
    Location
    Omaha, Nebraska USA
    Posts
    263


    Did you find this post helpful? Yes | No

    Red face

    Quote Originally Posted by skimask View Post
    For one thing, we don't know which PIC you're trying to use...
    Other than that, read up on the 'Power Up Timer'. 72ms of crystal-stabilizing-waiting bliss that should lay all of your worries to rest. It's always worked for me...
    Thanks! Absolutely right--there it was, page 148, section 14.6, and page 184, Table 17-5, parameter 33. Even the stated (but untested) minimum of 28 ms is more than adequate!

    I'm using the 16F87xA series.
    Russ
    N0EVC, xWB6ONT, xWN6ONT

    "Easy to use" is easy to say.

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