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.
已解决! 转到解答。
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.
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.
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