Program time-out


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    trying's Avatar
    trying Guest


    Did you find this post helpful? Yes | No

    Default

    I use this

    A VAR WORD
    For A = 0 TO 60000 '1 min loop looking for pb
    Pause 1
    IF pb = 0 Then
    LED = 1
    Pause 3000
    LED = 0
    EndIF

    Next A
    goto were ever
    Last edited by trying; - 10th June 2006 at 05:40.

  2. #2
    Join Date
    Feb 2006
    Posts
    89


    Did you find this post helpful? Yes | No

    Default Yes Steve

    That thought had crossed my mind. The problem is I know absolutely nothing about interupts or the pre-scalar settings. I tried to learn about them early on wheh I was building the timer example that is here on the forum. It is set up for a 4 mhz crystal and I was using a 20 mhz crystal. I couldn't figure out how the prescalar worked. If you would be willing to teach me then I would be willing to learn. I just don't want to monopolize your time as I am sure it is valuable. Here is some background on my project:

    16F876a running at 20 mhz. It is decoding dtmf signals from a dtmf chip. I want the program to wait for the pin to go high that says a tone has been decoded. If that pin doesn't go high within 1 minute, I want the program to start over at the beginning. thanks for the help in advance.

    Travin

    Thanks trying. I tried your idea as it is simpler to implement, the problem was it was missing the pin going high. I couldn't seem to get the timing right.

Similar Threads

  1. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 09:26
  2. I don't understand this code!
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 13th February 2008, 03:55
  3. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 20:55
  4. Alarm Time
    By Santana in forum Code Examples
    Replies: 1
    Last Post: - 8th December 2006, 14:58
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 15:24

Members who have read this thread : 0

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