. .
.
Analog to Digital and Digital to Analog Conversion
.
.

 

Analog to Digital Conversion:

 

Digital controllers have many advantages, including increased flexibility and ease of change to the control program, the logic capabilities of digital systems that allow the implementation of complex algorithm and the immunity to drift faced by electronic components in analog control.  Most of the signals that appear in the industry are analog (Temp, pressure, etc). Hence, these signals need to be converted to digital signals to be used by the digital controller feedback loop. The control signal produced by the digital controller needs also to be converted back to analog to drive the plant being controlled. This experiment covers the details of analog to digital conversion of numbers.

 

 

 

Following are ADC generally used.

1.Counter Type ADC.

2.Successive Approximation Type.

3.Flash Type.

 

The output of an A/D converter depends on the following:

 

Low and high reference voltages VRL and VRH (If VRL and VRH have the same polarity, the A/D is a unipolar device; otherwise it is bipolar).

 

*   The number of bits k, the signal is coded into

 

    A k-bit A/D generates 2k output levels called quanta. The minimum value is called offset, and the difference between the minimum and the maximum is called the range, span or full scale. Example, for an 8-bit code, VRL will be eight zeros, VRH will be eight ones and the number of levels is          28 = 256.

 

 

The resolution VQ is the smallest variation in the analog input signal that would cause the A/D output code to change by one level or quantum.

 

Any voltage level vi within the input signal range is translated to its decimal equivalent

as:


  Where:

                                                    

 

Analog values within a quantum level generate the same output code. The maximum error is ┬▒┬ŻLSB (Least Significant Bit). The error VE between the digitized voltage and the input voltage is estimated by:

The error can be lowered by increasing the number of output bits of the converter.

Aliasing is the misrepresentation of a high frequency signal as a low frequency one. This might happen when we use an ADC as shown in the figure below.

 

 

To avoid aliasing, the sampling frequency fs should be more than twice the highest frequency of the sampled analog signal. The sampling frequency of the analog signal fo affects the accuracy of the discrete time representation of the signal. For a reliable approximation, the sampling frequency should be 5 to 10 times the analog signal frequency.

 Digital to Analog conversion :

It is uesd to convert digital input to analog output.

 

 

 

Output voltage is directly proportional to digital input.

The output analog equivalent voltage Vo of a k-bit unipolar DAC is calculated as such:

       

The gain of the DAC can be adjusted as desired by changing R and Rf.

The Range of the DAC output is the difference between the maximum output voltage Vmax and the minimum output voltage Vmin. Vmax is when all the input bits are 1 and hence N=2k-1. Then the range is equal to Vmax since Vmin is zero.

 

The minimum number of bits required in the DAC for specified resolution Vq and desired range is:

 

The result should be truncated to the next highest integer value.

 

 

 

 

 

 

 

 

 

Cite this Simulator:

.....
..... .....
Copyright @ 2018 Under the NME ICT initiative of MHRD (Licensing Terms)
 Powered by AmritaVirtual Lab Collaborative Platform [ Ver 00.12. ]