Hi,
I have the folowing problem. I need to calibrate the ADC and all I can find about the ADCREFTRIM settings is in F2806x_Adc.h:
struct ADCREFTRIM_BITS { // bits description
Uint16 BG_FINE_TRIM:5; // 4:0 Course Trim for Internal BG
Uint16 BG_COARSE_TRIM:4; // 8:5 Fine Trim for Internal BG
Uint16 EXTREF_FINE_TRIM:5; // 13:9 Fine Trim for External Reference
Uint16 rsvd1:2; // 15:14 Reserved
};
How should I calculate the values I must write in ADCREFTRIM? And do I only have to change them in F2806x_Adc.h?
I've tried to measure 3.3V with 2 different Piccolo control cards. With one I read 3.2 and with the other one 3.1. They both have ADCREFTRIM = 0x15AA.
Do I have to calibrate each control card in order to be sure the measurement is correct over the complete range?
Thank you,
Monica