Help please with i/p o/p hold delay


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2007
    Posts
    35

    Default Help please with i/p o/p hold delay

    Hi all,

    I am using a 12F675, running its internal clock.


    What I am trying to get my head around some timing loops,
    I am trying to do following...

    I need an output to trigger as soon as the pic gets an input, (easy)
    But it needs to hold latched for about 20 seconds from the time the input is released.

    If an input is applyed to the pic within the 20 seconds the timer needs to reset back to 20 seconds until the input is released. (then carry on as before)

    I then need to be able to cancel the 20 second delayed latch by applying a second input
    to the pic. (clearing the delay and lifting the latched output)


    Any ideas or advice would be great,

    Cheers
    Dave....

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    What is the minimum duration of these input pulses that will be doing the latching and resetting?

  3. #3
    Join Date
    Oct 2007
    Posts
    35


    Did you find this post helpful? Yes | No

    Default Help please with i/p o/p hold delay.... info

    Hi,
    The input pulses are actualy toggled inputs,
    The input can be anything from 1 second to several mins.

    The pic circuit is actualy going to be used in a low power radio link,
    and its to control the transmit delay to stop it from chattering.


    Cheers
    Dave..

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by g7jiq View Post
    The input pulses are actualy toggled inputs,
    The input can be anything from 1 second to several mins.
    The pic circuit is actualy going to be used in a low power radio link,
    and its to control the transmit delay to stop it from chattering.
    If the input is slow like that, then your program is practically written by the wording in your first post...

  5. #5
    Join Date
    Oct 2007
    Posts
    35


    Did you find this post helpful? Yes | No

    Default Yes.. But where do I start..?

    I have grasped the basics,
    but when it comes to timing loops I am beat.

    I have only been into pic programming for just over a year,
    and are learning fast.

    Half the problem is knowing where to start,

    If you possibly could draft out a bit of program code,
    I would be greatful.



    Cheers
    Dave....

Similar Threads

  1. 16F628A - Stops if release power switch.
    By dene12 in forum General
    Replies: 16
    Last Post: - 14th February 2009, 07:57
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  3. Help writing pic program with i/p o/p hold delay
    By g7jiq in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 27th May 2008, 21:58
  4. Memory Space of the PIC16F84...
    By Tear in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 1st July 2005, 19:55
  5. Problem with saving to EEPROM...
    By Tear in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 1st July 2005, 00:10

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