PTB1 voltage measure range question

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

PTB1 voltage measure range question

ソリューションへジャンプ
632件の閲覧回数
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 解決策
607件の閲覧回数
gumu
Contributor IV

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

Fixed!

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
608件の閲覧回数
gumu
Contributor IV

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

Fixed!

0 件の賞賛
返信