summaryrefslogtreecommitdiff
path: root/2528/CH9/EX9.8/Ex9_8.sce
blob: ef1b4186791dc2fcbae9825de8dc7d73a0b72b00 (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
// Chapter 9
// determine Output frequency
// Page.No-328
// Example9_8
//Figure 9.29
// Given
clear;clc;
Vp=12;          //in V
R1=4700;            //in Ohm
R2=2000;            //in Ohm
R3=20000;            //in Ohm
C=1.1*10^-9;            //in Farad
Vc=Vp*(R3/(R2+R3));
//for minimum Vc
Vcmin=Vc-0.5;
printf("\n The control Voltage is  = %.2f V\n",Vcmin); // Result
fo=2*(Vp-Vcmin)/(Vp*R1*C);
printf("\n Output frequency  = %.0f Hz\n",fo); // Result
//for maximum Vc
disp("For minimum frequency Use maximum Vc");
Vcmin1=Vc+0.5;
printf("\n The control Voltage is  = %.2f V\n",Vcmin1); // Result
fo=2*(Vp-Vcmin1)/(Vp*R1*C);
printf("\n Output frequency  = %.0f Hz\n",fo); // Result