summaryrefslogtreecommitdiff
path: root/863/CH9/EX9.5/Ex9_5.sce
blob: ce6ce80e1e1312b834572bdf8ce63b7136c9fd88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//Caption:Design a UJT relaxation oscillator and find peak to peak output amplitude
//Ex9.5
clc;
clear;
close;
Vbb=20//Supply voltage(in volts)
f=5//Frequency(in khz)
Veb=3//Fringe Voltage(in volts)
Ip=2//Fringe current(in micro ampere)
Iv=1//Emitter current(in mA)
n=0.75
Vp=0.7+(n*Vbb)
R1x=(Vbb-Vp)/Ip
R1n=(Vbb-Veb)/Iv
t=1000/f
C1=t*1000/(R1n*(log((Vbb-Veb)/(Vbb-Vp))))
E=Vp-Veb
disp(C1,R1n,E,'Peak to peak voltage(in volts) and Components for circuit are resistor(in kilo ohm) and capacitance(in pf)=')