Teensy 4.1 with multiple SPIs

JoeD.

Member
Hi,
I am working on a MIDI controller with the Teensy 4.1 it has one SPI line with 8 MCP23s17 each MCP has 8 encoders on it and another 2 MCPs have 32 buttons on them. I have another SPI line with a EVE display screen. Now I want to add 64 Dot Star SK8922 LEDS they use SPI. I have heard adding the LEDS to one of the existing SPIs could mess with the encoders or the screen. Would you recommend putting everything on the first SPI and have the LEDS on the second SPI on there own? I feel like I want to stay away from the SPI pads underneath. Any suggestions would be appreciated!

Thanks,
Joe
 
rotary encoder switches, or on motor shafts? The bandwidth requirements are very different... What polling frequency are you using with the buttons and encoders?
 
@MarkT They are rotary encoders. Im not sure the polling frequency I'm having someone help on the code side. We are using interrups as the main approach. I just saw that the SK9822 LEDS don't actually need to be on a SPI line, they can be on 2 digital pins, so I might go that route. Any suggestions?
 
MCP23S17 interrupts? That's 16 (or maybe 8) interrupt pins unless you common them as open-drain? That would reduce the bandwidth needed on their SPI bus.
 
Back
Top