I use an ADC input of my ST7Lite05 to measure the voltage on a shunt resistor to monitor a charge current. As I'm switching the current, I want to make the average of at least 20 to 50 measures. Does anybody can help me on how to do that in assembly loosing less time at possible in the program? Any help is welcome Regards