Watchdog disable bit (WDOG_CS1 b7) isn't working on a PA4.

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

Watchdog disable bit (WDOG_CS1 b7) isn't working on a PA4.

ソリューションへジャンプ
1,126件の閲覧回数
CustomSarge
Contributor III

I set an infinite loop, just after program start. If a reset happens it saves the SYS_SRS and loops on resetting watchdog until I manually suspend. It shows a watchdog reset occurred ($20) regardless of watchdog disabled bit. I'm I missing something?  I'm next going to set the watchdog clock to external, which doesn't exist, so should never count.

ラベル(1)
タグ(1)
0 件の賞賛
返信
1 解決策
831件の閲覧回数
CustomSarge
Contributor III

Again, more carefully read... I see the "unlock" for config access.

Oh, that And you have to write all registers, exc Window, unless selected.

Boy the latest generation is a Lot different.

Somebody lost a lot of sleep thinking this one up.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
832件の閲覧回数
CustomSarge
Contributor III

Again, more carefully read... I see the "unlock" for config access.

Oh, that And you have to write all registers, exc Window, unless selected.

Boy the latest generation is a Lot different.

Somebody lost a lot of sleep thinking this one up.

0 件の賞賛
返信
831件の閲覧回数
CustomSarge
Contributor III

Found something interesting...

LDHX   #$xxxx

STHX   WDOG_TOVAL

doesn't seem to satisfy the "set all register" rule

(watchdog TOs still happen)

LDA   #$xx

STA   WDOG_TOVALH

LDA   #$xx

STA   WDOG_TOVALL

does (TOs don't happen)... HMMM

0 件の賞賛
返信