<?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 K27 SPI Interrupt Mode Chip Select in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K27-SPI-Interrupt-Mode-Chip-Select/m-p/789366#M48047</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a K27 based board, and i am attempting to use interrupt based SPI transfers. I have got chip select set for PCS0, and the controller is the master.&lt;/P&gt;&lt;P&gt;cmdData.isPcsContinuous = true;&lt;BR /&gt; cmdData.whichCtar = kDSPI_MasterCtar0;&lt;BR /&gt; cmdData.whichPcs = MASTER_PCS;&lt;BR /&gt; cmdData.isEndOfQueue = false;&lt;BR /&gt; cmdData.clearTransferCount = false;&lt;/P&gt;&lt;P&gt;DSPI_ClearStatusFlags(SPI, kDSPI_AllStatusFlag);&lt;BR /&gt; DSPI_EnableInterrupts(SPI, kDSPI_RxFifoDrainRequestInterruptEnable|kDSPI_TxFifoFillRequestInterruptEnable);&lt;/P&gt;&lt;P&gt;DSPI_StartTransfer(SPI);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip select is not being pulled down when i attempt to use interrupt based transfers. In blocking mode, transactions are good - chip select is pulled down, Serial In and Serial Out can see data, and slave responds as expected. However when i attempt interrupt mode, Chip Select does assert at all - it just stays high. I followed the K28 example - would appreciate any pointers on what i am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Jun 2018 00:03:50 GMT</pubDate>
    <dc:creator>santosh1</dc:creator>
    <dc:date>2018-06-17T00:03:50Z</dc:date>
    <item>
      <title>K27 SPI Interrupt Mode Chip Select</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K27-SPI-Interrupt-Mode-Chip-Select/m-p/789366#M48047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a K27 based board, and i am attempting to use interrupt based SPI transfers. I have got chip select set for PCS0, and the controller is the master.&lt;/P&gt;&lt;P&gt;cmdData.isPcsContinuous = true;&lt;BR /&gt; cmdData.whichCtar = kDSPI_MasterCtar0;&lt;BR /&gt; cmdData.whichPcs = MASTER_PCS;&lt;BR /&gt; cmdData.isEndOfQueue = false;&lt;BR /&gt; cmdData.clearTransferCount = false;&lt;/P&gt;&lt;P&gt;DSPI_ClearStatusFlags(SPI, kDSPI_AllStatusFlag);&lt;BR /&gt; DSPI_EnableInterrupts(SPI, kDSPI_RxFifoDrainRequestInterruptEnable|kDSPI_TxFifoFillRequestInterruptEnable);&lt;/P&gt;&lt;P&gt;DSPI_StartTransfer(SPI);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chip select is not being pulled down when i attempt to use interrupt based transfers. In blocking mode, transactions are good - chip select is pulled down, Serial In and Serial Out can see data, and slave responds as expected. However when i attempt interrupt mode, Chip Select does assert at all - it just stays high. I followed the K28 example - would appreciate any pointers on what i am missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Jun 2018 00:03:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K27-SPI-Interrupt-Mode-Chip-Select/m-p/789366#M48047</guid>
      <dc:creator>santosh1</dc:creator>
      <dc:date>2018-06-17T00:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: K27 SPI Interrupt Mode Chip Select</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K27-SPI-Interrupt-Mode-Chip-Select/m-p/789367#M48048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0px; padding: 0px; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-weight: 400; word-spacing: 0px; white-space: normal; -ms-word-wrap: break-word; orphans: 2; widows: 2; text-decoration-color: initial; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial;"&gt;Hello Santosh&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-weight: 400; word-spacing: 0px; white-space: normal; -ms-word-wrap: break-word; orphans: 2; widows: 2; text-decoration-color: initial; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial;"&gt;Your problem could be caused by a wrong configuration of the module.&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-weight: 400; word-spacing: 0px; white-space: normal; -ms-word-wrap: break-word; orphans: 2; widows: 2; text-decoration-color: initial; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial;"&gt;PCSIS field in MCR register determinates the inactive state of chip select signal.&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-weight: 400; word-spacing: 0px; white-space: normal; -ms-word-wrap: break-word; orphans: 2; widows: 2; text-decoration-color: initial; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PCS config.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61994iD9A4C321197437E2/image-size/large?v=v2&amp;amp;px=999" role="button" title="PCS config.PNG" alt="PCS config.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-weight: 400; word-spacing: 0px; white-space: normal; -ms-word-wrap: break-word; orphans: 2; widows: 2; text-decoration-color: initial; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial;"&gt;In SDK example the follow instruction:&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; color: #3d3d3d; text-transform: none; text-indent: 0px; letter-spacing: normal; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-weight: 400; word-spacing: 0px; white-space: normal; -ms-word-wrap: break-word; orphans: 2; widows: 2; text-decoration-color: initial; font-variant-ligatures: normal; font-variant-caps: normal; -webkit-text-stroke-width: 0px; text-decoration-style: initial;"&gt;masterConfig.pcsActiveHighOrLow = kDSPI_PcsActiveLow&lt;/P&gt;&lt;P&gt;Ensures PCSIS equals 1 in PCS0 bit field in order to pull down chip select signal when the&amp;nbsp;transmission starts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;Next pictures were taking when PCSIS[PCS0] value was zero and one respectively: &lt;SPAN lang="en"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="en"&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PCS High.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61995iEE61EA8283C8E7B4/image-size/large?v=v2&amp;amp;px=999" role="button" title="PCS High.PNG" alt="PCS High.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PCS Low.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/61997iC31542657641BA48/image-size/large?v=v2&amp;amp;px=999" role="button" title="PCS Low.PNG" alt="PCS Low.PNG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Is your K27 presenting a similar behavior of the&amp;nbsp;first picture?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Let me know your results.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 16:05:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K27-SPI-Interrupt-Mode-Chip-Select/m-p/789367#M48048</guid>
      <dc:creator>EdgarLomeli</dc:creator>
      <dc:date>2018-06-19T16:05:52Z</dc:date>
    </item>
  </channel>
</rss>

