summaryrefslogtreecommitdiff
path: root/863/CH6/EX6.1/Ex6_1.txt
blob: 617d04681b220500392070ad360bd373a251aeb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//Caption:Determine schmitt trigger circuit components for designing it
//Ex6.1
clc;
clear;
close;
u=5//Upper trigger point voltage(in volts)
Vbe=0.7//Base emitter voltage(in volts)
I=2//Collector current(in mA)
hfe=100
Vcc=12//Collector voltage(in volt)
Vce=0.2//Saturated collector emitter voltage(in volts)
Ve=u-Vbe
Re=Ve/I
Rc=(Vcc-Ve-Vce)/I
i=I/10
R2=u/i
Ib2=I/hfe
I2=u/i
It=Ib2+i
r=(Vcc-u)/It
R1=r-Rc
disp(R1,R2,Rc,Re,'Circuit components Re,Rc,R2,R1(in kilo ohm)=')