This demo is based on adc12_polling example , and so far I just tested it with FRDM-KE15Z, so please download SDK_2.0_FRDM-KE15Z.zip from Welcome to MCUXpresso | MCUXpresso Config Tools before you try that demo.
After opening the project, you have to import edma and dmamux driver code as below:
![179538_179538.png 179538_179538.png](/t5/image/serverpage/image-id/117038i6044335FF71FAD46/image-size/large?v=v2&px=999)
![pastedImage_2.png pastedImage_2.png](/t5/image/serverpage/image-id/15743iF5E0D1126FCCE05B/image-size/large?v=v2&px=999)
then you may replace adc12_polling.c with the attached one.
compiling and run, you may see the console output ADC results like this.
![179539_179539.png 179539_179539.png](/t5/image/serverpage/image-id/117039i88F7872705256E1E/image-size/large?v=v2&px=999)
![pastedImage_3.png pastedImage_3.png](/t5/image/serverpage/image-id/15787i8531110E41A873A3/image-size/large?v=v2&px=999)
Hope that helps,
-Kan
Original Attachment has been moved to: adc12_polling.c.zip