<?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: KL16Z - how is SPI CS toggling controlled?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-how-is-SPI-CS-toggling-controlled/m-p/874049#M52006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a hard time believing somebody designed SPI hardware with a chip&lt;/P&gt;&lt;P&gt;select toggle problem. The toggling problem will prevent 99.999% of all SPI&lt;/P&gt;&lt;P&gt;peripheral devices from working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was the chip select toggle problem caused by a incompetent MCU designer, or&lt;/P&gt;&lt;P&gt;can I by-pass the SPI APIs and turn off the screwed up toggling problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Jan 2019 13:27:23 GMT</pubDate>
    <dc:creator>bgraham</dc:creator>
    <dc:date>2019-01-15T13:27:23Z</dc:date>
    <item>
      <title>KL16Z - how is SPI CS toggling controlled?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-how-is-SPI-CS-toggling-controlled/m-p/874047#M52004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;MCUXpresso IDE v10.2.1&lt;/P&gt;&lt;P&gt;MKL16Z256256VLH4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using SPI with DMA.&lt;/P&gt;&lt;P&gt;SPI_MasterGetDefaultConfig(&amp;amp;m_masterConfig);&lt;BR /&gt;m_masterConfig.outputMode = kSPI_SlaveSelectAutomaticOutput;&lt;/P&gt;&lt;P&gt;sourceClock = CLOCK_GetFreq(tSPI_ClockSource);&lt;BR /&gt; SPI_MasterInit(pBaseSPI, &amp;amp;m_masterConfig, sourceClock);&lt;BR /&gt;&lt;BR /&gt; SPI_MasterTransferCreateHandleDMA(...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the SPI bus transfers occur, the Chip Select is getting toggled between each byte. The toggling of the chip select does not work with my SPI slave (ADXL363&amp;nbsp;Accelerometer).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See attached image. How do I disable Chip Select toggling between bytes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruce Graham&lt;BR /&gt;Senior Software Engineer&lt;BR /&gt;TechnoSoft Innovations, Inc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/76881iBD065DB3B5D4976A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Jan 2019 20:59:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-how-is-SPI-CS-toggling-controlled/m-p/874047#M52004</guid>
      <dc:creator>bgraham</dc:creator>
      <dc:date>2019-01-14T20:59:52Z</dc:date>
    </item>
    <item>
      <title>Re: KL16Z - how is SPI CS toggling controlled?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-how-is-SPI-CS-toggling-controlled/m-p/874048#M52005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From KL16 reference manual chapter 35 SPI module description, there is no way to make /SS output continue low during communication. The /SS pin will back to high during idle status.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/77699iA5B49C332E365856/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If customer want to use /SS always during SPI communication, customer can use a GPIO pin to emulate SPI chip select function.&lt;/P&gt;&lt;P&gt;Thank you for the attention.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&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>Tue, 15 Jan 2019 02:07:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-how-is-SPI-CS-toggling-controlled/m-p/874048#M52005</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2019-01-15T02:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: KL16Z - how is SPI CS toggling controlled?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-how-is-SPI-CS-toggling-controlled/m-p/874049#M52006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a hard time believing somebody designed SPI hardware with a chip&lt;/P&gt;&lt;P&gt;select toggle problem. The toggling problem will prevent 99.999% of all SPI&lt;/P&gt;&lt;P&gt;peripheral devices from working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Was the chip select toggle problem caused by a incompetent MCU designer, or&lt;/P&gt;&lt;P&gt;can I by-pass the SPI APIs and turn off the screwed up toggling problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Bruce&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Jan 2019 13:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-how-is-SPI-CS-toggling-controlled/m-p/874049#M52006</guid>
      <dc:creator>bgraham</dc:creator>
      <dc:date>2019-01-15T13:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: KL16Z - how is SPI CS toggling controlled?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-how-is-SPI-CS-toggling-controlled/m-p/874050#M52007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I double check with Kinetis product team that KL16 SPI doesn't support chip select continue low during transfer.&lt;/P&gt;&lt;P&gt;It needs to use a GPIO pin emulate.&lt;/P&gt;&lt;P&gt;Thanks for the attention.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Mike&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>Wed, 16 Jan 2019 09:08:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/KL16Z-how-is-SPI-CS-toggling-controlled/m-p/874050#M52007</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2019-01-16T09:08:33Z</dc:date>
    </item>
  </channel>
</rss>

