Question
STM32F4 DISC - ADC DMA TIM
Posted on November 20, 2014 at 12:07
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¤tviews=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 = 4...... where 200kHz is from?
thanks
#adc-dma-tim-dualmode