Crystal Signal? Where is it???


Closed Thread
Results 1 to 13 of 13

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Posts
    15

    Default Crystal Signal? Where is it???

    I finally have my code completed and working (with the 16F877 on the Lab X1 board) I'm in the process of moving over completely to a breadboard. My original configuration uses the Lab X1 development board which has the 16F877 installed from there it is hardwired to a breadboard that has additional circuitry and IC's.



    All I want to do is move over the 16F877 onto the breadboard pre-programmed and wire it up.

    My problem:
    While hooking up the 16F877 connections, VSS, VDD & Crystal (4MHz) and caps (22pf) I don't measure any signal at all. I can measure the Lab X1 clock frequency at 4 MHz with an O-scope, nice amplitude and all. When I measure my breadboard 16F877/Crystal I measure nothing.

    I have confirmed voltage, current limit, caps, etc. I have used a known good 16F877 from the Lab X1 board and installed onto the breadboard and still no signal. Am I supposed to wire up anything else? I'm using the PIC16F877 datasheet; section 12.2 as my source of Oscillator configurations. I also included a photo of my breadboard setup.

    Any input would be greatly appreciated.
    Netjammer-



    PS. I've also tried other types of crystals freq's and packaging, no luck.

  2. #2
    Join Date
    Mar 2005
    Location
    Denmark
    Posts
    31


    Did you find this post helpful? Yes | No

    Post What about pin 1

    Hi Netjammer,

    Maybe your problem is due to a floating Reset pin (pin 1 on your pic) try to tie it to Vdd through a 4.7K resistor.

    Regards
    Sharky
    *Let's do it*

  3. #3
    Join Date
    Oct 2004
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Sharky
    Hi Netjammer,

    Maybe your problem is due to a floating Reset pin (pin 1 on your pic) try to tie it to Vdd through a 4.7K resistor.

    Regards
    Sharky
    Hi Sharky,
    I gave that a try and still no luck (used a 4.3K). I just now loaded one of those sample Lab X1 blink programs and verified it works on the Lab X1 board. It does. When I pull it out of the ZIF and install it on the breadboard I still don't get a clock on Pin 13 or 14. I also checked the programmer and it set for XT osc mode.

    Thanks for the response, I must be missing something...
    Netjammer-

    Last edited by Netjammer; - 26th June 2005 at 10:02.

  4. #4
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Exclamation Is your scope damping the oscillator

    Hi,

    It sometimes happen with a breadboard that poor ground and mis-contacts prevent oscillator start up . Also try changing the capacitor values. Route all grounds to a common point. If your breadboad has a metal backing plate then ground it.

    Regards

  5. #5
    Join Date
    Oct 2004
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by sougata
    Hi,

    It sometimes happen with a breadboard that poor ground and mis-contacts prevent oscillator start up . Also try changing the capacitor values. Route all grounds to a common point. If your breadboad has a metal backing plate then ground it.

    Regards
    Hi sougata,
    Here is the latest... I installed a 16F877 that was being used on another lab board onto the breadboard. This lab board was part of a workshop I took earlier this year. With this microcontroller I now read a clock signal on pin 14 but not on pin 13. I believe the source code loaded was a temperature measurement routine.

    I thought OSC1 would be 4MHz and OSC2 would be /4. I think my O-scope probe is okay but I will step through your suggestions and see what comes about.

    Thank you, I really appreciate it.
    Netjammer-

  6. #6
    Join Date
    Mar 2005
    Location
    Denmark
    Posts
    31


    Did you find this post helpful? Yes | No

    Post

    Hi Netjammer,

    I think that I misunderstood your question. I thought that the problem was that your program would not execute.
    Are you trying to messure directly on the crystal?

    Regards
    Sharky
    *Let's do it*

  7. #7
    Join Date
    Oct 2004
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Sharky
    Hi Netjammer,

    I think that I misunderstood your question. I thought that the problem was that your program would not execute.
    Are you trying to messure directly on the crystal?

    Regards
    Sharky
    Hi Sharky,
    I'm measuring on the actual pins (13/14) with an O-scope probe. Please see my latest response, the 16F877 that has the temp code loaded has a clock signal on Pin 14 but not on 13. I'm trying to find the original code that I loaded to see if there is an INCLUDE or DEFINE that causes this.

    Thanks again!
    Netjammer-

  8. #8
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    I see in your picture you are using an ATS040 crystal.

    That is an AT Strip Cut type crystal, and may need to have a series resistor.

    See Figure 12-1 in the 877 datasheet.

    Just another possibility,
    Darrel

Similar Threads

  1. Sharing Crystal with 2 IC's
    By ShaneMichael in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 10th January 2013, 13:33
  2. Replies: 24
    Last Post: - 1st December 2009, 08:01
  3. PIC16F684 + LCD to use the 256bytes of EEPROM - HELP
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 7th March 2008, 14:19
  4. 20 Mhz Crystal, simple blinking LED
    By BenjaminsShinob in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 16th October 2007, 05:06
  5. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36

Members who have read this thread : 0

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