<?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>Kinetis Microcontrollers中的主题 Re: K22F DSPI Success from PEx</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342873#M16623</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tharon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beware that SPI0 and SPI1 are not the same in the K22.&lt;/P&gt;&lt;P&gt;SPI0 has 4 deep FIFO and so is compatible with DSPI&lt;/P&gt;&lt;P&gt;SPI1 has 1 deep FIFO and so requires different handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use SPI0 there shouldn't be any difficulties but possibly the automated tools don't know the SPI1 limitation yet (?) SPI is however very simple so there is little point in not doing it yourself with a couple of lines of code.&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;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;K22: &lt;A href="http://www.utasker.com/kinetis/FRDM-K22F.html" title="http://www.utasker.com/kinetis/FRDM-K22F.html"&gt;µTasker Kinetis FRDM-K22F support&lt;/A&gt; / &lt;A href="http://www.utasker.com/kinetis/TWR-K22F120M.html" title="http://www.utasker.com/kinetis/TWR-K22F120M.html"&gt;µTasker Kinetis TWR-K22F120M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2015 17:22:54 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2015-03-03T17:22:54Z</dc:date>
    <item>
      <title>K22F DSPI Success from PEx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342871#M16621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some "sort of" working code for the K22F generated from PEx. There is an unusually LONG gap between byte transmissions, even though I add a very short delay to allow the transmission to go in the event of a non-blocking SPI transfer, or even if I just call back-to-back blocking SPI transfers. I noticed that the API has calls to set up various timing parameters that I don't see in PEx, which makes we wonder if some hand manipulation is necessary.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone had success with the DSPI driver with the K22F from PEx? Is it possible that it is not fully supported? Should I just set everything up by hand?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If anyone could point to some good, working example code, either PEx or non-PEx, it would be greatly appreciated. I am terribly behind on my progress and in trouble at this point. My biggest problem is time and other competing projects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Feb 2015 04:21:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342871#M16621</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-02-27T04:21:22Z</dc:date>
    </item>
    <item>
      <title>Re: K22F DSPI Success from PEx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342872#M16622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bump? Help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 16:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342872#M16622</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-03-03T16:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: K22F DSPI Success from PEx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342873#M16623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tharon&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Beware that SPI0 and SPI1 are not the same in the K22.&lt;/P&gt;&lt;P&gt;SPI0 has 4 deep FIFO and so is compatible with DSPI&lt;/P&gt;&lt;P&gt;SPI1 has 1 deep FIFO and so requires different handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use SPI0 there shouldn't be any difficulties but possibly the automated tools don't know the SPI1 limitation yet (?) SPI is however very simple so there is little point in not doing it yourself with a couple of lines of code.&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;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kinetis: &lt;A href="http://www.utasker.com/kinetis.html" title="http://www.utasker.com/kinetis.html"&gt;µTasker Kinetis support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;K22: &lt;A href="http://www.utasker.com/kinetis/FRDM-K22F.html" title="http://www.utasker.com/kinetis/FRDM-K22F.html"&gt;µTasker Kinetis FRDM-K22F support&lt;/A&gt; / &lt;A href="http://www.utasker.com/kinetis/TWR-K22F120M.html" title="http://www.utasker.com/kinetis/TWR-K22F120M.html"&gt;µTasker Kinetis TWR-K22F120M support&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;For the complete "out-of-the-box" Kinetis experience and faster time to market&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2015 17:22:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342873#M16623</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2015-03-03T17:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: K22F DSPI Success from PEx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342874#M16624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tharon Hall:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using &lt;STRONG&gt;SPIMaster_LDD&lt;/STRONG&gt; (classic PEx) or &lt;STRONG&gt;fsl_dspi&lt;/STRONG&gt; (KSDK) component?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some helpful examples and discussions in the community for both cases:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/307520"&gt;Is anyone really using PE Generated SPI driver with MQXLite? How?&lt;/A&gt; &amp;lt;- Discussion about PEx SPI driver code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/340440"&gt;SPI with FRDM K22F&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;- Example SPI PEx project provided by colleague Li Yong&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-103944"&gt;KSDK SPI Master-Slave with FRDM-K64F&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;- SPI Master - Slave with KSDK and KDS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 16:57:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342874#M16624</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-03-04T16:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: K22F DSPI Success from PEx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342875#M16625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tharon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a post with a KSDK SPI example.  It does not use PEx, but you can use it as a reference for the KSDK SPI drivers.  PEx uses the same KSDK drivers with the fsl_dspi component.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.freescale.com/docs/DOC-103944?et=watches.email.document" target="test_blank"&gt;https://community.freescale.com/docs/DOC-103944?et=watches.email.document&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Mar 2015 23:29:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342875#M16625</guid>
      <dc:creator>dereksnell</dc:creator>
      <dc:date>2015-03-04T23:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: K22F DSPI Success from PEx</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342876#M16626</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so after much hair pulling, I was able to discover the source of the issue. I am not quite sure why it did this, but the SDK SPI was reconfiguring the SPI bus with every SPI transfer, and this evidently created a rather long delay. I made my own local copy of the code and made sure it was only done on the first transfer and things are now humming along.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try and post more details as I have a chance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2015 00:28:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22F-DSPI-Success-from-PEx/m-p/342876#M16626</guid>
      <dc:creator>tharonhall</dc:creator>
      <dc:date>2015-03-07T00:28:37Z</dc:date>
    </item>
  </channel>
</rss>

