??? 06/18/04 12:52 Read: times |
#72711 - RE: Fit A Supervisor Chip Responding to: ???'s previous message |
You will need to look at the data sheet for your supervisor. It will list the watchdog timeout period. You need to then toggle the I/O line to the re-trigger pin of the watch dog at least as often as the timeout period to avoid the dog kick reset.
If you have delay calls that are longer than the timeout period then break them up into a series of shorter delays and toggle the port pin in between each. Another way, say you have a 100 msec delay call is to put the call inside a loop of 10 iteratons and then inside this loop toggle the I/O pin and call the delay routine for a 10 msec delay. (That is assuming of course that your watchdog timer period is longer than 10 msec). Michael Karas |