Hello guys!
flowcode 5 is very powerful tool.you can set the pic micro properties as you like.
can any one tell me in what cases you have to tern whatchdog on?
if a set a pic micro checking a sensor in an alarm system, is there a possibility to stack
the command after a long time? or in other projecs generally, pic micros stack easy as the flow of commands run?
(that whould be bad if a motor runs opening a door and the pic stacks) whatchdog would reset it?
have a nice day!
whatchdog command
Moderator: Benj
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: whatchdog command
Hello,
The watchdog timer is used to reset the device if the watchdog timer peripheral is allowed to rollover from the max count value to 0.
This allows the device to automatically reset if the program gets stuck in a loop or freezes etc.
An example of an application where you would need watchdog would be say a brake node in a car. If the microcontroller controlling the brake crashes then you basically want it to reset, telling the main ECU about the problem and then come back online.
I would avoid using the watchdog timer unless you know you specifically want it in your application or you know what you are doing with it.
The watchdog timer is used to reset the device if the watchdog timer peripheral is allowed to rollover from the max count value to 0.
This allows the device to automatically reset if the program gets stuck in a loop or freezes etc.
An example of an application where you would need watchdog would be say a brake node in a car. If the microcontroller controlling the brake crashes then you basically want it to reset, telling the main ECU about the problem and then come back online.
I would avoid using the watchdog timer unless you know you specifically want it in your application or you know what you are doing with it.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Re: whatchdog command
thank you Benj, nice tip.
do you know any article about whatchdog command?
Best regards.
do you know any article about whatchdog command?
Best regards.
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: whatchdog command
This one looks ok.
http://computersight.com/hardware/proce ... ontroller/
http://computersight.com/hardware/proce ... ontroller/
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel