mS Timer


Closed Thread
Results 1 to 7 of 7

Thread: mS Timer

Hybrid View

  1. #1
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default Re: mS Timer

    Hi All,

    Working through a similar issue trying to time a couple of events and looking for some clarification.
    In this explanation, and in the tips and tricks there is this line:

    "2. Setup Timer1 so it will not overflow during max pulse width time".

    Yet the amount of overflows is how you're measuring the pulse. What am I overlooking here, and why mention that?

    I'm on a 12F683 and have been trying to use GPC_INT (Interupt on change) to do this, while keeping within one cycle of TMR1 and it has limitations. Using the overflow count and remainder looks like a much better idea. I'm going to crank through it that way and see if it solves my problem, I am just confused about that line.

    Thanks
    bo

  2. #2
    Join Date
    May 2013
    Location
    australia
    Posts
    2,645


    Did you find this post helpful? Yes | No

    Default Re: mS Timer

    that post has two separate methods , one measures the pulse width with timer counts the other by timer overflows
    Warning I'm not a teacher

  3. #3
    Join Date
    Feb 2008
    Location
    Michigan, USA
    Posts
    231


    Did you find this post helpful? Yes | No

    Default Re: mS Timer

    Thank you Richard, I have few arenas that bring out self doubt as quickly as trying to muscle one of these little buggers.
    I almost have it rewritten using this scheme. I hope to test it when I get back to the shop.
    bo

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 17:39
  2. High Resolution Timer & Speed Calculator
    By WOZZY-2010 in forum Code Examples
    Replies: 4
    Last Post: - 7th February 2010, 16:45
  3. Timer + rc5
    By naga in forum mel PIC BASIC Pro
    Replies: 8
    Last Post: - 19th November 2009, 07:56
  4. Timer interrupt frequency
    By Samoele in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 17th January 2009, 23:49
  5. timer interupt help 16f73
    By EDWARD in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 3rd July 2005, 08:41

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