Cypress技术论坛
直播中

李代三

7年用户 174经验值
私信 关注
[问答]

请问如何使用看门狗定时器

大家好,
你能解释一下如何使用看门狗计时器吗?我知道FX3有一个看门狗定时器,但我找不到如何使用它。
谢谢你的帮助
维克托

以上来自于百度翻译


     以下为原文
  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

回帖(4)

刘超

2019-4-26 08:47:33
你好,
在最新的FX3APIGIDEN.PDF的第27页,你可以找到相应的信息和API来使用看门狗。
当做!

以上来自于百度翻译


     以下为原文
  Hi,
    on page 27 of the latest FX3APIGuide.pdf you can find the according informations and API's for using the watchdog.
    Regards!
举报

李代三

2019-4-26 09:00:45
谢谢你的回复,
它起作用了。当设备不响应时,看门狗重置该设备。现在我还有另一个问题。如果看门狗复位发生在哪里,我能读出。我试图从登记cy_u3p_pib_pp_init读这信息但即使看门狗复位发生它总是0x0C01。
谢谢你的帮助

以上来自于百度翻译


     以下为原文
  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
举报

李猛

2019-4-26 09:10:10
您将实现自己的机制来检测看门狗重置。这可以通过使用未初始化的全局标志或通过在SPI/I2C EEPROM中存储标志来完成。

以上来自于百度翻译


     以下为原文
  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.
举报

李代三

2019-4-26 09:28:11
好的,行得通。
谢谢

以上来自于百度翻译


     以下为原文
  OK, it works.
    Thanks
举报

更多回帖

发帖
×
20
完善资料,
赚取积分