Software reset for MC9S12ZVCA192 controller

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

Software reset for MC9S12ZVCA192 controller

1,167件の閲覧回数
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 返答(返信)

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

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