watchdog timer


Closed Thread
Results 1 to 2 of 2

Thread: watchdog timer

  1. #1
    Join Date
    Aug 2006
    Location
    Iran
    Posts
    94

    Default watchdog timer

    Hi, in my program i have some loops that the program should stock in these loops until something happens, sometimes we have some errors from sensors and the program stock in these loops for a long time. can i use the watchdog timer to reset the program after a certain time? i use picbasic pro and pic16f873a.

  2. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: watchdog timer

    You can easily incorporate a timeout function within the routine reading the failing sensors. Once the timeout has elapsed you can direct the flow of your program at the most convenient point for resume the errors.

    The timeout is just a word variable used as a counter. You will clear it, all the time you enter the routine, and once in the loop, the variable increments till reach the timeout value you will set.

    Cheers

    Al.
    All progress began with an idea

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts