Looking for SAPWM equation for simulation

Status
Not open for further replies.

wiktor111

Newbie level 1
Joined
Sep 14, 2010
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,288
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 = 10.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
 

Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…