Forum : ST7/STM8
Post Information | Post |
---|---|
February 2, 2011 - 10:28am
|
Hi everyone, I work on STM8S105... and STM8 Discovery The story: This programme work on TIM1 but it doesn't work on TIM2 !!! So, I try to do a unique OPM generator using TIM2_CH2 with a trigger on TIM2_CH1 but It doesn't work !!! Is there anyone had work on this subject ? Code with TIM3: TIM3_TimeBaseInit(0,150); TIM3_OC2Init(TIM3_OCMODE_PWM1,TIM3_OUTPUTSTATE_ENABLE,1,TIM3_OCPOLARITY_HIGH); /* TIM3_CCxCmd */ /* TIM3_SelectOnePulseMode */ /* TIM3_Cmd */ Thank you and best regards, |