2007-02-01 04:17 AM
STR912 PWM on-the-fly modification of the duty cycle
2011-05-17 12:36 AM
Hello,
Who can cleanly play with PWM,please help me.On my sinewaveform is ugly spike. /only on downward part / I write directly to pwm register TIM3_OC1R = signal16; I think I do not want interrupt on pwm. TIM3_OC1R = 0x000001FC;//ini signal TIM3_OC2R = 0x00000400;//PWM period TIM3_CNTR = 0x00000000;//ini count TIM3_CR2 = 0x00000000;//prescaler 00 TIM3_CR1 = 0x00008150; Thanks for your help.2011-05-17 12:36 AM
See page 133 of the reference manual. It has this footnote:
When Counter = OC2R, then OCF2 bit will be set. This can generate an interrupt if OC2IE is set. This interrupt will help any application where pulse-width or period needs to be changed interactively.