Lab 2 - EE 421L

Authored by: Yun Lan

Email: lany3@unlv.nevada.edu

Date: 09/12/13


Lab description

 In this lab, we will be familiar with the ADC (Analog-to-Digital Converter) and DAC (Digital-to-Analog Converter). The ADC has an input of the analog signals and converts to discrete time or digital signals. The conversion is done by sampling the analog signal and holds the sample until ADC is ready to do the next sampling. For this lab, the time that ADC holds is depending on the clock (with a certain frequency). The DAC does the reverse function of the ADC, DAC converts the digital signal to analog signal. 


Pre-lab

1. Download the lab2 library from here, using the "save link as..." from right-click menu.

    Open the "ee421_ecg621_f13" and "lab2" libraries in Electric.

    Copy the lab2 library to the ee421_ecg621_f13 library by:

        Click Cell->Cross-Library Copy...        

        Select the "sim_ADC_DAC{sch}" from the lab2

        Check the Copy subcells and Copy all related views (these steps will copy all other files that is related to the file you select)

        Hit << Copy (Make sure you are copying to the ee421_ecg621_f13 library)

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/img_p1.JPG

 

2. Save the library and close the lab2 library after copying.

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/img_p2.JPG

 

3. After saving, do a regular backup to back up the work when needed.

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/img_p3.JPG

 

4. Run the simulation and view the waveforms of V(vin) and V(vout).

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/img_p4.JPG

 

5. V(vin) shows a sine wave and V(vout) shows the discrete time.

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/img_p5.JPG

 

6. V(vout) only changes at the rising edge of the clock, which means the ADC samples V(vin) at the rising edge of the clock and holds until the next rising edge.

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/img_p6.JPG

 

7. V(b4) is part of the output of the ADC, the figures below indicates that the value of V(b4) will only change when the rising edge of the clock occurs, if there is no change is required, the value of V(b4) will be hold until there is change to be made. 

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/img_p7a.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/img_p7b.JPG

 

8. The digital signal can be represented by binary, which the least significant bit (LSB) is the rightmost bit in the digital code. The smallest possible change represents the LSB in the analog output voltage of the DAC. 1 LSB =V_ref / 2^N. For a 10-bit DAC and with a reference voltage 5V, 1 LSB will be 5/2^10=4.88mV.

  

  


Lab Report

http://cmosedu.com/jbaker/labs/ee421L/lab2/L2_f4.jpg 

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r1_1.JPG 

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r1_2.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r1_3.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r3_1.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r3_2.JPG


http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r4_1.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r4_2.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r4_3.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r4_4.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r4_6.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r4_7.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r4_5.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r5_2_1.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r5_2_2.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r5_3_1_1.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r5_3_1_2.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r5_3_2_1.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r5_3_2_2.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r5_3_3_1.JPG

http://cmosedu.com/jbaker/courses/ee421L/f13/students/lany3/Lab2/images/r5_3_3_2.JPG


Return to lany3/

Return to EE 421L Labs