cancel
Showing results for 
Search instead for 
Did you mean: 

How to Properly Implement a Lookup Table for a Unipolar Sine Wave Inverter?

thannara123
Senior

I'm designing a unipolar sine wave inverter using a lookup table to generate PWM signals, but I'm encountering some issues and have a few questions:

  1. Should the values in the lookup table start from zero, or from the peak value of the sine wave?
  2. Is it sufficient to create the lookup table for only half of the sine wave cycle (0 to 180 degrees)? After generating the first half-cycle, can I simply change the polarity to complete the full cycle, or is there another method I should follow?
  3. How should I handle the transition between the first and second half-cycles? Should I invert the polarity of the PWM signal, or do I need to modify the lookup table values?
  4. Could someone provide a small example of a lookup table for a unipolar sine wave inverter, and explain how to use it across a full cycle?
  5. I'm able to generate a sine wave without using complementary channels, but when I try to use complementary outputs on two channels, it doesn't work correctly. What could be causing this issue, and how can I fix it?

I'm struggling with these concepts, and any guidance or examples would be greatly appreciated. Thank you!

 

 

1 REPLY 1
Sarra.S
ST Employee

1/ The values in the lookup table should represent the amplitude of the sine wave at different points in the cycle. Typically, these values start from zero and go up to the peak value of the sine wave.

2/ yes, you can generate the first half-cycle and then change the polarity to complete the full cycle. 

3/ after generating the first half-cycle (0 to 180 degrees), you can use the same lookup table values but invert the output to generate the second half-cycle (180 to 360 degrees).

5/ ensure that the two channels are properly synchronized and there is an appropriate dead time between the complementary signals.

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.