cancel
Showing results for 
Search instead for 
Did you mean: 

PWM and TIMER1 problem in stm32f4

vss01
Associate II
Posted on February 22, 2016 at 00:13

Hello,

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!
11 REPLIES 11
vss01
Associate II
Posted on February 25, 2016 at 07:23

I tried the code but I didn't see any output from both pins (1 & 1N). I think it is still in high impedance mode. Can you send me the source code please and tell me what you tried to change?

vss01
Associate II
Posted on February 25, 2016 at 22:25

@clive1, any clue of how i should proceed? 

Your help is much appreciated. Thank you.