summaryrefslogtreecommitdiff
path: root/863/CH6/EX6.4/Ex6_4.sce
blob: a71f84331e17b1ae6918db44efaf4cc095c0fee2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//Caption:Calculate R1,R2 and Actual UTP and LTP
//Ex6.4
clc;
clear;
close;
u=3//Upper trigger voltage(in volts)
Ib=500//Max base current(in nA)
Vcc=15//Collector voltage(in volts)
i=Ib*0.1
R2=u*1000/i
I=u/R2
Vo=Vcc-1
Vr1=Vo-u
R1=Vr1/I
utp=Vo*R2/(R1+R2)
ltp=-utp
disp(ltp,utp,R2,R1,'Circuit components R1,R2(in kilo ohm) and actual UTP and LTP(in volts)=')