I have a CLA code to compute the motion profile. When I turn on the power first time, it can't work, just give the wrong result. But it works fine after I use the watchdog to restart the chip. The restart code is
EALLOW;
SysCtrlRegs.WDCR = 0x0000;
EDIS;
I don't know the reason.
Any help would be greatly appreciated.
Thank you in advance!
Dodo