Shop OBEX P1 Docs P2 Docs Learn Events
CLKSET to "reset" CPU — Parallax Forums

CLKSET to "reset" CPU

Peter JakackiPeter Jakacki Posts: 10,193
edited 2015-10-23 09:19 in Propeller 2
I need a way to reset the CPU as if code has just been loaded and run for the first time. Is there an easy way to do this or is it possible to have the equivalent of the CLKSET #$80 to restart the CPU without wiping any code.

BTW, I tried a $100 0 DO I CLKSET LOOP but there was nothing to indicate that this register is active.

Comments

  • cgraceycgracey Posts: 14,152
    CLKSET #$100 should cause a reset.

    If it doesn't, it means something simple got broken that I will fix.
  • Doh, I just assumed that CLKSET was 8-bit and didn't try that one, but sure enough it resets to the point that I have to Do a load from PNut again. Is there anyway to get back to the reset that occurs after PNut has finished loading the P2 so that I don't have to reload it?
  • cgraceycgracey Posts: 14,152
    Doh, I just assumed that CLKSET was 8-bit and didn't try that one, but sure enough it resets to the point that I have to Do a load from PNut again. Is there anyway to get back to the reset that occurs after PNut has finished loading the P2 so that I don't have to reload it?

    It's a full reset. You'd have to make a program to shut down every other cog and then COGINIT me,#0.
Sign In or Register to comment.