how to use external crystal?


Closed Thread
Results 1 to 27 of 27

Hybrid View

  1. #1
    Join Date
    Oct 2014
    Posts
    17


    Did you find this post helpful? Yes | No

    Default Re: how to use external crystal?

    While driving home it finally dawned on me that this might be the problem, from the data sheet:

    "Fail-Safe Clock Monitor (FSCM) designed to detect a failure of the external clock source and switch detect a failure of the external clock source (LP,
    XT, HS, EC or RC modes) and switch
    automatically to the internal oscillator."


    It may be that the external crystal isn't firing up and that is detected as a failure and the internal clock is automatically switched to. I will investigate and report back. This would explain why it seems that OSCCON doesn't work right.

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


    Did you find this post helpful? Yes | No

    Default Re: how to use external crystal?

    Quote Originally Posted by tbarania View Post
    While driving home it finally dawned on me that this might be the problem, from the data sheet:

    "Fail-Safe Clock Monitor (FSCM) designed to detect a failure of the external clock source and switch detect a failure of the external clock source (LP,
    XT, HS, EC or RC modes) and switch
    automatically to the internal oscillator."


    It may be that the external crystal isn't firing up and that is detected as a failure and the internal clock is automatically switched to. I will investigate and report back. This would explain why it seems that OSCCON doesn't work right.
    B I N G O That is where Pista1 & I were trying to take you
    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.

  3. #3
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: how to use external crystal?

    I’ve been following this, but had nothing to add, so doing so silently.
    You said you have a scope you should see it with a 10x probe direct to the crystal.

    Any varicap across the crystal and you can change the speed of a pic output so a Human can see (maybe not 100us)
    There might be a value to cause it to oscillate at startup, but will affect the accuracy greatly if left in place.

    If you wet a finger and touch each crystal leg and get it to start you might just need a slightly different value for the parallel caps.

  4. #4
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: how to use external crystal?

    I don’t think you actually say you’re using caps, or even a bare crystal. TTL module is even a possibility,
    but if it’s a bare two pin crystal and assuming something like 22pF ceramics,
    if it’s a protoboard, I recently had an experience where the clock wouldn’t start because the ground
    pins of the caps were wound together, and the two disc ceramics face to face close together.

Similar Threads

  1. 1 x external crystal oscillator for multiple PICs
    By harryweb in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th November 2013, 14:05
  2. Help using this crystal?
    By Kamikaze47 in forum General
    Replies: 5
    Last Post: - 14th November 2009, 14:48
  3. 16f877A and tmr1 external crystal question
    By comwarrior in forum General
    Replies: 3
    Last Post: - 13th July 2009, 00:40
  4. Pic or Crystal
    By jetpr in forum General
    Replies: 2
    Last Post: - 16th September 2008, 01:56
  5. Crystal
    By leonel in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 12th April 2005, 16:05

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts