COP problem in QG8

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

COP problem in QG8

1,576件の閲覧回数
HarrySun
Contributor I
Hello,
 
in my code (MCU qg8), I need to disable COP first and then enable it later for a few times,but In QG8,it says SOPT1 can be written only once after reset.
this means I couldn't reenable COP later if I disable COP at the beginning.
amyones knows how to solve this problem?I don't want to reset cop for too many times...
 
thanks very mcuh
 
 
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

402件の閲覧回数
rocco
Senior Contributor II
Hi, Harry:

I think Joerg is right,, but if you really want to enable/disable the watchdog on the fly, I believe that the only way you can do it is to perform a reset each time.
0 件の賞賛
返信

402件の閲覧回数
joerg
Contributor II
Hello Harry
why do you want to switch the watchdog off and on? I think the benefit is to have the "house" under control even if you are out! So i do feeding the dog regularly except in ISR routines and did not have any problems.

Saluti Joerg
0 件の賞賛
返信