Interface ElectronicsLaboratory 03: ADC DAC analysis instructionsProf. Jörg Vollrath |
The schematic shows a 4-bit ADC DAC simulation set up. Simulate a ramp test. V2 in1 0 PULSE()Make sure the .save V(in1) V(vout) saves vout as last value, to be able to postprocess it. The simulation generates a file 4Bit_ADC_DAC_pipe.raw with simulated values. |
This video presents the download and run of LTSPICE files. Search for "Vollrath InEl" Open LTSPICE presentation. Go to "Scalable behavioral 4 Bit DAC", "Scalable behavioral 4 Bit ADC", "Test for 4 Bit ADC and DAC" slides and download circuits (.asc) and (.asy) presented to you after clicking on the circuit. Run the sine simulation and view V(in1),V(out). Create a pulse voltage source: V1 in1 0 PULSE(0 1 0 655.36u 655.36u 0 1310.72u) Run a ramp simulation. |
Duration 10:52 min |
This video presents the analysis of LTSPICE simulation files. Run the ADC DAC test simulation in LTSPICE with a ramp. Extract the simulated values with Read Raw File . Use analysis buttons to:
Extract the simulated values with Read Raw File . Use the integer values for a FFT analysis. |
Duration 13:48 min |
V0 D0 0 PULSE(0 4 2m 1u 1u 2m 4m) V1 D1 0 PULSE(0 4 4m 1u 1u 4m 8m) V2 D2 0 PULSE(0 4 8m 1u 1u 8m 16m) V3 D3 0 PULSE(0 4 16m 1u 1u 16m 32m)Here the clock cycle time (last parameter), high time and delay is doubled for every higher order data input.
The schematic shows a 4-bit R2R DAC. We will use it in the ADC DAC simulation to see some errors. Create a symbol and hook it up to the ADC DAC test circuit from last week. Modify the resistance values. For example 1.5k, 2.5k, 1.3k, 1.7k. Simulate a ramp test. Extract the simulated values with Read Raw File . Calculate INL, DNL with any tool. Document and discuss INL and DNL values. Simulate a sine signal test. Extract the simulated values with Read Raw File . Calculate FFT, INL, DNL with FFT webpage and paste the extracted values from LTSPICE into the input field. Document and discuss FFT, INL, DNL and SNR values. |
Duration 6:34 min |
This video presents the analysis of LTSPICE simulation files with
a .measure statement. Run the ADC DAC test simulation in LTSPICE with a ramp. Insert SPICE directive: .meas trans OUT00 FIND V(vout) AT=81.92us After simulation "View","SPICE Error log" will show the result. Multiple measurement statements can be placed into a file. After simulation "File","Execute .MEAS script" generates the results. A 10-bit data converter should have about 16384 measurement values. Data extraction can be difficult and quite time consuming. |
Duration 5:55 min |
Do a 8 bit R2R DAC simulation with resistance error and simulate INL, DNL and SNR. Each person should vary different resistance values. 90 min: Setting up R2R DAC and doing first analysis. Ramp and sine curve, INL, DNL, SNR 90 min: Change resistance values, simulate and look at INL, DNL and SNR. What were your challenges and problems? What INL, DNL and SNR were you expecting? How are resistance values and INL, DNL, SNR curve relate? What happens if you skip one simulation sample or take too many samples with your results? Document your results in a 1 page IEEE report. Submit the pdf file with a suitable name via email. Target date for report 22.11.2023 |