I am trying to make an envelope detector for an OOK signal, but my comparator is not working properly.
I tried various models for the comparator but for some reason the output is staying relatively saturated.
It should go from 0 to 3.3V, it is detecting the envelope but the signal variation is not too much.
Does anyone know anything about this? The frequency of operation is 915MHz.
The circuit waveforms are as follows:
The circuit diagram is as attached below:
The LTspice simulation file used is here.