We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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; }