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
Watchdog register error (PIC24F FV KA301-304)
Moderator: Benj
-
- Posts: 77
- Joined: Wed Jun 22, 2011 3:32 pm
- Has thanked: 17 times
- Been thanked: 11 times
- Contact:
-
- 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)
Hi Jorg,
You can't set configuration register bits in C code.
You should delete C code and set watchdog register within configuration settings: Martin
You can't set configuration register bits in C code.
You should delete C code and set watchdog register within configuration settings: Martin
Martin
-
- 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)
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
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