From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 1757/CH9/EX9.4/EX9_4.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 1757/CH9/EX9.4/EX9_4.sce (limited to '1757/CH9/EX9.4/EX9_4.sce') diff --git a/1757/CH9/EX9.4/EX9_4.sce b/1757/CH9/EX9.4/EX9_4.sce new file mode 100755 index 000000000..c69a7d36d --- /dev/null +++ b/1757/CH9/EX9.4/EX9_4.sce @@ -0,0 +1,24 @@ +//Example9.4 // to determine the output frequency capacitor charging time of VCO +clc; +clear; +close; +Vcc = 12 ; +Vcs = 6 +R = 10 ; // K ohm +C = 1 ; // uF + +// the current through the control resistor R +i =(Vcc-Vcs)/R ; +disp('The current through the control resistor R is = '+string(i)+ ' mA '); + +// The charging time of capacitor +t = (0.25*Vcc*C)/i ; +disp('The charging time of capacitor is = '+string(t)+ ' msec '); + +// In VCO the capacitor charging and discharging time period are equal ,so the total time period of tringular and square wave forms can be written as 2*t ; +t = ((0.5*Vcc*C)/i); +disp('The total time period of tringular and square wave is = '+string(t)+ ' msec '); + +// the output frequency of VCO is +fo = 1/t ; +disp('The output frequency of VCO is = '+string(fo)+ ' KHz '); -- cgit