Pulse Counter


Closed Thread
Results 1 to 14 of 14

Thread: Pulse Counter

Hybrid View

  1. #1
    Join Date
    Jul 2009
    Location
    Worcester South Africa
    Posts
    18


    Did you find this post helpful? Yes | No

    Default Re: Pulse Counter

    Hi Srspinho, can I use this code for a revolution counter, revs per minute? I see your display is counts per second. Can I just multiply the COUNT_result with 240, that should give me pulses per min, yes?

  2. #2
    Join Date
    Nov 2008
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: Pulse Counter

    I must be missing something,but what pin is input?
    Regards
    CharlieM
    Using PBP3
    MCSPX

  3. #3
    Join Date
    Jul 2009
    Location
    Worcester South Africa
    Posts
    18


    Did you find this post helpful? Yes | No

    Default Re: Pulse Counter

    Yeah, good question, C_Moore

  4. #4
    Join Date
    Nov 2008
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: Pulse Counter

    I don't see where any tris registers are initialized.
    Regards
    CharlieM
    Using PBP3
    MCSPX

  5. #5
    Join Date
    Oct 2005
    Location
    Sweden
    Posts
    3,627


    Did you find this post helpful? Yes | No

    Default Re: Pulse Counter

    Hi,
    The code is "generic", ie you need to "fit" it to the device you're using.
    First time I've seen it but as far as I can see it uses TMR1 as a counter and TMR0 as the timebase. So the pulses should go to the T1CKI-pin, whichever that is on the particular PIC you're using - RB6 on the 16F628, RC0 on the 16F877 etc.

    /Henrik.

  6. #6
    Join Date
    Nov 2008
    Posts
    60


    Did you find this post helpful? Yes | No

    Default Re: Pulse Counter

    Thanks Henrik.
    Regards
    CharlieM
    Using PBP3
    MCSPX

  7. #7
    Join Date
    Nov 2003
    Location
    Sao Paulo - Brazil
    Posts
    92


    Did you find this post helpful? Yes | No

    Default Re: Pulse Counter

    Hi c_moore,

    sorry for my loooong delay

    Henrik is right. BTW, thank you Henrik !

    bye

Similar Threads

  1. Pulse Capture and byte building
    By boroko in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 21st July 2009, 01:59
  2. Need help with a pulse counter project PIC18F2620
    By blackrider in forum Schematics
    Replies: 1
    Last Post: - 29th April 2009, 00:08
  3. Replies: 3
    Last Post: - 13th September 2008, 17:40
  4. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  5. Pulse Counter in Assembly
    By orlandoG in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 21st March 2007, 01:23

Members who have read this thread : 1

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