The current-voltage characteristic or i-v curve is a


C Programming Applications

Assignment:

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:

1977_electric current through a circuit.jpg

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:

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:

VDS

ID

1

13

2

25

3

33

4

40

6

57

8

59

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.

49_relative value of ID.jpg

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.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: The current-voltage characteristic or i-v curve is a
Reference No:- TGS01126611

Now Priced at $30 (50% Discount)

Recommended (99%)

Rated (4.3/5)