在我看来,在启用它之前你不能写入IWDG的PR和RLR寄存器...即。你必须首先在KR中加载0xCC(ENABLE_KEY),然后在KR中再次加载0x55(ACCESS_KEY),最后写入预分频器并重新加载值。
实际上,您必须在配置之前启用WDG!
以上来自于谷歌翻译
以下为原文
It seems to me that you can't write access both PR and RLR register of IWDG before enabling it...I.e. you must first load 0xCC (ENABLE_KEY) in KR, then 0x55 (ACCESS_KEY) again in KR, and finally write the prescaler and reload values.
In fact you must enable the WDG before configure it!
在我看来,在启用它之前你不能写入IWDG的PR和RLR寄存器...即。你必须首先在KR中加载0xCC(ENABLE_KEY),然后在KR中再次加载0x55(ACCESS_KEY),最后写入预分频器并重新加载值。
实际上,您必须在配置之前启用WDG!
以上来自于谷歌翻译
以下为原文
It seems to me that you can't write access both PR and RLR register of IWDG before enabling it...I.e. you must first load 0xCC (ENABLE_KEY) in KR, then 0x55 (ACCESS_KEY) again in KR, and finally write the prescaler and reload values.
In fact you must enable the WDG before configure it!
举报