Hie,
I want to generate stepped sinusoidal waveform in which the number of steps will determines the number of switches to be turned on. I will generate sinusoidal reference using harmonic oscillator and based on the number of steps (N), it should able to generate stepped sinusoidal wave form that many levels (N) . Can I use timer interrupt to sample the sinusoidal to get the mentioned waveform to calculate no of switches to be turned on?. How to generate and use the stepped sinusoidal to determine number switches to be turned on?.
Below I showed with positive shifted sinusoidal input reference for generating 2,4,8 stepped wave forms. It can be done by multiplying unit sinusoidal with levels and rounding. (V*/Vdc = No of levels(N)).
Thanks,