Watchdog disable in wait mode

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Watchdog disable in wait mode

跳至解决方案
2,225 次查看
tarikaweimrin
Contributor III

Is it possible to disable the watchdog when in wait/vlpw mode?  I am running on a KL26Z and the watchdog on the 1kHz clock

标签 (1)
0 项奖励
回复
1 解答
1,723 次查看
dereksnell
NXP Employee
NXP Employee

Hi Tarik,

Yes, the SIM_COPC register is a write-once register after reset.

The COP watchdog is still enabled in WAIT or VLPW modes because the bus clock and other clock sources are still enabled in those modes. If you want the COP watchdog enabled, and you would like to use those WAIT modes, then you will need to wake the core periodically to service the COP watchdog, like using another hardware timer interrupt.

Thanks

在原帖中查看解决方案

0 项奖励
回复
3 回复数
1,723 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Please use below code to disable the KL26 watchdog before enter into wait/vlpw mode.

/* Disable the watchdog timer */

SIM_COPC = 0x00;

Wish it helps.


Have a great day,
Ma Hui

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,723 次查看
tarikaweimrin
Contributor III

I thought the SIM_COPC can only be written once after a reset.  I am writing 0x0C on reset to enable the watchdog but want to enter wait mode with the watchdog disabled.

0 项奖励
回复
1,724 次查看
dereksnell
NXP Employee
NXP Employee

Hi Tarik,

Yes, the SIM_COPC register is a write-once register after reset.

The COP watchdog is still enabled in WAIT or VLPW modes because the bus clock and other clock sources are still enabled in those modes. If you want the COP watchdog enabled, and you would like to use those WAIT modes, then you will need to wake the core periodically to service the COP watchdog, like using another hardware timer interrupt.

Thanks

0 项奖励
回复