duty_cycle = pwm[3]; duty_cycle = duty_cycle << 4; // | pwm[2]; duty_cycle = duty_cycle | pwm[2];