Resolved! I am using STM8S001J3 for PWM at TIMER 1 channel 4(PC4) PIN NO 7,but not getting pwm..pls.suggest.
void PWM(void)//timer1 channel4{ TIM1_ARRH = 0x03; // Reload counter = 960TIM1_ARRL = 0xc0;TIM1_PSCRH|= 0; // Prescalar = 0 (i.e. 1)TIM1_PSCRL |= 0;//TIM1_CR1 = 0; // Up counter.TIM1_CR1|= 0; // Edge aligned counter.TIM1_RCR |= 0; /...