So you're a Noob? Post your questions here until you graduate! Don't be shy.

User avatar
By Phil333
#70679 Thanks Rudyard for you link.
I already tried 0x60000304 and 0x60000308 but I might have used it wrong.

To set gpio16 high I used
WRITE_PERI_REG( 0x60000304, (1 <<16) );

But it didn't worked.
Any suggestions?
User avatar
By Phil333
#70681 Ok i might have taken a slow GPIO pin...

On D0 (GPIO16) I get 900ns pulses with the code from post #1.
Same code gives me a 450ns puls on D5 (GPIO14).

But the more important thing is, that
WRITE_PERI_REG( 0x60000304, (1<<16) );
WRITE_PERI_REG( 0x60000308, (1<<16) );
doesnt work, while
WRITE_PERI_REG( 0x60000304, (1<<14) );
WRITE_PERI_REG( 0x60000308, (1<<14) );
is working

This makes it to 81ns (~12MHz) for a Low/High jump.
This is still worse then a 16MHz Arduino and 2 times slower then the STM32 MapleMini board but at least its an improvement of 12 times faster then before.

Are there any more ideas how I can speed it up?
Right now i just need fast low/high jumps to measure the best performance.

Thanks in advance!