Time window


Results 1 to 8 of 8

Thread: Time window

Threaded View

  1. #1
    Franko's Avatar
    Franko Guest

    Default Time window

    Hi,
    I've been programming Pics for a while now and mostly done somewhat basic
    routines(although very useful to me). Anyway,I have been trying to write code to do the following...

    Upon a pulse to a pin,activate a timer within the Pic (16F84A) that would allow another input to a different pin to activate the main code.

    So, After the first input pulse you would have say 20 sec to press the button that would activate the code. After the 20 sec has timed out, pressing the button would do nothing until another input pulse starts the timer again.

    I've tried variations of count,pulsein,for/next,searching here and can't get it.

    Can someone please just point me in the right direction ?

    Thanks,
    Franko
    Last edited by Franko; - 9th August 2005 at 01:22.

Similar Threads

  1. I don't understand this code!
    By Russ Kincaid in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 13th February 2008, 02:55
  2. Measuring time
    By AugustoPedrone in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 30th July 2007, 23:46
  3. Serout2/serin2 Pbp Problem
    By SOMRU in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 11th December 2006, 19:55
  4. Alarm Time
    By Santana in forum Code Examples
    Replies: 1
    Last Post: - 8th December 2006, 13:58
  5. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24

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