Shop OBEX P1 Docs P2 Docs Learn Events
PropBasic - change device frequency — Parallax Forums

PropBasic - change device frequency

camelot2camelot2 Posts: 54
edited 2010-09-13 17:29 in Propeller 1
hi, I am using
DEVICE P8X32A, XTAL1, PLL16X
FREQ 100_000_000
Is it possible to change the device frequency say in the middle of the program?
If so how do you do it? thanks

Comments

  • $WMc%$WMc% Posts: 1,884
    edited 2010-09-13 16:36
    camelot2 wrote: »
    hi, I am using
    DEVICE P8X32A, XTAL1, PLL16X
    FREQ 100_000_000
    Is it possible to change the device frequency say in the middle of the program?
    If so how do you do it? thanks
    '
    If you changed the "Xtal" freq on the fly. Wouldn't you have to change the Xtal as well?
    (from 6.25mHz to 5mHz)????
    '
    I gess changing the PLLxxX would change the CLK speed with out the need to change Xtal's
    '
    This is an intestine question!
  • HarleyHarley Posts: 997
    edited 2010-09-13 17:29
    camelot2, You could change to internal oscillator, which can be something like 12 to 20 KHz for a low power/sleep mode.

    But the crystal frequency definition is to tell the soft/firmware what is the speed of the external crystal, which it cannot know otherwise. Peruse the Prop manual a bit more on the details of doing the switch. There have been some threads talking about handling switching, though myself I've not yet had a need to use it.
Sign In or Register to comment.