Lab 2 - ECE 421L 

Authored by Fred Hathaway,

hathawa6@unlv.nevada.edu

5 Sept 2013 

  

Design of a 10-bit Digital-to-Analog Converter (DAC):

 

Prelab:

  

I downloaded lab2.jelib file to my Electric directory.  Next I opened Electric with the ee421_ecg621.jelib and lab2.jeli files.  I then clicked in Cell -> Cross-Library Copy and followed the prelab directions.

 
lab2_figure1.JPG
 

As seen above, I copied sim_ADC_DAC{sch} and all of the subcells and the related views into ee421_ecg621.jelib.  Once completed, it clicked done to exit this screen.  The jelib was saved by clicking on disk icon in upper right corner of Electric.  I then backed up the jelib files by zipping and emailing a copy to myself.
 
Next, I opened up the sim_ADC_DAC{sch} schematic and ran the simulation.

lab2_figure2.JPG

  

After running the simulation and adding Vin and Vout traces:

 

lab2_figure3.JPG

 
The original signal is an analog signal as seen below:
 
lab2_figure4.JPG

 
The signal is the n converted into a digital signal.  The more bits, the better the resolution.  

lab2_figure6.JPG

The digital signal is then converted back into an analog signal.  The input the the DAC is a binary word of 10 bits and the output is an analog signal.  The converted signal is not as smooth as the original analog signal.  For each digital input there will be a corresponding output as shown below.  This explains the steps in the wave form.  The more bits the input has, the smaller the steps of the output signal.  This is referred to as resolution.  

lab2_figure7.JPG

The least significant bit (LSB refers to the right most bit in the digital word.  The LSB defines the smallest possible change in the analog output voltage.  The LSB will be annotated as D0.  In this case the LSB is 4.88mV.
  

 LSB.JPG

PostLab:

The design of a 10-bit DAC using an n-well R of 10k:

lab2_circuit.JPG

As seen above this design is implemented using 2 separate 10k resistors in series.  After checking for design rule errors, I had to clean up the cell in electric by edit->cleanup cell->cleanup pins everwhere.  The eliminated some of the errors.  The next step was to do an auto stitch by clicking tools->routing->auto stitch.

Driving a 10pF load:

lab2_dac_cap_schem.JPG

All of the DAC inputs are grounded except for pin B9.  We just want to see what happens to one input and verify the time delay is 0.7RC.  

 

TD.JPG

 

lab2_dac_cap_wave.JPG

As seen in the figure above the difference between cursor 1 and 2 is 71ns which is a close match to the calculated time of 70ns.

Once the design is completed we can create our own icon in Electric by edited icon view.  Highlight the device that you want to create an icon.

lab2_icon_edit1.JPG

Click on view->edit icon view as seen below.

lab2_icon_edit2.JPG

Simulations of the R2R DAC:

lab2_circuit.JPG

lab2_dac_wave.JPG

With 10k load:

lab2_10k_load.JPG

Wave form with 10k load:

lab2_10k_loadwave.JPG

With the 10k load we see that the amplitude drops and we see the steps in the output.

Schematic with 10K resistive and 10pF capacitive loads:
 
lab2_10k_10pf_loadschem.JPG
 
Waveform 10k resitive and 10pF capacitive load:
 
lab2_10k_10pf_loadwave.JPG
 
If the resistance of the switches are not small compared to R then there will be a small voltage drop across each switch and this will induce error.
 
ee421_ecg621_f13.jelib
 
Return to EE 421L Labs