24 hr timer


Closed Thread
Results 1 to 3 of 3

Thread: 24 hr timer

  1. #1
    actionplus's Avatar
    actionplus Guest

    Default 24 hr timer

    it is pretty simple task.

    All it needs to do is when I plug in power, a countdown of a certain time, say 12hr or 24hr should start. And when it reaches the time, a LED should light up for 1 minute then starts the countdown again. A never ending loop until I pull out the power.

    any ideas how I should start.
    I want to use a 12F??? pic with a 32khz xtal.
    PicBasic Pro.

  2. #2
    Join Date
    Feb 2006
    Posts
    89


    Did you find this post helpful? Yes | No

    Default Timer

    there is a timer example on this site (look in the code examples). It uses tmr0 and interupts with a 4 mhz crystal if I am not mistaken. Then, just put an "if" statement for the hour and minute var when they reach a given multiple of 12 then make a port go high which connects to an led.

  3. #3
    Join Date
    Feb 2003
    Location
    Salt Lake City, Utah USA
    Posts
    517


    Did you find this post helpful? Yes | No

    Smile

    In the Code Example Section of this forum, look for

    Easy and Accurate Clocks without RTC IC

    The second attached program in this post does almost exactly what you want. Only simple changes are needed to make it match your goals.

    Good Luck,


    Paul Borgmeier
    Salt Lake City, Utah
    USA

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 17:39
  2. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 16:45
  3. Timer interrupt frequency
    By Samoele in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th January 2009, 23:49
  4. Timer in real time
    By martarse in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 29th July 2005, 14:24
  5. timer interupt help 16f73
    By EDWARD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd July 2005, 08:41

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