713// To calculate the voltage across the inductor, input and output voltage ADC results need to be normalized. The normalization factor is determined here
714// Each input voltage sample has to be multiplied with this scaling factor to allow the calculation of the instantaneous voltage across the inductor
1320/* ToDo: AGC is temporarily disabled for the boost converter and requires further verification
1321
1322#define BOOST_VL_MINIMUM (float)(BOOST_VIN_UNDER_VOLTAGE) ///< Minimum input voltage - maximum output voltage
1323#define BOOST_VL_NOMINAL (float)(BOOST_VIN_NOMINAL) ///< Nominal input voltage - nominal output voltage
1324#define BOOST_VL_MAXIMUM (float)(BOOST_VIN_RANGE_MAX) ///< Maximum input voltage - output voltage = 0V
1325
1326// The AGC compare value is defined at nominal input voltage and output voltage
1327// The maximum modulation factor is normalized to fractional '1' to prevent number overruns
1328#define BOOST_AGC_FACTOR_MAX (float)(BOOST_VL_NOMINAL / BOOST_VL_MINIMUM) ///< Floating point number of the maximumm limit of the adaptive gain modulation factor (float)
1329#define BOOST_AGC_NOM_SCALER (uint16_t)(ceil(log(BOOST_AGC_FACTOR_MAX)/log(2))) ///< Bit-shift scaler of the floating point number of the maimum limit of the adaptive gain modulation factor
1330#define BOOST_AGC_NOM_FACTOR (uint16_t)(0x7FFF >> BOOST_AGC_NOM_SCALER) ///< Fractional of the floating point number of the maimum limit of the adaptive gain modulation factor
1331#define BOOST_AGC_MEDIAN (int16_t)(((int16_t)(((float)BOOST_VIN_NOM * BOOST_VIN_NORM_FCT) - BOOST_VOUT_NOM))>>BOOST_AGC_NOM_SCALER) ///< Adaptive gain modulation factor at nominal operating point
1332
1333// To calculate the voltage across the inductor, input and output voltage ADC results need to be normalized. The normalization factor is determined here
1334// Each input voltage sample has to be multiplied with this scaling factor to allow the calculation of the instantaneous voltage across the inductor
1339// Additional execution time calculation to be considered in trigger delay and overall control timing
1340#define BOOST_AGC_EXEC_DLY (uint16_t)(BOOST_AGC_EXECUTION_DELAY / PWM_CLOCK_PERIOD) ///< Macro calculating the integer number equivalent of the AGC algorithm computation time
1341
1342*/// end of group adaptive-gain-control-macros-boost ~~~~~~~~~~~~~~~~~~