Digital to Analog & Analog to Digital Conversion
Digital to analog Conversion : What is that ?
Digital to analog conversion is used in many things,
Like a speaker which is an analog output.
The computer is playing a song stored in a .mp3 format or something else which is digital information.
Then this information needs to be converted to analog in order to the speaker to play.
And this is what we are going to see today !
Digital to analog Conversion : How does it work ?
First, we will choose what is the digital value that we want to convert to analog.
For example, Dval = 48
Then, we need to know what will be the voltage range we can work on.
For example, from 0 V to 5 V so,
Vmin = 0 V ; Vmax = 5 V ; Vref = 5 - 0 = 5 V
We need to know what will be the DAC's resolution, let's say it is 8 bit.
With the resolution, (Nres = 8) we can find the Quantum :
Q = Vref / (2Nres - 1)
Q = 5 / (28 - 1) = 0.0196 V = 19.6 mV
But wait ... what is the Quantum ?
The Quantum will be the most little variation between a value.
Since our resolution is 8 bit, we can only choose a value between 0 and 255.
Why 255 ? Because 28 - 1 = 255 as we saw earlier.
Now, it is time to convert our value to analog which was 48.
The output voltage of 48 would be in this case :
Vout = Q x Dval + Vmin
Vout = 0.0196 x 48 + 0 = 0.9408 V
That's it ! We just saw how to convert a digital value to an analog value.
Digital to analog Conversion : Converter