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?