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

Search:

Type: Posts; User: jonr

Search: Search took 0.00 seconds.

  1. > or connect them to 24, 25, 19, 18, 14... ...

    > or connect them to 24, 25, 19, 18, 14...

    Yes, pin 24 will be bit 0, 25 will be bit 1, etc.
  2. Polling 3 ports for 34 pins sounds reasonable. ...

    Polling 3 ports for 34 pins sounds reasonable. There will be some jitter in your timing results.
  3. I/O ports are slow, maybe 13ns. This should be...

    I/O ports are slow, maybe 13ns. This should be the fastest way to read 18 parallel pins on a T4.1:


    #define IMXRT_GPIO6_DIRECT (*(volatile uint32_t *)0x42000000)

    inline uint32_t fixbits()
    {...
  4. You can quickly read 18 pins with one read to...

    You can quickly read 18 pins with one read to GPIO6. Wire them in this order:

    CORE_PIN24_BIT 12 GPIO6_DR
    CORE_PIN25_BIT 13 GPIO6_DR
    CORE_PIN19_BIT 16 GPIO6_DR
    CORE_PIN18_BIT...
Results 1 to 4 of 4