title: Formulae to calculate PWM output Timer (Counter settings) for STM32
body: <p>Need formulae to calculate Prescaler,Counter Period and a Pulse value of each channel on a Timer with  given values of </p>
  
  <p>Input clock frequency (APB)
  Output Frequency (PWM) 
  Duty cycle (for each channel)</p>