summaryrefslogtreecommitdiff
path: root/3775/CH5/EX5.5/Ex5_5.sce
blob: 77362790adb1f8172c0b4b8acf70299ae0c8e29c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
//Ex 5.5 page 186

clc;
clear;
close;

Vs=220;//V
Vo=660;// V
Toff=100;// micro s

//Vo=Vs/(1-alfa)
alfa=1-Vs/Vo;// duty cycle
//alfa=Ton/(Ton+Toff)
Ton=alfa*Toff/(1-alfa);// micro s
T=Ton+Toff;//micro s
printf('Pulse width of output voltage, Ton = %d micro s & T = %d micro s',Ton,T)
//(ii) reduce pulse width by 50%
Ton=Ton/2;// micro s
Toff=T-Ton;// micro s
alfa=Ton/(Ton+Toff);// duty cycle
Vo=Vs/(1-alfa);// V
printf('\n New output voltage = %d V',Vo)