Elapsed Timer findings


Results 1 to 40 of 48

Threaded View

  1. #10
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Temporary central repository of Darrel Taylor's works (including Mr E's Multicalc

    I can certainly do what I’m talking about, but still also interested in anything you come up with.
    Timer driven (rather than event driven) pic programs are a rather new fad for me.

    The calculation I posted, the reverse of which is:
    Code:
    $FFFF - (((20 / 4) * 10000) - 8) = $3CB7
    Would blow out a word variable if you tried to calc the value for 40MHz!
    I was doing it with a desktop calculator in scientific mode right up to subtracting from $FFFF to look for any decimal places..
    There will be trouble if you use a crystal that is not an even MHz increment.
    Some crystals with decimal places would be fine, but PBP wouldn’t know if you introduced resolution error into the real time keeping.
    I think seeing decimal places is fine right up until the final value $3CB7 is that correct?
    You would not want to see decimal places int he final value.
    Last edited by Art; - 3rd April 2015 at 04:14.

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 17:39
  2. SPWM and Elapsed Timer
    By CocaColaKid in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 8th May 2008, 03:16
  3. Darrel Taylor Elapsed Timer
    By rwskinner in forum mel PIC BASIC Pro
    Replies: 14
    Last Post: - 13th March 2008, 01:22
  4. 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 : 8

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