blob: cc20d48a0f89d3ed432bfc56f003d2ac91e51620 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//chapter22
//example22.11
//page498
V_DD=30 // V
I_D1=2.15d-3 // A
I_D2=9.15d-3 // A
R_D1=8.2d3 // ohm
R_D2=2d3 // ohm
R_S1=680 // ohm
R_S2=220 // ohm
V_RD1=I_D1*R_D1
V_D1=V_DD-V_RD1
V_S1=I_D1*R_S1
V_RD2=I_D2*R_D2
V_D2=V_DD-V_RD2
V_S2=I_D2*R_S2
printf("For stage 1 : dc voltage of drain = %.3f V and source = %.3f V \n",V_D1,V_S1)
printf("For stage 2 : dc voltage of drain = %.3f V and source = %.3f V \n",V_D2,V_S2)
|