AnsweredAssumed Answered

STM32F4 DISC - ADC DMA TIM

Question asked by pano.samuele on Nov 20, 2014
Latest reply on Oct 12, 2017 by Clive One
Hi,
I'm a noob but I need to convert two analog signals with a command timer.
I have found a code from [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]this thread.
Two answers:
1) how to read the converted value from the main fuction? ADCDualConvertedValues is a vector of 800 elements
2) about frequency of the timer: TIM_TimeBaseStructure.TIM_Period = (84000000 / 200000) - 1;
84M/200k = 420....... where 200kHz is from?
thanks

Outcomes