software reset in MC9S08AW60

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

software reset in MC9S08AW60

1,246件の閲覧回数
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.

ラベル(1)
0 件の賞賛
返信
3 返答(返信)

1,077件の閲覧回数
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 件の賞賛
返信

1,077件の閲覧回数
ninomathew
Contributor I

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

0 件の賞賛
返信

1,077件の閲覧回数
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 件の賞賛
返信