
Thread: frequency meter desin – 1878 days old
-
1st January 2014, 14:58 #1
0frequency 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
-
2nd January 2014, 00:15 #2
0Re: 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
-
2nd January 2014, 00:27 #3
0Re: 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
http://www.circuitvalley.com/2011/07...r-counter.html
-
2nd January 2014, 06:14 #4
- Join Date
- Feb 2002
- Posts
- 2,609
- Total Downloaded
- 2.92 GB
Thumbs Up Received: 116
Given: 31
0Re: 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.
John
-
2nd January 2014, 09:23 #5
0Re: 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.
http://www.microchip.com/stellent/id...pnote=en011033
Ioannis
-
2nd January 2014, 09:30 #6
- Join Date
- Jun 2012
- Posts
- 511
- Total Downloaded
- 2.10 GB
Thumbs Up Received: 52
Given: 22
0Re: frequency meter desin
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
https://sites.google.com/site/vk3bhr/home/fm2
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.
Regards,
Bob
This valuable resource relies upon the very
small amount of revenue generated by displaying online advertisements
to our visitors.
The advertisements we display are relevant to this web site and your
browsing history
Please consider supporting us by disabling your ad blocker.
Note: Some users have reported issues related to ad-blockers rendering
parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this
resource with adblocking enabled.
If you can, please report issues in the forum area WebSite / Forum Issues
Thank you for your attention.
This valuable resource relies upon the very
small amount of revenue generated by displaying online advertisements
to our visitors.
The advertisements we display are relevant to this web site and your
browsing history
Please consider supporting us by disabling your ad blocker.
Note: Some users have reported issues related to ad-blockers rendering
parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this
resource with adblocking enabled.
If you can, please report issues in the forum area WebSite / Forum Issues
Thank you for your attention.
This valuable resource relies upon the very
small amount of revenue generated by displaying online advertisements
to our visitors.
The advertisements we display are relevant to this web site and your
browsing history
Please consider supporting us by disabling your ad blocker.
Note: Some users have reported issues related to ad-blockers rendering
parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this
resource with adblocking enabled.
If you can, please report issues in the forum area WebSite / Forum Issues
Thank you for your attention.
This valuable resource relies upon the very
small amount of revenue generated by displaying online advertisements
to our visitors.
The advertisements we display are relevant to this web site and your
browsing history
Please consider supporting us by disabling your ad blocker.
Note: Some users have reported issues related to ad-blockers rendering
parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this
resource with adblocking enabled.
If you can, please report issues in the forum area WebSite / Forum Issues
Thank you for your attention.
This valuable resource relies upon the very
small amount of revenue generated by displaying online advertisements
to our visitors.
The advertisements we display are relevant to this web site and your
browsing history
Please consider supporting us by disabling your ad blocker.
Note: Some users have reported issues related to ad-blockers rendering
parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this
resource with adblocking enabled.
If you can, please report issues in the forum area WebSite / Forum Issues
Thank you for your attention.
This valuable resource relies upon the very
small amount of revenue generated by displaying online advertisements
to our visitors.
The advertisements we display are relevant to this web site and your
browsing history
Please consider supporting us by disabling your ad blocker.
Note: Some users have reported issues related to ad-blockers rendering
parts of this wesite unusable,
where possible we will rectify the issues to enable you to use this
resource with adblocking enabled.
If you can, please report issues in the forum area WebSite / Forum Issues
Thank you for your attention.
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
rpm meter
By Wilfried_1 in forum Proton Plus Compiler v3Replies: 25Last Post: 4th June 2013, 18:16 -
LED VU Meter/Audio frequency analyser
By SimonGie in forum Proton Plus Compiler v3Replies: 11Last Post: 30th December 2009, 17:55 -
0-500v meter
By rverm in forum Proton Plus Compiler v3Replies: 2Last Post: 18th January 2009, 20:47 -
DC Power Meter
By mjmccarron in forum The LoungeReplies: 14Last Post: 5th December 2008, 00:13 -
4 Mhz Frequency Meter
By Roshan in forum Proton Plus Compiler v3Replies: 0Last Post: 13th July 2005, 15:55
Members who have read this thread : 43
Actions : (Set Date)
You do not have permission to view the list of names.
Proton Compiler Updates
Full install of 8-bit Proton and Proton24 Download the full compiler...
1st January 1970, 01:00