<?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: NXP LPC55S28JBD64K SPI - How to Reduce the Receiving SPI byte to Byte interval in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-LPC55S28JBD64K-SPI-How-to-Reduce-the-Receiving-SPI-byte-to/m-p/1590296#M51455</link>
    <description>&lt;P&gt;thanks for the quick reply.&lt;/P&gt;&lt;P&gt;I think i have set the max FIFO to accept 16bit, is it the same as you mentioned by changing&amp;nbsp;&lt;SPAN&gt;TXLVL/RXLVL as 7? if not can guide me how to change those?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or any example code that i can refer for SPI transfer without using the SPI SDK as my first SPI development.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2023 06:03:51 GMT</pubDate>
    <dc:creator>SimK</dc:creator>
    <dc:date>2023-01-31T06:03:51Z</dc:date>
    <item>
      <title>NXP LPC55S28JBD64K SPI - How to Reduce the Receiving SPI byte to Byte interval</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-LPC55S28JBD64K-SPI-How-to-Reduce-the-Receiving-SPI-byte-to/m-p/1590157#M51449</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Help needed, i need to perform a usb burst of a stream of high speed usb of 1024 byte of data through spi. However i do notice the receiving SPI byte byte 2 byte interval takes up about +-500ns.&lt;/P&gt;&lt;P&gt;Can we further reduce the receiving byte 2 byte interval? which is currently being measured at +-/ 500ns.&lt;/P&gt;&lt;P&gt;i have configured my SPI as follows:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SPI Speed = 48mhz&lt;BR /&gt;SPI Configuration as follows, for Flexcomm 0;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 01:49:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-LPC55S28JBD64K-SPI-How-to-Reduce-the-Receiving-SPI-byte-to/m-p/1590157#M51449</guid>
      <dc:creator>SimK</dc:creator>
      <dc:date>2023-01-31T01:49:50Z</dc:date>
    </item>
    <item>
      <title>Re: NXP LPC55S28JBD64K SPI - How to Reduce the Receiving SPI byte to Byte interval</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-LPC55S28JBD64K-SPI-How-to-Reduce-the-Receiving-SPI-byte-to/m-p/1590213#M51451</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As you know that there is a delay register, which has 4 delay items, you set them all 0. So the delay configuration is correct, there is not improvement space.&lt;/P&gt;
&lt;P&gt;Regarding the delay between two transfer you have observed, I suppose that it may be resulted from the cause that&amp;nbsp; the SPI transmitter FIFO data is not ready when the first two bytes data has completed or SDK driver inefficiency.&lt;/P&gt;
&lt;P&gt;You can enable the FIFO mode and set the TXLVL/RXLVL as 7, so in the ISR of SPI, you can push 7 half-words to the WRFIFO, pls have a try.&lt;/P&gt;
&lt;P&gt;If you pursue speed, I suggest you do not use the spi SDK driver, you can write register directly and use interrupt mode, the SPI SDK driver is inefficient.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1675133177708.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/208878i54BEEC7FC136D312/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1675133177708.png" alt="xiangjun_rong_0-1675133177708.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 03:06:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-LPC55S28JBD64K-SPI-How-to-Reduce-the-Receiving-SPI-byte-to/m-p/1590213#M51451</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-01-31T03:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: NXP LPC55S28JBD64K SPI - How to Reduce the Receiving SPI byte to Byte interval</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-LPC55S28JBD64K-SPI-How-to-Reduce-the-Receiving-SPI-byte-to/m-p/1590296#M51455</link>
      <description>&lt;P&gt;thanks for the quick reply.&lt;/P&gt;&lt;P&gt;I think i have set the max FIFO to accept 16bit, is it the same as you mentioned by changing&amp;nbsp;&lt;SPAN&gt;TXLVL/RXLVL as 7? if not can guide me how to change those?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or any example code that i can refer for SPI transfer without using the SPI SDK as my first SPI development.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2023 06:03:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-LPC55S28JBD64K-SPI-How-to-Reduce-the-Receiving-SPI-byte-to/m-p/1590296#M51455</guid>
      <dc:creator>SimK</dc:creator>
      <dc:date>2023-01-31T06:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: NXP LPC55S28JBD64K SPI - How to Reduce the Receiving SPI byte to Byte interval</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-LPC55S28JBD64K-SPI-How-to-Reduce-the-Receiving-SPI-byte-to/m-p/1591011#M51475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;They are not the same thing, as you know that the SPI has 8 entry FIFO for both transmitter and receiver, each FIFO can save 32 bits data including 16 bits data and the other control bits.&lt;/P&gt;
&lt;P&gt;Pls refer to Table 683. FIFO write data register (FIFOWR - offset = 0xE20) in UM11126.pdf&lt;/P&gt;
&lt;P&gt;35.6.15 FIFO write data register&lt;BR /&gt;The FIFOWR register is used to write values to be transmitted to the FIFO.&lt;BR /&gt;FIFOWR provides the possibility of altering some SPI controls at the same time as&lt;BR /&gt;sending new data. For example, this can allow a series of SPI transactions involving&lt;BR /&gt;multiple slaves to be stored in a DMA buffer and sent automatically.These added fields&lt;BR /&gt;are described for bits 16 through 27 below.&lt;BR /&gt;Each FIFO entry holds data and associated control bits. Before data and control bits are&lt;BR /&gt;pushed into the FIFO, the control bit settings can be modified. half-word writes to just the&lt;BR /&gt;control bits (offset 0xE22) and does not push anything into the FIFO. A 0 written to the&lt;BR /&gt;upper half-word will not modify the control settings. Non-zero writes to it will modify all the&lt;BR /&gt;control bits. This is a write only register. Do not read-modify-write the register.&lt;BR /&gt;Byte, half-word or word writes to FIFOWR will push the data and control bits into the FIFO.&lt;BR /&gt;Word writes with the upper half-word of 0, byte writes or half-word writes to FIFOWR will&lt;BR /&gt;push the data and the current control bits, into the FIFO. Word writes with a non-zero&lt;BR /&gt;upper half-word will modify the control bits before pushing them onto the stack.&lt;BR /&gt;To set-up a slave SPI for receive only, the control bit settings must be pushed into the&lt;BR /&gt;write FIFO to become active. Therefore, at least one write to the FIFOWR data bits must&lt;BR /&gt;be done to make the control bits active&lt;/P&gt;
&lt;P&gt;For your case, as I said that the SDK driver is inefficient, if you want to reduce the interval between two transfer, you have to write the spi register yourself.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Feb 2023 05:45:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/NXP-LPC55S28JBD64K-SPI-How-to-Reduce-the-Receiving-SPI-byte-to/m-p/1591011#M51475</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-02-01T05:45:27Z</dc:date>
    </item>
  </channel>
</rss>

