I try to conceive a schematic with proteus VSM.
I join you the proteus project file.
The problem is the following: I don't manage to get a square wave
at the output of the comparator U4.
Thanks for your help!
The purpose of NE555 is to make a square wave of 40 khz about.
The output (pin 3) should be wired to pin number 16 of the PIC16F84.
The enter sine of the passband filter is a 40khz sine.
The output of that sine is compared to a power supply
so as to generate a square wave but it is not the case.