Hi
I am using AT89C51 for triggering a MOSFET for Boost Converter. For different output voltages, I need PWM of different duty cycles. I am planning to put 3 switches each switch for each duty cycle, 25%, 50%, 75% respectively. Can anybody help me out here?
Sounds trivial:
duty = 0; if( switch_1 ) { duty = 75; } else if( switch_2 ) { duty = 50; } else if( switch_3 ) { duty = 25; }