Page 1 of 1

Watchdog register error (PIC24F FV KA301-304)

Posted: Sun Apr 08, 2018 8:37 am
by Jörg Güldner
Hello Matrix team,
I need to write to the watchdog register "FWDT"
Example: FWDTbits.FWDTEN = 1;
For this c-code line I gets a compiling error, as if the complete register is not known.
Is my c-line incorrect or what happens here?


best regards
Jorg

Re: Watchdog register error (PIC24F FV KA301-304)

Posted: Sun Apr 08, 2018 2:05 pm
by medelec35
Hi Jorg,
You can't set configuration register bits in C code.
You should delete C code and set watchdog register within configuration settings:
Config FWDT.png
(73.2 KiB) Downloaded 1204 times
Martin

Re: Watchdog register error (PIC24F FV KA301-304)

Posted: Mon Apr 09, 2018 1:38 pm
by Jörg Güldner
Hi Medelec35,
you are right. While I´m programing, I over read this information and try to access to this register.
Background was to change the watchdog time for different program parts to have a short reaction.


Thanks for the advice.


Jorg