You didn't provide any code it's tough to wager what mistakes you made, however that is in all likelihood the basis of the problems you stumble upon new solution.ADC interrupts are rarely beneficial in practice. Either use DMA with ADC or use timer i...