This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

About bias and offset

The following codes are in function HAL_updateAdcBias().

// update the current bias
for(cnt=0;cnt<HAL_getNumCurrentSensors(handle);cnt++)
{
bias = HAL_getBias(handle,HAL_SensorType_Current,cnt);

bias += OFFSET_getOffset(obj->offsetHandle_I[cnt]);

HAL_setBias(handle,HAL_SensorType_Current,cnt,bias);
}


// update the voltage bias
for(cnt=0;cnt<HAL_getNumVoltageSensors(handle);cnt++)
{
bias = HAL_getBias(handle,HAL_SensorType_Voltage,cnt);

bias += OFFSET_getOffset(obj->offsetHandle_V[cnt]);

HAL_setBias(handle,HAL_SensorType_Voltage,cnt,bias);
}

What are the differences between bias and offset?

Besides, since motor currents are bipolar, the bias is well understood, but for voltage which has only single polar, why does voltage need bias?

  • 1. The Current/Voltage ADC bias contains the feedback circuit's offset and bias. Bias is the mathematical offset used when a bi-polar signal is read into a uni-polar ADC.
    2. The voltage ADC bias is mainly for circuit's offset, the difference for 3-phase voltage feedback.