KurtE
Senior Member+
I am not sure if there are easy examples.Are there any examples showing how to mux half the port and read it?
One needs to read (many times) the IMXRT reference manual you can download from main pjrc product pages the section on FlexIO.
A few of us have been playing with code that reads 4 or 8 bits from different cameras up in the library:
Main flexIO in the file:
Teensy_Camera/src/ImageSensor.cpp at main · mjs513/Teensy_Camera
Camera class to support several cameras [HM0360, HM01B0, GC2145 so far ] - mjs513/Teensy_Camera
There is library for RA8876 that a few of us are playing with: https://github.com/wwatson4506/Ra8876LiteTeensy
That can talk to the display in either 8 or 16 bit parallel. https://github.com/wwatson4506/TeensyRA8876Combined
Most of the code doing the FlexIO is up in the file:
TeensyRA8876Combined/RA8876_t41_p/src/RA8876_t41_p.cpp at main · wwatson4506/TeensyRA8876Combined
A universal RA8876 library combining SPI and 8080 drivers for Teensy boards and variants. - wwatson4506/TeensyRA8876Combined
Both are using my FlexIO library: https://github.com/KurtE/FlexIO_t4
This is installed with the Teensy installs, however the one up on my repository has some updates in it.
Not sure if that helps much but does give you some places to look at the code