Hello as I working on Buck Converter project using Arduino
I already set the Output Frequency for PWM to 50kHz as code here
TCCR1A = 0b10100011;
TCCR1B = 0b00010001;
OCR1A=160; //From equation f=(systemclock)/2N*OCR1A
So now the duty cycle range for PWM is now 0-160
My question is how can I set the range from 0-160 to 0-1000 for easier to read and write the duty
Thanks in advance.