100MHZ Frequency Counter with PIC16F628A

100MHZ Frequency Counter with PIC16F628A

7178
Views
2 Comments

This project shows how to build a very simple yet very useful tool that every DIY enthusiast should have in his lab: a 100MHz+ frequency counter.

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.

The microcontroller uses its internal 4MHz oscillator for the CPU clock. Timer1 uses an external crystal resonator (watch crystal) with 32768Hz frequency for setting the 1 second time base.

Timer0 is used to count the input signal at pin RA4.

100MHZ Frequency Counter with PIC16F628A – [Link]

Mike is the founder and editor of Electronics-Lab.com, an electronics engineering community/news and project sharing platform. He studied Electronics and Physics and enjoys everything that has moving electrons and fun. His interests lying on solar cells, microcontrollers and switchmode power supplies. Feel free to reach him for feedback, random tips or just to say hello :-)

view all posts by admin

2 Responses

  • Board27
    4 July, 2016 at 1:19 am

    Hi,
    congratulations , this seems a really interesting project and i would like to implement it in another one that i’m working in. Just a simple question since i’m new in Micro World. What i should add to the code to have an RS232 output directly to a serial?

    Thanks in advance.

    • Electronics Lab
      5 July, 2016 at 10:43 am

      To achieve serial communication from this counter you have to modify source code to enable serial communication on TX/RX pins of the microcontroller. This is not so hard for someone who knows PIC mcu programming, you may contact the author for modification of this project.

Leave a Reply

Archives