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.

UCD3138: Front-end gain and Measurement Resolution issues for the UCD3138

Part Number: UCD3138

Hello
I am learning the UCD3138 full-bridge hard switch development board firmware
I have some questions about void init_front_end0(void)

void init_front_end0(void) 
{

FeCtrl0Regs.EADCCTRL.bit.AFE_GAIN = 3;

}

I know this sentence is to set the AFE's gain to 8 and the Measurement Resolution to 1mv,

but I'm not sure why the gain is set to 8, not 4, 2, and 1. Why is this? What factors determine the gain and Measurement Resolution.