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

Software Reset

I can generate a software reset by the following code:

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

After the reset, however, my application no longer responds to my interrupts. How can I reinizialize all my interrupts in C?

Any help would be appreciated.

Thanks.

Parents
  • I can generate a software reset by the following code:

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


    everybody and his brother "can generate a software reset by the following code" very few can make it work.

    To make it work by this method, you must meticuously restore the reset value of each and every SFR at the beginning of startup/a51.

    The ONE safe and easy method is to let the watchdog time out.

    Erik

Reply
  • I can generate a software reset by the following code:

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


    everybody and his brother "can generate a software reset by the following code" very few can make it work.

    To make it work by this method, you must meticuously restore the reset value of each and every SFR at the beginning of startup/a51.

    The ONE safe and easy method is to let the watchdog time out.

    Erik

Children
No data