Search found 4 matches

by dummibaer
Sun Jun 21, 2020 9:16 am
Forum: General discussion
Topic: DMA interrupt with Arduino IDE?
Replies: 7
Views: 12394

Re: DMA interrupt with Arduino IDE? - solved

Yes, you are right. Serial via USB has to work independetly to timer 4 (did not tested it myself). But I am using an USB to UART programming adaptor which connects to pins PA9 and PA10 and as far as I know are these pins connected to timer 4 periphery. I tested if I can get user defined signals at t...
by dummibaer
Sat Jun 20, 2020 12:00 pm
Forum: General discussion
Topic: DMA interrupt with Arduino IDE?
Replies: 7
Views: 12394

Re: DMA interrupt with Arduino IDE? - solved

Thanks a lot! This is exactly what I was looking for. With your help and the mentioned defines I was able to get the code to work. Now, the ADC is triggered by timer 4 CCR4 event. After ADC conversion and DMA transfer the interrupt handler DmaIRQ() is called in which timer 4 is paused. Then, Serial ...
by dummibaer
Fri Jun 19, 2020 1:58 pm
Forum: General discussion
Topic: DMA interrupt with Arduino IDE?
Replies: 7
Views: 12394

Re: DMA interrupt with Arduino IDE?

Thank you very much for your replies! The STM32ADC library and especially the example "SingleChannelAtSampleRateCircularBuffer" did the trick. It covers my requirements except for the need to use timer 4. In the example timer 3 is used as the trigger for the ADC. Do you know, if there is a...
by dummibaer
Fri Jun 19, 2020 9:31 am
Forum: General discussion
Topic: DMA interrupt with Arduino IDE?
Replies: 7
Views: 12394

DMA interrupt with Arduino IDE?

Hello everyone, I would like to ask, if there is by chance a way to create an interrupt service routine which triggers on the DMA in the Arduino IDE. If yes, how do i do this? The background: I am using a bluepill board (stm32f103c8t6). The plan is to implement an ADC read for a bunch of conversions...

Go to advanced search