Чт янв 07, 2021 12:34:50
void ADC_IRQHandler (void) {
if ((ADC1->IER & ADC_IER_ADRDYIE) && (ADC1->ISR & ADC_ISR_ADRDY)) {
ADC1->ISR |= ADC_ISR_ADRDY; // флаг сбрасываю правильно?
//бла...бла...бла
}
}
Чт янв 07, 2021 12:57:12
ADC1->ISR = ADC_ISR_ADRDY;
Чт янв 07, 2021 12:58:11
Чт янв 07, 2021 13:06:26
Bit 0 ADRDY: ADC ready
This bit is set by hardware after the ADC has been enabled (bit ADEN=1) and when the ADC reaches
a state where it is ready to accept conversion requests.
It is cleared by software writing 1 to it.
0: ADC not yet ready to start conversion (or the flag event was already acknowledged and cleared
by software)
1: ADC is ready to start conversion
Чт янв 07, 2021 13:12:27
Чт янв 07, 2021 13:15:18
if ((ADC1->IER & ADC_IER_ADRDYIE) && (ADC1->ISR & ADC_ISR_ADRDY))
Чт янв 07, 2021 13:17:04
Чт янв 07, 2021 13:17:13
Чт янв 07, 2021 13:18:17
Чт янв 07, 2021 13:18:47
Чт янв 07, 2021 13:19:28
Чт янв 07, 2021 13:20:41
Чт янв 07, 2021 13:23:40
Чт янв 07, 2021 13:24:09
Чт янв 07, 2021 13:24:45
Чт янв 07, 2021 13:26:19
Чт янв 07, 2021 13:26:24
Чт янв 07, 2021 13:27:20
Чт янв 07, 2021 13:28:05
Чт янв 07, 2021 13:29:26