Greetings!
I've been learning about SPI in slave mode for the Teensy 3.6. I've been making some progress with Tonton81's libraries (TSPISlave and SPI_MSTransfer) and there's some discussion about this issue here https://forum.pjrc.com/threads/50008-Project-SPI_MSTransfer?p=234115&viewfull=1#post234115
Anyway, this resulted in me digging into the MK66 reference manual enough to convince myself that the particular MK66 pins broken out to the Teensy 3.6 SPI data pins (Teensy pins 0,1,11,12,44,45,51,52) can not be reconfigured by the Port Control Block to operate in the appropriate data flow direction for SPI Slave mode if these pin names were to make sense.
E.g. Teensy3.6 pin 0 is MOSI0, "Master Out Slave In" so this pin would be for data to flow into the port in slave mode. But, that can't be configured, so this pin is really Master Out Slave Out. "MOSO" would be confusing and ugly, but SDO "Serial Data Out" does make sense.
Please correct me if I'm wrong! The places to look in the reference manual are the table in section 11.3.1 and figure 57-1 is helpful too.
Cheers,
Doug
I've been learning about SPI in slave mode for the Teensy 3.6. I've been making some progress with Tonton81's libraries (TSPISlave and SPI_MSTransfer) and there's some discussion about this issue here https://forum.pjrc.com/threads/50008-Project-SPI_MSTransfer?p=234115&viewfull=1#post234115
Anyway, this resulted in me digging into the MK66 reference manual enough to convince myself that the particular MK66 pins broken out to the Teensy 3.6 SPI data pins (Teensy pins 0,1,11,12,44,45,51,52) can not be reconfigured by the Port Control Block to operate in the appropriate data flow direction for SPI Slave mode if these pin names were to make sense.
E.g. Teensy3.6 pin 0 is MOSI0, "Master Out Slave In" so this pin would be for data to flow into the port in slave mode. But, that can't be configured, so this pin is really Master Out Slave Out. "MOSO" would be confusing and ugly, but SDO "Serial Data Out" does make sense.
Please correct me if I'm wrong! The places to look in the reference manual are the table in section 11.3.1 and figure 57-1 is helpful too.
Cheers,
Doug