<?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 read in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-read/m-p/415559#M23649</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;Ok , the suggestion is qualified. The example outlines it is necessary to read and clear the flag. the flag will not definitely clear until everything is sucked out.&lt;/P&gt;&lt;P&gt;I think a short suggestion like this could be helpful, we work stressed for delivering results, not always we have time to read carefully the datasheet or test in a good order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 05:58:07 GMT</pubDate>
    <dc:creator>pietrodicastri</dc:creator>
    <dc:date>2015-06-24T05:58:07Z</dc:date>
    <item>
      <title>SPI read</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-read/m-p/415557#M23647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Good morning&lt;/P&gt;&lt;P&gt;I use the SPI0, without any interrupt, I have this effect. &lt;/P&gt;&lt;P&gt;It will never go out of the while loop, even after a clear.&lt;/P&gt;&lt;P&gt;Is there an explanation ????&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DSPI_HAL_ClearStatusFlag( baseAddr, kDspiRxFifoDrainRequest );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while( DSPI_HAL_GetStatusFlag( baseAddr, kDspiRxFifoDrainRequest ) )&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint32_t b = DSPI_HAL_ReadData( baseAddr );&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 14:18:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-read/m-p/415557#M23647</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2015-06-19T14:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: SPI read</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-read/m-p/415558#M23648</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;I recommend you to have a look at the examples provided in the KSDK folder. In the path &lt;STRONG&gt;&lt;EM&gt;C:\Freescale\KSDK_1.2.0\examples\frdmk64f\driver_examples\dspi\dspi_polling\master&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;you will find an example for the SPI usage.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Adrian Sanchez Cano&lt;BR /&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>Fri, 19 Jun 2015 15:04:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-read/m-p/415558#M23648</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2015-06-19T15:04:51Z</dc:date>
    </item>
    <item>
      <title>Re: SPI read</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-read/m-p/415559#M23649</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;Ok , the suggestion is qualified. The example outlines it is necessary to read and clear the flag. the flag will not definitely clear until everything is sucked out.&lt;/P&gt;&lt;P&gt;I think a short suggestion like this could be helpful, we work stressed for delivering results, not always we have time to read carefully the datasheet or test in a good order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pietro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 05:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-read/m-p/415559#M23649</guid>
      <dc:creator>pietrodicastri</dc:creator>
      <dc:date>2015-06-24T05:58:07Z</dc:date>
    </item>
  </channel>
</rss>

