Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Looking for SAPWM equation for simulation

Status
Not open for further replies.

wiktor111

Newbie level 1
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 = 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
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top