Teensy 3.6 - mixing SPI's

Status
Not open for further replies.

bossredman

Well-known member
The fact I am actually asking this question will show you my limited knowlwedge on this whole SPI thing - but...

on the Teensy 3.6 there are muiltple pins for each of the SPI functions (ie MISO - 0, 1 & 2 etc).

Can I mix SPI pin suffx mumbers in a project OR do the suffix numbers always have to match.

ie could I use:
MISO0, MOSI1, SCK0, CS0

or does it have to be:

MISO0, MOSI0, SCK0, CS0
or
MISO1, MOSI1, SCK1, CS1
or
MISO2, MOSI2, SCK2, CS2

Reason I ask is that a while ago I upgraded my project to use the 3.6.
That used a 20 x 4 LCD display (I/O pins 18-23).
And my switch inputs use I/O pins 2 -32 & midi IN/OUT pins 0 & 1.
So all pins on the lower side of the Teensy are being used.

But now got interested in using a TFT screen via SPI & to save having to do a whole load of re-wiring/soldering & re-coding it would be a lot easier for me if I can mix the pins?
As the top row of Teensy has MOSI1 only , SCK0 &1, MISO0 only, CS0 only.
 
You can't mix pins from different SPIs. Would it be possible to use the bottom pads? They provide all SPI2 signals.
 
arh ok thanks - I'd guessed as much - but thought I'd check rather than watch things go up in smoke.

The bottom pads would be ideal but my soldering skills are quite poor & I've never been able to master the technique of soldering onto pads.

Cheers.
 
Other alternative, if your project does not need Sdcard, can use plug in adapter to bring out io pins, and it has full Spi1, including several CS pins. I have hung an Adafruit ili9341 display off one of these. Should maybe make simple adapter for pjrc one with resistor for backlight.
 
Other alternative, if your project does not need Sdcard, can use plug in adapter to bring out io pins, and it has full Spi1, including several CS pins. I have hung an Adafruit ili9341 display off one of these. Should maybe make simple adapter for pjrc one with resistor for backlight.

this sounds promising. Are these adapters readily availble? Could you post a link to one if possible pls.

Thanks
 
I keep most of my shared stuff up on github: For example both versions of my breakouts are up in: https://github.com/KurtE/Teensy3.1-Breakout-Boards/tree/master/microsd-Adapter
Note: the zip file for the smaller 2 row is in the sub-directory. I use Diptrace for design. The files are up there.

I also shared my later 2 row version up on OSHPark, https://oshpark.com/profiles/Kurts-Robot

But if ordering from OSHPark, make sure to order with the .8mm option.

Or if you wish to do some thing quicker, you can use one of these from sparkfun: https://www.sparkfun.com/products/9419
If use one of these, will need to remember how the pin numbers mapped on this one.

Kurt
 
Status
Not open for further replies.
Back
Top