<?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>Model-Based Design Toolbox (MBDT)のトピックSPI Message for 32bit Transfer (MPC5744P) MBD Toolbox</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Message-for-32bit-Transfer-MPC5744P-MBD-Toolbox/m-p/936011#M3490</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question is similar to:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/513041"&gt;SPI Communication Problem&lt;/A&gt;&amp;nbsp; but the suggested solution does not work&lt;/P&gt;&lt;P&gt;I want to transfer 32 bit SPI message for MPC5744P.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I tried (as attache _32bit model)&lt;/P&gt;&lt;P&gt;1. Attempt one (exactly as in &lt;A href="https://community.nxp.com/thread/513041"&gt;SPI Communication Problem&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I set the SPI frame size as 32 bit with continuous transfer as said in data sheet.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92787i8B2B03611574ABF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92788iBDB6BFD446B4795F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;RESULT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I got a 16 bit frame data as seen in below snap shot (the clock is 16 bit, as the input data was 1 (seen in pink)). It takes 16 clock to transmit the data where it shall take only 8.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92751iAF4A4FDB4A090E5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Attempt 2&lt;/P&gt;&lt;P&gt;I used 8 bit frame size&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92755i21D90DF05110CD8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A bit better but data seems to be corrupted (as the input is [1 1 1 1], I expect the green box behavior and not the orange box, as shown below)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_15.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92757i9BDBFBD7B5405816/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_15.png" alt="pastedImage_15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to deal with this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ext-rafael.barbosa@chassisbrakes.com"&gt;ext-rafael.barbosa@chassisbrakes.com&lt;/A&gt;‌, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariuslucianandrei"&gt;mariuslucianandrei&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Oct 2019 14:41:50 GMT</pubDate>
    <dc:creator>abhishek_kumar1</dc:creator>
    <dc:date>2019-10-02T14:41:50Z</dc:date>
    <item>
      <title>SPI Message for 32bit Transfer (MPC5744P) MBD Toolbox</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Message-for-32bit-Transfer-MPC5744P-MBD-Toolbox/m-p/936011#M3490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This question is similar to:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/513041"&gt;SPI Communication Problem&lt;/A&gt;&amp;nbsp; but the suggested solution does not work&lt;/P&gt;&lt;P&gt;I want to transfer 32 bit SPI message for MPC5744P.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I tried (as attache _32bit model)&lt;/P&gt;&lt;P&gt;1. Attempt one (exactly as in &lt;A href="https://community.nxp.com/thread/513041"&gt;SPI Communication Problem&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I set the SPI frame size as 32 bit with continuous transfer as said in data sheet.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92787i8B2B03611574ABF0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_9.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92788iBDB6BFD446B4795F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_9.png" alt="pastedImage_9.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;RESULT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I got a 16 bit frame data as seen in below snap shot (the clock is 16 bit, as the input data was 1 (seen in pink)). It takes 16 clock to transmit the data where it shall take only 8.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_11.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92751iAF4A4FDB4A090E5C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_11.png" alt="pastedImage_11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Attempt 2&lt;/P&gt;&lt;P&gt;I used 8 bit frame size&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_12.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92755i21D90DF05110CD8C/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_12.png" alt="pastedImage_12.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Result&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;A bit better but data seems to be corrupted (as the input is [1 1 1 1], I expect the green box behavior and not the orange box, as shown below)&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_15.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92757i9BDBFBD7B5405816/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_15.png" alt="pastedImage_15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know how to deal with this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Abhishek&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/ext-rafael.barbosa@chassisbrakes.com"&gt;ext-rafael.barbosa@chassisbrakes.com&lt;/A&gt;‌, &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/mariuslucianandrei"&gt;mariuslucianandrei&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 14:41:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Message-for-32bit-Transfer-MPC5744P-MBD-Toolbox/m-p/936011#M3490</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-10-02T14:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Message for 32bit Transfer (MPC5744P) MBD Toolbox</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Message-for-32bit-Transfer-MPC5744P-MBD-Toolbox/m-p/936012#M3491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for the first try - you can not have frame size set to more than 16 bits; only from 4 to 16 are supported by the hardware. As for your 2nd configuration, that was ok - 8 bit frame size, continuous transfer enabled. If you pair this with a [1 1 1 1] vector (uint8 type, so that we get 32 bits in total), everything should be fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_6.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92808i2D846B46F0C6E8A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So from what you can see here, having in mind that settings for clock are:&lt;/P&gt;&lt;P&gt;- clock polarity: active low&lt;/P&gt;&lt;P&gt;- clock phase: 1st edge&lt;/P&gt;&lt;P&gt;We can see that the first '1' is centered on the 8th negative edge of the clock, and it does not stretch on the 9th one. This is repeated over all 4 bytes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I must specify that I've used instance 3 (SPI3) for convenience, with the following pins.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_7.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/92809i60E7461E7F3650BD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_7.png" alt="pastedImage_7.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you confirm that with this configuration, everything works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2019 15:22:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Message-for-32bit-Transfer-MPC5744P-MBD-Toolbox/m-p/936012#M3491</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-10-02T15:22:05Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Message for 32bit Transfer (MPC5744P) MBD Toolbox</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Message-for-32bit-Transfer-MPC5744P-MBD-Toolbox/m-p/936013#M3492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works well (I tested with SPI2 and SPI3)&lt;/P&gt;&lt;P&gt;Just to add: We should use continuous transfer, for more than 16 bit transfer as mentioned in the Reference Manual.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Abhishek&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2019 08:52:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Message-for-32bit-Transfer-MPC5744P-MBD-Toolbox/m-p/936013#M3492</guid>
      <dc:creator>abhishek_kumar1</dc:creator>
      <dc:date>2019-10-03T08:52:14Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Message for 32bit Transfer (MPC5744P) MBD Toolbox</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Message-for-32bit-Transfer-MPC5744P-MBD-Toolbox/m-p/936014#M3493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/abhishek.kumar@chassisbrakes.com"&gt;abhishek.kumar@chassisbrakes.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Glad to hear that! And you are correct, continuous transfer should be used for more than 16 bit transfers, with the mention that the you must make sure the transfer size (total bits transmitted) is a multiple of the frame size (for example you can't send 24 bits (transfer size) with 16 bit frame size).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Oct 2019 08:56:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/SPI-Message-for-32bit-Transfer-MPC5744P-MBD-Toolbox/m-p/936014#M3493</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-10-03T08:56:57Z</dc:date>
    </item>
  </channel>
</rss>

