TC265: How many time to setup or deactivate watchdog ?

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
TeeEff
Level 1
Level 1
First like received 5 sign-ins First reply posted

Hello, 

I would like to know how long we have to setup or deactivate a watchdog after the power ON on a TC265.

I didn't find this information on user manual.

If I consider the Timer value is initialized with 0xFFFC and clock diviser initialized to 16384, I found a period of 0.5 ms with is very low.

What is the correct value ?

0 Likes
3 Replies
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

Hi TeeEff,

There is a demo for WDT TC2xx. For 0xFFFC, there are only 4 clocks to expire, generally, this time slice is used for access ENDINIT protected register. For watchdog service function, there are generally larger time slice than that.

i.e. If the watchdog is set to 4s to service, then there are enough time to service it. And after the CPU reset, the watchdog is not enabled initially.

dw

0 Likes
TeeEff
Level 1
Level 1
First like received 5 sign-ins First reply posted

Thanks you dw.


@Di_W wrote:

 And after the CPU reset, the watchdog is not enabled initially.


I didn't have this point. I was thinking the watchdog of core 0 is enabled at reset as WDTCPU0CON1.DR = 0 and only watchdog of core 1 is disabled (WDTCPU1CON1.DR = 1).

I should have miss something.

 

Regards

0 Likes
Di_W
Moderator
Moderator
Moderator
1000 replies posted 250 solutions authored 100 likes received

Hi TeeEff,

If the watchdog of core 0 is enabled at reset, it should give enough time to disable it.

 

dw

0 Likes