Weird Oscillator Problems


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

    Default Weird Oscillator Problems

    This is a really weird problem. I have a circuit that has a serial output to monitor temperatures and functions and noticed the display is going totally wonky. Random character from hell actually, locks up, resets etc. After some time I have narrowed the problem to the oscillator section. The oscillator I'm using is a 4.000MHz crystal and a pair of 22pF capacitors. This is the really strange part, if I remove the capacitors from the circuit the board works prefect. If I leave on cap in it still works perfect. The traces between the PIC and the crystal are extremely short, the crystal is right beside the micro. I don't understand how this can be happening. Anyone have any ideas what might be causing this? If I install a resonator is works fine as well.

  2. #2


    Did you find this post helpful? Yes | No

    Default

    The PIC's that I'm working with are the 18F452 and 16F877. I just removed the caps from a different board and the same result. However this board works fine with or without the caps.

  3. #3
    Join Date
    Feb 2004
    Location
    Germany
    Posts
    762


    Did you find this post helpful? Yes | No

    Default

    CocaColaKid,

    I have seen this problem once some time ago.

    The cause was a bad PCB.
    (see attachment)

    Take a Magnifying Glass and inspect your PCB.

    Other possible causes:

    If you have your PIC or Crystal on a Socket, it could be a bad socket.

    Also people have been reporting similar problems with Breadboards.
    (Search the Forum for "Breadboard")

    And last but not least:
    The Crystal itself, have you tried a different brand?
    Attached Images Attached Images  
    Last edited by NavMicroSystems; - 1st July 2005 at 17:32.
    regards

    Ralph

    _______________________________________________
    There are only 10 types of people:
    Those who understand binary, and those who don't ...
    _______________________________________________



  4. #4


    Did you find this post helpful? Yes | No

    Default

    I just talked with Jeff and ME Labs and asked him if he has seen this problem and he said yes. I guess some people don't even run caps. I checked the clkout and noticed a lot of noise when the caps were in circuit. Once removed the wave was nice and smooth. I tried this will about 8 different boards and all of them had the same results. I guess it really depends on the crystals charateristics if you need the caps or not. I tried a resonator and noticed a big difference in the clkout signal. The crystal is so much more accurate.

  5. #5
    Join Date
    Aug 2005
    Location
    Michigan, USA
    Posts
    224


    Did you find this post helpful? Yes | No

    Default

    'Kid,

    I've seen similar symptoms with LVP enabled in the configuration fuses and the PGM pin left floating...

    Regards, Mike

  6. #6
    Join Date
    Sep 2003
    Location
    Vermont
    Posts
    373


    Did you find this post helpful? Yes | No

    Default

    You might be overdriving the crystal when set up properly. In the Microchip books, they talk about putting a resistor between Osc2 pin and the crystal. Unless it is a specially cut crystal, or your Uncle owns the crystal company, find one that works reliably.

    Hope this helps,
    Ron

Similar Threads

  1. Weird code problem
    By Navaidstech in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th March 2009, 11:16
  2. Weird Problem
    By isaac in forum General
    Replies: 9
    Last Post: - 22nd September 2008, 19:30
  3. LCD and PIC18F2685 - Weird LCD behavior
    By Castor in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 29th April 2008, 09:55
  4. PIC16F877 Weird behavior
    By fadibasic in forum General
    Replies: 1
    Last Post: - 27th April 2008, 00:03
  5. Weird flicker
    By The Master in forum Off Topic
    Replies: 10
    Last Post: - 9th December 2007, 18:58

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