Software reset for MC9S12ZVCA192 controller

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

Software reset for MC9S12ZVCA192 controller

1,171 次查看
dhankarcdas
Contributor II

Hi

 

I want to know whether we can do a software reset for MC9S12ZVCA192 controller. Any register configuration to do a software reset.

I referred the device manual but could not find any reset which can be done by software.

 

Regards

Dhankar

标签 (1)
0 项奖励
回复
2 回复数

900 次查看
kef2
Senior Contributor V

Like on all other S12(X) devices,

CPMUARMCOP / ARMCOP / COPRST register:

Writing any value other than $55 or $AA causes a COP reset.

Edward

0 项奖励
回复

900 次查看
RadekS
NXP Employee
NXP Employee

Thank you Edward,

Just note: COP watchdog must be initialized prior such write.

So, for example CPMUCOP=0x01; will initialize COP. After that we could write to CPMUCRMCOP register for MCU reset.

Important note: some bits in CPMUCOP register could be written just once in normal mode. So, you should write to CPMUCOP just once in your code otherwise second write will be ignored.

Second theoretical option: You could invoke Illegal address reset by accessing unimplemented memory range however I would like to recommend use rather first option (COP reset).


I hope it helps you.

Have a great day,
RadekS

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复