I'm using Flowcode V3.
Thx for your help, I will try to add that to my code.
I will do the following:
- Replace the ms delay by the C code WD_Delay_ms();
- Add the C code clear_wdt();
- Add the C code sleep();
How can I see that the microcontroller is in sleep mode ? Can I measure it with a scope ?
EDIT: I just wanted to tell you that my version of flowcode wont compile the custom code

...
Isn't there a way to do it without the Custom code ?
If I really need to change my flowcode version, is it possible with a Student version of flowcode v3 to upgrade to a Single user version (suppose it's the Pro version) of flowcode v4 ??
EDIT 2: I got a pro version of flowcode thx to one of my teachers
But when I compile, I have this error:
Launching the compiler...
C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\boostc.pic16.flowcode.exe -v -t PIC16F88 "telecommande.c"
BoostC Optimizing C Compiler Version 6.70 (for PIC16 architecture)
http://www.sourceboost.com
Copyright(C) 2004-2007 Pavel Baranov
Copyright(C) 2004-2007 David Hobday
Licensed to FlowCode User under Single user Full License for 1 node(s)
Limitations: PIC12,PIC16 max code size:Unlimited, max RAM banks:Unlimited, Non commercial use only
telecommande.c
Starting preprocessor: "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\pp.exe" "C:\Documents and Settings\Nicolas\Bureau\test watchdog\telecommande.c" -i "C:\Program Files\Matrix Multimedia\Flowcode V3\BoostC\include" -d _PIC16F88 -la -c2 -o telecommande.pp -v -d _BOOSTC -d _PIC16
C:\Documents and Settings\Nicolas\Bureau\test watchdog\telecommande.c(106): error: missing semicolon
C:\Documents and Settings\Nicolas\Bureau\test watchdog\telecommande.c(106): error: missing right paren
C:\Documents and Settings\Nicolas\Bureau\test watchdog\telecommande.c(106): error: missing semicolon
C:\Documents and Settings\Nicolas\Bureau\test watchdog\telecommande.c(103): error: failure
failure
........................
Return code = 1
Flowcode was unable to compile the flowchart's C code due to the following errors:
If your flowchart contains C code, please review this carefully. If your flowchart contains no C-code or you have thoroughly reviewed the code, contact Technical Support.
FINISHED
I don't know why this happens. I added the custom code for the watchdog.
Thx again for your help
Nicolas