blakeAlbion
Well-known member
Hello!
I see my Teensy has multiple sets of SPI pins. Can I run SPI on more than one set of pins simultaneously?
The documentation suggests no. It seems SPI is a "Singleton": One instance per application. I can point SPI at different pins, but I can't seem to have two SPI instances at the same time (SPI1, SPI2, SPI3, etc.) I suppose this may be due to the potential use of interrupts.
But I wanted to make sure of this. The MIDI library for Teensy lets me get around this by creating more than one instance on different serial ports. Can I do this with SPI?
Thanks,
Ben
I see my Teensy has multiple sets of SPI pins. Can I run SPI on more than one set of pins simultaneously?
The documentation suggests no. It seems SPI is a "Singleton": One instance per application. I can point SPI at different pins, but I can't seem to have two SPI instances at the same time (SPI1, SPI2, SPI3, etc.) I suppose this may be due to the potential use of interrupts.
But I wanted to make sure of this. The MIDI library for Teensy lets me get around this by creating more than one instance on different serial ports. Can I do this with SPI?
Thanks,
Ben