Hello,

I need to generate sin wave using

Now here comes the problem.

I am

After spending some time, I think I have pinpointed my problem down to having something related to 'jitter' in the PWM or phase noise because of a mismatched PWM frequency and sample rate of the lookup table.

What do you think? Any help would be appreciated!

I need to generate sin wave using

**STM32**uC.Now here comes the problem.

I am

**able**to obtain the required sin wave with the required frequency and the required amplitude however there are other (more than one) frequency components.After spending some time, I think I have pinpointed my problem down to having something related to 'jitter' in the PWM or phase noise because of a mismatched PWM frequency and sample rate of the lookup table.

What do you think? Any help would be appreciated!

Instead of programming the timer, write all the data you generate to a file, and the plot and review that.