software reset in MC9S08AW60

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

software reset in MC9S08AW60

562 Views
ninomathew
Contributor I

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.

Labels (1)
0 Kudos
3 Replies

393 Views
bigmac
Specialist III

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

0 Kudos

393 Views
ninomathew
Contributor I

Thanks Eckhard and bigmac.....I tried with illegal opcode and it worked....:smileyhappy:

0 Kudos

393 Views
eckhard
Contributor V

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

0 Kudos