Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 26th December 2003, 03:00 PM   (permalink)
Default Need a circuit for a PIC base Freq. counter

Do anyone have a workin diagram of a PIC16f84 frequency counter with a ranging from .1Hz to a max of at least 300MHz. and hopefully it comes with its assembly program. Ideas, partial diagrams are also welcome. ops: :P :wink:

thank you. :lol: :wink:
engr.ronche is offline  
Old 26th December 2003, 03:43 PM   (permalink)
Default

A pic16f84 runs at a maximum speed of 20Mhz. So you'll never be able to measure up to 300Mhz directly (Pic's can be overclocked, but not that much). Also remember that the pic will need several instructions to detect a single hi-to-low or low-to-hi transmission. So you'll need a microcontroller that runs at a speed much greater then 300Mhz. I don't think micro's are available that fast yet ...

you're going to need normal circuitery for this one, without a micro, Or at least some circuit wich can handle the speed and then send the results to the micro for processing
Exo is offline  
Old 26th December 2003, 06:34 PM   (permalink)
Default

To help you on your way.........http://www.piclist.com/techref/piclist/weedfreq.htm

Goes up to 50 Mhz, bu t at least it will give you an insight..... 8)
Chippie is offline  
Old 26th December 2003, 07:36 PM   (permalink)
Default

Quote:
Originally Posted by Chippie
To help you on your way.........http://www.piclist.com/techref/piclist/weedfreq.htm

Goes up to 50 Mhz, bu t at least it will give you an insight..... 8)
Yes it's a good circuit (I've built one!), it's based on an old MicroChip application note - but with an LCD replacing the 7 segment LED displays.

To make it go higher, simply add a prescaler to the front end - high frequency divide by ten pre-scaler chips used to be commonly available, I don't know if they still are? - used to be made by Plessey (although I'm not sure of the spelling).

The original design doesn't go as low as you wanted either, but you could easily extend it - it simply measures the pulse width of the incoming signal (it's far faster than actually counting the number of pulses for low frequencies).
Nigel Goodwin is online now  
Old 27th December 2003, 08:30 PM   (permalink)
Default

There are couple of free frequncy counter designs and weeder
is one of them. PIC can count signals which are faster than it's
own clock because of built-in prescaler. If you want to count
even faster signals (over 50MHz or whatever limit your counter has)
simply add prescaller. That's just another divider stage. If you select
divide by ten (decade counter) you get 10x the range or in this
case 50MHz*10=500MHz max. for example.
If you cascade two of them you get 100x range etc.
Since decade counters are not quite common for this frequency range
lot's of people uses other solutions. Just google "prescaler" or check
this out:
http://www.qsl.net/n9zia/pre/
They post schematic only in lousy postscript format. To save you from
big download and installation of ghostscript I'm attaching schematic
as GIF graphic.

Measuring slow signals is different. One approach is to use PLL
chip and multiply input signal 10, 100 or even 1000 times
so you get the direct readout on regular counter. Problem is that
not everyone likes to fiddle with PLL and this is usually good only in
fairly narrow range (good to measure AC line frequency).

Other method is use own signal (crystal oscilator of known frequency)
and count it's pulses but use slow changing signal to control gate.
This gives you value which is proportional to period (T) of measured
signal. To get the frequency just calculate:

f=1/T

Hope this helps.
Attached Images
File Type: gif prescaler.gif (36.2 KB, 486 views)
panic mode is offline  
Reply

Bookmarks

Thread Tools
Display Modes





All times are GMT. The time now is 09:40 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker