Multiple PIC's with 1 crystal


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default Help please... one oscillator... two pics...

    I never got an answer to this question.

    I would like to share the crystal of a 16f876 with a 16f88. By the thread above, I tie osc2 from the 16f876 to osc1 on the 16f88. What about the second osc2 input on the 16f88. Do I leave that pin hanging or tie it to something?


    Thank you,

    Ross
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by rossfree View Post
    I never got an answer to this question.

    I would like to share the crystal of a 16f876 with a 16f88. By the thread above, I tie osc2 from the 16f876 to osc1 on the 16f88. What about the second osc2 input on the 16f88. Do I leave that pin hanging or tie it to something?


    Thank you,

    Ross
    For one thing, OSC2 is usually Fosc/4 (i.e. 10mhz in = 2.5mhz out), so depending on how you have it set up, the one PIC will run 1/4 the speed of the other PIC. In any case, you try it with it hanging; it doesn't work, try a weak pull up, that doesn't work, try a weak pull up, etc. and so on and so on...

    If it was me (and I've done this before), I'd get yourself one of those 4 pin oscillators, run the clock output of that into something like a 7404, tie a couple of the inputs together, and use the individual outputs to drive the seperate clocks of the PICs, which are set to external clock or HS mode. Simply put, the 7404 is used as a buffer to keep the 2 inputs from messing with each other.
    Or, use a 7404 as part of a crystal oscillator circuit and take the output and run it into a couple of other inputs as suggested above.

  3. #3
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    rossfree, Don't listen to skimask as the OSC2 output is divided by 4 ONLY in RC mode and INTIO mode. Either of which you are using. In normal HS or XT modes the OSC1 signal is buffered and inverted on OSC2. It's all in the data sheets....

    Dave Purola,
    N8NTA

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dave View Post
    rossfree, Don't listen to skimask as the OSC2 output is divided by 4 ONLY in RC mode and INTIO mode. Either of which you are using. In normal HS or XT modes the OSC1 signal is buffered and inverted on OSC2. It's all in the data sheets....

    Dave Purola,
    N8NTA
    Right, don't listen to me...sometimes I don't know what I'm talking about....like in the above post

  5. #5
    Join Date
    Oct 2004
    Location
    New Hampshire
    Posts
    76


    Did you find this post helpful? Yes | No

    Default

    Thank you... I was a bit puzzled...

    Which brings me back to the original question...

    Do I tie off osc2 on the second PIC or leave it unattached??? Looking for a simple answer. :-)

    Ross
    Never enough knowledge to be called intelligent but just enough knowledge to be considered dangerous!

    I like that! :-)

  6. #6
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Just leave it hanging (or use it as an available I/O if your particular PIC permits). If you needed to do something with it, I would have said so in my original post at the start of this thread.

Similar Threads

  1. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 07:31
  2. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 13:35
  3. 32 bit square root
    By Charles Linquis in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 6th May 2009, 03:37
  4. one line led light make image
    By bioul in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 13th February 2008, 12:19
  5. HSERIN doesn´t work
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 29th July 2007, 14:23

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