Good morning,
I'm trying to configure a software Watchdog in my tms320f28337D.
I've read the manual seen the Control Suite example but I'm having problems to understand if my configuration is correct.
I'm using the register:
WdRegs.WDCR.all = 0x0028;
and, acording with the manual:
WdRegs.WDCR.bit.WDPS = (.....)
These bits configure the watchdog counter clock (WDCLK) rate relative to INTOSC1/512:
000 WDCLK = INTOSC1/512/1
001 WDCLK = INTOSC1/512/1
010 WDCLK = INTOSC1/512/2
011 WDCLK = INTOSC1/512/4
100 WDCLK = INTOSC1/512/8
101 WDCLK = INTOSC1/512/16
110 WDCLK = INTOSC1/512/32
111 WDCLK = INTOSC1/512/64
So, being the INTOSC1 the internal oscilator with 10 Mhz, I should have around 10MHz / 512 / 1 = 19,53 KHz ~= 51,2 useconds as the minimum time and
10MHz / 512 / 64 = 305,17 Hz ~= 3,3 mseconds as te maxium time available for the watchdog reset interruption.
But in my code (and in the Control Suite example), I'm getting 15 mseconds as the minimum time and 1 second as the maximum time for the watchdog interruption.
Am I missing something? Some configuration?
My best regards, Jorge


