This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ASM+C51

Hi everybody

How can I restart the controller by internal rautine?(To simulate the external restart button)

Parents
  • An alternative method is to jump at the reset location (called warm boot).

    for example if your reset vector is located at 0x0000, you can use this C statement

    (*((const void(code*)(void)) 0x0000 ))();

    (equivalent with LCALL 0 )

Reply
  • An alternative method is to jump at the reset location (called warm boot).

    for example if your reset vector is located at 0x0000, you can use this C statement

    (*((const void(code*)(void)) 0x0000 ))();

    (equivalent with LCALL 0 )

Children