NHS3152 ADC conversion - determining conversion equation

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

NHS3152 ADC conversion - determining conversion equation

265件の閲覧回数
isaacseeto
Contributor I

Hi, 

I was just wondering if someone could explain how the ADC conversion equations were determined for these posts:

https://community.nxp.com/t5/NFC/NHS3152-ADC-convertion-and-accuracy/m-p/862734/thread-id/4896

https://community.nxp.com/t5/Other-NXP-Products/NHS3152-reading-data-form-NFC/td-p/1585506

I am currently just trying to read voltage to one analog pin. 

ラベル(2)
0 件の賞賛
返信
1 返信

204件の閲覧回数
patrickgeens
NXP Apps Support
NXP Apps Support

Hello Isaac,

 

The ADC conversion has non-linear behavior at 0V and at the maximum of the input range, therefore it is more accurate to use the Via, min and Via, max values from the datasheet as the voltages corresponding to raw ADC values 0 and 4095. See graph below.

The conversion formula from raw ADC to ADC input voltage (Via) is then:

Via = Via, min + (Via, max - Via, min) * ADCraw / 4095.0

Values outside the Via, min and Via, max cannot be measured: raw value clipped at 0 or 4095.

 

A example measurement showing the behaviour at the top and bottom of the voltage range:

patrickgeens_0-1713786378404.png

 

The Via, min and Via, max values for both ranges, from the NHS3152 datasheet:

patrickgeens_3-1713787733410.png

 

Kind regards,

Patrick

 

0 件の賞賛
返信