<?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のトピックInterrupt when transfer complete on SPI Slave</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Interrupt-when-transfer-complete-on-SPI-Slave/m-p/651612#M39682</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 am using KL27 SPI Slave. I am receiving messages of unknown length and I was hoping to get an interrupt when the SS pin is deasserted, or in other words when the master is done sending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the DMA and Non-DMA API will not give me a callback or interrupt when the SS pin is high and the callback only gets called when the buffer is completely full, even if it takes a few SPI transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The KL27 reference manual 35.5.5.2 SPI Receive by DMA says:&lt;/P&gt;&lt;P&gt;"After that, RX DMA DONE is asserted to clear SPRF automatically. This process repeats until all data to be received (the number is decided by configuration register[s] of the DMA controller) is received &lt;STRONG&gt;or no receive DMA request is generated again because the SPI transmission is finished&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any special configuration for the client or for the SS pin to get this functionality? I want RX DMA DONE to be asserted &lt;STRONG&gt;before RX&amp;nbsp;buffer is full&lt;/STRONG&gt; - &lt;STRONG&gt;if master is done with the SPI transmission&lt;/STRONG&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>Sat, 28 Jan 2017 03:12:55 GMT</pubDate>
    <dc:creator>shlomozippel</dc:creator>
    <dc:date>2017-01-28T03:12:55Z</dc:date>
    <item>
      <title>Interrupt when transfer complete on SPI Slave</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Interrupt-when-transfer-complete-on-SPI-Slave/m-p/651612#M39682</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 am using KL27 SPI Slave. I am receiving messages of unknown length and I was hoping to get an interrupt when the SS pin is deasserted, or in other words when the master is done sending.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both the DMA and Non-DMA API will not give me a callback or interrupt when the SS pin is high and the callback only gets called when the buffer is completely full, even if it takes a few SPI transactions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The KL27 reference manual 35.5.5.2 SPI Receive by DMA says:&lt;/P&gt;&lt;P&gt;"After that, RX DMA DONE is asserted to clear SPRF automatically. This process repeats until all data to be received (the number is decided by configuration register[s] of the DMA controller) is received &lt;STRONG&gt;or no receive DMA request is generated again because the SPI transmission is finished&lt;/STRONG&gt;."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any special configuration for the client or for the SS pin to get this functionality? I want RX DMA DONE to be asserted &lt;STRONG&gt;before RX&amp;nbsp;buffer is full&lt;/STRONG&gt; - &lt;STRONG&gt;if master is done with the SPI transmission&lt;/STRONG&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>Sat, 28 Jan 2017 03:12:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Interrupt-when-transfer-complete-on-SPI-Slave/m-p/651612#M39682</guid>
      <dc:creator>shlomozippel</dc:creator>
      <dc:date>2017-01-28T03:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Interrupt when transfer complete on SPI Slave</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Interrupt-when-transfer-complete-on-SPI-Slave/m-p/651613#M39683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I realized I can get a pin change interrupt on the SS pin transition to HIGH and then manually abort the DMA transfer. Works great.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 28 Jan 2017 23:52:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Interrupt-when-transfer-complete-on-SPI-Slave/m-p/651613#M39683</guid>
      <dc:creator>shlomozippel</dc:creator>
      <dc:date>2017-01-28T23:52:45Z</dc:date>
    </item>
  </channel>
</rss>

