Output voltage and input current in variable duty cycles