Conversion macros for user-declarations of Adaptive Gain Modulation parameters of the buck converter. More...
#define | BUCK_VL_MINIMUM (float)(BUCK_VIN_UNDER_VOLTAGE - BUCK_VOUT_MAXIMUM) |
Conversion macros of phase current feedback parameters. More... | |
#define | BUCK_VL_NOMINAL (float)(BUCK_VIN_NOMINAL - BUCK_VOUT_NOMINAL) |
Nominal input voltage - nominal output voltage. More... | |
#define | BUCK_VL_MAXIMUM (float)(BUCK_VIN_RANGE_MAX - 0) |
Maximum input voltage - output voltage = 0V. More... | |
#define | BUCK_AGC_FACTOR_MAX (float)(BUCK_VL_NOMINAL / BUCK_VL_MINIMUM) |
Floating point number of the maximumm limit of the adaptive gain modulation factor (float) More... | |
#define | BUCK_AGC_NOM_SCALER (uint16_t)(ceil(log(BUCK_AGC_FACTOR_MAX)/log(2))) |
Bit-shift scaler of the floating point number of the maimum limit of the adaptive gain modulation factor. More... | |
#define | BUCK_AGC_NOM_FACTOR (uint16_t)(0x7FFF >> BUCK_AGC_NOM_SCALER) |
Fractional of the floating point number of the maimum limit of the adaptive gain modulation factor. More... | |
#define | BUCK_AGC_MEDIAN (int16_t)(((int16_t)(((float)BUCK_VIN_NOM * BUCK_VIN_NORM_FCT) - BUCK_VOUT_NOM))>>BUCK_AGC_NOM_SCALER) |
Adaptive gain modulation factor at nominal operating point. More... | |
#define | BUCK_VIN_NORM_FCT (float)(BUCK_VOUT_FEEDBACK_GAIN / BUCK_VIN_FEEDBACK_GAIN) |
VIN-2-VOUT Normalization Factor. More... | |
#define | BUCK_AGC_IO_NORM_SCALER (int16_t)(ceil(log(BUCK_VIN_NORM_FCT)/log(2))) |
Nominal VL Q15 scaler More... | |
#define | BUCK_AGC_IO_NORM_FACTOR (int16_t)((BUCK_VIN_NORM_FCT / pow(2.0, BUCK_AGC_IO_NORM_SCALER)) * (pow(2.0, 15)-1)) |
Nominal VL Q15 factor. More... | |
#define | BUCK_AGC_EXEC_DLY (uint16_t)(BUCK_AGC_EXECUTION_DELAY / PWM_CLOCK_PERIOD) |
Macro calculating the integer number equivalent of the AGC algorithm computation time. More... | |
Conversion macros for user-declarations of Adaptive Gain Modulation parameters of the buck converter.
#define BUCK_AGC_EXEC_DLY (uint16_t)(BUCK_AGC_EXECUTION_DELAY / PWM_CLOCK_PERIOD) |
Macro calculating the integer number equivalent of the AGC algorithm computation time.
Definition at line 720 of file dpsk3_hwdescr.h.
#define BUCK_AGC_FACTOR_MAX (float)(BUCK_VL_NOMINAL / BUCK_VL_MINIMUM) |
Floating point number of the maximumm limit of the adaptive gain modulation factor (float)
Definition at line 708 of file dpsk3_hwdescr.h.
#define BUCK_AGC_IO_NORM_FACTOR (int16_t)((BUCK_VIN_NORM_FCT / pow(2.0, BUCK_AGC_IO_NORM_SCALER)) * (pow(2.0, 15)-1)) |
Nominal VL Q15 factor.
Definition at line 717 of file dpsk3_hwdescr.h.
#define BUCK_AGC_IO_NORM_SCALER (int16_t)(ceil(log(BUCK_VIN_NORM_FCT)/log(2))) |
Nominal VL Q15 scaler
Definition at line 716 of file dpsk3_hwdescr.h.
#define BUCK_AGC_MEDIAN (int16_t)(((int16_t)(((float)BUCK_VIN_NOM * BUCK_VIN_NORM_FCT) - BUCK_VOUT_NOM))>>BUCK_AGC_NOM_SCALER) |
Adaptive gain modulation factor at nominal operating point.
Definition at line 711 of file dpsk3_hwdescr.h.
#define BUCK_AGC_NOM_FACTOR (uint16_t)(0x7FFF >> BUCK_AGC_NOM_SCALER) |
Fractional of the floating point number of the maimum limit of the adaptive gain modulation factor.
Definition at line 710 of file dpsk3_hwdescr.h.
#define BUCK_AGC_NOM_SCALER (uint16_t)(ceil(log(BUCK_AGC_FACTOR_MAX)/log(2))) |
Bit-shift scaler of the floating point number of the maimum limit of the adaptive gain modulation factor.
Definition at line 709 of file dpsk3_hwdescr.h.
#define BUCK_VIN_NORM_FCT (float)(BUCK_VOUT_FEEDBACK_GAIN / BUCK_VIN_FEEDBACK_GAIN) |
VIN-2-VOUT Normalization Factor.
Definition at line 715 of file dpsk3_hwdescr.h.
#define BUCK_VL_MAXIMUM (float)(BUCK_VIN_RANGE_MAX - 0) |
Maximum input voltage - output voltage = 0V.
Definition at line 704 of file dpsk3_hwdescr.h.
#define BUCK_VL_MINIMUM (float)(BUCK_VIN_UNDER_VOLTAGE - BUCK_VOUT_MAXIMUM) |
Conversion macros of phase current feedback parameters.
These conversion macros are used to convert user settings defined as physical quantities into binary (integer) numbers, which will be written to registers and variables and used in calculations throughout the firmware. Minimum input voltage - maximum output voltage
Definition at line 702 of file dpsk3_hwdescr.h.
#define BUCK_VL_NOMINAL (float)(BUCK_VIN_NOMINAL - BUCK_VOUT_NOMINAL) |
Nominal input voltage - nominal output voltage.
Definition at line 703 of file dpsk3_hwdescr.h.