PULSIN for frequency meter?


Results 1 to 10 of 10

Threaded View

  1. #8
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Lightbulb

    And now the question; is this achievable using a 16FXXX device and the PBP PULSIN command?
    a 16F device running @ 20 Mhz max... so PULSIN will give you 2µs per count.

    PBP 16F compiler uses 16 bits ... so, 65535 counts at a maximum


    Pulsin will give you a valid result from 1 to 65535 unit +/- 1 count.

    @ 50% duty cycle your period can be ... 4 to 131070 µs +/- 4µs


    a 16F device running @ 4Mhz ... so PULSIN will give you 10µs per count.

    PBP 16F compiler uses 16 bits ... so, 65535 counts at a maximum


    Pulsin will give you a valid result from 1 to 65535 unit +/- 1 count.

    @ 50% duty cycle your period can be ... 20 to 655350 µs +/- 20µs



    from that you can understand what precision and resolution you can get with the PULSIN command.

    That's quite simple ...

    Alain

    PS: Gioppy gave you ... half of the answer !!! LOL
    Last edited by Acetronics2; - 10th November 2008 at 18:54.
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Replies: 17
    Last Post: - 12th April 2014, 03:17
  2. Better understanding PULSIN
    By Wirecut in forum mel PIC BASIC
    Replies: 12
    Last Post: - 29th June 2008, 11:17
  3. Funny PULSIN values: what is going on???
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 30th April 2008, 09:02
  4. Pulsin 16F819 problem
    By rekcahlaer in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 11th April 2007, 14:52
  5. PULSIN and RCTIME
    By Dwayne in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 4th November 2004, 15:45

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