Hello NXP team,
There is a question about PTB1 to measure external voltage, this is my configuration:
TYPE_VSENSE_LIST const vList[] = {
// ch, avg , latency
CH_VSENSE0, 10, 12,
CH_VSENSE1, 10, 12,
CH_VSENSE2, 10, 12,
CH_VSENSE3, 10, 12,
CH_V_PTB1, 10, 12
};
It seems that the max ADC value of PTB1 voltage reach the full range.
No matter how to adjust the external voltage,The "u16VsenseValue" is aways 50100.
The question is the max value of 16bit ADC should be 65535, I'd like to know why it cannot reach the value of 65535.
Thanks!
Solved! Go to Solution.
I have enabled GAIN and the gain value is 0.7632, 50000 ≈ 65536*0.7632.
Fixed!
I have enabled GAIN and the gain value is 0.7632, 50000 ≈ 65536*0.7632.
Fixed!