Thanks for the input Lukas.
How can i check whether the counter is running or not ? From datasheet its mentioned that SWT_CO reg will show the downcounter value.
So what I did is I configured internal watchdog and put a while(1) in main to make the controller to reset.But I couldnt see any update in SWT_CO register. So in the configuration do i need to change anything ? Below is the configuration i did.
SWT.SR.R = 0x0000c520;
SWT.SR.R= 0x0000d928;
SWT.TO.R= 0x4CCCCCCC; /*to get 10ms what value should i load ?*/
SWT.CR.R= 0x8000010B;
- What value should i load in SWT.TO.R reg to reset the controller if watchdog is not refreshed within 10ms ?
- With this configuration and just disabling the watchdog will I be able to watch the counter running ?
Thanks in advance.