16F877A timer to capture in microseconds


Results 1 to 15 of 15

Threaded View

  1. #14
    Join Date
    Dec 2007
    Location
    Malaysia
    Posts
    20


    Did you find this post helpful? Yes | No

    Default

    Ok, I will change to Start the timer before doing anything on the LCD. I see, from the explanation, may I know the timer rolloever every 65536 microsecond or 65.536 microsecond? Let's say is it as what Mr.Skimask says, now I understand that the timer will rollover every 65.536 microseconds. May I know how to account the rollover in order to get the incrementing time, instead of keep on doing from 0 to 65.536 microseconds? Is it possible to do something like,

    if Result > 65536 then
    A=A+1

    if A > 65536 then
    B=B+1

    and so on..... I assume that timer1 from 0 to 65536 then rollover to 0 again, and so on. So, when timer1 reach 65536, then A increment by 1, and timer rollover back to start from 0 again. Then, when the 2nd time timer1 reach 65536, A will increment again, and so on. Is this possible? Let A keep on incrementing until I can trace the reading of the timer back in milliseconds? Or is there any better solution? Thanks in advance.
    Last edited by sycluap; - 13th January 2008 at 09:19.

Similar Threads

  1. mS Timer
    By whmeade10 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 8th September 2020, 12:12
  2. Using hardware capture
    By Bruce in forum Code Examples
    Replies: 14
    Last Post: - 25th March 2012, 05:52
  3. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 16:45
  4. Measuring change of frequency with PIC
    By Aussie in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 19th July 2007, 01:47
  5. Reaction timer using 16f877a and pbp
    By sphinxifm in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 14th July 2007, 14:28

Members who have read this thread : 2

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