MQX ADC Calibration

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

MQX ADC Calibration

1,294 次查看
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,024 次查看
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,024 次查看
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 项奖励
回复