Software reset for MC9S12ZVCA192 controller

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Software reset for MC9S12ZVCA192 controller

669 Views
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

Labels (1)
0 Kudos
2 Replies

398 Views
kef2
Senior Contributor IV

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 Kudos

398 Views
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 Kudos