Acquisition not working in left aligned mode
Voltage and current measurement are not possible currently in left aligned PWM mode.
if(leg1_tu == TIMA && leg2_tu == TIMB){
hrtim_adc_trigger_en(1, 1, LL_HRTIM_ADCTRIG_SRC13_TIMACMP3);
hrtim_adc_trigger_en(3, 2, LL_HRTIM_ADCTRIG_SRC13_TIMBCMP3);
}else if(leg1_tu == TIMA && leg2_tu == TIMC){
hrtim_adc_trigger_en(3, 1, LL_HRTIM_ADCTRIG_SRC13_TIMACMP3);
hrtim_adc_trigger_en(1, 3, LL_HRTIM_ADCTRIG_SRC13_TIMCCMP3);
}
The left aligned mode adc trigger is based on CMP3 which is not updated.
In center aligned, there is lack of default value for the trigger which forces us to use the function hwConfig.setHrtimAdcTrigInterleaved(0.06)
in the initialization to set the trigger value and have correct measurements.