<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: TWR-K20D50M as SPI Slave over TWRPI? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K20D50M-as-SPI-Slave-over-TWRPI/m-p/353456#M17563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug Hecker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTD0 is not connect with J3 now, actually, you can choose PTC4_UART_TX instead of PTD0, the function of pin PTC4&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; About how to configure it as the slave, you should follow these steps:&lt;/P&gt;&lt;P&gt;1. Configure the SPI pins function in the PORT register. choose the right pin mux.&lt;/P&gt;&lt;P&gt;2. Enable the SPI clock gate in SIM register : set SIM_SCGC6[SPI0]&lt;/P&gt;&lt;P&gt;3. Configure your K20 as SPI slave, clear SPIx_MCR[MSTR]&lt;/P&gt;&lt;P&gt;4 . configure the slave Clock Polarity&amp;nbsp; and Clock Phase in register SPIx_CTAR_SLAVE the same with your master.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have problem, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Feb 2015 12:29:11 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2015-02-09T12:29:11Z</dc:date>
    <item>
      <title>TWR-K20D50M as SPI Slave over TWRPI?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K20D50M-as-SPI-Slave-over-TWRPI/m-p/353455#M17562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Is the TWRPI connector J3 pin 11 on the &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;TWR-K20D50M suppose to be PTD0/DSPI0_PCS0, and not connected to pin J3-20 (PTD4/DSPI0_PCS1)?&amp;nbsp; Without access to DSPI0_PCS0 on the TWRPI connector, the TWR-K20D50M can't be configured as an SPI Slave can it?&amp;nbsp; If I have a TWRPI device that must be the SPI Master, please share (if there's a way) how I can configure the TWR-K20D50M to be an SPI Slave (using SPI over the TWRPI of course).&amp;nbsp; The hope was to use J3-20 (or other GPIO) as an SPI interrupt to let the SPI Master know the TWR-K20D50M (in SPI Slave mode) had data to send, and the Master then use PCS0/SS as the Slave Select.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 18:35:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K20D50M-as-SPI-Slave-over-TWRPI/m-p/353455#M17562</guid>
      <dc:creator>dhecker</dc:creator>
      <dc:date>2014-08-12T18:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: TWR-K20D50M as SPI Slave over TWRPI?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K20D50M-as-SPI-Slave-over-TWRPI/m-p/353456#M17563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug Hecker,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTD0 is not connect with J3 now, actually, you can choose PTC4_UART_TX instead of PTD0, the function of pin PTC4&amp;nbsp; 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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; About how to configure it as the slave, you should follow these steps:&lt;/P&gt;&lt;P&gt;1. Configure the SPI pins function in the PORT register. choose the right pin mux.&lt;/P&gt;&lt;P&gt;2. Enable the SPI clock gate in SIM register : set SIM_SCGC6[SPI0]&lt;/P&gt;&lt;P&gt;3. Configure your K20 as SPI slave, clear SPIx_MCR[MSTR]&lt;/P&gt;&lt;P&gt;4 . configure the slave Clock Polarity&amp;nbsp; and Clock Phase in register SPIx_CTAR_SLAVE the same with your master.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have problem, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Feb 2015 12:29:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/TWR-K20D50M-as-SPI-Slave-over-TWRPI/m-p/353456#M17563</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2015-02-09T12:29:11Z</dc:date>
    </item>
  </channel>
</rss>

