blob: 34a6a4e505a91b63578869a1127be0bf8f91f47f (
plain)
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
|
//Example 7.3
//Program to Calculate Operating Point Coordinates of the Circuit
clear;
clc ;
close ;
//Given Circuit Data
Vcc=10; //V
Rb=100*10^3; //Ohms
Rc=1*10^3; //Ohms
Beeta=150;
//Calculation
Ib=(Vcc)/Rb;
Ic=Beeta*Ib;
Icsat=Vcc/Rc;
Vce=Vcc-Ic*Rc;
//Displaying The Results in Command Window
printf("The Operating Point Coordinates of the Circuit are :\n\t Ib = %f uA .",Ib/10^(-6));
if Ic < Icsat then
disp("Transistor is not in Saturation");
printf("\n\t Ic = %f mA .",Ic/10^(-3));
printf("\n\t Vce = %f V .",Vce);
else
disp("Transistor is in Saturation");
printf("\n\t Ic = %f mA .",Icsat/10^(-3));
printf("\n\t Vce = %f V .",0);
end
|