1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Chapter 1: semiconductor basics"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Example 1.1: Different_diode_models.sce"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"//Ex-1.1(a)\n",
"V_bias=10;\n",
"R_limit=1000;\n",
"r_d =10;\n",
"//Voltages in Volts, Currents in Amperes, Resistances in Ohms\n",
"//IDEAL MODEL\n",
"disp('IDEAL MODEL')\n",
"V_f=0;\n",
"I_f=V_bias/R_limit;\n",
"V_R_limit=I_f*R_limit;\n",
"disp(V_f,'forward voltage in volts');\n",
"disp(I_f,'forward current in amperes');\n",
"disp(V_R_limit,'voltage across limiting resistor in volts');\n",
"//PRACTICAL MODEL\n",
"disp('PRACTICAL MODEL');\n",
"V_f=0.7;\n",
"I_f=(V_bias-V_f)/R_limit;\n",
"V_R_limit=I_f*R_limit;\n",
"disp(V_f,'forward voltage in volts');\n",
"disp(I_f,'forward current in amperes');\n",
"disp(V_R_limit,'voltage across limiting resistor in volts');\n",
"//COMPLETE MODEL\n",
"disp('COMPLETE MODEL')\n",
"I_f=(V_bias-0.7)/(R_limit+r_d');\n",
"V_f=0.7+I_f*r_d';\n",
"V_R_limit=I_f*R_limit;\n",
"disp(V_f,'forward voltage in volts');\n",
"disp(I_f,'forward current in amperes');\n",
"disp(V_R_limit,'voltage across limiting resistor in volts');\n",
"//Ex1.1(b)\n",
"V_bias=5;\n",
"I_R=1*10^-6;\n",
"//IDEAL MODEL\n",
"disp('IDEAL MODEL');\n",
"I_r=0;\n",
"V_R=V_bias;\n",
"V_R_limit=I_r*R_limit;\n",
"disp(I_r,'reverse current in amperes')\n",
"disp(V_R,'reverse voltage in volts')\n",
"disp(V_R_limit,'voltage across limiting resistor in volts')\n",
"//PRACTICAL MODEL\n",
"disp('PRACTICAL MODEL')\n",
"I_r=0;\n",
"V_R=V_bias;\n",
"V_R_limit=I_r*R_limit;\n",
"disp(I_r,'reverse current in amperes')\n",
"disp(V_R,'reverse voltage in volts')\n",
"disp(V_R_limit,'voltage across limiting resistor in volts')\n",
"//COMPLETE MODEL\n",
"disp('COMPLETE MODEL')\n",
"I_r=I_R;\n",
"V_R_limit=I_r*R_limit;\n",
"V_R=V_bias-V_R_limit;\n",
"disp(I_r,'reverse current in amperes')\n",
"disp(V_R,'reverse voltage in volts')\n",
"disp(V_R_limit,'voltage across limiting resistor in volts')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Scilab",
"language": "scilab",
"name": "scilab"
},
"language_info": {
"file_extension": ".sce",
"help_links": [
{
"text": "MetaKernel Magics",
"url": "https://github.com/calysto/metakernel/blob/master/metakernel/magics/README.md"
}
],
"mimetype": "text/x-octave",
"name": "scilab",
"version": "0.7.1"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
|