Teensy 4.1 does not support bit-band?

W5ZZO

Well-known member
From my limited research, and the datasheet, the bit-banding in M3 and M4 is not implemented in the M7 in Teensy 4.1?
A knowledgeable response, even if boolean, would be appreciated.

Thanks,

- Wes, W5ZZO
 
Yes - Been there!

Note for GPIO, the IMXRT 1060 has some things that can help with atomic operations (like the bitband was used for T3.x)

That is each GPIO port, has some additional registers, to Set, Clear and Toggle bits on the port. Only pins that you pass a 1 bit for are affected
 
Thanks for the tip.
I don't have a mission-critical need for bit-band, but I combed through the INXRT 1060 datasheet, and while it has the bit alias addresses marked reserved, I was still unsure.
I will study the port registers you mentioned. While I am just a hobbyist, I have been bit-banging since the 80C51 days.

- Wes, W5ZZO
 
Those GPIO bit set, clear, toggle registers are used in the most efficient way if you use digitalWriteFast() or digitalToggleFast() in your code, and the pin number is a compile-time constant. No need to mess with the registers directly, unless you really prefer that over easily readable code.
 
Back
Top