Calculates the design parameters of MC34063 series switching regulators.
params = mc34063(
5V, // input voltage
10%, // input variation
15V, // output voltage
150mA, // max out current
100mV, // out ripple
100kHz, // frequency
0.4V, // diode voltage
0.5V // sw. sat. voltage
)
r2 = params.ResRatio*10kOhm
Vin | Nominal input voltage. |
Vin_var | Input voltage variation (e.g. 30% or 0.3). |
Vout | Desired output voltage. |
Iout_max | Maximal output current. Use the maximal value you need. |
Vripple_pp | Maximum peak-to-peak ripple voltage allowed in the output. |
f | The switching frequency (optional). If not given, the default is 100kHz. |
Vf | Forward voltage drop of the output rectifier (optional). If not given, 0.4V is used. |
Vsat | Saturation voltage of the output switch (optional). If not given, 0.5V will be used for step-up, and 1.1V for step-down and invering configurations. |
return value | An object with Ipk_switch, Ct, Rsc, Lmin, Co and ResRatio parameters. |
It implements the design process described in the datasheet. For the datasheet, see http://www.onsemi.com/pub/Collateral/MC34063A-D.PDF.
The design parameters will be automatically selected based on the sign of the output voltage and the input/output voltage ratio. See the datasheet to determine the exact connection method.
The object returned will contain the peak current through switch (Ipk_switch), timing capacitor value (Ct), Rsc, minimal required inductance (Lmin), minimal output capacitance (Co), and the resistor divider ratio (ResRatio) equals to $\frac{R_2}{R_1}$.