Low Voltage square wave

Thread Starter

NetGnome

Joined Jul 6, 2009
1
I want create a square wave pulse train output that I can vary by program between 0 and 1 volt in .1V steps. The wave should be square and be able to output 30ma from 0 to 100KHz. I have a micro controller digital output producing a 3.3V TTL pulse train that I want. I have an analog output that can produce the voltages and current I need, but it is not fast enough.

I tried using an optocoupler connected to my TTL digital output to switch a PNP transistor that was connected to my analog ouput and pulled down by resistor to zero. This works above a 1 volt output but not below.

What transistors/circuit will switch low enough, fast enough and carry the current I need.

Thanks
 

millwood

Joined Dec 31, 1969
0
if you don't output too much current and want the voltage to be precise (and have spare pins on the mcu), you can build a dac using a few pins on the mcu through a r2r network.

if you need more current, you can always buffer it.
 

mik3

Joined Feb 4, 2008
4,843
if you don't output too much current and want the voltage to be precise (and have spare pins on the mcu), you can build a dac using a few pins on the mcu through a r2r network.

if you need more current, you can always buffer it.
You can but it is hard to find the exact resistor values required.
It would be better to use a digital potentiometer. You apply a digital value at its input and it outputs an analog value.
 
Top