PTB1 voltage measure range question

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

PTB1 voltage measure range question

跳至解决方案
747 次查看
gumu
Contributor IV

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 项奖励
回复
1 解答
722 次查看
gumu
Contributor IV

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

Fixed!

在原帖中查看解决方案

0 项奖励
回复
1 回复
723 次查看
gumu
Contributor IV

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

Fixed!

0 项奖励
回复