Hi Ray,
Wow! That circuitry is significantly more complicated than any that I’ve seen before for an MCU’s ADC. You don’t mention exactly which MCU that you are using, but normally you can find a Freescale evaluation board that can be used as a reference. Ordinarily you would tie VRH directly to VDDA and connect VRL to VSSA. This is especially true if you need to convert analog signals that are swinging between VSSA and VDDA. Sometimes, due to various circuit interactions, there could be slight inaccuracies with signals that are at or very close to the power rails, but this can usually be dealt with by conditioning the input signals if required.
Be sure to use decoupling capacitors between and close to the VRH and VRL pins. Again, I recommend using an existing evaluation board’s layout as an example. If you suspect that your system may have some power supply noise that could impact the ADC accuracy then you might want to consider adding ferrite beads or inductors. Although it looks like you’re already using a separate analog supply rail (i.e., “+5VA” versus “+5V”) which is “quieter” than the digital supply(?).
Keep the source impedance of the external analog signals as low as possible – nothing over 10k ohms and preferably closer to 1k ohms or lower. A high source impedance will affect the conversion accuracy.
Best Regards,
Derrick