Hochschule Kempten      
Fakultät Elektrotechnik      
Interface Electronics       Fachgebiet Elektronik, Prof. Vollrath      

Interface Electronics

Laboratory 04: Simulation and Analysis of 8-bit R2R DAC


Lab04 GroupA, ***910 A, ***726 P



Laboratory Goals

The objectives of this laboratory session are as follows:


8-bit R2R DAC.

The following figure 1 shows the real implementation of 8-bit R2R DAC on a breadboard.
Here we have the resistance of R and 2R. Input of DAC connected to digital pins, output connected to the digital oscilloscope.
Figure 2 shows LTSPICE schematic of R2R DAC with measured resistance values.


figure 1


figure 2

LTSPICE schematic with resistor values.



Resistor values (ohm) Resistor values (ohm)
R0200.5KR8200.3K
R1199.9KR9100.2K
R2199.5KR1099.6K
R3200.5KR11100K
R4200.6KR1299.7K
R5199.7KR13100K
R6200.1KR1499.8K
R7199.7KR1599.9K

Table 1

Simulation of Ramp test


The simulation of Ramp test for different
frequencies are shown in the figure.
The frequencies are varied from 10 Khz to 10 Mhz.

figure3:10kHZ frequency

figure4: 100kHZ frequency
We can see from the graph that the Ramp
is getting bad with the increasing
frequencies. We got the better results for
the frequencies between 2Khz to 10Khz.


figure5:1MHZ frequency

figure6:10Mhz frequency

Settling time of the DAC

Settling time for the DAC is measured
for both full scale and mid scale range.
The figure shows the values for rising and
falling edge of the clock signal.

figure7: full scale rising time.

figure8:full scale falling time.
full scale rising time=13usec
full scale falling time=16usec
mid scale rising time=1.5usec
mid scale falling time=0.049usec

figure9:mid scale rising time

figure10:mid scale falling time

Extraction of INL, DNL


Good extracted ramp data

figure11

figure12: INL,DNL for 2khz frequency
Bad extracted ramp data

figure13

figure14:INL,DNL for 200khz frequency

Challenges and Discussions


  • Discussions


  • Challenges
    • In simulating the Ramp test the challenges included getting the right value for INL and DNL. We continued working with
      much higher frequencies and was not able to get the required accurate values.Challenges also included in getting the specified signal for the analysis.



    • Discussions
    We can see from the above slide that, with the different signal frequencies the values for INL,DNL changes.In case of 2Khz frequency
    the range of INL,DNL is between -0.6 to +0.5. And in case of 200khz, the range is between -5 to +4. This value is bad because there will a loss of information


    • Challenges
    In simulating the Ramp test the challenges included getting the right value for INL and DNL. We continued working with
    much higher frequencies and was not able to get the required accurate values.Challenges also included in getting the specified signal for the analysis.

    Sine measurement of R2R DAC



    For the Sine measurement analysis
    of DAC we imported the 10bit sine file
    with 43 periods from the folder provided.
    The results of FFT and SNR is obtained from this.
    For both signals FFT shows the highest peak at
    around 43HZ ,but the noise level is varying.
    Noise level is greater for 50khz than 1khz signal.
    From the figure it can also be seen that
    ENOB= 7.9435 bits, which is less than 8 bit for 1khz signal.
    ENOB= 7.7823 bits, which is less than 8 bit for 50khz signal.

    figure15

    figure16

    figure17

    figure18

    INL, DNL measurement for different frequencies.



    In order to get the comparison for good and bad
    sine measurements, we have taken two different
    frequencies of 1Khz and 50Khz.
    The results in the figure shows that, although
    the noise is well under the highest value but as we
    increase the frequencies INL,DNL is very much crossing
    the limits of +/- 0.5 LSB range.

    figure19

    figure20

    Digital calibrated R2R DAC


    For the calibration of sine we used the
    triangular wave and used that values to get
    the FFT points.

    figure21
    The calibrated data shows the better results
    for INL,DNL values than the non calibrated data
    The values of INL, DNL now is in the range of +/- 0.5 LSB


    figure22

    Summary



    • Ramp:
    • f measured= 2Khz INL,DNL range= -0.6 to +0.5

    • Settling time:
    • t_full_scale_up=13usec. t_full_scale_down=16usec. t_mid_scale_up=1.5usec. t_mid_scale_down=0.049usec.

    • Sine:
    • f_measure=1khz SNR= 84.3-34.72=49.58db SDR=20.86 ENOB=7.9435

    • Digital calibrated INL,DNL:
    • INL,DNL range= -0.5 to +0.3

    Time Spent and Contribution



    The total time spent working on this laboratory was around 25 hours distributed between the lab session
    implementing the simulation, analysing the data and working on the report. However, most of the time was spent on
    simulating the correct results.We tried to get our best for the results.
    Simulation and analysis is done by collaboration of both candidates. However the candidate with matriculation number ***726 carried out the web report until
    the sine signal calibration and the candidate with matriculation number ***910 carried out the web report after that part.

    Conclusion


    More detailed analysis of the R2R DAC is carried out which helped us clearing with many concepts of analysis.
    The calibration methods and the factors affecting that was also learned.