Shop OBEX P1 Docs P2 Docs Learn Events
Reboot in assembler — Parallax Forums

Reboot in assembler

APStech-AttilaAPStech-Attila Posts: 38
edited 2007-10-09 07:10 in Propeller 1
Hi!

· I have a small platform, that has a bootloader in boot·EEPROM. The BL code loads the application form an external source. Then the bootloader transfers the control to the user application. This is pretty much working fine. (Thank Chip for the info on starting a RAM image)

· To enter the bootloader again, I would isse·the REBOOT SPIN command, and I can hop back to the bootloader. The problem is that I have to integrate the reboot command in the keyboard module (Keyboard.spin) in ASM language, because it must work whenever it is possible to read the keyboard. What instruction should I issue in ASM to have the same effect as REBOOT SPIN command.

Thank in advance.

· Attila

Comments

  • Graham StablerGraham Stabler Posts: 2,507
    edited 2007-10-08 13:21
    Have a look at page 28 of the manual if you write a one to the 7th bit of the CLK register it will reset the propeller, you can use the clkset command. I just tried this and it works.

    clkset    bitseven
    
    bitseven   long  %10000000
    
    
  • APStech-AttilaAPStech-Attila Posts: 38
    edited 2007-10-09 07:10
    Thanks a·lot Graham!

    Regards,
    · Attila
Sign In or Register to comment.