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,154 次查看
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 解答
859 次查看
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 回复数
860 次查看
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 项奖励
回复
859 次查看
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 项奖励
回复