I would like to generate a square signal with SW adjustable duty cycle, phase etc using the output pin of a microcontroller (3.3V). Frequency <100Hz. However, I also want
- the amplitude of the high state to be in ~ 2-7V range adjustable with a trim potentiometer from a 12V supply rail,
- When the signal is low it should be close to zero.
- no spikes or disconnected states between transitions to high/low
- signal to be zero when the microcontroller output is zero (non-inverted).
The signal will be fed into high impedance op-amp inputs which will driveflash/strobe circuits, so it is like a common analog input signal to multiple strobe circuits. What is the simplest way to do this? A mosfet, analog switch IC or ?