Example for using DMA for ADC

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: barthess, RoccoMarco

Posts: 2
Joined: Fri Sep 23, 2016 1:16 pm
Has thanked: 2 times

Example for using DMA for ADC

Postby arun_1990 » Fri Sep 23, 2016 2:06 pm

Hello All,

I am very new to Chibios. Can anyone please provide me an example code to use DMA for reading ADC values? I am using STM32F4-Discovery board.

thanks in advance.

Kind Regards,

Posts: 12
Joined: Fri Jan 08, 2016 2:04 pm
Location: USA
Has thanked: 4 times
Been thanked: 3 times

Re: Example for using DMA for ADC

Postby Dwar » Fri Sep 23, 2016 4:32 pm

http://wiki.chibios.org/dokuwiki/doku.p ... _discovery

"This article will explain how to get started with the recently released STM32F4-Discovery board using ChibiOS/RT. This board is really cheap (below 20$) and is an excellent evaluation platform for the STMicroelectronics Hi-Performance & DSP STM32F4 family."

User avatar
Site Admin
Posts: 13121
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 769 times
Been thanked: 653 times

Re: Example for using DMA for ADC

Postby Giovanni » Fri Sep 23, 2016 7:22 pm


All ChibiOS HAL drivers use DMA internally when applicable, this includes the ADC driver.

You don't need to do anything special, just use the ADC driver, it is able of very high performance.


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 11 guests