correct, SWDTEN is bit 0 of WDTCON, my usage of the term was not clear as SWDTEN is also the name one of the config settings for WDT, sorry about that
the way i read everything in the data unless config1 <4:3> is set to allow SWDTEN then SWDTEN bit in WDTCON.0 is ignored
this is from the data sheet for WDTCON
WDTE is 2 bits in CONFIG1
bit 0 SWDTEN: Software Enable/Disable for Watchdog Timer bit
If WDTE<1:0> = 00:
This bit is ignored.
If WDTE<1:0> = 01:
1 = WDT is turned on
0 = WDT is turned off
If WDTE<1:0> = 1x:
This bit is ignored.
this is what i cannot get to work correctly, have tried many things
i can turn WDT hard ON or hard OFF in config and things work as expected, but when i set WDT to SWDTEN in config the SWDTEN bit of WDTCON does not work correctly,
have tried setting it manually in parts of test code before and after NAP
i can see the WDTCON.0 being of the expected state but WDT is not turning ON and OFF following the bit
i think maybe NAP is not handling this chip correctly or maybe there is a bug in chip ?
thanks for your patience in following up on this, maybe i have missed something you have said ?
looking at the NAP ASM code it does not seem to know about the WDT config settings ? is that true ?
Bookmarks