I took over someone's codes that set up DAC using AD5373 (32 channels, 14 bit serial input).
In the middle of initializing DAC in C codes, he adjusted gain(M) value in favor of this project, and I don't understand how the M value he came up with.
In this project he wanted to configure DAC for
I don't get how was 13652 for M(gain) come up with ?
the below equation
Here is transfer function for AD5373 described in datasheet:
OFFSET_CODE is the code loaded to the offset DAC. On power-up, the default code loaded to the offset DAC is 5461 (0x1555).
I have plugged in numbers but I don't understand how he got that M value.