What is the duration of this reset, if it is reset?
You may add a PAUSE 1000 at the beggining of the program and see if this duration is increased. This will confirm that PIC is indeed reseting.
Ioannis
What is the duration of this reset, if it is reset?
You may add a PAUSE 1000 at the beggining of the program and see if this duration is increased. This will confirm that PIC is indeed reseting.
Ioannis
It is definitely a reset, a look at the lst file shows that the looped code segment has no pbp statements in it that generate a clwdt instruction
that loop does the the same thing for every pic chip i tried. its not really a practical loop more a curiosity
Warning I'm not a teacher
I was testing a new breadboard layout and PIC config; to make sure I had a heartbeat before piling more code.
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Since on power up the SEN bit of the WDTCON0 register is at 0 (Watchdog disabled), why does that chip resets itself?
Ioannis
Because if the WDTE bits in CONFIG3 is anything but 0b01 the SEN bit is ignored and the CONFIG block of the code contains _WDT_ON which, according to the .INFO file for the device meansIf you want software control of the WDT you could chooseCode:_WDTE_ON ;WDT enabled regardless of sleep; SWDTEN ignored/Henrik.Code:_WDTE_SWDTEN ;WDT enabled/disabled by SWDTEN bit in WDTCON0
But then I see no way that PBP is aware of that or can reset the WDT.
Ioannis
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Bookmarks