I am working on the watchdog of TMS570LC4357.
In the data manual, I found the expiration time of the DWD down counter is
texp = (DWDPRLD + 1) * 2^13/RTICLK
I checked the HalCogen in which RTICLK is 75Mhz.
So, what is the unit of texp? seconds?
I did further test with my code that my RTICLK divider value is 2 (RTIDIV=1). My DWDPRLD = 4095. Then, my texp is
texp = (4095+1)*2^13/(75mHz/2) = 0.84sec.
Is my calculation correct?
I set a deadloop in my code and a pin to be HIGH once code starts. It means that when the code start, the pin is set to high. When the code running past the texp which is 0.84sec, the chip will reset and of course the pin will go LOW.
With a scope I can see that the the pin toggles which means the chip keeps on resetting because of the watchdog. but, the time interval between the toggled pin pulse is not 0.84sec but 0.44sec. Is there anything wrong or is there any part of my understanding of the equation is wrong?
Thanks a lot!