Free Project - 245 LED Display


Results 1 to 40 of 222

Threaded View

  1. #25
    T.Jackson's Avatar
    T.Jackson Guest


    Did you find this post helpful? Yes | No

    Smile Improved accuracy for LED clock

    I've got some much better accuracy now. Not exactly sure how much - only time will "literally" tell!

    Here's what I've done to improve things:

    <ul>
    <li>TMR0 pre-scaler remains @256</li>
    <li>TRM0 always starts with 12 dec (256 x 244) = 62.464 mS</li>
    <li>Now, it takes 16 overflows of the timer for 0.999424 S to elapse</li>
    <li>This is short of 1 sec by 576 uS</li>
    <li>Adding 36 nops to each overflow (36 x 16 = 576 uS) compensates this</li>
    <li>The crystal now completely defines accuracy</li>
    </ul>
    Last edited by T.Jackson; - 4th June 2007 at 06:08.

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Single digit 7 Seg LED clock - PIC16F88
    By thirsty in forum Code Examples
    Replies: 4
    Last Post: - 17th July 2009, 08:42
  3. Replies: 2
    Last Post: - 14th July 2008, 22:11
  4. 245 Led Matrix Display (as constructed by Magu)
    By magu in forum Code Examples
    Replies: 11
    Last Post: - 29th June 2007, 00:07
  5. LCD will not start
    By btaylor in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 24th May 2007, 02:30

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