EmbeddedRelated.com
Forums
The 2024 Embedded Online Conference

How to do Watchdog reset ?

Started by sanj...@gmail.com March 21, 2008
Hi ALL,
I want WDCR and SCSR configuration details for watchdog reset. I have gone through the data sheet and configure them as per my understanding. In my case watchdog reset (I can monitor low reset signal at XRS pin using CRO) is happening. Sometime it is re-executing a code and sometimes it is not !!! And even if it is re-executing a code the WDFLAG bit in WDCR register is not getting set to indicate watchdog reset. I think something is going wrong with my either watchdog registers setting or command (cmd) file setting.
Here is my registers setting:

SysCtrlRegs.WDCR = 0x00AF;

i = 0;
// Monitor WDINTS bit to check the current status of WDINT signal
i = SysCtrlRegs.SCSR & 0x0004;

// WDINTS (bit-3) should be high to Re-configure Watchdog Timer in RESET
while (i != 4)
i = SysCtrlRegs.SCSR & 0x0004;
// Re-configure the watchdog to the RESET Mode
EALLOW;
SysCtrlRegs.SCSR = 0x0000;
EDIS;

Please help me guys... I am really fed up...
Thanks in advance..

Regards,
Sanjaykumar T.


Check Out Industry's First Single-Chip, Multi-Format, Real-Time HD Video Transcoding Solution for Commercial & Consumer End Equipment: www.ti.com/dm6467

The 2024 Embedded Online Conference