I am using MIMXRT1064-EVK which is having i.MXRT1064DVL6B MCU. I am using evkmimxrt1064_adc_12b1msps_sar_interrupt example provided by the SDK. In this I am trying to configure two ADC Channels of for my project, Here I can see only ADC_HC0 having software trigger, but I want to take analog readings from single ADC with different channels. Is it possible, Please help me with this.
And In example code I am unable figure out the difference between
#define DEMO_ADC_USER_CHANNEL 0U and
#define DEMO_ADC_CHANNEL_GROUP 0U
Please give replay ASAP!
Hi,
Thank you so much for your interest in our products and for using our community.
For software trigger only can be used the ADC_HC0 register. For hardware trigger can be used from ADC_HC0 to ADC_HCn registers.
Hope it helps you.
Have a nice day!
Thanks for your quick response @_Leo_
I have one more query, I am able to get the ADC readings properly, But after removing the sensor also the ADC showing random garbage values, Is there any function like stopping the ADC temporarily.
I have seen in the Reference Manual that in ADC_HCn, the if the first 5 bits all are 1 it will stop hardware triggering. How to achive that thing, I tried but it didn't work.