Associate III
October 11, 2012
Question
TIM1 to TIM3 PWM
- October 11, 2012
- 2 replies
- 771 views
Posted on October 11, 2012 at 09:48
Good morning, i'm working with a stm32F0-Discovery board (cortex M0), i need to change the PWM pin from PA8 (using TIM1) to PC8 (using TIM3), but there is a problem because it works wrong.
In the following codes i highlight the changed linesthe working code (with TIM1/PA8) is the ''START CODE'' attached fileand the chaged code is ''NEW CODE'' attached file.The effect is that if i press the user button (PA0), then on PC8 pin i see a PWM with about 95% dutycyle, and if PA0 is not pressed then there are nothing on PC8 pin.Can you help me please?