This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

spwm

hi i m trying to generate spwm using picollo f28069.  i am trying to have a look up table with a samples of sine and then compare it with up down counter.

i tried modifying the symmetric pwm in control suite. i have some problems in it.

1. The sine function is not working. should i hard code the sine values in the look up table or is there any headers for math operation?

2. for look up table i m planning to use c array. is that fine or is there any other better methods for look up.

please give a solution