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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

632 Views
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?

Labels (1)
Tags (3)
0 Kudos
Reply
1 Reply

564 Views
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 Kudos
Reply