<?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: LPC55x wrong number of pulse clock in SPI peripheral in Processor Expert Software</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1865258#M5808</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232835"&gt;@Marconi_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use a gpio control slave selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
    <pubDate>Tue, 14 May 2024 09:25:32 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2024-05-14T09:25:32Z</dc:date>
    <item>
      <title>LPC55x wrong number of pulse clock in SPI peripheral</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1856309#M5800</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;Using LPCXPresso55S28 board I try to send 16 bit data via SPI. I'm using FLEXCOMM2 and I connected my locical analyzer to the board using the pins:&lt;/P&gt;&lt;P&gt;- P18 [15] -&amp;gt; MOSI&lt;/P&gt;&lt;P&gt;- P18 [18] -&amp;gt; SSEL0&lt;/P&gt;&lt;P&gt;- P18[8] -&amp;gt; SCK&lt;/P&gt;&lt;P&gt;Using MCUXpressoIDE peripherals configurator I configured FLEXCOMM2 as shown in the picture&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Marconi__0-1714310564024.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/276337i5A72DBD26AE65BB3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marconi__0-1714310564024.png" alt="Marconi__0-1714310564024.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I wrote a very simple program to test SPI functionality.&lt;/P&gt;&lt;P&gt;The program iterates 20 times using a loop. Inside the loop, a variable 'dato' is incremented by one in each iteration. This variable likely holds the data I want to send over SPI and the function called SPI_WreiteData is called to send information via SPI. Then a funcion called SPI_ReadData is called to read 'fummy' data from SPI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;SPI_WriteData(FLEXCOMM2_PERIPHERAL, dato,	kSPI_FrameDelay | kSPI_FrameAssert);  
xxy = SPI_ReadData(FLEXCOMM2_PERIPHERAL);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(xxy is a volatile uint32_t variable)&lt;/P&gt;&lt;P&gt;Unfortunately after the last frame is transmitted the CS signal remains low. The number of pulse clock of the last frame is wromg (15 pulses instead of 16 pulses)&lt;/P&gt;&lt;P&gt;In the following picture the captured signal of the two last frames are shown. You can observe only 15 clock pulses for the last frame instead of the expected 16.&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="Marconi__1-1714311801815.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/276338i0C260504419544C4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Marconi__1-1714311801815.png" alt="Marconi__1-1714311801815.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Apr 2024 13:45:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1856309#M5800</guid>
      <dc:creator>Marconi_</dc:creator>
      <dc:date>2024-04-28T13:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55x wrong number of pulse clock in SPI peripheral</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1856549#M5802</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232835"&gt;@Marconi_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems this issue related your another thread. How about also first using the SPI demo under SDK to test?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please contact us if still have any issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 08:15:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1856549#M5802</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-04-29T08:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55x wrong number of pulse clock in SPI peripheral</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1856636#M5804</link>
      <description>&lt;P&gt;Dear &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you wrte:&lt;/P&gt;&lt;P&gt;&amp;gt; It seems this issue related your another thread&lt;/P&gt;&lt;P&gt;Yes, the post is related to my previouse post.&lt;/P&gt;&lt;P&gt;I partially fixed the problem adding the function SPI_ReadData but:&lt;/P&gt;&lt;P&gt;- The last frame has the wrong number of clock pulses. In SPI communication, data is transferred with clock pulses, so an incorrect number might corrupt the data.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;- The chip select signal, which is used to activate/deactivate the slave device, doesn't return to a high state after the transmission. This could indicate the slave device isn't releasing properly.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2024 09:29:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1856636#M5804</guid>
      <dc:creator>Marconi_</dc:creator>
      <dc:date>2024-04-29T09:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55x wrong number of pulse clock in SPI peripheral</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1865258#M5808</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/232835"&gt;@Marconi_&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use a gpio control slave selection.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Tue, 14 May 2024 09:25:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1865258#M5808</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-05-14T09:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55x wrong number of pulse clock in SPI peripheral</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1870021#M5814</link>
      <description>&lt;P&gt;Dear &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer&lt;/P&gt;&lt;P&gt;you wrote:&lt;/P&gt;&lt;P&gt;&amp;gt;You can also use a gpio control slave selection.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The Serial Peripheral Interface (SPI) typically facilitates data conversion from parallel to serial format.&lt;/SPAN&gt;&lt;SPAN&gt; However,&lt;/SPAN&gt;&lt;SPAN&gt; I've encountered some potential issues with the SPI implementation on my LPC552x microcontroller.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could you help verify if this is true?&lt;/SPAN&gt;&lt;SPAN&gt; If not,&lt;/SPAN&gt;&lt;SPAN&gt; perhaps you could provide a code routine demonstrating how to transmit data using the LPC552x SPI interface using SPI_WriteData routine ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your help and cooperation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 21:22:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1870021#M5814</guid>
      <dc:creator>Marconi_</dc:creator>
      <dc:date>2024-05-21T21:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55x wrong number of pulse clock in SPI peripheral</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1948333#M5848</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I analyzed th code and I found a bug in SPI_WriteData routine that I fixed.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 14:24:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/LPC55x-wrong-number-of-pulse-clock-in-SPI-peripheral/m-p/1948333#M5848</guid>
      <dc:creator>Marconi_</dc:creator>
      <dc:date>2024-09-05T14:24:45Z</dc:date>
    </item>
  </channel>
</rss>

