Watchdog disable in wait mode

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Watchdog disable in wait mode

ソリューションへジャンプ
1,322件の閲覧回数
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 解決策
820件の閲覧回数
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 返答(返信)
820件の閲覧回数
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 件の賞賛
820件の閲覧回数
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 件の賞賛
821件の閲覧回数
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 件の賞賛