about the adc, I want to know the difference between EOF interrupt and ECF interrupt.
As you did not specify the micro you are using I will answer it generally.
EOF - End of conversion flag - It is set after single conversion is done
ECF - End of chain conversion flag - it is set after series (chain) conversion has finished
Retrieving data ...