Frequency counter using pic pdf

As i have configured the timer 1 as counter, using the tcon bit tr1, i will be counting the. Nov 26, 2018 following is the code for frequency counter circuit using 8051 microcontroller. This pic frequency counter circuit uses a multiplexed seven segment display to provide 8 digits and uses timer 1 to count edges of the input signal and timer 0 to count time. The lcd display used is a state of the art, commonly available 16 characters dot matrix in one line unit. It can measure a wide variety of digital signal parameters such as pulse width, frequency, duty cycle and time difference between the edges of two signals.

A frequency counter circuit project written in c using. The main desired output is the high resolution display in mhz range of frequency. Pic timers and counters part 1 posted on november 21, 2010 by rb. For instance, to observe an oscillators accuracy, to measure the mains frequency or to find out the rpm of a motor that is connected to an encoder. This pic frequency counter project uses an lcd to display the frequency and pic timer 1 to measure the input signal and timer0 to measure the timing period. Download the files for the 600mhz counter here by right clicking on the appropriate link and using the save target as windows feature.

You can also use external power via a standard usb cable. Reprogram the counters prescaler so the divided input frequency is below 1 mhz which is the maximum input frequency for the hardware counter, if the pic is clocked with 4 mhz. Adding the current value of the counter at the end gives the total count. Sep 06, 2019 the multi function digital frequency meter circuit 0100mhz, is an instrument that can measurement many things in a single display with led 7 segment 8 digit. Frequency counter using pic micro controller free download as word doc. Pic frequency counter circuit using 7 segment displays, tmr0 and tmr1. First of all, if you like this project, please vote for me in the hurricane laser competition and the led contest. Implementation of pic based digital frequency counter citeseerx. In this work, the complete design of advanced frequency counter is provided. How to easily make a 50mhz frequency counter using only a pic. The pxi system provides a rack system for test and control systems. Simple frequency meter using pic 16f877 embedologist.

Forums project doubts frequency counter using 89c2051. The mcounter, a pic based programmable frequency meter. It was a pic based frequency counter build by amateur radio enthusiast wolfgang wolf buscher dl4yhf. The problem was the absence of library for pic microcontrolers. This tester will also give the resonant frequency for most modern crystals. The conceptually simple way is to do a frequency counter. I am doing a project on density based traffic light control using pic microcontroller and ir sensor,i doesnt know how to calculate the time delay from the vehicle count. The microchip name and logo, the microchip logo, filterlab. This includes several peripherals but just a matjaz vidmar, s53mv a simple rfmicrowave frequency counter fig 1. But i wanted to use 7segment led display, not lcd, so i found a second useful project. Over the years its been ported to different pics until eventually it was ported to the ubiquitous 16f84. Measurement of power frequency with higher accuracy using.

The bench frequency counter is the most commonly used format for this type of electronics test equipment. The pic firmware for the frequency counter can be downloaded from this link includes. So to display correct frequency, the counter needs to subtract the incoming frequency with 455 khz or 10. Measurement of power frequency with higher accuracy using pic. The hardware is simple and the main blocks are shown in the diagram below. Looking around the net i found this little counter. In this digital frequency meter pic16f877a microcontroller is used to measure frequency with the help of external. The multi function digital frequency meter circuit 0100mhz, is an instrument that can measurement many things in a single display with led 7 segment 8 digit.

Wolfe claimed that his pic based frequency counter had a frequency range of 1hz to 50mhz with only a handful of. Caption copied from the norcal meeting listed in the links below. So i wanted to get in my frequency counter project. It is used the method of measuring the 24bits 3bytes counter value from the prescaler, tmr0 timer 0 module and some other registers, such as option register. Frequency counter schematic using microcontroller at89c51. The maximum clock frequency at the t0cki input is limited by the synchronization requirement with the internal clock. Build your own pic based frequency counter radio boat anchor. Then we can use either counter to produce a divideby2 frequency counter only, a divideby5 frequency counter only or the two together to produce our desired divideby10 bcd counter. Measurement of power frequency with higher accuracy using pic microcontroller. The brain of the unit is a pic 16f84 microcontroller. After the preset time period, the value in the counter is transferred to a display and the counter is reset to zero. Ive been able to get it reprogrammed by using modified software that was written for 6 discrete leds running at either 4 or 20 mhz.

Im trying to modify a 6 digit led frequency counter that uses an integral pic16f648a, a mhz oscillator and an i2c coupled digital display. Frequency counters circuits and tutorials digital frequency counter is being used for wide range of applications. All you need is a pic microcontroller or any microcontroller that has a high speed timer input module and a 2 line lcd display the. Along with many other items of test equipment, it is possible to obtain frequency counters in a pxi format.

Digital frequency meter with lcd display using pic16f877a. The frequency source should produce square waves and the maximum amplitude is limited to 5v, because the ports of 8051 microcontroller cannot handle voltage greater than 5v. If using internal crystal as clock, the division is performed as follow. In this application, the pic 16f84a operated as a frequency counter which can read frequencies from 10 hz to 30 mhz. The counter inputs in most pics will work up to around 50mhz but the upper limit isnt guaranteed. The prototype pic gen described here achieves a maximum of just over lomii2.

May 03, 2011 the program for the frequency counter is give below. Digital frequency counter extensively uses digital circuits and hence fairly good knowledge of digital circuits and of digital integrated circuits is required to understand the operation of the frequency counter. Smith, in pic projects and applications using c third edition, 20. Each machine cycle or instruction cycle for a pic microcontroller consists of four clock cycles, which are named as q1, q2, q3, and q4. Pic c software techniques are also implemented with this project. May 31, 20 a frequency counter is a useful addition to an engineers toolbox and you can create the design described on this page for free. Havent used it myself, or sd card modules on microcontrollers for that matter, but it looks to be fairly well written. Sep 09, 2016 a good example comes via a project from scott, aj4vd, a very simple frequency counter that uses a single 74 series chip at its business end, and counts to over 100mhz. Counters such as this one have been around for a while, often integrated into radios with analog vfos. Multi function digital frequency meter circuit 0100mhz. A frequency counter which can read frequencies from 50 hz to 50 mhz was implemented in this application note in order to demonstrate this method of measuring the 16bit counter value from the prescaler and tmr0. A frequency counter circuit project written in c using tmr1.

So basically we have measuring the frequency of signal at port 3. The prescaler must be used when measuring high frequency. Frequency counter schematic using microcontroller at89c51 is a simple yet mostly used frequency counter schematic used. Digital frequency meter with lcd display using pic16f877a digital frequency meter with lcd display can be used to measure frequency of square wave. Mar 25, 2017 couple of weeks ago i purchased from ebay one of these amazingly cheap an useful modules with max7219 led driver and 8 digit led display.

I read also a couple of interesting articles concerning this matter on qst 2, and so i was encouraged to go ahead with the project. Luckily, i found a great library for arduino and i reworked it to be compatible with pic. The oscillator itself will be mostly the same and when i finish the whole project there will be a separate article. I am trying to make a frequency counter using a pic16f877a and a schmitt trigger 74ls14this is my code. The schematic is fairly simple and straightforward and uses a pic16f628a microcontroller for measuring frequency and a high speed comparator for signal amplification and conditioning. This is a port by peter cousens to the pic 16f84 of the 50mhz frequency counter kit originally available from weeder technologies. Pdf construction of pic based digital frequency meter tolga. Schematics and c code for a pic frequency counter circuit operating up to about 50mhz. Design and fabrication of high frequency linear function generator with digital frequency counter using max038 and a pic microcontroller 268 the figure, cro shows the type of the waveform selected and multimeter shows the frequency in khz that matches with function generators lcd display in terms of hz. Design and fabrication of high frequency linear function. Picgem cdmgepp considering how the max038 might be put under serdautomatic control as part of a frequency generator and counter.

Make the connections as per the circuit diagram and apply the pulse generated by arduino at port 3 pin p3. Luckily, i found a great library for arduino and i reworked it to. Keywords power frequency, zerocrossing detector, pic microcontroller. Design and fabrication of high frequency linear function generator with digital frequency counter using max038 and a pic microcontroller p. Frequency counter using pic16c5x microchip technology. Again, the range of the counter can be extended by the use of the prescaler. Plj8led frequency counter user operating manual 1 8digit led frequency counter module model plj8ledc user manual v 1. Jan 02, 2019 the microcontroller, a pic 16f628, is obviously supplied preprogrammed. The main circuit blocks of the frequency counter circuit are shown in the diagram below. Pdf frequency measurement is an important issue in the field of electrical engineering. Pic frequency counter with morse output its a little strange to blog about a project thats mostly software, but even if i dont explore the software design in depth i can at least describe the resulting instrument. As we said before, the 74ls90 counter consists of a divideby2 counter and a divideby5 counter within the same package. This device is a crystal oscillator tester, but also a frequency counter, see. I bought one of these kits for the fun of it to see how well it worked.

Frequency counter with pic and seven segment led display, with. The text, photos, and diagrams of the original article pdf format a view of the assembled prescaler pcb pdf format a detailed view of the tcxo area of the main pcb pdf format. Bcd counter circuit using the 74ls90 decade counter. This project shows how to build a very simple yet very useful tool that every diy enthusiast should have in his lab. Unfortunately by juggling the numbers for the internal clock and prescaler we cannot make a time of exactly 1 s. This document describes the construction of small frequency counter with a cheap pic microcontroller and a few sevensegment led digits. Pdf construction of pic based digital frequency meter. All you need is a pic microcontroller or any microcontroller that has a high speed timer input module and a 2 line lcd display the standard hd44780 one is the one used here. The prototype picgen described here achieves a maximum of just over lomii2. Some time ago i made an audio oscillator with frequency counter which worked very well, but i sold it, and now i am making a new one. The microcontroller, a pic 16f628, is obviously supplied preprogrammed.

Have you ever needed to find out how quickly something is oscillating. As you can see very simple and yet elegant schematic. This frequency counter contains only a few components. Very simple pc frequency counter works up to 100mhz hackaday. Since it uses a base pic that is easily programmable, and provides a usefull bit of bench test equipment at very low cost, it makes an ideal pic. The main process of this project is to design a portable device to count and display the frequency of input signal. The schematic of the frequency counter is actually almost the same as the previous. The basic hardware for the measurement circuit is depicted in fig. A prescale chip from neccel may be added with divide by 256 counters to achieve 3. Analog frequency meter circuit electronic circuits. With little bit modification in this embedded systems project you can also measure frequency of sine wave. Frequency counter with pic and 4 to 5digit led display.

I want to make frequency counter in khz will u plz provide mikro c code n circuit if possible. Our website contains free collection of electronics circuits, pic microcontroller projects, diagrams, tutorials, cad and pcb design software. Pic gem cdmgepp considering how the max038 might be put under serdautomatic control as part of a frequency generator and counter system, the author recognised tha a pic16f877. In our project i have made function generator by using 8038function generator ic to display frequency of the generated signal from 8038 we are using frequency counter using 89c2051 given in this site. Most frequency counters work by using a counter that accumulates the number of events oscillations occurring with in a specific period of time say, one second. In this digital frequency meter pic16f877a microcontroller is used to measure frequency with the help of external interrupt and 16 2 lcd is used. When configured correctly, the input to the pin is sent directly to a hardware counter module so it isnt dependent on the system clock frequency. Simple 100mhz frequency counter which uses 6 digit ledread more. If the coarse measured frequency is way below 1 mhz, the prescaler is turned off to get the best possible frequency resolution. Frequency counter using pic micro controller microcontroller. Analog frequency meter circuit using ne555 this 1khz linearscale analog frequency meter circuit uses the 555 as a pulse counter. The counter the whole counter design is based on a 16f876a pic microcontroller. The minimum rise and fall times of the input frequency are speci. The reason behind its simplicity also lies somewhere in the fact that this project uses only two componentsat89c2051 microcontroller and a 162 lcd.

A 10 khz signal, therefore, could be at a level as high as 60 v rms. Block diagram of the pic timer0 wdt prescaler pic timer0 block diagram. Whilst building my frequency standard i found that i needed a frequency counter that i could permanently add to the project. C4 and c5 values can be between 33pf and 62pf and the crystal frequency can be fine tuned with them. It uses timer 1 in 16 bit counter mode to count the input signal edges and overflows of the counter are accumulated to give the total count in multiples of 65536. Nov 14, 2017 for hams who program mcus, a frequency counter seems to be one of several obligatory projects, with others being a keyer and a controller for a dds or pll type synthesizer.

Crystal oscillator frequency counter tester page 1. A pic frequency counter operating up to about 50 mhz. The controls measures sector as well as the display is used a single master ic. For things like hamster wheels and ocean waves, this is. It could be operated with even an ordinary 9v battery for a long period. Which one is appropriate depends on things you havent told us, like the minimum and maximum frequency.

Frequency counter detailed circuit diagram available. We have previously build frequency counter using arduino. To do this we will need to use an external crystal for accurate timing. Pic16f877 timer modules tutorials pic timer0 tutorial. The weeder frequency counter pic 16f84 port by peter cousens. Frequency counter with a pic and minimum hardware by wolfgang wolf buscher, dl4yhf last updated. Hardware can assist here in that you can have a external signal increment timer 0 or timer 1. The most important part for the accuracy of the frequency counter is the time base setting circuit crystal resonator x1 and capacitors c4 and c5. All you need is a pic microcontroller or any microcontroller that has a high speed timer input module and a 2 line lcd display the standard hd44780 one is the one used. In 100 milliseconds, th1 and tl1 can hold up to 65535 counts. Likely the chip is ok but this poor thing was surrounded by polystyrene foam, a polythene bag and then polythene bubble wrap.

This auto ranging pic16f84a frequency counter counts up to 3540mhz and has two separate input bnc connectors. It uses pic16f628a microcontroller with external 32. Frequency counter with pic16f628a use arduino for projects. Here we have used at89s52 8051 chip, and a 555 ic is used in astable mode for generating the sample pulse for demonstration. This way when input frequency is below 1mhz the resolution will be 1hz. The basic idea comes fromthe an592 microchip application note. There are two different common methods to measure frequency with this pic. If you are using batteries, and put the device in battery saving mode, it will switch itself off after 15 seconds of inactivity. A frequency counter is a useful addition to an engineers toolbox and you can create the design described on this page for free. Digital frequency meter with lcd display can be used to measure frequency of square wave. The translated document is available in pdf format on his website.

379 1127 513 71 1482 539 983 53 498 1611 990 1138 617 168 1546 413 220 629 783 81 190 1221 1277 529 471 739 1584 303 597 1349 239 142 159 810 835 739 411 1481 421 289 681 1159 51