Lost in finding a example


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2005
    Location
    France
    Posts
    97

    Default Lost in finding a example

    Hello
    I have trouble to search ...
    for example, I am sure that I already saw a very good explanation about
    WATCHDOG use ... if I make a SEARCH with this argument, I got 131 answers
    so I am lost ?
    Did I use a bad method to search ?

    Could you help me to find this good article which explain HOW to use it
    and give an example to test it ..
    thanks in advance

    Francois

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    It depends on what you want to do with the watchdog timer.

    But you might find more results searching for SLEEP or NAP*. Although you'll mostly find tired programmers that need Sleep.

    They're also in the manual, which is where I'd start.
    <br>
    DT

  3. #3
    Join Date
    Oct 2004
    Location
    Hangover, Germany
    Posts
    289


    Did you find this post helpful? Yes | No

    Cool

    ...for me it was a long way to understand the WDT-technic.

    My 16F876 has a period of maybe 2,5 seconds for the WDT. My controller works in a 0,5-second-loop (derived from Timer1/CCPx), so I put the CLEARWDT at the start of the loop. That was wrong !!!!!

    My problem was the I2C-port. So I worked out a sheme to use the I2C-hardware at least 2 times a second. And when then I2C-hardware is working, the interrupt-routine clears the WDT.
    So, if the I2C-hardware has a problem, 2,5 seconds later the PIC starts over.

    You have to place the CLEARWDT at these points, which are reacting to repeated events. If something is wrong, these events aren't working and the WDT is starting the PIC.

    Within the INIT-Part (start) of the programm, you can watch the PCON-bits in order to see the cause of the reset (TO!).

    If you are using the default PBP-settings, the CLEARWDT is inserted after each PBP-command and the whole concept isn't work.

    Just find out some small pieces of code, which have to be activated repeated and you can build a working WDT.
    PBP 2.50C, MCS+ 3.0.0.5, MPLAB 8, MPASM 5.14, ASIX Presto, PoScope, mE mikroBasic V7.2, PICKIT2

Similar Threads

  1. Studio lost programmer
    By MOUNTAIN747 in forum General
    Replies: 3
    Last Post: - 10th January 2010, 03:47
  2. Pic gets lost after power outage
    By dbachman in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 17th February 2009, 17:34
  3. Help finding Alarm System Example
    By bbawkon in forum General
    Replies: 1
    Last Post: - 20th September 2008, 06:39
  4. A/D, Pot, Input, A,B So lost now....
    By Helmutt in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 9th March 2008, 23:23
  5. Hserin, 1st character always lost!
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 5th June 2007, 13:49

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