Frequency counter using pic pdf

A frequency counter circuit project written in c using tmr1. 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. 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. 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. Keywords power frequency, zerocrossing detector, pic microcontroller. There are two different common methods to measure frequency with this pic. 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. Frequency counter with pic and 4 to 5digit led display. The hardware is simple and the main blocks are shown in the diagram below. This includes several peripherals but just a matjaz vidmar, s53mv a simple rfmicrowave frequency counter fig 1. The bench frequency counter is the most commonly used format for this type of electronics test equipment. 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.

I want to make frequency counter in khz will u plz provide mikro c code n circuit if possible. Over the years its been ported to different pics until eventually it was ported to the ubiquitous 16f84. Jan 02, 2019 the microcontroller, a pic 16f628, is obviously supplied preprogrammed. Simple 100mhz frequency counter which uses 6 digit ledread more. To do this we will need to use an external crystal for accurate timing. A frequency counter circuit project written in c using. The lcd display used is a state of the art, commonly available 16 characters dot matrix in one line unit. Plj8led frequency counter user operating manual 1 8digit led frequency counter module model plj8ledc user manual v 1. Frequency counter schematic using microcontroller at89c51. Adding the current value of the counter at the end gives the total count. May 03, 2011 the program for the frequency counter is give below.

As we said before, the 74ls90 counter consists of a divideby2 counter and a divideby5 counter within the same package. After the preset time period, the value in the counter is transferred to a display and the counter is reset to zero. The microchip name and logo, the microchip logo, filterlab. The reason behind its simplicity also lies somewhere in the fact that this project uses only two componentsat89c2051 microcontroller and a 162 lcd. A prescale chip from neccel may be added with divide by 256 counters to achieve 3. Hardware can assist here in that you can have a external signal increment timer 0 or timer 1. Crystal oscillator frequency counter tester page 1.

Analog frequency meter circuit using ne555 this 1khz linearscale analog frequency meter circuit uses the 555 as a pulse counter. Picgem cdmgepp considering how the max038 might be put under serdautomatic control as part of a frequency generator and counter. The pxi system provides a rack system for test and control systems. Analog frequency meter circuit electronic circuits. Frequency counter with pic16f628a use arduino for projects. Wolfe claimed that his pic based frequency counter had a frequency range of 1hz to 50mhz with only a handful of. Measurement of power frequency with higher accuracy using pic. Havent used it myself, or sd card modules on microcontrollers for that matter, but it looks to be fairly well written. Frequency counter using pic16c5x microchip technology. Measurement of power frequency with higher accuracy using pic microcontroller. Frequency counter with pic and seven segment led display, with. With little bit modification in this embedded systems project you can also measure frequency of sine wave.

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. 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. Implementation of pic based digital frequency counter citeseerx. Pic timers and counters part 1 posted on november 21, 2010 by rb. Have you ever needed to find out how quickly something is oscillating. A pic frequency counter operating up to about 50 mhz. Along with many other items of test equipment, it is possible to obtain frequency counters in a pxi format. Build your own pic based frequency counter radio boat anchor. Unfortunately by juggling the numbers for the internal clock and prescaler we cannot make a time of exactly 1 s. 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. As you can see very simple and yet elegant schematic.

Frequency counter detailed circuit diagram available. 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. Frequency counter using pic micro controller free download as word doc. The controls measures sector as well as the display is used a single master ic. The main desired output is the high resolution display in mhz range of frequency. 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. Each machine cycle or instruction cycle for a pic microcontroller consists of four clock cycles, which are named as q1, q2, q3, and q4. In this digital frequency meter pic16f877a microcontroller is used to measure frequency with the help of external interrupt and 16 2 lcd is used. In this work, the complete design of advanced frequency counter is provided. 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. 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. 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. C4 and c5 values can be between 33pf and 62pf and the crystal frequency can be fine tuned with them. I bought one of these kits for the fun of it to see how well it worked.

In this application, the pic 16f84a operated as a frequency counter which can read frequencies from 10 hz to 30 mhz. 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. 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. It was a pic based frequency counter build by amateur radio enthusiast wolfgang wolf buscher dl4yhf. The mcounter, a pic based programmable frequency meter. Our website contains free collection of electronics circuits, pic microcontroller projects, diagrams, tutorials, cad and pcb design software. Likely the chip is ok but this poor thing was surrounded by polystyrene foam, a polythene bag and then polythene bubble wrap. First of all, if you like this project, please vote for me in the hurricane laser competition and the led contest. 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 oscillator itself will be mostly the same and when i finish the whole project there will be a separate article. Frequency counters circuits electronics tutorial and. 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. Pic16f877 timer modules tutorials pic timer0 tutorial.

I am trying to make a frequency counter using a pic16f877a and a schmitt trigger 74ls14this is my code. The microcontroller, a pic 16f628, is obviously supplied preprogrammed. 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. So i wanted to get in my frequency counter project. 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. The schematic of the frequency counter is actually almost the same as the previous. A frequency counter is a useful addition to an engineers toolbox and you can create the design described on this page for free. Again, the range of the counter can be extended by the use of the prescaler.

This project shows how to build a very simple yet very useful tool that every diy enthusiast should have in his lab. This tester will also give the resonant frequency for most modern crystals. 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. Smith, in pic projects and applications using c third edition, 20. 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. When it arrived this morning i could see that the seller knows how to package esd sensitive components take a look at the pictures. Frequency counter using pic16c5x 1, where you may find a simple software wich implements a frequency counter using a pic microcontroller. 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.

This auto ranging pic16f84a frequency counter counts up to 3540mhz and has two separate input bnc connectors. The counter inputs in most pics will work up to around 50mhz but the upper limit isnt guaranteed. Pic c software techniques are also implemented with this project. Frequency counter using pic micro controller microcontroller.

The translated document is available in pdf format on his website. 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. Very simple pc frequency counter works up to 100mhz hackaday. Bcd counter circuit using the 74ls90 decade counter. Luckily, i found a great library for arduino and i reworked it to be compatible with pic. It could be operated with even an ordinary 9v battery for a long period.

As i have configured the timer 1 as counter, using the tcon bit tr1, i will be counting the. Counters such as this one have been around for a while, often integrated into radios with analog vfos. Schematics and c code for a pic frequency counter circuit operating up to about 50mhz. For things like hamster wheels and ocean waves, this is. Luckily, i found a great library for arduino and i reworked it to. 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. Digital frequency meter with lcd display using pic16f877a. The maximum clock frequency at the t0cki input is limited by the synchronization requirement with the internal clock. The prototype picgen described here achieves a maximum of just over lomii2. In 100 milliseconds, th1 and tl1 can hold up to 65535 counts. Pdf construction of pic based digital frequency meter. Any desired input frequency from hz to mhz can be counted and displayed using peripheral interfacing controller pic pic16f877a and. The prescaler must be used when measuring high frequency.

Im trying to modify a 6 digit led frequency counter that uses an integral pic16f648a, a mhz oscillator and an i2c coupled digital display. So to display correct frequency, the counter needs to subtract the incoming frequency with 455 khz or 10. 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. Nov 26, 2018 following is the code for frequency counter circuit using 8051 microcontroller. 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. 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. It uses pic16f628a microcontroller with external 32. The conceptually simple way is to do a frequency counter. 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. Caption copied from the norcal meeting listed in the links below.

Block diagram of the pic timer0 wdt prescaler pic timer0 block diagram. If using internal crystal as clock, the division is performed as follow. Frequency counter schematic using microcontroller at89c51 is a simple yet mostly used frequency counter schematic used. The pic firmware for the frequency counter can be downloaded from this link includes. Digital frequency meter with lcd display using pic16f877a digital frequency meter with lcd display can be used to measure frequency of square wave. Which one is appropriate depends on things you havent told us, like the minimum and maximum frequency. This way when input frequency is below 1mhz the resolution will be 1hz. Download the files for the 600mhz counter here by right clicking on the appropriate link and using the save target as windows feature. 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. If you are using batteries, and put the device in battery saving mode, it will switch itself off after 15 seconds of inactivity. The main process of this project is to design a portable device to count and display the frequency of input signal. So basically we have measuring the frequency of signal at port 3.

The minimum rise and fall times of the input frequency are speci. The basic hardware for the measurement circuit is depicted in fig. The main circuit blocks of the frequency counter circuit are shown in the diagram below. 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. We have previously build frequency counter using arduino. This document describes the construction of small frequency counter with a cheap pic microcontroller and a few sevensegment led digits. 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. The brain of the unit is a pic 16f84 microcontroller. Measurement of power frequency with higher accuracy using. The problem was the absence of library for pic microcontrolers. 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. The weeder frequency counter pic 16f84 port by peter cousens. Design and fabrication of high frequency linear function generator with digital frequency counter using max038 and a pic microcontroller p.

The counter the whole counter design is based on a 16f876a pic microcontroller. This frequency counter contains only a few components. If the coarse measured frequency is way below 1 mhz, the prescaler is turned off to get the best possible frequency resolution. Here we have used at89s52 8051 chip, and a 555 ic is used in astable mode for generating the sample pulse for demonstration. Make the connections as per the circuit diagram and apply the pulse generated by arduino at port 3 pin p3.

In this digital frequency meter pic16f877a microcontroller is used to measure frequency with the help of external. Simple frequency meter using pic 16f877 embedologist. A 10 khz signal, therefore, could be at a level as high as 60 v rms. You can also use external power via a standard usb cable. Frequency counter with a pic and minimum hardware by wolfgang wolf buscher, dl4yhf last updated.

This is a port by peter cousens to the pic 16f84 of the 50mhz frequency counter kit originally available from weeder technologies. Digital frequency meter with lcd display can be used to measure frequency of square wave. Whilst building my frequency standard i found that i needed a frequency counter that i could permanently add to the project. This device is a crystal oscillator tester, but also a frequency counter, see. 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. But i wanted to use 7segment led display, not lcd, so i found a second useful project. Design and fabrication of high frequency linear function.

Looking around the net i found this little counter. Forums project doubts frequency counter using 89c2051. The basic idea comes fromthe an592 microchip application note. Pdf construction of pic based digital frequency meter tolga. Pic frequency counter circuit using 7 segment displays, tmr0 and tmr1. Pdf frequency measurement is an important issue in the field of electrical engineering. How to easily make a 50mhz frequency counter using only a pic. 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. The prototype pic gen described here achieves a maximum of just over lomii2.