@xiangjun_rong Hi, I tried what you said to calculate average values of adc channels, but when I use for loops, I don't receive any adc values. You told me to set #define TOTAL_AVERAGE_NUMBER 2, but even setting it 2 didn't help. I don't use adc interrupt in this code, since all the 8 adc channels are used and it seems that the for loops don't work either. Could you please once again check my code and help me resolve this issue.
Thanks in advance,
Alex