Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: jonr

Search: Search took 0.00 seconds.

  1. See resp #13 for a link to info about bit...

    See resp #13 for a link to info about bit manipulation and reading ports directly.
  2. I get roughly 13ns to read a port vs 2-3 ns for...

    I get roughly 13ns to read a port vs 2-3 ns for bit manipulation instructions. So you want to avoid port reads, even if it means more bit manipulation. Just ports 6 and 7 to get 32 bits?
  3. Good point. So the answer might be a singe...

    Good point. So the answer might be a singe read/shift for 16 bits and something similar to the T4.0 solution for the 2nd 16 bits?
  4. See my answers here: ...

    See my answers here:

    https://forum.pjrc.com/threads/58377-Reading-multiple-GPIO-pins-on-the-Teensy-4-0-quot-atomically-quot/page2?highlight=GPIO6
  5. If the sampling is done in an interrupt service...

    If the sampling is done in an interrupt service routine and the ethernet writing is done in the main loop, then no samples should be missed. Use a double buffer (2x 40k).
Results 1 to 5 of 5