<?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のトピックKL26 as SPI Slave (DMA)</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL26-as-SPI-Slave-DMA/m-p/379092#M20110</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use KL26 as a 16-bit SPI slave device and DMA to move receive data.&lt;/P&gt;&lt;P&gt;So I need to access both SPI_DH and SPI_DL in one receive event.&lt;/P&gt;&lt;P&gt;My question is how to assign DMA Data Source address? &lt;/P&gt;&lt;P&gt;Because SPI_DH and SPI_DL has different address.&lt;/P&gt;&lt;P&gt;Is there any KL26 16-bit SPI slave example with DMA for reference?&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;Abby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Oct 2014 07:57:18 GMT</pubDate>
    <dc:creator>abby</dc:creator>
    <dc:date>2014-10-09T07:57:18Z</dc:date>
    <item>
      <title>KL26 as SPI Slave (DMA)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL26-as-SPI-Slave-DMA/m-p/379092#M20110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use KL26 as a 16-bit SPI slave device and DMA to move receive data.&lt;/P&gt;&lt;P&gt;So I need to access both SPI_DH and SPI_DL in one receive event.&lt;/P&gt;&lt;P&gt;My question is how to assign DMA Data Source address? &lt;/P&gt;&lt;P&gt;Because SPI_DH and SPI_DL has different address.&lt;/P&gt;&lt;P&gt;Is there any KL26 16-bit SPI slave example with DMA for reference?&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;Abby&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Oct 2014 07:57:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL26-as-SPI-Slave-DMA/m-p/379092#M20110</guid>
      <dc:creator>abby</dc:creator>
      <dc:date>2014-10-09T07:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: KL26 as SPI Slave (DMA)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL26-as-SPI-Slave-DMA/m-p/379093#M20111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Abby,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can config ssize 16-bit and&amp;nbsp; select DMA data transfers in 16-bit blocks .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Oct 2014 09:42:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL26-as-SPI-Slave-DMA/m-p/379093#M20111</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2014-10-10T09:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: KL26 as SPI Slave (DMA)</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL26-as-SPI-Slave-DMA/m-p/379094#M20112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abby Chen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; From the reference manual of KL26, you can use the FIFO mode FIFOMODE=1, just like the following:&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/46659iE8BABFB22109E5C0/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;&amp;nbsp;&amp;nbsp;&amp;nbsp; You can set the address of DL as the source of your DMA, the DMA will read the data from the DH:DL automatically.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Now, we don't have the sample code of KL SPI DMA, you should do it by yourself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Wish it helps you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&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>Fri, 10 Oct 2014 09:51:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL26-as-SPI-Slave-DMA/m-p/379094#M20112</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2014-10-10T09:51:53Z</dc:date>
    </item>
  </channel>
</rss>

