Sharing Crystal with 2 IC's


Closed Thread
Results 1 to 6 of 6
  1. #1
    Join Date
    Apr 2009
    Location
    Boise, Id
    Posts
    44

    Question Sharing Crystal with 2 IC's

    Sorry, not a code issue, it's a circuit issue, but I'm at a loss so here I am, begging for guidance:

    I have a setup with the pic talking with DTMF IC's, the HT9170B and HT9200B from Holtek (DTMF Generator and DTMF Receiver). Both use the 3.579545 MHz crystal and 20 pF caps.

    All is good when the IC's have their own crystal, when I try to share the crystal, the receiver doesn’t work correctly. I connected X1 to X1 and X2 to X2, so the crystal is parallel, didn't work. Other combinations also don't seem to work.

    What happens is pin 15 (DV) on the receiver should drive high when a valid tone is received. It will then decay at a rate set by the RC circuit on pins 16/17. This works with a dedicated crystal. Sharing a crystal, DV drives low when a tone is received, and stays high the rest of the time. It’s almost inverted from normal operation.

    When the pin drives high I know a new tone has been received and is ready to be read into the pic from 4 data ports D0-D3. With the pin driving high, that breaks the code.

    It seems to me that the two chips should be able to share, I've Googled this every way I can think (Try googling "sharing crystal" and see what you get! I did find one article that said it should be in series, X2 to X1 and nothing connected to X2 of the last IC in the series.

    Is sharing the crystal a dead end and I should give up while I'm behind and just use separate crystals?

    Thanks,
    Shane

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by ShaneMichael View Post
    I did find one article that said it should be in series, X2 to X1 and nothing connected to X2 of the last IC in the series
    That's how it should be.

    1 chip has the crystal and capacitors on both X1 and X2.
    X2 from the chip with the crystal goes to X1 of the other chip.
    X2 of the second chip will be unused.
    <br>
    DT

  3. #3
    Join Date
    Apr 2009
    Location
    Boise, Id
    Posts
    44


    Did you find this post helpful? Yes | No

    Default

    ok, I'll go back and try that set up again, glad I'm not crazy to think that should work.

    Also I'll try leaving the crystal across the reciever and take X2 to X1 of the generator.

    Thanks,
    Shane

  4. #4
    Sirdeevo's Avatar
    Sirdeevo Guest


    Did you find this post helpful? Yes | No

    Default Re: Sharing Crystal with 2 IC's

    Hi Shane,

    Did you get this working in the end?

    As it happens I'm using the same two chips, and have had the same thought!
    I searched for "sharing crystals between IC", but I could take a guess where "sharing crystal" might get you

    I was talking to a friend and they recommended I use a series resistor, and tune it up to minimise reflections off the IC1-X2(out) and IC2-X1(IN) as well.

    Cheers,

  5. #5
    Join Date
    Apr 2009
    Location
    Boise, Id
    Posts
    44


    Did you find this post helpful? Yes | No

    Default Re: Sharing Crystal with 2 IC's

    Yes, this did work, just as Darrel Taylor posted in his reply. I didn't use any additional hardware, just the two capacitors and crystal. I do remember having trouble with one of the IC's, seems like when I toggled the Enable/Disable it would shut down the crystal. I tested the other IC it the crystal worked Enabled or not. So I used it and took X2 of it to X1 of the other IC.

    Hope that helps,
    Shane

  6. #6
    Join Date
    Jan 2013
    Posts
    1


    Did you find this post helpful? Yes | No

    Default Re: Sharing Crystal with 2 IC's

    Hi,

    old Topic but great solution and answer!

    Just to add, as Shane pointed out:
    The HT9170 has got a PWDN pin, which would inhibit the oscillator, so one will have to attach the crystal to the HT9200.


    Brian

Similar Threads

  1. How to drive the Vinculum VDIP1 in UART mode
    By BrianT in forum Code Examples
    Replies: 41
    Last Post: - 23rd May 2013, 13:34
  2. 2 PICs driven by one Crystal problem
    By ivanzop in forum Schematics
    Replies: 1
    Last Post: - 9th August 2009, 16:40
  3. USB-FTDI[UM232R] with PIC16f877a
    By bjox in forum USB
    Replies: 1
    Last Post: - 23rd February 2008, 23:40
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 21:36
  5. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 18:27

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