RFQ/BOM 0 로그인 / 등록하다

귀하의 위치를 선택하세요

사용자 이미지

When STM32F103C8T6 is doing three-resistance sampling, the interrupt enters two consecutive interrupts.

MCU
12월 10, 2020 by Hakeem 1695

I use STM32F103C8T6 for three-resistance sampling. The ADC trigger mode is CC4 channel trigger, and the ADC working mode is synchronous injection mode. The sampling is ADC1 three channels and ADC2 three channels. After entering the ADC interrupt, until finally exiting the ADC interrupt, ADC->SR immediately becomes OXfffffffe again, and then immediately enters the interrupt. That is, two consecutive interrupts are entered before exiting. Until the second CC4 channel trigger.

Who has encountered this situation?

모든 댓글

user image

Rosemarie 게시 날짜 December 10, 2020

Did not clear the ADC interrupt flag?

There are routines in the official library, see what is different about your program.

0
user image

Kalie 게시 날짜 December 10, 2020

So there are two ADCs, of course, interrupt twice. ADC1 and ADC2 are two independent ADCs.

0
user image

Shalom 게시 날짜 December 10, 2020

Haven't used it like this, you can look at the firmware library routines.

0

답변 작성

답글을 달려면 로그인이 필요합니다. 로그인 | 등록하다