This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

The fastest way to recognize stuck code: the built in watch dog VS Timer 1.



Hello,

I work with the f28335 DSP
with out BIOS.

I examine to use timer 1 as a watch dog rather then the built in watch dog.
I need to recognize stuck code in 1/4800 sec (the main loop in the code is run in 4800Hz).

Another point is: I don't need to Reset the code. just to recognize stuck code.

The considerations are:
The default configuration for watchdog clock is divide by 512 .  
With a 30 MHz clock the default timeout is around 4 mS. (30MHz/512) * 255 = 4.3 mS.
4.3mS is the fastest frequency with the 30 MHz clock.... too slow for my needs.
Another point is that the WD is NOT NMI, and i have no external timer
 that can be used as NMI.

I need faster way to recognize stuck code.

With timer 1 I can get faster interrupts event.
 
Is there any reason to prefer to work with the built in WD timer rather
then one for the timers in order to extricate from stuck program??



Regards.
Asher.