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.

RM57 ADC Calibration

Other Parts Discussed in Thread: HALCOGEN

Hello,


I am hoping for some clarifying information on ADC Calibration and Offset Error Correction section 22.2.6.1.2 in the RM57 technical reference.


It mentions Computing the error correction value in step 7, but never mentions what computing actually is. I see halcogen just takes the sum of all the values and divides by the number of values (4). Is this the correct calculation?

    /* Compute the Offset error correction value */
    conv_val[4U]=conv_val[0U]+ conv_val[1U] + conv_val[2U] + conv_val[3U];
 
    conv_val[4U]=(conv_val[4U]/4U);

Thanks!