cancel
Showing results for 
Search instead for 
Did you mean: 

Getting ADC working on STM32f334 discovery

previn
Associate II
Posted on March 31, 2015 at 05:09

Hi all,

I am trying to get ADC working on the STM32f334 discovery board, using the HAL drivers, however there isn't enough documentation on the HAL drivers to help me (''Description of STM32f334 HAL Drivers.pdf'' doesn't give enough detail of setting the ADC, DMA and timer configuration variables to).

Will anyone be able to help me out? I am looking to set up 4 ADC pins, which I can sample at 200kHz, ideally using the DMA so that the code isn't interrupted so frequently.

Thanks!
4 REPLIES 4
Posted on March 31, 2015 at 05:18

Will anyone be able to help me out?

Not me, I'm afraid.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
previn
Associate II
Posted on March 31, 2015 at 05:43

Clive,

I've been looking at one of your [DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/stm32f207%20ADC%2BTIMER%2BDMA%20%20Poor%20Peripheral%20Library%20Examples&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B&currentviews=3210]posts, and it looks like exactly what I'm looking for! now just have to see if it could be implemented in the stm32f3xx HAL driver..

Amel NASRI
ST Employee
Posted on March 31, 2015 at 10:15

You may start from the examples available in STM32Cube_FW_F3\Projects\STM32303C_EVAL\Examples\ADC.

-Mayla-

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.

previn
Associate II
Posted on April 02, 2015 at 01:01

Thanks heaps!

Those tutorials worked. One explained multiple channels with DMA, and the other explained using external triggered by a timer