summaryrefslogtreecommitdiff
path: root/61/CH16/EX16.6/ex16_6.sce
blob: 056dc16c77c492799136a3b4702e2dd8ab9fcd2b (plain)
1
2
3
4
5
6
7
8
//ex16.6
R1=2.2*10^3;
R2=4.7*10^3;
C_ext=0.022*10^-6;
f_r=1.44/((R1+2*R2)*C_ext);
disp(f_r,'frequency of the 555 timer in hertz')
duty_cycle=((R1+R2)/(R1+2*R2))*100;
disp(duty_cycle,'duty cycle in percentage')