Is there any software reset available for MC9S12ZVM ?

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

Is there any software reset available for MC9S12ZVM ?

1,152 次查看
ameykhatavkar
Contributor III

Hi team,

I want to perform controller reset while software execution is going depending upon the special condition.

I gone through the datasheet and S12Z core manual but unable to figure it out any such instruction to do so.

Please help me to resolve it.

 

Regards,

Amey

标签 (1)
4 回复数

851 次查看
lama
NXP TechSupport
NXP TechSupport

Hi,

You can use forced COP reset for SW reset  by writing different value to an ARMCOP register than sequence $AA,$55 which is used for refresh of the COP timer.

You can find an example for a similar device at https://community.freescale.com/docs/DOC-132986

Some more facts has to be taken into account. Please read https://community.freescale.com/docs/DOC-103737

 

Best Regards, Ladislav

0 项奖励
回复

851 次查看
ameykhatavkar
Contributor III

Hi Ladislav,

Thank you for reply.

Whatever you have mentioned I tried and its working.

But I want to know that, there is no direct method to do so, any assembly instruction instead of watchdog reset.

Regards,

Amey

0 项奖励
回复

851 次查看
lama
NXP TechSupport
NXP TechSupport

Hi Amey,

Unfortunately no.

I also use it in my applications. In the applications where COP is not used I enable COP just at the place where I need to restart the MCU and immediaty write 0x00 to ARMCOP.

Best regards,

Ladislav

0 项奖励
回复

851 次查看
ameykhatavkar
Contributor III

Ladislav,

Ok. Thank you.

Actually, in my application I am already using the watch dog functionality. So I want ot confirm for any other option.

Thanks for quick reply.

Regards,

Amey Khatavkar

————————————————————————————

KPIT | Web: www.kpit.com<http://www.kpit.com/>; Social: Facebook<http://www.kpit.com/facebook> | Twitter<http://www.kpit.com/twitter> | Linkedin<http://www.kpit.com/linkedin> | Youtube<http://www.kpit.com/youtube>

0 项奖励
回复