diff --git a/sampling.c b/sampling.c index 2070218..22ce178 100644 --- a/sampling.c +++ b/sampling.c @@ -22,7 +22,8 @@ volatile uint32_t gADCErrors = 0; // number of missed ADC deadlines void ADC_ISR(void) { // clear ADC1 sequence0 interrupt flag in the ADCISC register - HWREGBITW(ADC1_ISC_R, 16) = 1; + //HWREGBITW(ADC1_ISC_R, 1) = 1; + ADC1_ISC_R |= 1; // check for ADC FIFO overflow if(ADC1_OSTAT_R & ADC_OSTAT_OV0) {