I'm designing a BPSK modulator. Don't mind the upper left circuit of the circuit, it just generates the [Oscillator] which will serve as the 500kHz sine wave carrier signal. It's already successful. The problem I have is the BPSK circuit highlighted in red. 
Especially the lower half connected to OP1. It's an inverting comparator and the transistor is mostly used as a switch that toggles the inverter circuit by grounding OP2. As mentioned, the output of the whole thing is supposed to be a BPSK modulated signal ( [Vmessage] + [Oscillator] ).
It does bounce when the binary signal of the [Vmessage] at 50kHz goes up and down, but the signal is wonky. The resistor values may be the problem, though I have tried increasing and decreasing every single one and it still won't come out properly. Do you guys have any idea?

Especially the lower half connected to OP1. It's an inverting comparator and the transistor is mostly used as a switch that toggles the inverter circuit by grounding OP2. As mentioned, the output of the whole thing is supposed to be a BPSK modulated signal ( [Vmessage] + [Oscillator] ).

It does bounce when the binary signal of the [Vmessage] at 50kHz goes up and down, but the signal is wonky. The resistor values may be the problem, though I have tried increasing and decreasing every single one and it still won't come out properly. Do you guys have any idea?
Attachments
-
43.1 KB Views: 2