thannara123
Advanced Member level 5
Hi ,
How do I generate a SPWM (Sine Pulse Width Modulation) lookup table for a half-wave (10 milliseconds duration)?
I need to compare a 50 Hz sine wave (with a given amplitude) with a triangular or sawtooth wave.
I want the output to be an array of PWM values.
Could someone provide guidance or an example code for this?
How do I generate a SPWM (Sine Pulse Width Modulation) lookup table for a half-wave (10 milliseconds duration)?
I need to compare a 50 Hz sine wave (with a given amplitude) with a triangular or sawtooth wave.
I want the output to be an array of PWM values.
Could someone provide guidance or an example code for this?