JAJU732C June 2019 – July 2022
The configuration for ADC is done in the dab_main.c using the function DAB_HAL_setupADC(). The reference voltage, prescaling the clock and setting up SOC (start of conversions) for the voltage and current signals are done here. The trigger for ADC is generated from a start of conversion (SOC) signal from EPWM1. This configuration is done inside the function DAB_HAL_setupTrigForADC() in the dab_main.c file. All other settings mapping the HSEC card pin connector signals to the control card are done in the dab_settings.h file.