Shop OBEX P1 Docs P2 Docs Learn Events
Dual interface of crystals — Parallax Forums

Dual interface of crystals

PhilldapillPhilldapill Posts: 1,283
edited 2008-01-08 00:51 in Propeller 1
Is it possible to share a crystal between the propeller and another chip? I have an ADS1211P 24 bit ADC I'd like to use with the prop and it only seems logical that they would be syncronized with the same crystal. I'm not too experienced with how crystals operate so I'm not sure if there would be a probelm. Basically, the propeller XIN and XOUT would stay the same, but the ADC XIN would just be connected to the XIN of the propeller as well. I would think that they would share the same clock freq.

Any problem yet?

Comments

  • LeonLeon Posts: 7,620
    edited 2008-01-07 22:41
    You should use XO for output from the Prop crystal oscillator.

    Leon

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Amateur radio callsign: G1HSM
    Suzuki SV1000S motorcycle
  • PhilldapillPhilldapill Posts: 1,283
    edited 2008-01-07 22:53
    So, connect the prop to the crystal as usual, but connect the XIN of the ADC to the XOUT of the prop?
  • Paul BakerPaul Baker Posts: 6,351
    edited 2008-01-07 23:07
    No, you can't use the same crystal as the clock source for two different chips, it just doesn't work that way. You can use an active oscillator to drive more than one chip.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Paul Baker
    Propeller Applications Engineer

    Parallax, Inc.
  • parts-man73parts-man73 Posts: 830
    edited 2008-01-07 23:12
    ....or have the propeller generate the clock for the second chip.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Brian

    uController.com - home of SpinStudio

    PropNIC - Add ethernet ability to your Propeller!

    SD card Adapter
  • HarleyHarley Posts: 997
    edited 2008-01-08 00:41
    Philldapill,

    Consider using the 'Synth' object to generate your ADC clock.

    I'm using it to generate a 5 MHz sq. wave for the 2nd Prop of a two Prop project. Works great. Only 'costs' one I/O pin.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Harley Shanko
  • PhilldapillPhilldapill Posts: 1,283
    edited 2008-01-08 00:51
    Nice. I think I'll try that. One pin isn't too bad at all! Thanks guys!
Sign In or Register to comment.