Variable timer


Closed Thread
Results 1 to 3 of 3

Thread: Variable timer

  1. #1
    Join Date
    Feb 2008
    Posts
    2

    Default Variable timer

    Hello!

    I need a variable timer using a PIC but I didn´t have success. When I say variable I mean that I have to change the range of counting, for example, sometimes I need to count from 1 second to 1 minute but sometimes I have to count from 1 second to 3 minutes. Sometimes I have to have a port ON for 1 minute and sometimes for 3 minutes. I´ve tried to change the clock, instead using a cristal based I used a RC clock, changing the resistor and capacitor, but it didn´t work. Does anyone have a sugestion on how to do it?

    Thanks.

  2. #2
    Join Date
    Sep 2007
    Posts
    50


    Did you find this post helpful? Yes | No

    Default

    I would use Darrel’s Instant Interrupt system and the Elapsed Timer
    http://darreltaylor.com/DT_INTS-14/elapsed.html
    Best Regards,

    Kurt A. Kroh
    KrohTech

    “Goodbye and thanks for all the fish”

  3. #3
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Cezar Neto View Post
    Hello!
    I need a variable timer using a PIC but I didn´t have success. When I say variable I mean that I have to change the range of counting, for example, sometimes I need to count from 1 second to 1 minute but sometimes I have to count from 1 second to 3 minutes. Sometimes I have to have a port ON for 1 minute and sometimes for 3 minutes. I´ve tried to change the clock, instead using a cristal based I used a RC clock, changing the resistor and capacitor, but it didn´t work. Does anyone have a sugestion on how to do it?
    Thanks.
    Show us some code!

Similar Threads

  1. EEPROM Variables (EE_Vars.pbp)
    By Darrel Taylor in forum Code Examples
    Replies: 79
    Last Post: - 26th October 2012, 00:06
  2. Help me with interupt
    By azmax100 in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 3rd February 2009, 00:17
  3. Timer interrupt frequency
    By Samoele in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th January 2009, 23:49
  4. Help with sound command in 2 programs
    By hyperboarder in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 5th July 2007, 20:36
  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 : 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