ADC interrupt setup

Post here first, or if you can't find a relevant section!
Post Reply
nachus001
Posts: 4
Joined: Sun May 01, 2022 11:42 pm

ADC interrupt setup

Post 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
User avatar
fpiSTM
Posts: 1723
Joined: Wed Dec 11, 2019 7:11 pm
Answers: 91
Location: Le Mans
Contact:

Re: ADC interrupt setup

Post 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
Hanna08
Posts: 1
Joined: Thu May 12, 2022 7:35 am

Re: ADC interrupt setup

Post by Hanna08 »

This is very interested article!
Post Reply

Return to “General discussion”