Example for using DMA for ADC

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

Moderators: barthess, RoccoMarco

arun_1990
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,
Arun

Dwar
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."
--dave

User avatar
Giovanni
Site Admin
Posts: 13012
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 744 times
Been thanked: 620 times
Contact:

Re: Example for using DMA for ADC

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

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


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 9 guests