summaryrefslogtreecommitdiff
path: root/863/CH10/EX10.2/Ex10_2.sce
blob: 995afbf79a983fb8f6e0fd3afa87b78b4b11771c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//Caption:Find minimum value of the resistance to design OR Gate
//Ex10.2
clc;
clear;
close;
Rc=3.3//Collector resistance(in kilo ohm)
V=3.5//Gate output voltage(in volts)
Vcc=5//Supply voltage(in volts)
Vf=0.7//Forward diode voltage(in volts)
I=(Vcc-Vf-V)/Rc
R=V/I
disp(R,'Minimum value of resistance to design the circuit is(in kilo ohm)=')