<?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>LPC MicrocontrollersのトピックLPC54S018M SPI IRQ handler</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018M-SPI-IRQ-handler/m-p/1236822#M44048</link>
    <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;page 447 of the manual reads that TXSSELx is asserted when bit is set to 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="belmontbob59_0-1614284022826.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138161i6444E6CAA29ECE9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="belmontbob59_0-1614284022826.png" alt="belmontbob59_0-1614284022826.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;isn't there a bug in the SDK's fsl_spi.c/irq handler ? see below&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="belmontbob59_1-1614284168264.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138162i162536FCA31A0DFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="belmontbob59_1-1614284168264.png" alt="belmontbob59_1-1614284168264.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Shouldn't the line in blue be&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;tx_ctrl |= ((uint32_t)SPI_DEASSERT_ALL &amp;amp; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="6"&gt;~&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="courier new,courier"&gt;(uint32_t)SPI_ASSERTNUM_SSEL(handle-&amp;gt;sselNum));&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;This is how the&amp;nbsp; code is written&amp;nbsp;SPI_WriteData() and&amp;nbsp;SPI_MasterTransferBlocking(). See below snapshots&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="belmontbob59_4-1614284425910.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138165i2D7C696AA374E584/image-size/medium?v=v2&amp;amp;px=400" role="button" title="belmontbob59_4-1614284425910.png" alt="belmontbob59_4-1614284425910.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="belmontbob59_3-1614284403775.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138164iDD9DF588EC8104DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="belmontbob59_3-1614284403775.png" alt="belmontbob59_3-1614284403775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2021 20:21:21 GMT</pubDate>
    <dc:creator>belmontbob59</dc:creator>
    <dc:date>2021-02-25T20:21:21Z</dc:date>
    <item>
      <title>LPC54S018M SPI IRQ handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018M-SPI-IRQ-handler/m-p/1236822#M44048</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;page 447 of the manual reads that TXSSELx is asserted when bit is set to 0&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="belmontbob59_0-1614284022826.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138161i6444E6CAA29ECE9D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="belmontbob59_0-1614284022826.png" alt="belmontbob59_0-1614284022826.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;isn't there a bug in the SDK's fsl_spi.c/irq handler ? see below&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="belmontbob59_1-1614284168264.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138162i162536FCA31A0DFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="belmontbob59_1-1614284168264.png" alt="belmontbob59_1-1614284168264.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Shouldn't the line in blue be&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;tx_ctrl |= ((uint32_t)SPI_DEASSERT_ALL &amp;amp; &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT size="6"&gt;~&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="courier new,courier"&gt;(uint32_t)SPI_ASSERTNUM_SSEL(handle-&amp;gt;sselNum));&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;This is how the&amp;nbsp; code is written&amp;nbsp;SPI_WriteData() and&amp;nbsp;SPI_MasterTransferBlocking(). See below snapshots&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="belmontbob59_4-1614284425910.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138165i2D7C696AA374E584/image-size/medium?v=v2&amp;amp;px=400" role="button" title="belmontbob59_4-1614284425910.png" alt="belmontbob59_4-1614284425910.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="belmontbob59_3-1614284403775.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/138164iDD9DF588EC8104DA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="belmontbob59_3-1614284403775.png" alt="belmontbob59_3-1614284403775.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 20:21:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018M-SPI-IRQ-handler/m-p/1236822#M44048</guid>
      <dc:creator>belmontbob59</dc:creator>
      <dc:date>2021-02-25T20:21:21Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54S018M SPI IRQ handler</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018M-SPI-IRQ-handler/m-p/1236853#M44050</link>
      <description>&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Please ignore this thread; I overlooked the code; I misread SPI_ASSERTNUM_SSEL in the IRQ as&amp;nbsp;SPI_DEASSERTNUM_SSEL. There is no issue.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2021 21:54:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54S018M-SPI-IRQ-handler/m-p/1236853#M44050</guid>
      <dc:creator>belmontbob59</dc:creator>
      <dc:date>2021-02-25T21:54:21Z</dc:date>
    </item>
  </channel>
</rss>

