How to use Watchdog timer

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

cross mob
Anonymous
Not applicable

Hi everyone,

   

can you explain me how to use the watchdog timer. I know that the FX3 has a watchdog timer but I can't find a desciption how to use it.

   

Thanks for helping

   

Viktor

0 Likes
4 Replies
RoKl_290166
Level 4
Level 4
Welcome!

Hi,

   

on page 27 of the latest FX3APIGuide.pdf you can find the according informations and API's for using the watchdog.

   

Regards!

0 Likes
Anonymous
Not applicable

Thanks for your response,

   

it works. The watchdog resets the device when it is not responsive. Now I have another problem. Where can I read out if a watchdog reset occured. I tried to read this information from register CY_U3P_PIB_PP_INIT but it is always 0x0C01 even if a watchdog reset occured.

   

Thanks for helping

0 Likes
Anonymous
Not applicable

You will have implement your own mechanism to detect watchdog reset. This can be done by using uninitialized global flag or by storing a flag in SPI/I2C EEPROM.

0 Likes
Anonymous
Not applicable

OK, it works.

   

Thanks

0 Likes