Watchdog register error (PIC24F FV KA301-304)

A forums to allow bugs and problems with Flowcode v7 to be reported and resolved.

Moderator: Benj

Post Reply
Jörg Güldner
Posts: 77
Joined: Wed Jun 22, 2011 3:32 pm
Has thanked: 17 times
Been thanked: 11 times
Contact:

Watchdog register error (PIC24F FV KA301-304)

Post 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

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

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

Post 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
Martin

Jörg Güldner
Posts: 77
Joined: Wed Jun 22, 2011 3:32 pm
Has thanked: 17 times
Been thanked: 11 times
Contact:

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

Post 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

Post Reply