Forum Rule: Always post complete source code & details to reproduce any issue!
-
Teensy 3.6 Fast pinMode alternative?
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!
-
Senior Member+
This is the code for Teensy 3.x pinMode(): https://github.com/PaulStoffregen/co...teensy.c#L1090
Maybe it is somehow useful.
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules