Shop OBEX P1 Docs P2 Docs Learn Events
Question about XI — Parallax Forums

Question about XI

Clock LoopClock Loop Posts: 2,069
edited 2009-06-09 11:29 in Propeller 1
Why can't I just halt the propeller by stopping the XI input?

And then start it again any given amount of time later?

I noticed it doesn't like that,
I tried to freeze the clock and then start it back up a few seconds later,
It will sometimes stop my program, sometimes it runs, and others it runs slow, and then some parts of the program will sometimes work, and others not.


Its too bad one can't just pause the prop by stopping the clock.
Is there any way to do this?

Do I need to follow a special sequence to get it to handle this kind of manipulation?
(like have the XI input rest high or something?)

Comments

  • kuronekokuroneko Posts: 3,623
    edited 2009-06-09 10:50
    What clock mode are you using? Anything PLL based is doomed, IIRC.
  • Clock LoopClock Loop Posts: 2,069
    edited 2009-06-09 10:52
    kuroneko said...
    What clock mode are you using? Anything PLL based is doomed, IIRC.

    _clkmode = xtal1 + pll16x


    Can anyone explain why this matters?
  • kuronekokuroneko Posts: 3,623
    edited 2009-06-09 10:56
    PLL requires 4MHz-8MHz at XI. If you want to basically stop your clock you need XINPUT mode (DC..80MHz).

    You can probably get away with it when you switch to RCFAST/RCSLOW first, then kill XI, and later switch back to PLL mode once the clock is stable again.

    Post Edited (kuroneko) : 6/9/2009 11:07:52 AM GMT
  • Clock LoopClock Loop Posts: 2,069
    edited 2009-06-09 11:29
    kuroneko said...
    You need XINPUT mode


    Thanks.
Sign In or Register to comment.