Time logic


Closed Thread
Results 1 to 7 of 7

Thread: Time logic

Hybrid View

  1. #1
    Join Date
    Apr 2011
    Location
    Welches, Oregon
    Posts
    198


    Did you find this post helpful? Yes | No

    Default Re: Time logic

    I am reading / replying on phone; please understand the difficulty of studying closely your code. It would appear to me that counter variables may exceed byte value assigned? Var WORD to take values greater than 254.

    I too am recently working with clock and found it complex and clumsy to work between decimal and BCD; perhaps you too would find it simpler to make the conversion only when reading/ writing registers and therefore all other interactions are simplified by being common value without effort?
    Last edited by Amoque; - 27th October 2013 at 13:46.

  2. #2
    Join Date
    Oct 2009
    Posts
    583


    Did you find this post helpful? Yes | No

    Default Re: Time logic

    Thanks for the comments guys and yes it should be word to get the 1440 minutes in a day. The code for the conversion from BDC came from a sample code written by Melenie, which I've used in other projects so couldn't see any reason to change it.

Similar Threads

  1. Logic Probe Recommendations
    By retepsnikrep in forum Off Topic
    Replies: 3
    Last Post: - 12th June 2011, 20:35
  2. DS1904 RTC - How to Convert Binary Time into Real Time/Date?
    By Ioannis in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 2nd December 2010, 10:45
  3. Logic Level Triac
    By emavil in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 29th November 2006, 18:18
  4. Fuzzy logic?
    By Damir in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 28th August 2006, 12:03
  5. Linx RF -> HSERIN time delay / time critical app...
    By batee in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 15th October 2004, 15:04

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