EEGR 409: C Programming Applications

adelen
 (Not rated)
 (Not rated)
Chat

EEGR 409: C Programming Applications

Assignment 3

The current-voltage characteristic or I-V curve is a relationship, typically represented as a chart or graph, between the electric current through a circuit, device, or material, and the corresponding voltage,  or  potential  difference  across  it.   You  are  given  a  MOSFET device with the following I-V curve:

 

After properly biasing the device, you then proceed to take measurements of the drain current at key drain to source voltages when the gate to source voltage is set to produce a response corresponding to the VGS-VTH = 7V line. The recorded measurements are given in the table below:

Based  on  these  measurements,  write  a  C  program  to  recreate  the  associate  I-V curve. Your program should sweep through values for VDS starting from 1 and ending at 8 with  steps of 0.5. Use the same method for interpolating between two values as was done in  assignment 2. For each VDS value, create a bar chart that displays the relative value of ID as shown in the next image.

 

 

The output from your program should resemble the above image as much as possible.

Tips:

  To produce the line underneath the title, use the character 196 (if you don’t  understand how to do this, you can use dashes)

  To produce the horizontal line next to the VDS values, use the character 179 (if  you don’t know how to do this, you can use the ‘pipe’ symbol, ‘|’)

  To produce the bars in the graph, use the character 254 (if you don’t know how to do this, use asterisks, *, instead).

  Note that the number of segments in each bar does not exactly match the corresponding drain current. The number of segments is scaled so the maximum number of segments is 55, which correspond to the maximum drain current value of 59.

    • 11 years ago
    the answer
    NOT RATED

    Purchase the answer to view it

    • new710.zip