blob: 8f30e36ef2f8c7540b4f25a6d7c468648bd69179 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// find frequency of output and duty cycle
// Electronic Principles
// By Albert Malvino , David Bates
// Seventh Edition
// The McGraw-Hill Companies
// Example 23-8, page 922
clear;clc; close;
// Given data
C=47*10^-9;// capacitance in faraday
R1=75*10^3;// resistance in ohms
R2=30*10^3;// resistance in ohms
// Calculations
f=1.44/((R1+2*R2)*C);// frequency in hertz
D=(R1+R2)/(R1+(2*R2));// duty cycle
disp("hertz",f,"frequency in hertz=")
disp("%",D,"duty cycle")
// Result
// Frequency of output signal is 227 hertz
// duty cycle is 0.778
|