DC/DC test function and dead time config added

- The DC/DC test function slowly ramps up the duty cycle to 50% to allow defined measurements of gate driver, switch node etc. with an oscilloscope (without disturbance by the MPPT algorithm)

- The dead-time between HS and LS gate on/off is now configurable for each PCB and not fixed to 300 ns for all PCBs anymore.
This commit is contained in:
Martin Jaeger
2019-07-05 11:01:35 +02:00
parent 7ee248cf81
commit 7300406b94
9 changed files with 49 additions and 5 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ int main()
pwm_switch_init(&pwm_switch);
#else // MPPT
dcdc_init(&dcdc);
half_bridge_init(PWM_FREQUENCY, 300, 12 / dcdc.hs_voltage_max, 0.97); // lower duty limit might have to be adjusted dynamically depending on LS voltage
half_bridge_init(PWM_FREQUENCY, PWM_DEADTIME, 12 / dcdc.hs_voltage_max, 0.97); // lower duty limit might have to be adjusted dynamically depending on LS voltage
#endif
// Configuration from EEPROM