frequency meter desin

Yesterday 22:13
Forum: Proton Plus Compiler v3
Starter: gdesantis
Views: 0
Replies: 0
Yesterday 18:35
Forum: The Lounge
Starter: Les
Views: 0
Replies: 11
+ Reply to Thread
Results 1 to 6 of 6

Thread: frequency meter desin1805 days old

  1. #1
    Guest djalltra's Avatar

    0 Not allowed!

    Post frequency meter desin

    hi guys please i want to design a frequency meter using the timer1 module in 16f877
    capable of measuring frequencies of up to 20mhz but i dont have any idea on the math so anyone with relable info would be appreciated

  2. #2
    Guest joantabb's Avatar

    0 Not allowed!

    Default Re: frequency meter desin

    Hi. I think you are not going to be able to achieve this option easily.

    the maximum clock speed of the 16F877 is 20mhz, and the micro controller takes at least 4 clock cycles to execute one instruction, so I suspect it will be difficult to capture time periods shorter than the microcontroller can run...

    But I could be wrong,

    Maybe you could measure the time period for a number of cycles using an external counter. however this will introduce errors if the frequency being sampled, is not stable.

    regards Joan

  3. #3
    Guest joantabb's Avatar

    0 Not allowed!

    Default Re: frequency meter desin

    Joan, opens mouth and puts her foot in it...

    I guess if you can do 60mhz frequency counter with a 16F84running at 4mhz, you should be able to do 20mhz frequency counter with a 16f877 running at 20mhz

  4. #4
    Administrator John Drew's Avatar
    Join Date
    Feb 2002
    Thumbs Up
    Received: 108
    Given: 29
    Total Downloaded
    2.69 GB

    0 Not allowed!

    Default Re: frequency meter desin

    Hi Djalltra and Joan
    I reckon the basic idea of a frequency counter is to open a gate for a certain period of time (1 second if you want to measure to +- 1Hz) and count the pulses in that time.
    If you are happy with 10Hz readout then open the gate for 0.1 second.
    So all that is needed is a timer to measure a period depending on the accuracy you want and then count like the fellow does in your link with a simple amp that squares off the input frequency.

  5. #5
    Junior Member Ioannis's Avatar
    Join Date
    Sep 2012
    Thumbs Up
    Received: 8
    Given: 1
    Total Downloaded
    1.04 GB

    0 Not allowed!

    Default Re: frequency meter desin

    The application note AN592 from Microchip gives all the details to make it work. It is based on Timer0 specs. Very clever use of the fast timer0.


  6. #6
    Senior Member Mellbreak's Avatar
    Join Date
    Jun 2012
    Thumbs Up
    Received: 51
    Given: 20
    Total Downloaded
    2.00 GB

    0 Not allowed!

    Default Re: frequency meter desin

  7. Hi Djalltra,

    I've actually built the frequency meter suggested by Joan in post 3. It works very well. The original circuit and code appears to be by a guy called Phil Rice (VK3BHR). If you follow this link

    it will take you to the appropriate page. Links at the bottom of Phil's page will take you to the source code. The nice thing about the source code is that it allows you to select between a 16F84 and a 16F628.



Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


Similar Threads

  1. rpm meter
    By Wilfried_1 in forum Proton Plus Compiler v3
    Replies: 25
    Last Post: 4th June 2013, 18:16
  2. LED VU Meter/Audio frequency analyser
    By SimonGie in forum Proton Plus Compiler v3
    Replies: 11
    Last Post: 30th December 2009, 17:55
  3. 0-500v meter
    By rverm in forum Proton Plus Compiler v3
    Replies: 2
    Last Post: 18th January 2009, 20:47
  4. DC Power Meter
    By mjmccarron in forum The Lounge
    Replies: 14
    Last Post: 5th December 2008, 00:13
  5. 4 Mhz Frequency Meter
    By Roshan in forum Proton Plus Compiler v3
    Replies: 0
    Last Post: 13th July 2005, 15:55

Members who have read this thread since 6th November 2018, 09:11 : 1

Actions :  (Set Date)  (Clear Date)

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