I only have pic16f84a around so I want to make it useful. First is the guitar signal, then after it is amplified and filtered, it will enter comparator to convert the signal into square wave, t ...
1. It is an input signal from guitar which has been convert to square wave by analog comparator.
2. Oscillator is 4Mhz.
3. It is compulsory to use pic16f84.
I want to use measure the frequency of the square wave input at RA4/T0CKI of PIC16F84. So how should I start writing the code? Anyone can provide some draft of the C code? Thanks.