freq counter 0-70hz pic16f877


Closed Thread
Results 1 to 10 of 10

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by picpower
    i only have to messure I and U and the speed.

    it is possible to start timer0 when i receive a high pulse and stop the counter when the next high pulse is coming?

    and can the pic do other things when the timer0 counts?
    Hi,PicPw

    You can use the CCP in capture Mode ...

    You could also use Timer 1 as a free running timer and read it periodically ...see Microchip datasheet Timer section for details.

    There are many many ways to do it ...

    Alain
    ************************************************** ***********************
    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 " !!!
    *****************************************

  2. #2
    Join Date
    Mar 2004
    Posts
    74


    Did you find this post helpful? Yes | No

    Default

    I too would like to get some pointers for a similar project. I want to decode CTCSS tones using a pic. These are pre defined tones lying between 50 and 300Hz. How would I go about having a lookup table of tones and comparing the incomming tone with one in the lookup table? this would have to be done very quickly, 100ms or better

  3. #3
    Join Date
    Aug 2005
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    Attached is a program for counting pulses using Tmr1 set in the counter mode and Tmr0 set as an interrupt timer.The interrupt timer counts ticks,after 1 second Tmr1's accumulated count is serial outputed.
    Attached Files Attached Files

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


    Did you find this post helpful? Yes | No

    Wink one step further ...

    good !!!

    Alain
    ************************************************** ***********************
    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. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. i2c data com. to 24lc512 in freq counter
    By tamertokgoz in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 1st June 2008, 19:48
  3. Replies: 14
    Last Post: - 26th September 2007, 05:41
  4. How to set TMRO & TMR3 as Counter?.
    By NatureTech in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 18th May 2007, 08:52
  5. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27

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