<?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 Re: LPC55S28 SPI :  How to determin whether the peripheral is busy in bit-shift or not ? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-SPI-How-to-determin-whether-the-peripheral-is-busy-in/m-p/1169254#M42610</link>
    <description>&lt;P&gt;Hello &lt;SPAN class="UserName lia-user-name lia-user-rank-Junior-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #333f48;" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/179166" target="_self"&gt;&lt;SPAN class=""&gt;YMCHEN&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;How about the bit of MSTIDLE in SPI status register:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1603076166858.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127679iFA5AD1D3E2635E24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1603076166858.png" alt="Alice_Yang_0-1603076166858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditorAlice_Yang_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;DIV id="tinyMceEditorAlice_Yang_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Oct 2020 02:56:17 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2020-10-19T02:56:17Z</dc:date>
    <item>
      <title>LPC55S28 SPI :  How to determin whether the peripheral is busy in bit-shift or not ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-SPI-How-to-determin-whether-the-peripheral-is-busy-in/m-p/1168610#M42578</link>
      <description>&lt;P&gt;Hi NXP Experts,&lt;/P&gt;&lt;P&gt;We are using the LPC55S28 SPI in &lt;U&gt;Non-DMA&lt;/U&gt; and &lt;U&gt;Master&lt;/U&gt; mode, we want to know whether&amp;nbsp;the SPI transmit/receive&amp;nbsp;functions is busy in bit-shift currently. But failed to achieve such a status field.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At first, we guess the&amp;nbsp;TXEMPTY field in FIFOSTAT might be helpful, but not exactly since&amp;nbsp;the last piece of data bits might be being shifted upon TXEMPTY &amp;nbsp;becoming 1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then we tried to use &amp;nbsp;&lt;STRONG&gt;SSD&lt;/STRONG&gt;(Slave select de-assert) and &lt;STRONG&gt;SSA&lt;/STRONG&gt; (Slave select assert) lables in&amp;nbsp;STAT register, since the user's manual docuemnet UM11126 says "&lt;EM&gt;This flag is set whenever any slave select&amp;nbsp;transitions from de-asserted to asserted, in both master and slave&amp;nbsp;modes. This allows determining when the SPI transmit/receive&amp;nbsp;functions become busy&lt;/EM&gt;". &amp;nbsp; But, UNfortunately, find that, the labels &lt;STRONG&gt;were not changed to 1&lt;/STRONG&gt;,&amp;nbsp;either stable or transient, &lt;STRONG&gt;after a transmission issued&lt;/STRONG&gt; even with the SOC received an expected value from the device! &amp;nbsp;Especially considering user's manual says the 1 could be cleared only by software to set a 1 to it, we did not capture the the labels changed to 1 which means it did not change!. &amp;nbsp;Is there any problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Meanwhile, our Application SHOULD use a software controllable GPIO to be the chip select signal other than the pre-defined SSELx signals. Can We use the SSD or SSA to determin the whether the peripheral is busy in bit serial shift?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To determin whether the&amp;nbsp;the peripheral is busy in serial-bit shift, &amp;nbsp;and using a software controllable GPIO to be &amp;nbsp;nCS for special timing, are very common applications of SPI bus. &amp;nbsp;Please Help Clarify or share sample codes if any.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance !&lt;/P&gt;</description>
      <pubDate>Fri, 16 Oct 2020 05:55:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-SPI-How-to-determin-whether-the-peripheral-is-busy-in/m-p/1168610#M42578</guid>
      <dc:creator>YMCHEN</dc:creator>
      <dc:date>2020-10-16T05:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S28 SPI :  How to determin whether the peripheral is busy in bit-shift or not ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-SPI-How-to-determin-whether-the-peripheral-is-busy-in/m-p/1169254#M42610</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="UserName lia-user-name lia-user-rank-Junior-Contributor-I lia-component-message-view-widget-author-username"&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #333f48;" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/179166" target="_self"&gt;&lt;SPAN class=""&gt;YMCHEN&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;How about the bit of MSTIDLE in SPI status register:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Alice_Yang_0-1603076166858.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/127679iFA5AD1D3E2635E24/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Alice_Yang_0-1603076166858.png" alt="Alice_Yang_0-1603076166858.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;DIV id="tinyMceEditorAlice_Yang_0" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;
&lt;DIV id="tinyMceEditorAlice_Yang_1" class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Oct 2020 02:56:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S28-SPI-How-to-determin-whether-the-peripheral-is-busy-in/m-p/1169254#M42610</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2020-10-19T02:56:17Z</dc:date>
    </item>
  </channel>
</rss>

