Virtual Grounds and Negative Reference Voltages
JeremyJ
Posts: 30
I am in the process of setting up a DAC (an NSC DAC0802 to be precise) to generate an analog signal. I'm working on another circuit - a sensorless encoder for a BLDC motor that I am currently operating with a function generator - and I'm trying to get a DAC working with my Propeller setup so I can run the encoder from my MCU.
Well, I wish I had selected a serial DAC and one that did not require a negative voltage reference, but I didn't, so now I want to get this one working, and maybe learn something in the process.
I followed another thread in this forum that is several years old and found this website mentioned in the conversation - www.tangentsoft.net/elec/vgrounds.html. I setup a simple resistor divider circuit like the one shown to provide the V+ and V- inputs into my DAC. The output signal seems OK, but I'm not getting the output voltages I expected (not symmetric around 0V). I think that the problem has something to do with my grounds. I am using a "virtual ground" for the V+ and V- pins (no actual ground path to speak of)...and for the rest of my circuit I am using the negative terminal of my power supply.
Here is my question: When you create a virtual ground reference, does this connect to anything? What kind of problems can arise when you have a virtual ground and a 0V ground in the same circuit?
I'm hoping that someone can explain this concept.
Finally, if I do select an IC that requires a negative voltage reference, what is the best way for me to generate this reference in the macro design of my circuit (assuming I am going to be using a single voltage source). It appears that there are several ways to do this, including negative voltage reference ICs, virtual ground circuits, etc. In terms of cost/layout space, what is the best option. Any ideas?
Jeremy
Well, I wish I had selected a serial DAC and one that did not require a negative voltage reference, but I didn't, so now I want to get this one working, and maybe learn something in the process.
I followed another thread in this forum that is several years old and found this website mentioned in the conversation - www.tangentsoft.net/elec/vgrounds.html. I setup a simple resistor divider circuit like the one shown to provide the V+ and V- inputs into my DAC. The output signal seems OK, but I'm not getting the output voltages I expected (not symmetric around 0V). I think that the problem has something to do with my grounds. I am using a "virtual ground" for the V+ and V- pins (no actual ground path to speak of)...and for the rest of my circuit I am using the negative terminal of my power supply.
Here is my question: When you create a virtual ground reference, does this connect to anything? What kind of problems can arise when you have a virtual ground and a 0V ground in the same circuit?
I'm hoping that someone can explain this concept.
Finally, if I do select an IC that requires a negative voltage reference, what is the best way for me to generate this reference in the macro design of my circuit (assuming I am going to be using a single voltage source). It appears that there are several ways to do this, including negative voltage reference ICs, virtual ground circuits, etc. In terms of cost/layout space, what is the best option. Any ideas?
Jeremy
Comments
As far as virtual ground goes. I was taught that a virtual ground is mostly used in op-amp circuits to visualize whats taking place between the inverting and non-inverting inputs. Its a reference that one could analyze the circuit from.
The best way to make a circuit contain a negative voltage is add 2 voltage sources together making the middle connection common (ground). That said, your voltage source has to be big enough so that when you add -v to +v it equals v-total.
Can you provide a block diagram of your complete circuit including the CPU and the load it is supposed to drive? There can be good reasons to use a negative voltage reference, and there are chips available, and circuits, that can generate and regulate a negative voltage from a positive supply.
It has been around for awhile and maybe there are better choices now.
Tom
Here is a visio drawing of my circuit. You can see how I've created a virtual or reference ground to create a negative reference voltage. Not sure if this approach is going to work... Tom - Thanks for the advice on the ICL7660...I'll checkout the datasheet.
To answer your question, this is not set in stone in any way, shape or form. I am literally just trying to get my DAC to work and output an analog signal. I don't have an IC to create a negative voltage reference, so I'm trying to "make" one myself. I'd like to get this DAC working with a negative voltage reference.
I think I am going to switch strategies and just try operating this IC without the negative reference voltage. I'm looking at other DACs, too - the LTC1257 or LTC1446 look like they may be a better fit for what I am trying to do (output a 40kHz sine wave). They are serial ICs with a voltage output that operate from a single voltage supply. I'm also looking in the OBEX to see what DACs other people have used.
Did you just say you want a 40kHz sine wave? If so, the rate of data output to a DAC will have to be pretty high, much higher than 40kHz if you want a smooth sine wave. That could be done with a parallel interface but may well be a challenge with a serial DAC.
Have you considered simply using the Propeller counters to generate the sine wave using the Duty mode? There are several objects available for doing that, and a number of discussions here on the forum. At the output it takes a simple filter to remove the high frequencies, and maybe an op-amp to shift the voltage level.
Yet another solution would be a dedicated DDS chip, which works by the prop loading it with a tuning word, and it outputs a nice sine wave.
Have you considered using the Propeller counters in duty mode to generate the sine wave? At the output it takes a simple filter to remove the high frequencies and perhaps an op-amp to buffer and shift the level.
Another option would be a dedicated DDS (direct digital synthesis) chip. There, the prop would give it a "tuning word", and the chip generates the sine wave without further intervention.
I'll need to look into the DDS chips - this is new to me, but it sounds like exactly what I need (much simpler, too). Glad you mentioned this option.
I did see D/A conversion exercise in Chpt 7 of th Prop. Ed Manual, but I had doubts as to how clean of a signal it would produce. I'll give it a try.