Question
formula for pwm generation
hi im using stm32g474vet6 mcu, i want generate centrealigned mode pwm of 5khz
how to generate 5khz pwm in centre aligned mode, how to calculate the ARR value for 5khz, since my timer1 clk is 170mhz im not doing any prescalar.
can some share the formula for calculating period value and frequency in center aligned mode.
