Using RTC to generate long time delays


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Nov 2006
    Location
    Brooklyn,NY
    Posts
    32

    Smile Using RTC to generate long time delays

    I am using a crystal controled (watch crystal) programmable timer chip whose time is set by DIP switches (binary). Time intervals from 0 to 255 seconds or 0 to 255 minutes are possible with accuracy dependant upon the crystal. I would like to do this with a PIC. Examining some of the RTC out there, I have discovered that a few of them have built in programmable alarms. Is there any advantage in using a RTC to store a time in memory and keep looking at the clock output until the (time stored) + (clock output reading) >= the delay required ? It seems it might be more direct and simple then using the timers built into the 16F877A. I have not given up trying to learn how the internal timers work but it appears the addition of a cheap RTC just might make things easier. All of your comments will be welcome.

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


    Did you find this post helpful? Yes | No

    Smile

    Quote Originally Posted by schlaray View Post
    ...it appears the addition of a cheap RTC just might make things easier.
    I don't agree - see
    http://www.picbasic.co.uk/forum/showthread.php?t=2129
    for some ideas
    Paul Borgmeier
    Salt Lake City, UT
    USA
    __________________

  3. #3
    Join Date
    Nov 2006
    Location
    Brooklyn,NY
    Posts
    32


    Did you find this post helpful? Yes | No

    Smile

    The message here is: Why use an external RTC when I can accomplish the same function using the built in timer configured as a clock. I will study the two programs you listed and try to get on board with the timer features of the 16F877A. As always, a little effort on my part will be required to do this. Thank you for your direction.

Similar Threads

  1. Easy and Accurate Clocks without RTC IC
    By paul borgmeier in forum Code Examples
    Replies: 18
    Last Post: - 28th October 2013, 22:28
  2. Hello, long time no post (ADC sample rate)
    By Jhong2 in forum General
    Replies: 0
    Last Post: - 14th April 2009, 05:13
  3. Replies: 2
    Last Post: - 27th March 2007, 13:48
  4. Alarm Time
    By Santana in forum Code Examples
    Replies: 1
    Last Post: - 8th December 2006, 14:58
  5. X1226 RTC - Help
    By charudatt in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 14th August 2006, 18:54

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