Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - watchdog

(you are viewing a thread; or go back to list of threads)

watchdog (by hanguyen)
Dear Sir,
I have a problem, i wrote watchdog instruction.I don't understand the "incode.cpp" file.Please tell me the step to implement.
Thank you!
Mon Nov 30 2009, 08:14:03
(no subject) (by Jonathan Westhues)
Sorry, I don't understand. intcode.cpp contains the routines that generate LDmicro's intermediate code from the ladder logic program. That intermediate code is then translated to native PIC or AVR code. There's no mention of any watchdog timer in intcode.cpp.

The PIC and AVR targets do generate instructions to reset the watchdog timer. So it's okay to enable the watchdog timer for those parts (by programming the appropriate bit in the configuration word), as long as the cycle time is faster than the default watchdog timeout. It's also okay to leave the watchdog timer disabled, in which case those instructions just do nothing.
Mon Nov 30 2009, 10:08:13
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):