A good use of the frequency counter is to calibrate other equipment. For example a signal generator that doesn't have its own digital display. The meter will show the exact frequency being produced by the signal generator. Based on the 8051 microcontroller. It is assumed that you know how to interface LCD with the microcontroller.
Code, flowchart, schematic diagram and Proteus simulation is given in the ‘Downloads’ section at the bottom of this page. Firmware
- This Program is to count frequency from T1 (P3.5), by using mode 1 Counter 16 bit.
- Counter resets every 1 second that generated by timer 0, mode 1, timer 16 bit.
- Every 1 second data will show on LCD Character.
- The assembly code is followed by detailed comments describe each routine
- The flowchart below describing the concept and procedure.
Hardware Schematic
All parts and components with full connection is shown below.
Features
- Minimum hardware with high accuracy
- Sensitivity is perfect from 1 Hz to 500 KHz
- Work and tested on most of periodic signals (Square, Sin, Saw tooth, .. )
Downloads
The code was compiled in Kiel uvision 4 and simulation was made in Proteus v7.8 SP2.
To download code , flowchart and proteus simulation
click here