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

587件の閲覧回数
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 返信

519件の閲覧回数
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 件の賞賛
返信