<?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: SPI last bit on every byte is high in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1447812#M62944</link>
    <description>&lt;P&gt;We have tested with the MOSI line disconnected in the ADC and the we see the same behaviour.&lt;/P&gt;&lt;P&gt;We are able to communicate with the ADC the most of the times, but there are other times that the data we receive from it does not make sense.&lt;/P&gt;&lt;P&gt;Thanks for you help.&lt;/P&gt;</description>
    <pubDate>Fri, 22 Apr 2022 11:23:03 GMT</pubDate>
    <dc:creator>inakimartinez</dc:creator>
    <dc:date>2022-04-22T11:23:03Z</dc:date>
    <item>
      <title>SPI last bit on every byte is high</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1446497#M62921</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;We see that the last bit in every Byte transmission on MOSI is set to high. We are using the SPI with DMA&lt;/P&gt;&lt;P&gt;If I read the registers of the SPI after the configuration I get:&lt;/P&gt;&lt;P&gt;- MCR&amp;nbsp; &amp;nbsp;0x883F0000&lt;BR /&gt;- TCR&amp;nbsp; &amp;nbsp; 0x00000000&lt;BR /&gt;- CTAR&amp;nbsp; 0x3E050004&lt;BR /&gt;- CTAR&amp;nbsp; 0x78000000&lt;BR /&gt;- SR&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0x42000000&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If we connect the oscilloscope to the SPI lines we see the next:&lt;/P&gt;&lt;P&gt;Blue -&amp;gt; SCK&lt;/P&gt;&lt;P&gt;Red -&amp;gt; MOSI&lt;/P&gt;&lt;P&gt;Green -&amp;gt; /CS&lt;/P&gt;&lt;P&gt;Yellow -&amp;gt; /RESET (device reset)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inakimartinez_1-1650465653649.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177500i14E2651215DC0FF7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="inakimartinez_1-1650465653649.png" alt="inakimartinez_1-1650465653649.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If we zoom on the MOSI and SCK lines we see the issue. This 2 bytes that can be seen in the capture are 0x52 and 0x00. You can see how the last bit goes high in both bytes.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="inakimartinez_0-1650465630036.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/177499iA8878BCC56986C02/image-size/medium?v=v2&amp;amp;px=400" role="button" title="inakimartinez_0-1650465630036.png" alt="inakimartinez_0-1650465630036.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this could be happening?&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iñaki&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 16:48:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1446497#M62921</guid>
      <dc:creator>inakimartinez</dc:creator>
      <dc:date>2022-04-20T16:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: SPI last bit on every byte is high</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1446627#M62925</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199808"&gt;@inakimartinez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for using our community. I really appreciate it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to help you in a proper way, so do you think may you share with me which part number you are using for? And then, may you tell me which devices you are trying to communicate via SPI ? Because those last 2 bytes does not make a lot of sense to me, but I would like to have more info to gladly help you of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will stay tuned to your answer, so please let me know if you have more questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;BR /&gt;Best Regards.&lt;BR /&gt;Pablo Avalos.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 19:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1446627#M62925</guid>
      <dc:creator>PabloAvalos</dc:creator>
      <dc:date>2022-04-20T19:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: SPI last bit on every byte is high</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1447045#M62927</link>
      <description>&lt;P&gt;Hi Pablo.&lt;/P&gt;&lt;P&gt;Thanks for your fast response and help.&lt;/P&gt;&lt;P&gt;We are using the k24 microcontroller with the MCP3913 ADC. Find the datasheets we are using in the attachments.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iñaki&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 08:06:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1447045#M62927</guid>
      <dc:creator>inakimartinez</dc:creator>
      <dc:date>2022-04-21T08:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: SPI last bit on every byte is high</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1447474#M62936</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199808"&gt;@inakimartinez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is my pleasure to help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After checking what you are using for, it is unclear to me why it is happening to you those events at the end on the SPI frame. My suggestion is to check that your ADC chip is well connected and works correctly with the SPI clock from the MK24. After that, please download our SDK examples for TWR-K24 and try to run an example of dspi_interrupt_b2b_transfer_master with your ADC chip connected properly, and see if everything is ok.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this steps might be helpful for you. Please let me know if you have more questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards.&lt;BR /&gt;Pablo Avalos.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 22:34:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1447474#M62936</guid>
      <dc:creator>PabloAvalos</dc:creator>
      <dc:date>2022-04-21T22:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: SPI last bit on every byte is high</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1447812#M62944</link>
      <description>&lt;P&gt;We have tested with the MOSI line disconnected in the ADC and the we see the same behaviour.&lt;/P&gt;&lt;P&gt;We are able to communicate with the ADC the most of the times, but there are other times that the data we receive from it does not make sense.&lt;/P&gt;&lt;P&gt;Thanks for you help.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 11:23:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1447812#M62944</guid>
      <dc:creator>inakimartinez</dc:creator>
      <dc:date>2022-04-22T11:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: SPI last bit on every byte is high</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1450081#M62992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199808"&gt;@inakimartinez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for your reply and thanks a lot for your patience.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So, do you think is there anything else I can help you with? Because if communication with ADC works perfectly most of the times, what do you think is happening when it does not works fine? I am running out of ideas what could be the problem there with that intermittency.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know if you have more questions, otherwise, please mark this answer as solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much.&lt;BR /&gt;Best Regards.&lt;BR /&gt;Pablo Avalos.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 17:50:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1450081#M62992</guid>
      <dc:creator>PabloAvalos</dc:creator>
      <dc:date>2022-04-27T17:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: SPI last bit on every byte is high</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1450504#M62998</link>
      <description>&lt;P&gt;Thanks for all your help, but It seems that the error with the ADC is not related to the SPI communication. We thought that as we saw that extrange behaviour on the SPI.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Iñaki&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 07:43:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-last-bit-on-every-byte-is-high/m-p/1450504#M62998</guid>
      <dc:creator>inakimartinez</dc:creator>
      <dc:date>2022-04-28T07:43:09Z</dc:date>
    </item>
  </channel>
</rss>

