Hi Doug Hecker,
PTD0 is not connect with J3 now, actually, you can choose PTC4_UART_TX instead of PTD0, the function of pin PTC4 is PTC4/LLWU_P8/SPI0_PCS0/UART1_TX/FTM0_CH3/CMP1_OUT, it also have SPI0_PCS0 function. This pin is connect with J1 pin2 . You can use one wire connect with the CS of your SPI master chip.
About how to configure it as the slave, you should follow these steps:
1. Configure the SPI pins function in the PORT register. choose the right pin mux.
2. Enable the SPI clock gate in SIM register : set SIM_SCGC6[SPI0]
3. Configure your K20 as SPI slave, clear SPIx_MCR[MSTR]
4 . configure the slave Clock Polarity and Clock Phase in register SPIx_CTAR_SLAVE the same with your master.
Wish it helps you!
If you still have problem, please contact me!
Have a great day,
Jingjing
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------