Reading data from external ADC chip using GPIOC port and DMA2, does not work as espected.
Hello.
I am trying to read data from a 12bit ADC AD9226 connected to port GPIOC, on
STM32F407VGT6 clocked at 168MHz. On port PA8 there is a 42MHz clock for the external ADC
and also the same TIM1_CH1 I triggers the DMA2 to transfer data from pheripheral to
memory. The DMA2 uses CH6, STREAM 3.
The sistem get's the data from the external ADC when a trigger signal is on GPIOA_Pin_9,
and after DMA2_Stream3_IRQHandler is called, we stop the DMA2 and set a flag so we can know that we have data, and then we display data on a 324x240 display.
The problem is that i barely reach to see corectly a 5MHz signal from a signal generator.
The DMA2 transfers the data at 42MHz?
Please take a look at my code to see if there are any errors. Thank you!