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
-2
View File
@@ -146,7 +146,6 @@ void half_bridge_start(float pwm_duty)
{
half_bridge_set_duty_cycle(pwm_duty);
#ifndef PIL_TESTING
// Capture/Compare Enable Register
// CCxE = 1: Enable the output on OCx
// CCxP = 0: Active high polarity on OCx (default)
@@ -154,7 +153,6 @@ void half_bridge_start(float pwm_duty)
// CCxNP = 0: Active high polarity on OC1N (default)
TIM3->CCER |= TIM_CCER_CC3E;
TIM3->CCER |= TIM_CCER_CC4E;
#endif
_enabled = true;
}