2024-01-26 09:30 AM
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.
2024-01-27 11:12 AM
+ same on H743 , at 480MHz , -O2, ...same code in main:
20 MHz . :slightly_frowning_face:
But you can see effect of cache+core much faster than the bus to the port: no delay from while loop !