Over Current Protection value calculation in B-G431B-ESC1.
In the .B-G431B-ESC1 board if i set over current threshold as 45A then i get value of DAC_OCP_Threshold = 4083, Please explain me how this value is achieved.
Few of the calculations i know are
#define CURRENT_CONV_FACTOR (uint16_t)((65536.0 * RSHUNT * AMPLIFICATION_GAIN)/ADC_REFERENCE_VOLTAGE) 544 and
CURRENT_CONV_FACTOR_INV is 0.00183.
If i set the over current sense as 45A then the count is 24480 decimal value. But this value is different from the DAC value set (4083). What are the actual calculations.
