Example for using DMA for ADC

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

Moderator: RoccoMarco

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

Example for using DMA for ADC

Post by arun_1990 »

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,
Arun
Dwar
Posts: 12
Joined: Fri Jan 08, 2016 2:04 pm
Has thanked: 4 times
Been thanked: 3 times

Re: Example for using DMA for ADC

Post by Dwar »

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
Giovanni
Site Admin
Posts: 14891
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: Example for using DMA for ADC

Post by Giovanni »

Hi,

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.

Giovanni
Post Reply