Shop OBEX P1 Docs P2 Docs Learn Events
Two Objects that set the Clock Mode — Parallax Forums

Two Objects that set the Clock Mode

th3jesterth3jester Posts: 81
edited 2011-05-03 19:18 in Propeller 1
I have a parent object, the parent object sets the clock mode at 80Mhz. Then I have an object being used by the parent and that object also sets the clock mode at 80 Mhz. Does this cause an issue? Does the second setting of the clock mode get ignored?

My program runs fine as is.

Comments

  • MagIO2MagIO2 Posts: 2,243
    edited 2011-04-23 13:47
    The clock-settings are compiled into the first 16 byte of the HUB-RAM, from where it's read by the boot-code before passing control to the SPIN-interpreter. So, you can only have one setting. The settings of the top object are used.

    It's also possible to change clock-settings during runtime, but you have to code that.
  • TappermanTapperman Posts: 319
    edited 2011-04-29 17:54
    MagIO2 wrote: »
    It's also possible to change clock-settings during runtime, but you have to code that.

    Really! How would that be done?

    ... Tim
  • kuronekokuroneko Posts: 3,623
    edited 2011-04-29 17:58
    Tapperman wrote: »
    Really! How would that be done?
    See the manual (v1.1, page 71), clkset command.
  • TappermanTapperman Posts: 319
    edited 2011-05-03 19:18
    That's funny ... I've read that manual 40 times and I missed that opening paragraph!

    thanx ... Tim
Sign In or Register to comment.