ADC Reading Before OS init.

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

ADC Reading Before OS init.

627 Views
rijil_kp
Contributor III

How can I read an ADC channel using the MCAL code.

My requirement is to get the ADC data before OS init happens, So I wont be able to use any interrupts for ADC conversions. 

0 Kudos
Reply
1 Reply

573 Views
hungnguyenphi
NXP Employee
NXP Employee

Hello Rijil K P,

From my point of view, we can use:

- Adc_ReadGroup() API.

- "Adc Group Without Interrupts" is true.

- "Adc Group Access Mode" in ADC_ACCESS_MODE_SINGLE mode. 

Then we can read ADC channel without setting ADC interrupt.

Best regards,

Hung.

0 Kudos
Reply