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.
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
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.
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.
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.
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>