PC Based Frequency Meter


Posted on Feb 5, 2014

A simple technique for measuring frequencies over quite a wide frequency range and with acceptable accuracy limits using a PC. It follows the basic technique of measuring low frequencies, i. e. at low frequency, period is measured for a complete wave and frequency is calculated from the measured time-period. Cascaded binary counters are use


PC Based Frequency Meter
Click here to download the full size of the above Circuit.

d for converting the high-frequency signals into low-frequency signals. The parallel port of a computer is used for data input from binary counters. This data is used for measuring time and calculating the frequency of the signal. The block diagram shows the basic connections of the counters and parallel port pin numbers on 25-pin D` connector of a PC (control register 379 Hex is used for input). External hardware is used only for converting the higher frequency signals into low frequency signals. Thus, the major role in frequency-measurement is played by the software. The PC generates a time-interrupt at a frequency of 18. 21 Hz, i. e. after every 54. 92 millisecond. Software uses this time-interrupt as a time-reference. The control register of the PC`s parallel port is read and the data is stored continuously in an array for approximately 54. 9 ms using a loop. This stored data is then analysed bit-wise. Initially, the higher-order bit (MSB or the seventh-bit) of every array element is scanned for the presence of a complete square wave. If it is found, its time period is measured and if not then the second-highest order bit (sixth bit) is scanned. This operation is performed till the third bit and if no full square wave is still found, an error message is generated which indicates that either there is an error in reading or the frequency signal is lower than 19 Hz. Lower three bits of the control register are not used....




Leave Comment

characters left:

Related Circuits

  • New Circuits

    .

     


    Popular Circuits

    Antenna Analyzer Progress
    Testing a EM-406A GPS module
    Infrared proximity sensor serial Si1143 of Silicon Labs Company
    transistors audio controlled relay circuit
    linearize single arm wheatstone bridge output
    555 1 Hz pulse generator
    Using LED As A Light Sensor
    ujt triggering circuit
    Electric Fence 20KV pulses for perimeter defense
    Single-junction transistor a phase-shift trigger circuit
    15W Valve Modulator Amplifier circuit



    Top