Opamp comparator output interfacing with digital circuit

comparatoroperational-amplifier

I want to use Op amp as a comparator to shape the 50Hz sine wave to square wave, then route it to the PLL reference signal input, the PLL chip is 74HC4046. And i use AC coupled method. Because the supply of the Op amp is +/-15V, but the output signal amplitude need to be within +/-5V range. I have two solution to convert it:

  1. Use diode to clamp the output to +/-0.7V or so.

enter image description here

  1. Use transistor as below:

enter image description here

I want to know which one is better. Such as rising/falling time, delay, etc. I want the frequency is as stable as more.

Best Answer

According to the datasheet, VIH, Voltage-input-high, varies with VCC, and it's 1.5 volts when the chip is powered with 2 volts. This means your first strategy won't work.

If you have a rail-to-rail op amp, you might be able to power it between +Vcc and ground, depending on how close to ground the output of your particluar op amp can go. Check VIL on the data sheet for your PLL to figure this out, as well as your op amp data sheet

I also suggest that you arrange for some hysteresis on the input, to guarantee nice clean transitions. You should consider a comparator instead of an op-amp.

Related Topic