cancel
Showing results for 
Search instead for 
Did you mean: 

Which is best STM32 MCU for fast driving of GPIO

Brussl
Associate II

I need fastest MCU that can drive GPIO pins but not with timers or DMA, just from source. I need to take fast data from a FPGA device. One of determination is max frequency of toggling pin:

I try STM32H562 to toggle pin mode max frequency is around 31 mhz : with this code and core frequency 250mhz:

asm volatile

(

" LDR R0,=0x42020414 ;\n" //GPIOB->ODR

" LDR R1,[R0] ;\n"

"loop: EOR R1,#0x00000001 ;\n"

" STR R1,[R0] ;\n"

" B loop ;\n"

:

:

:"r0","r1","r2","r3","r4","r5","r6","r7","r8","r9","r10"

);

I know too STM32H723 is not the best choise - GPIOs are slower than STM32F427. 

Can some one offer me MCU with fastest GPIOs. and arm core ? Fast as possible.

10 REPLIES 10

+ same on H743 , at 480MHz , -O2, ...same code in main:

AScha3_0-1706382584366.png

20 MHz . 🙁

But you can see effect of cache+core much faster than the bus to the port: no delay from while loop !

If you feel a post has answered your question, please click "Accept as Solution".