MQX ADC Calibration

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

MQX ADC Calibration

1,311件の閲覧回数
pk2
Contributor III

Is there a calibration function in MQX for the lwadc?  If there is not, how would I calibrated the adc readings?

0 件の賞賛
返信
2 返答(返信)

1,041件の閲覧回数
soledad
NXP Employee
NXP Employee

Hi

You can use the ADC_IOCTL_CALIBRATE  IOCTL Command, this starts calibration process on a device. Command fails if any channel on a device is opened.

For example:

ioctl( adc_file, ADC_IOCTL_CALIBRATE, NULL );
   _io_tchres_install("tchscr:", &_bsp_tchscr_resisitve_init, adc_file );


Have a great day,
Sol

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信

1,041件の閲覧回数
pk2
Contributor III

Thanks soledad.  I has looking for something like "lwadc_calibrate" since my a/d code is based on the example that is included with MQX4.1  The a/d examples in MQX4.0 are not included with MQX 4.1 for some reason.

0 件の賞賛
返信