Shop OBEX P1 Docs P2 Docs Learn Events
Changing speeds in SPIN — Parallax Forums

Changing speeds in SPIN

william chanwilliam chan Posts: 1,326
edited 2008-09-03 01:46 in Propeller 1
Hi,

What is the best way to change clock speed from PLL1X to PLL4X during run time in SPIN?

Thanks.

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
www.fd.com.my
www.mercedes.com.my

Comments

  • mirrormirror Posts: 322
    edited 2008-09-03 01:27
    Clkmode := xtal1 + pll1x
    clkmode := xtal1 + pll4x

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • william chanwilliam chan Posts: 1,326
    edited 2008-09-03 01:32
    During run time?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    www.fd.com.my
    www.mercedes.com.my
  • mirrormirror Posts: 322
    edited 2008-09-03 01:41
    According to the manual - yes.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • Mike GreenMike Green Posts: 23,101
    edited 2008-09-03 01:46
    If the crystal oscillator is already running, just changing CLKMODE should do it.

    If the crystal oscillator is not running, you have to start it while still running off one of the internal clocks and wait for a little while before switching to one of the PLL settings. See the description of the clock modes in the Propeller manual.
Sign In or Register to comment.