Do you really need a four layer PCB?
I use a two layer PCB with a ground copper pour on both sides. I run wide traces for +5V, +12V and -12V.
Attached are my two layers showing the copper pours.
The 50Ω output resistor is a 1210 size to handle the higher current. Also, the traces from the op-amp to the BNC are a little wider than normal. Same for the 'digital' BNC.
Notes on your digital output:
- Insure the STM32 pin is PWM capable
- If possible, have all the pins that select the ch #2 logic level be on the same port. I say this so that when you update the level (i.e. a port write) all pins change simultaneously. You may run into some case where you don't want any switching spikes due delays in pin edges caused by multiple CPU write cycles.
For the power needed it gets close with a correct 50 ohm termination at the load. Some 10 V at 100 ohm load would be 100 mA from the 12 V and this may need some 300 mA from the 5 V (or a bit less). With a short at the output the current may be higher in theory, but chances are the OP-amp with go to current limiting.
The charge would however run into problems earlier. Not sure if it likes +12 V to -12 V at all. Some of the chips have a limit more at some 16 V between both ends, so +-8 V max.
He's not going to get anywhere close to those kind of loads.
With a 50Ω load, 2 or 3V
p-p output is about all the lm7171 in a SOIC package is going to handle before melting. Even with all the heat dissipation. Ask me how I know?
I drive my lm7171 with +/-12V. It's maximum V
max - V
min = 36V.
I was wondering if a lower supply voltage to the lm7171 (say +/-9V) might reduce the power drop and allow a larger output voltage swing???
I never looked into the relationship between power supply vs output voltage concerning heat dissipation.