<?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: SPI communication b/w two FRDM-K20D50M Boards in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266335#M8640</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have also tried the code present on the help of the component selector without interrupt and with same configuration which is suggested in the help. but after executing the command for master value 8 is being displayed and for slave value 4 is being displayed. Even if i change the integer value to character still I am getting the same result. Kindly look into the matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for master&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40999i5249AD3589109831/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41002i2D17A4423C658B17/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for Slave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41003i2D657D29BAB261EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41004i2A7159EF6889E903/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Oct 2013 04:35:39 GMT</pubDate>
    <dc:creator>Amit_Kumar1</dc:creator>
    <dc:date>2013-10-11T04:35:39Z</dc:date>
    <item>
      <title>SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266330#M8635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I am having problem in transmitting and receiving any character on this FRDM-K20D50M boards. I am using Codewarrior 10.4 with processor expert. I have configured the pins according to the following configuration using processor expert. I am Transmitting and receiving data on both the boards and displaying it on UART. The board configuration is as follows.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40919iE037294F4781310A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40922i5124304A40D932EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code for master controller:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40920i260D658B8965032B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;code for slave :-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40921i49BC58E82FBC9EC9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The device is configured by processor expert and at any other file apart from this no changes is done. When connecting to the serial port in both the boards the error syntax ie &lt;STRONG&gt;ERROR requesting read operation (slave)&amp;nbsp; &lt;/STRONG&gt;for slave and when connecting to master &lt;STRONG&gt;ERROR requesting read operation (master) &lt;/STRONG&gt;is being displayed. which shows that the device is not able to read the data from SPI. Kindly look into the matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Amit Kumar&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 07:21:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266330#M8635</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-10-07T07:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266331#M8636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI silicon IPs work differently from those of the serial ports. In SPI writes and reads occur according to one CLK signal, this signal must be generated by the Master device. It's odd, but needed, you have to 'write' for 'reading', but only in the master device.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the code for the master device, after writing, you have to keep checking wheter it is busy or not before trying to read:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;WriteBlock();&lt;/LI&gt;&lt;LI&gt;while (busy()) { do something or nothing };&lt;/LI&gt;&lt;LI&gt;ReadBlock( n bytes );&lt;/LI&gt;&lt;LI&gt;call inmediately WriteBlock( same n bytes ); for generating the clock, it doesn't matter what you send.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more thing, take into account the time it takes to the slave device to be ready to return data, it must setup the SPI driver before the master calls for return data. In some cases you could use one HW handshake signal to make the master aware of data availability in the slave device (one interrupt line).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's a thread where you'll find some info about several issues with the SPI master drivers: &lt;A href="https://community.nxp.com/thread/307520"&gt;Is anyone really using PE Generated SPI driver with MQXLite? How?&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it's usefull for you.&lt;/P&gt;&lt;P&gt;--Victor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Oct 2013 08:26:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266331#M8636</guid>
      <dc:creator>VictorLorenzo</dc:creator>
      <dc:date>2013-10-07T08:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266332#M8637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have never used Kinetis SPI in 'slave' mode (nor have I used Codewarrior or PE), but Victor's general comments about SPI are very important:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every SPI transaction consists of a simultaneous TX and RX of one item (byte to word, length is set).&amp;nbsp; I would assume a slave would have to be 'preconfigured' with an item to TX, so that when the master's CS (and clock!) comes along, it is ready to send (and simultaneously receive).&amp;nbsp; You have to be ready at both the master and slave to handle one input and one output transaction per item, regardless of whether 'you need them or not'.&amp;nbsp; The Kinetis DSPI has some FIFOs that can help decouple 'service time' from line-time, but of course be aware that this further shifts the 'outgoing item sequence' from the 'incoming', for whatever you are trying to interchange.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS -- your 'IN' and 'OUT' names above look wrong, but the diagrammed interconnect looks OK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Oct 2013 19:58:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266332#M8637</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2013-10-08T19:58:10Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266333#M8638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Is there any tutorial available to configure SPI?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 02:42:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266333#M8638</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-10-10T02:42:32Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266334#M8639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Victor&lt;/P&gt;&lt;P&gt;while going through SPI_LDD help i found the following connection diagram. I am wondering whether my above connection is correct or wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jiveImage" src="https://community.nxp.com/thread/SPIConnection.png" /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40985i19BDC15F710B39D6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Oct 2013 03:52:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266334#M8639</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-10-10T03:52:02Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266335#M8640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I have also tried the code present on the help of the component selector without interrupt and with same configuration which is suggested in the help. but after executing the command for master value 8 is being displayed and for slave value 4 is being displayed. Even if i change the integer value to character still I am getting the same result. Kindly look into the matter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for master&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40999i5249AD3589109831/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41002i2D17A4423C658B17/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for Slave&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41003i2D657D29BAB261EE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;output is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41004i2A7159EF6889E903/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Oct 2013 04:35:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266335#M8640</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-10-11T04:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266336#M8641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using two TWR-K20D50M boards test SPI communication with CW V10.4 Processor Expert tool generated project, which works on my side.&lt;/P&gt;&lt;P&gt;Please check my attached example code.&lt;/P&gt;&lt;P&gt;And the SPI pins connection between two TWR-K20D50M board is below:&lt;/P&gt;&lt;P&gt;TWR-K20D50M(SPI Master)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TWR-K20D50M(SPI Slave)&lt;/P&gt;&lt;P&gt;J2-3 (PTC5&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI0_SCK)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J2-3 (PTC5&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI0_SCK)&lt;/P&gt;&lt;P&gt;J2-6 (PTC0&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI0_PCS4)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J1-2 (PTC4&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI0_PCS0/SS)&lt;/P&gt;&lt;P&gt;J2-7 (PTC6&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI0_SOUT)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J7-1 (PTC7&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI0_SIN)&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;J7-1 (PTC7&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI0_SIN)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J2-7 (PTC6&amp;nbsp;&amp;nbsp;&amp;nbsp; SPI0_SOUT) &lt;/P&gt;&lt;P&gt;J27-2 (GND)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; J27-2 (GND)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SPI Connection.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41066i92FFB5EB89CC6133/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI Connection.jpg" alt="SPI Connection.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 03:09:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266336#M8641</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-10-16T03:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266337#M8642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot for your reply it was really helpful. although the problem is not completely resolved but some progress is there. Actually I am having&lt;STRONG&gt; two FRDM-K20D50M&lt;/STRONG&gt; and &lt;STRONG&gt;one TWR-K20D50M&lt;/STRONG&gt; board so I tried your solution. The result was that when I connected two FRDM boards, No output was displayed. instead of data only spaces was displayed. And when I connected 1 FRDM and 1 TWR board board in different configurations, I observed that data was being transmitted from the TWR to FRDM board only. the reception was not being done through the TWR board.&lt;/P&gt;&lt;P&gt;I did all the connections in &lt;STRONG&gt;PTC &lt;/STRONG&gt;when I tried to configure &lt;STRONG&gt;PTD &lt;/STRONG&gt;in FRDM board as a master and TWR board as a slave then instead of getting '5678' I was receiving '3sdn'. I think the problem is with the transmission of data from the FRDM board. In the below figure , All the communication was supposed to be bidirectional but I have indicated the active flow of data which I received. Kindly look into the matter.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/38380iA3E5D2E9BC166419/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 09:45:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266337#M8642</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-10-16T09:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266338#M8643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I tried one more thing, I removed all the connections and configured TWR board as MASTER and shorted the SPIO_SIN----- SPIO_SOUT. on the same code, I received the data and was displayed on UART. Same thing I did with the FRDM board, and I received empty spaces.&lt;/P&gt;&lt;P&gt;So I think there is something wrong with the FRDM board. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2013 10:32:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266338#M8643</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-10-16T10:32:10Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266339#M8644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please notice that TWR-K20D50M use 12MHz crystal with system OSC, while FRDM-K20D50M use 8MHz crystal with system OSC. Please check system clock configuration, if using the correct frequency setting.&lt;/P&gt;&lt;P&gt;And you can debug the code to check if SPI related code was executed.&lt;/P&gt;&lt;P&gt;Wish it hleps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 03:09:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266339#M8644</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-10-17T03:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266340#M8645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi hui&lt;/P&gt;&lt;P&gt;The below figure shows the clock setting in your Code which you posted&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40330i33CBC7F6346902F8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the below screenshot shows the clock settings for the code which I am dumping in the FRDM board&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/40464i21A17793057DE387/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did u meant external xtal ? but in both the boards the external crystal is of 8Mhz. connected on XTAL0 and EXTAL0 pins.&lt;/P&gt;&lt;P&gt;I am attaching my code also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 03:45:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266340#M8645</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-10-17T03:45:32Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266341#M8646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I made a mistake, both boards use the same frequency crystal.&lt;/P&gt;&lt;P&gt;From your feedback, you can use TWR-K20D50M board works as SPI slave or Master, that board works as expected.&lt;/P&gt;&lt;P&gt;While, you could not run the same code with FRDM-K20D50M board as SPI master or slave?&lt;/P&gt;&lt;P&gt;What I want to know is if you could use my attached code with FRDM-K20D50M board works as SPI master? Could you measure SPI data output data signal with SPI0_SOUT of FRDM-K20D50M PTC6 pin.&lt;/P&gt;&lt;P&gt;For I do not have FRDM-K20D50M board on hand, could you let me know the chip info mounted on that board? PK20DX128VLH5? If possible, could you provide the full print info on chip surface?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B.R.&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 06:09:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266341#M8646</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-10-17T06:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266342#M8647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello HUI&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code is working fine with TWR board in both the modes. I tried it with the FRDM board and in that I figured out that PT6 is not transmitting any data. in FRDM board I just changed the Serial communication pins ie PTB16, PTB17. it was displaying all the characters but in place of data it was showing empty spaces in the braces '&amp;nbsp; ' . I have tried shorting the PT6 and PT7 pins in master mode in both the boards independently, there I figured that the TWR is displaying the data but the FRDM is displaying empty space. in the frdm board the part no mention is MK20DX128VLH5 1N86B CTAB1225GB, and the other FRDM board has MK20DX128VLH5 1N86B CTAE1232AK. I also connected CRO probe to PTC6 in FRDM board, and didn't find any fluctuations when sending the data out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 11:11:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266342#M8647</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-10-17T11:11:54Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266343#M8648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I check FRDM-K20D50M board schematics and find the PTC6 pin has another connection with MMA8451Q, please remove the jumper on J17.&lt;/P&gt;&lt;P&gt;I don't find any record about FRDM-K20D50M board mounted chip with SPI errata info, which should works as TWR-K20D50M board.&lt;/P&gt;&lt;P&gt;I check your connection is using SPI0_PCS0, please make sure in processor expert project, you set use the correct chip selection pin.&lt;/P&gt;&lt;P&gt;PTC6 (SPI0_SOUT) pin needs to connect with another board's PTC7 (SPI0_SIN) pin.&lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B.R.&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 02:07:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266343#M8648</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-10-21T02:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266344#M8649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above solution worked actually the problem was that &lt;STRONG&gt;J17 &lt;/STRONG&gt;Jumper which was connected with accelerometer. That was creating the problem. I disconnected the jumper and the transmission and reception was done successfully. Now by disconnecting the J17, both the FRDM board is working fine. I think you should write this point somewhere in the user manual so that others can be benefited too. Thanks a lot for your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Amit Kumar&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 03:40:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266344#M8649</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-10-21T03:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266345#M8650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the feedback. I will check with document team and add a note about FRDM-K20D50M board SPI application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards,&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Oct 2013 07:39:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266345#M8650</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2013-10-21T07:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: SPI communication b/w two FRDM-K20D50M Boards</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266346#M8651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;The best alternative is to use PTD instead of PTC using pin multiplexing. In this way you wont have to disconnect the J17 jumper and accelerometer will also work fine &lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jiveImage" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41696i2B58920A363D29E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FRDM board pinouts&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41632i8287103DAA64C64E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Nov 2013 04:28:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-communication-b-w-two-FRDM-K20D50M-Boards/m-p/266346#M8651</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2013-11-14T04:28:51Z</dc:date>
    </item>
  </channel>
</rss>

