Hi PRATIBHA,
Please look at simple example code here:
https://community.nxp.com/docs/DOC-332475
I used ADC0FLWCTL_TRIG bit as a trigger for new ADC conversion.
Please be aware that loading commands from command list and storing results into result list is managed by internal DMA mechanism. Therefore the command and results lists must be aligned to the 4 byte boundary. For example:
volatile unsigned long adc0_cmdlist[NR_A_CH] __attribute__ ((aligned (4))); //max 256 bytes = 64 commands per 4-byte entries
volatile unsigned int adc0_results[NR_A_CH] __attribute__ ((aligned (4))); //max 128 bytes = 64 results per 2-byte entries
I hope it helps you.
Have a great day,
Radek
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------