<?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 About mk22fn512 spi1/spi0 Transmission delay problem in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-mk22fn512-spi1-spi0-Transmission-delay-problem/m-p/644204#M39062</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I am using mk22fn512 SPI1/SPI0 to send a series of data,Let SPI/SPI0 work in the loopback and continuous sck and &lt;SPAN&gt;continuous pcs&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;mode.I found that when the SPI bus transmits data, each SOUT will have a certain delay after the completion of a single byte of data, &amp;nbsp;which causes the&amp;nbsp;slave device to be unable to determine the received data.&lt;SPAN style="color: #000000; font-size: 16pt;"&gt;&lt;BR /&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="MK22FN512_SPI.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15243i9B796AADCF097C3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="MK22FN512_SPI.jpg" alt="MK22FN512_SPI.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 16pt;"&gt; &lt;SPAN style="font-size: 17pt;"&gt;&lt;STRONG&gt;Register define&lt;/STRONG&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="BEFORE.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15287i40532E5E086F9BF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="BEFORE.jpg" alt="BEFORE.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="AFTER.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15140iB5F96DF62B8DDC46/image-size/large?v=v2&amp;amp;px=999" role="button" title="AFTER.jpg" alt="AFTER.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;When I don't have a continuous sck mode, the waveform is below.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="not continuos sck.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15500i32ED440B69985558/image-size/large?v=v2&amp;amp;px=999" role="button" title="not continuos sck.jpg" alt="not continuos sck.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="nt_before.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15072iA4020DA467D3C698/image-size/large?v=v2&amp;amp;px=999" role="button" title="nt_before.jpg" alt="nt_before.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="nt_after.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15528i66C0FDC830C484AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="nt_after.jpg" alt="nt_after.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;Continuous or discontinuous mode, SOUT does not have continuous output data. What is the reason?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and good luck！&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Mar 2017 03:45:09 GMT</pubDate>
    <dc:creator>andypeng</dc:creator>
    <dc:date>2017-03-13T03:45:09Z</dc:date>
    <item>
      <title>About mk22fn512 spi1/spi0 Transmission delay problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-mk22fn512-spi1-spi0-Transmission-delay-problem/m-p/644204#M39062</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;I am using mk22fn512 SPI1/SPI0 to send a series of data,Let SPI/SPI0 work in the loopback and continuous sck and &lt;SPAN&gt;continuous pcs&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;mode.I found that when the SPI bus transmits data, each SOUT will have a certain delay after the completion of a single byte of data, &amp;nbsp;which causes the&amp;nbsp;slave device to be unable to determine the received data.&lt;SPAN style="color: #000000; font-size: 16pt;"&gt;&lt;BR /&gt; &lt;span class="lia-inline-image-display-wrapper" image-alt="MK22FN512_SPI.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15243i9B796AADCF097C3D/image-size/large?v=v2&amp;amp;px=999" role="button" title="MK22FN512_SPI.jpg" alt="MK22FN512_SPI.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 16pt;"&gt; &lt;SPAN style="font-size: 17pt;"&gt;&lt;STRONG&gt;Register define&lt;/STRONG&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="BEFORE.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15287i40532E5E086F9BF4/image-size/large?v=v2&amp;amp;px=999" role="button" title="BEFORE.jpg" alt="BEFORE.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="AFTER.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15140iB5F96DF62B8DDC46/image-size/large?v=v2&amp;amp;px=999" role="button" title="AFTER.jpg" alt="AFTER.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;When I don't have a continuous sck mode, the waveform is below.&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="not continuos sck.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15500i32ED440B69985558/image-size/large?v=v2&amp;amp;px=999" role="button" title="not continuos sck.jpg" alt="not continuos sck.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="nt_before.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15072iA4020DA467D3C698/image-size/large?v=v2&amp;amp;px=999" role="button" title="nt_before.jpg" alt="nt_before.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="nt_after.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/15528i66C0FDC830C484AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="nt_after.jpg" alt="nt_after.jpg" /&gt;&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 17pt;"&gt;&lt;STRONG&gt;Continuous or discontinuous mode, SOUT does not have continuous output data. What is the reason?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and good luck！&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 03:45:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-mk22fn512-spi1-spi0-Transmission-delay-problem/m-p/644204#M39062</guid>
      <dc:creator>andypeng</dc:creator>
      <dc:date>2017-03-13T03:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: About mk22fn512 spi1/spi0 Transmission delay problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-mk22fn512-spi1-spi0-Transmission-delay-problem/m-p/644205#M39063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The obvious answer is that your data-load code-sequence is unable to 'keep up' with the TX byte-rate.&amp;nbsp; Slow your SPI clock, and/or clean up the code sequence. At BR=30 you've got 240 bus clocks per byte, or (presumably) 480 CPU clocks.&amp;nbsp; Seems like a lot, but clocks are also easy to 'waste' ---- looks like you might be taking over twice that time?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might also consider loading 16-bits per SPI transaction, rather than 8.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will probably also have to make sure you are fully utilizing the SPI FIFOs so that the TX hardware always has a byte 'ready to go' on the very next SPI clock.&amp;nbsp; If you wait for each 'TX complete' before even loading the 'next' you will surely skip a clock.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you capture your full sequence of 'PUSHR' values in a little debug-array, and show us that after a full message?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Mar 2017 13:47:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-mk22fn512-spi1-spi0-Transmission-delay-problem/m-p/644205#M39063</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-03-13T13:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: About mk22fn512 spi1/spi0 Transmission delay problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-mk22fn512-spi1-spi0-Transmission-delay-problem/m-p/644206#M39064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have any updated information on the issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 20:21:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/About-mk22fn512-spi1-spi0-Transmission-delay-problem/m-p/644206#M39064</guid>
      <dc:creator>egoodii</dc:creator>
      <dc:date>2017-03-14T20:21:34Z</dc:date>
    </item>
  </channel>
</rss>

