Hi,
I am trying to simulate SAPWM modulation but I cant find proper equation for it. I have tired equation from infineon AP16097 note (page 12) but failed.
Equation from appnote:
y(t) = {sqrt(3)*sin(omega*t) for 0 < omega*t < pi/3
{sin(omega*t+pi/3) for pi/3 < omega*t < pi/2
matlab program to plot it:
t = [0:0.00001:0.05]; % time vector
omega = 2*pi*50 % omega
for i = 1
0.05/0.00001)+1
omega1 = mod(t(i)*omega, 2*pi);
if omega1 > 0
if omega1 < pi/3
u(i) = sqrt(3)*sin(t(i)*omega);
end
end
if omega1 > pi/3
if omega1 < pi/2
u(i) = sin(t(i)*omega+pi/3);
end
end
end
plot(t, u, 'b');
Regards
Wiktor111