Teensy 3.6 Fast pinMode alternative?

Utak

Active member
Hi, I can switch the complete ports with GPIOE_PDOR and GPIOE_PDIR very fast (High/Low ~7ns)

I was searching here in this forum for an also fast pinMode alternative, but I found nothing.
My question: I want to switch a whole port from Input to Output. Is this possible?

I've tried GPIOE_PDDR, but this is not working

"pinMode" alone takes ~200ns ... and this is very slow.
 
I found the solution by myself.

You have to use pinMode(x, INPUT) and then you can manipulate the Port with GPIOE_PDDR very fast. Without pinMode before its not working!
 
Back
Top