Fast gpio read with sync
Hello, I have 16b parallel bus, 8MHz adc, and I need to read as fast as I can data to memory array which is 128 point long. So far I overclocked stm32f4 to 250MHz so I could do it faster. Original code is :
while(i<128)
{array[i]=GPIOC->IDR;
i++;
while((GPIOA-IDR & GPIO_Pin15)==GPIO_Pin15)
while((GPIOA-IDR & GPIO_Pin15)! =GPIO_Pin15)
}
Can I do it faster with fsmc or dma ? A15 is clk from adc, sync should be done on rising edge