<?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: &amp;quot;SPI_POPR&amp;quot; always 0 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343551#M16668</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santiago,&lt;/P&gt;&lt;P&gt;I use the older RM Rev.6.Nov 2011 .&amp;nbsp; OK , I use the new one .&lt;/P&gt;&lt;P&gt;Now ,My projec can work normal refer to your suggestion, thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While ,I&amp;nbsp; still have some confused about the SCH of TWR-K60D100M ,&amp;nbsp; for example ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="44.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47028iE8E266423FFA1943/image-size/large?v=v2&amp;amp;px=999" role="button" title="44.png" alt="44.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the pin PTD13 is SPI2 MOSI ,it is mean&amp;nbsp; if SPI2 is master , PTD13 is out pin , if&amp;nbsp; slave , ptd13 is in&amp;nbsp; .&amp;nbsp; while from the sch,&amp;nbsp; this pin only can used to SOUT&amp;nbsp; , is this mean&amp;nbsp; spi2 only can used to master ?&lt;/P&gt;&lt;P&gt;Or I misunderstand somothing?&amp;nbsp; please tell me&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 24 Oct 2014 06:33:15 GMT</pubDate>
    <dc:creator>Fan_xy</dc:creator>
    <dc:date>2014-10-24T06:33:15Z</dc:date>
    <item>
      <title>"SPI_POPR" always 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343547#M16664</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 use TWR-K60D100M&amp;nbsp;&amp;nbsp; spi0 is master , spi1 is slave ,&amp;nbsp; sip0 send "3" to spi1 ,&amp;nbsp; In the scope I can see the correct signal and clk singnal .&lt;/P&gt;&lt;P&gt;And I also can see the transfer count register " SPI1_TCR" work increase ,&lt;/P&gt;&lt;P&gt;And in the spi1 , I can see the spi1_sr_tcf&amp;nbsp; setting to 1, also spi1 can enter the receiving interrupt .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While in the FIFO register "SPI1_POPR" is always 0.&amp;nbsp; I don.t know why ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46982i9E1908BC7E7815E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2.png" alt="2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46983i71D76A7AF2233142/image-size/large?v=v2&amp;amp;px=999" role="button" title="3.png" alt="3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46984i4520A0B423FC7D40/image-size/large?v=v2&amp;amp;px=999" role="button" title="4.png" alt="4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you !&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 10:53:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343547#M16664</guid>
      <dc:creator>Fan_xy</dc:creator>
      <dc:date>2014-10-22T10:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: "SPI_POPR" always 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343548#M16665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you check the pin muxing for the pin you are using for SPI1 SIN? Check the PORTx_PCRn register to make sure that the PORT_PCR_MUX bit field is configured properly (check Reference Manual Chapter 10.3.1 for pin muxing information)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also please check that you have connected the Master SIN, SOUT pins to the correct SIN,SOUT pins in the slave according with the diagram on reference manual chapter 50.4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="SPI diagram.PNG.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46968i3B5A86DB7929C8D3/image-size/large?v=v2&amp;amp;px=999" role="button" title="SPI diagram.PNG.png" alt="SPI diagram.PNG.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Oct 2014 16:42:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343548#M16665</guid>
      <dc:creator>santiago_lopez</dc:creator>
      <dc:date>2014-10-22T16:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: "SPI_POPR" always 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343549#M16666</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Saludos&lt;/P&gt;&lt;P&gt;Thank ! You are right , I the PTE3 is the SPI1_IN.&amp;nbsp;&amp;nbsp; I config the SPI pin refer to the board sch , I haven't see the chapter 50.4 .&lt;/P&gt;&lt;P&gt;So,&amp;nbsp; now I confused about the reference manual 50.4 and the SCH of TWR-K60D10M , they are inconsistent in my understanding . pleas help me again , thank you !&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46969i7478EDFAB29F6057/image-size/large?v=v2&amp;amp;px=999" role="button" title="11.png" alt="11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="22.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/46970i29EC823A5EE03543/image-size/large?v=v2&amp;amp;px=999" role="button" title="22.png" alt="22.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 01:30:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343549#M16666</guid>
      <dc:creator>Fan_xy</dc:creator>
      <dc:date>2014-10-23T01:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: "SPI_POPR" always 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343550#M16667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which Reference Manual are you consulting? The TWR-K60D100M uses the part number MK60DN512VMD100. The Reference Manual for this microcontroller can be found in this link: &lt;A href="http://cache.freescale.com/files/32bit/doc/ref_manual/K60P144M100SF2V2RM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf" title="http://cache.freescale.com/files/32bit/doc/ref_manual/K60P144M100SF2V2RM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;http://cache.freescale.com/files/32bit/doc/ref_manual/K60P144M100SF2V2RM.pdf?fasp=1&amp;amp;WT_TYPE=Reference%20Manuals&amp;amp;WT_VENDO…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here, in chapter 10 you can see that the SPI pins can be configured to be either SIN or SOUT depending on your needs&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="spi_pins_k60.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47015iAD379155BD7EF0EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="spi_pins_k60.png" alt="spi_pins_k60.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Take a look at it. Configure your pin muxing to Alt 2 or 7 depending on your connections and let us know how it went.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santiago Lopez&lt;/P&gt;&lt;P&gt;Applications Engineer -- Medical Segment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 20:43:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343550#M16667</guid>
      <dc:creator>santiago_lopez</dc:creator>
      <dc:date>2014-10-23T20:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: "SPI_POPR" always 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343551#M16668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Santiago,&lt;/P&gt;&lt;P&gt;I use the older RM Rev.6.Nov 2011 .&amp;nbsp; OK , I use the new one .&lt;/P&gt;&lt;P&gt;Now ,My projec can work normal refer to your suggestion, thank you !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While ,I&amp;nbsp; still have some confused about the SCH of TWR-K60D100M ,&amp;nbsp; for example ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="44.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47028iE8E266423FFA1943/image-size/large?v=v2&amp;amp;px=999" role="button" title="44.png" alt="44.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the pin PTD13 is SPI2 MOSI ,it is mean&amp;nbsp; if SPI2 is master , PTD13 is out pin , if&amp;nbsp; slave , ptd13 is in&amp;nbsp; .&amp;nbsp; while from the sch,&amp;nbsp; this pin only can used to SOUT&amp;nbsp; , is this mean&amp;nbsp; spi2 only can used to master ?&lt;/P&gt;&lt;P&gt;Or I misunderstand somothing?&amp;nbsp; please tell me&amp;nbsp; .&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 06:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343551#M16668</guid>
      <dc:creator>Fan_xy</dc:creator>
      <dc:date>2014-10-24T06:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Re: "SPI_POPR" always 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343552#M16669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linda,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As my colleague Santiago mentioned you need to check always you are connecting the correct SPIx_SIN (MISO) pin on the master side to the SPIx_SOUT (MOSI) pin on the slave side and also the SPIx_SOUT (MOSI) pin on the master side to the SPIx_SIN (MISO) pin on the slave side. In the image below you can see a configuration example that show SPI2 as master and as slave.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="spi.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47050iC209388A5321DDC6/image-size/large?v=v2&amp;amp;px=999" role="button" title="spi.png" alt="spi.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;I hope this information can help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Adrian&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Note: If this post answers your question, please click the Correct Answer button. It would be nice!&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Oct 2014 23:19:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343552#M16669</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2014-10-24T23:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: "SPI_POPR" always 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343553#M16670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know your meaning , I know the meaning of MISO&amp;nbsp; and the MOSI , I also know the&amp;nbsp; image you give me .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My qustion is the&amp;nbsp; SCH of TWR-K60D100M (from freescale ) .&amp;nbsp; According to the truth , SPI 2 can as MASTER&amp;nbsp; ,also can as slave , while from the SCH,&amp;nbsp; whether said&amp;nbsp; the spi2 only can as master on the TWR-K60D100M board ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 10:38:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343553#M16670</guid>
      <dc:creator>Fan_xy</dc:creator>
      <dc:date>2014-10-27T10:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Re: "SPI_POPR" always 0</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343554#M16671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I misunderstood your question. I see where the confusion is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The SPI2 can be used as master or as slave as I indicated in my last response. But, when a device is connected on the TWRPI connector the PTD13 is the SPI2_MOSI that is why you can see in the label SPI2_MOSI. The label there is for the TWRPI connection that you can see in the schematic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="twrpi.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/47092iAD788413C8FE9DC2/image-size/large?v=v2&amp;amp;px=999" role="button" title="twrpi.jpg" alt="twrpi.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In conclusion if you connect a Slave device on the TWRPI connector the SPI2 just can be MASTER but if you are using the PTA13 pin in your own hardware connections SPI2 can operate as Salve or as a Master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt; font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: Arial, sans-serif;"&gt;I hope this information can help you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Regards,&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Adrian&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;Note: If this post answers your question, please click the Correct Answer button. It would be nice!&lt;/P&gt;&lt;P style="font-weight: inherit; font-style: inherit; font-size: 12.7273px; font-family: inherit; color: #3d3d3d;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 21:30:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/quot-SPI-POPR-quot-always-0/m-p/343554#M16671</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2014-10-27T21:30:41Z</dc:date>
    </item>
  </channel>
</rss>

