Part Number: MSP430FR2676
Other Parts Discussed in Thread: CAPTIVATE-FR2676
I'm attempting to calculate a gain-corrected ADC value using the MSP430FR2676. The User's Guide outlines the following calculations:
The datasheet indicates the Gain factor is in memory location 0x1A16. The value read at that address for my specific part (a CAPTIVATE-FR2676 development board) is 16357. When I perform the calculations as described with an assumed ADC reading of 2048 (mid-range at 12-bit resolution), the result is 0.12520633367977 which is not correct. The calculation as performed is detailed below:
The data type of the gain value is not explicitly defined, though it is for the offset error correction value. However, I cannot see how a data type difference would improve the situation.
What is it that I'm missing? Any help would be very much appreciated.
Thanks,
JD Scott

