Getting ADC Callback whenever the measurement of each element in a sequence is completed

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

Getting ADC Callback whenever the measurement of each element in a sequence is completed

1,085 次查看
cvstnc
Contributor I

Hello everyone,

I am working with MKV31F256xx12 MCU and I am trying to get a callback everytime a reception/measurement of an element in an ADC sequence is completed. Is it possible to do so?

标签 (1)
标记 (3)
0 项奖励
回复
1 回复

1,017 次查看
Miguel04
NXP TechSupport
NXP TechSupport

Hi @cvstnc 

You can keep reading the Conversion Complete Flag[COCO] on the ADC Status and Control Registers 1 (ADCx_SC1n) after this bit is set you can read the ADC data.

Also you can use an interrupt handler to read the value instead of keep reading the Conversion Complete flag.

Best Regards, Miguel.

0 项奖励
回复