How to reset MC9S08AW60 from C code.I am using CW 6.3 with PE.I am checking falling edge of an external signal using input capture method.Low edge of the external signal will trigger the timer and timer will check the state of external signal for 10ms.If the signal is low for more than 10ms I have to reset the controller.So please help me to reset the controller using software code.
Hello Nino,
I have previously used the illegal opcode reset method, making use of the following macro.
#define ILOP_RESET asm dcb 0x8D // Illegal opcode reset macro
Regards,
Mac
Thanks Eckhard and bigmac.....I tried with illegal opcode and it worked....:smileyhappy:
Hello,
you should look here : HCS08: There is no "reset" instruction?
This has been discussed before.
Best way is to use the ILOP reset.
Eckhard