Shop OBEX P1 Docs P2 Docs Learn Events
Setting the System Clock in Spin — Parallax Forums

Setting the System Clock in Spin

TonyATonyA Posts: 226
edited 2007-07-25 20:08 in Propeller 1
I'm using a 10 MHz external crystal, and importing·driver that requires the "system·clock" to be set at 80 MHz.

Would I add this to the CON block of my top object file:

CON
· _clkmode = xtal2 + pll8x
· _xinfreq = 10_000_000 + 0000

Thanks.
Tony

Post Edited (TonyA) : 7/25/2007 2:34:33 PM GMT

Comments

  • JonathanJonathan Posts: 1,023
    edited 2007-07-25 14:36
    I use a 10 mHz resonator, and what I use is:

    _clkmode = xtal1 + pll8x
    _xinfreq = 10_000_000

    Note this is a resonator. I have never used a crystal. The _xin and PLL will be the same thhough.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.madlabs.info - Home of the Hydrogen Fuel Cell Robot
  • deSilvadeSilva Posts: 2,967
    edited 2007-07-25 20:08
    The manual says:
    XTAL1     2000 Ω     36 pF        4 to 16 MHz Crystal/Resonator
    XTAL2     1000 Ω     26 pF        8 to 32 MHz Crystal/Resonator
    XTAL3      500 Ω      16 pF       20 to 60 MHz Crystal/Resonator
    



    Generally XTAL1 as well as XTAL2 work fine with 10 MHz crystals (as in the Hydra and on the SpinStamp)
Sign In or Register to comment.