Frequency counter-- old project revisit


Results 1 to 6 of 6

Threaded View

  1. #4


    Did you find this post helpful? Yes | No

    Default Re: Frequency counter-- old project revisit

    Hi, I have tried both of your examples or links.

    The first one you only need to input the frequency on the T1CLK pin. Basically you clear timer 1, start tmr1
    then pause for 10ms, 100ms or 1s then stop timer1. Read the contents of TMR1L and TMR1H which is your frequency. This method is not very accurate using a pause statement for your time base.

    The second, this circuit was designed and sold as a kit by Terry Weeder many years ago. It used the RTCC with a elaborate scheme to gate the input pin on and off then pulsed the rtcc 256 time to purge the result or remainder. This was a very stable and accurate. This used three pins, freq in, gate and purge


    http://www.piclist.com/techref/piclist/weedfreq.htm

    So to answer your question the code in your first post will not work with the Weeder schematic. There is no timer1 in a pic1684. I started porting the assembly code to PBP at one time, but never finished. Look for the hex file for the pic16f84 and just program a new chip.
    Last edited by mark_s; - 28th October 2014 at 15:26.

Similar Threads

  1. Frequency counter
    By Macgman2000 in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th February 2012, 14:33
  2. Audio Frequency Counter
    By mister_e in forum Code Examples
    Replies: 8
    Last Post: - 29th July 2009, 08:25
  3. frequency counter help and pointers
    By comwarrior in forum General
    Replies: 2
    Last Post: - 30th June 2009, 11:51
  4. Frequency Counter
    By Asmith in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 22nd June 2007, 15:54
  5. Low-Frequency Counter
    By Zeke in forum General
    Replies: 7
    Last Post: - 19th January 2006, 18:06

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts