PTB1 voltage measure range question

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

PTB1 voltage measure range question

Jump to solution
795 Views
gumu
Contributor V

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.

gumu_0-1689251015655.png

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!

 

0 Kudos
Reply
1 Solution
770 Views
gumu
Contributor V

I have enabled GAIN and the gain value is 0.7632, 50000 ≈ 65536*0.7632.

Fixed!

View solution in original post

0 Kudos
Reply
1 Reply
771 Views
gumu
Contributor V

I have enabled GAIN and the gain value is 0.7632, 50000 ≈ 65536*0.7632.

Fixed!

0 Kudos
Reply