PULSIN Resolution


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    keithdoxey, 40 Mhz. is correct for getting 1uS resolution. However 80Mhz. would be a stretch for a PIC micro. If you need 1uS resolution why not use the internal timers available in the PIC and use atleast a 4Mhz. crystal? That will give you 1uS. resolution..

    Dave Purola,
    N8NTA

  2. #2
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Dave
    However 80Mhz. would be a stretch for a PIC micro.
    Hi Dave,

    I realise that a PIC wont run at that speed....yet, but give them a couple of years and we will probably see devices that will run at 100MHz+.

    Look at the way Intel and AMD clock speeds have shot up over the last few years!

    Also look at how the available memory is increasing as well. PICs are getting evermore powerful

    Regards
    Keith

    www.diyha.co.uk
    www.kat5.tv

  3. #3
    Join Date
    Sep 2008
    Posts
    19


    Did you find this post helpful? Yes | No

    Default

    Is there a way to make pulsin count slower?

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Athough it might be nice ...

    There aren't any defines that would make PulsIn count slower.

    A slower OSC freq makes it count slower, or you could create your own define that adds some NOP's to the library routine. (not recommended)

    Might just be easier to create a simple subroutine to count the time in a loop, which is all PulsIn does anyway.
    <br>
    DT

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 02:17
  2. PULSIN & RCTIME resolution calculation
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 5th January 2010, 14:34
  3. Better understanding PULSIN
    By Wirecut in forum mel PIC BASIC
    Replies: 12
    Last Post: - 29th June 2008, 10:17
  4. Funny PULSIN values: what is going on???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th April 2008, 08:02
  5. Pulsin 16F819 problem
    By rekcahlaer in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th April 2007, 13:52

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