500 Year Calendar for DT Elapsed Timer


Closed Thread
Results 1 to 9 of 9

Hybrid View

  1. #1
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 500 Year Calendar for DT Elapsed Timer

    Here’s the demo video What an unfortunate shot! :O


  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 500 Year Calendar for DT Elapsed Timer

    Hi Guys,
    This came in handy for me today, so I just wanted to share the tip.
    If you are reading UTC time from GPS, and want to display your local time,
    there’s no other way but having a complete calendar to know what the date is going to be
    if your adjustment of the hours made a day change over.

    If you read 22:00 UTC time from the GPS, and in my location, have to add the offset +10,
    you would have the time 32:00, and would have watched for 24 hour overflow in an hours buffer,
    so the time would be displayed correctly as 08:00. The day could have been incremented on the
    overflow of the hours buffer as well, but it could have also been the last day of the month or year,
    and you need to know how many days are in the particular month for the current year.

    This all didn’t really occur to me until I next read the time from a GPS module,
    but the limitation has hit me before.
    Cheers, Art.
    Last edited by Art; - 8th May 2015 at 11:56.

  3. #3
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 500 Year Calendar for DT Elapsed Timer

    Hi Guys
    This might be of use to someone familiar with PBP, but looking at Arduino or something like that.
    The exact same code ported to C, and demonstrated with a graphic GUI.
    Although the graphic GUI is freshly done in C, it’s using the same “setcal" subroutine above,
    as a C function, which at least demonstrates how to use lookup tables, arrays, loops, and some arithmetic.


  4. #4
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: 500 Year Calendar for DT Elapsed Timer

    Very nice!

    And very quick LCD update! Like!

    Ioannis

  5. #5
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: 500 Year Calendar for DT Elapsed Timer

    Thanks Ioannis
    The graphics stuff is all new C started in 2016, but I think that part would be better in PBP or asm,
    just that it wouldn’t run on dspic, and it appears the dspic asm isn’t the familiar 8 bit RISC asm.

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    Did you find this post helpful? Yes | No

    Default Re: 500 Year Calendar for DT Elapsed Timer

    Maybe if/when the PBP24 or PBP32 will be available, we will see dreams coming true!

    Until then, keep up the good work and let us see your achievements.

    Ioannis

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 17:39
  2. Compiling error on Elapsed timer
    By tacbanon in forum General
    Replies: 2
    Last Post: - 9th September 2012, 13:09
  3. Totally Baffled with Elapsed Timer
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 11th June 2008, 21:01
  4. SPWM and Elapsed Timer
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 8th May 2008, 03:16
  5. DT Elapsed Timer
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 9th March 2008, 23:17

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