Electronic – Power supply modulator using op-amp and BJT -Output is not coming properly at 1Mhz

analogbjtcircuit-designmosfetoperational-amplifier

I am designing a power supply modulator using an op-amp. I have a DC voltage of 1.6 V when the clock is LOW the output should be at 1.6 V and when CLK is high the output should be at 3.6 V. I am using the below circuit to implement this functionality. Please find the attached circuit.

When the input frequency is low (say 100 kHz) output is coming as expected when it goes to 1 MHz the output is weird.
My op-amp (TLV9062, datasheet) has a BW of 10 MHz and BJT(MMBT2369ALT1) has an ft of 700 MHz.Please find the attached circuit diagram and output obtained at 100 kHz and 1 MHz.

May I know where I Went Wrong?

Circuit Diagram

OUTPUT at 100Khz

OUTPUT at 1Mhz

Best Answer

I have no idea what a "supply modulator" is but if the load has decoupling capacitors on it, then the voltage slew rate will be pretty low.

Besides that, the opamp has a slew rate of 6.5V/µs, so it will need 300ns to swing 2V (from 1.6V to 3.6V). It has to swing twice per period, so with 1MHz square wave the best you can hope is 300ns ramp up, 200ns constant, 300ns ramp down, 200ns constant. If that's not okay, you need an opamp with higher slew rate.

Also using the BJT as a saturated switch will be slow. You should wire the opamp as an adder instead, and add a constant DC to your input square wave.