cancel
Showing results for 
Search instead for 
Did you mean: 

STM8s Discovery (MCU=STM8s105C6) Tim1 PWM do not work properly

MT.2
Associate II

Hi there! I am now using STM8s Discovery (MCU=STM8s105C6) to run an example named as TIM1_7PWM_Output. However, when I use a oscilloscope to check the 7 PWM ouputs, only Channel 2 and 4 are able to output PWM signals. The rest (Channel 1, 3 and all complimentary outputs) do not show any PWM. I am using StdPeriph libraries and I have changed master clock to 16MHz (via CLK_HSIPrescalerConfig() ). The PWM frequency is 3.9kHz (with prescalar 2^0 and 4096 steps counter) . Having tried the same PWM frequency in TIM2 and TIM3, the 5 outputs work very well at the same time that' y I have no idea on TIM1. I appreciate those help and Thank you so much!!!

Morris

0 REPLIES 0