bharti sharma

TO Calculate PWM Duty Cycle

Discussion created by bharti sharma on Sep 11, 2017
Latest reply on Sep 11, 2017 by Clive One

Hello all,

My question is regarding duty cycle vary according to ADC value I am using STM32F030R8T6 Controller TIM3 is used to generate 20khz signal Prescaler value is 47 and count period is 50 I want to vary duty cycle of 20khz signal according to ADC value(0-3.3v) but I am unable to do this so please guide me 

another question is if I want to reload any value of PWM how it can do 

Attachments

Outcomes