Page 1 of 1

ADC interrupt setup

Posted: Mon May 02, 2022 1:06 am
by nachus001
Dear all

I've started a design with an arduino bluepill F103 board. I'm using platformio
My question here is how to declare an ADC end of conversion interrupt service for the ADC continuous conversion
using the Arduino core resources ISR() and the like.

This configuration is for a switched regulator which it's meanto to receive a voltage feedback (current actually) by the ADC channel and adjust a PWM
channel accordingly for a certain voltage (current)

I've digged the Arduino includes in platformio, and searched internet for examples, but couldn't find any initialization and isr examples using arduino standard declarations. (aside of analogread() functions)

Should I resort to st's HAL and LL apis? or there is a shortcut for isr declaration?
Is there any workaround to ease the ADC's isr declaration?

thanks in advance
nachus

Re: ADC interrupt setup

Posted: Wed May 11, 2022 9:47 am
by fpiSTM
nachus001 wrote: Mon May 02, 2022 1:06 am
Should I resort to st's HAL and LL apis?
Unfortunately yes.
Here an example on ADC, you can take some inspiration:
viewtopic.php?f=41&t=110

Re: ADC interrupt setup

Posted: Thu May 12, 2022 7:36 am
by Hanna08
This is very interested article!