software reset in MC9S08AW60

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

software reset in MC9S08AW60

1,238 次查看
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,069 次查看
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,069 次查看
ninomathew
Contributor I

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

0 项奖励
回复

1,069 次查看
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 项奖励
回复