Setting the System Clock in Spin
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
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
_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
Generally XTAL1 as well as XTAL2 work fine with 10 MHz crystals (as in the Hydra and on the SpinStamp)