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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

Jump to solution
924 Views
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.

Labels (1)
Tags (1)
0 Kudos
1 Solution
629 Views
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.

View solution in original post

0 Kudos
2 Replies
630 Views
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 Kudos
629 Views
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 Kudos