<?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)のトピックRe:   MBD SPI problem based MPC57**</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084522#M4777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/haoxue1027@qq.com"&gt;haoxue1027@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you should take a look at how you calculate THETA - you must be careful at what data types you set in the blocks you use for this. For example, I see you have a gain block that has a uint16 input and outputs a uint32, but the value for the gain is&lt;EM&gt; 2*pi/4096&lt;/EM&gt;. If the data type of this would be any integer type, you will get &lt;STRONG&gt;0 as output&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you have made sure all the calculations are done correctly (with corresponding data types used), if it still shows 0 as value in FreeMASTER, you should watch the SPI raw data that you get, an calculate by hand to see if you get an accurate value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Jul 2020 08:26:30 GMT</pubDate>
    <dc:creator>constantinrazva</dc:creator>
    <dc:date>2020-07-31T08:26:30Z</dc:date>
    <item>
      <title>MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084513#M4768</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello，community&lt;/P&gt;&lt;P&gt;Now I have&amp;nbsp; a trouble with the MBD SPI based MPC5744P-dev.&lt;/P&gt;&lt;P&gt;I want to use the stateflow to read the position of resolver of motor by SPI.&lt;/P&gt;&lt;P&gt;I did the stateflow like following which refered to the AD2s1205 referrence.&lt;/P&gt;&lt;P&gt;but it does work. Can you help me find the problem of the SPI configuration or modeling errors?&lt;/P&gt;&lt;P&gt;1,the problem of SPI configuration&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116720i0D93ABA3566D2B58/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116723iC3187553814EDB6B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;here, I did choose the PSCn . beacuse I will control the CS port reading time later . When i set the PCS here, there is an error occuring.&amp;nbsp; Can you tell me if&amp;nbsp;&amp;nbsp;this configuration is OK ?&lt;/P&gt;&lt;P&gt;2, According to the "Power Supply Sequencing and Reset" and"Serial Port Read Timing"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116724i549F80AD19CB81E7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116725i87B3B75E173A0801/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I used the pit to trigger the stateflow like following.&amp;nbsp;I used various methods to debug the positiong only , but the SO and CLOCK signals of ad2s1205 were always wrong, Can you help me check it ?&lt;/P&gt;&lt;P&gt;Any suggestions will be&amp;nbsp;appreciated。&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/116726i0FC1792882B4C185/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_6.png" alt="pastedImage_6.png" /&gt;&lt;/span&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/116727i463E594A149C58DF/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;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_8.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/116728i95A1FF46DD1EBBEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_8.png" alt="pastedImage_8.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/116729i746BE62450937E5E/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;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;hao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2020 15:01:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084513#M4768</guid>
      <dc:creator>haoxue1027</dc:creator>
      <dc:date>2020-07-23T15:01:51Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084514#M4769</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/constantinrazvan.chivu"&gt;constantinrazvan.chivu&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;P&gt;Razvan，Marius，&lt;/P&gt;&lt;P&gt;I'm sorry to bother you, but could you spare me a moment to help me with this problem？&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;hao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 00:41:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084514#M4769</guid>
      <dc:creator>haoxue1027</dc:creator>
      <dc:date>2020-07-24T00:41:50Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084515#M4770</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/haoxue1027@qq.com"&gt;haoxue1027@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply -- can you let me know how you control the timing for the CS? I'm asking this because when you are using the SPI Transfer block displayed in that image, that transfer would start right there. If you don't have the timing right for the CS and you start clocking out your data just before CS is active, you won't get a valid SPI frame sent over to your slave (the AD2S1205).&amp;nbsp;I would suggest (if your application permits it) to choose a CS pin and let the transfer block handle all signals (CS, clock and data).&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>Fri, 24 Jul 2020 07:04:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084515#M4770</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2020-07-24T07:04:20Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084516#M4771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/haoxue1027@qq.com"&gt;haoxue1027@qq.com&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of CS selected in the configuration block, that should not throw any error - just that it will not initialize any pin to be used as SPI CS. Note that for you to set which CS you are using for your transfer, this will be set in the transfer block. So you'll have to set-up which pin you use from the Configuratin block (pins tab), and which you'll be using (index) from the transfer block. This is done in order for the users to be able to send messages to multiple slaves.&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>Fri, 24 Jul 2020 07:17:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084516#M4771</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2020-07-24T07:17:01Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084517#M4772</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/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp; for your suggestions.&lt;/P&gt;&lt;P&gt;In the hardware , CS and RD&amp;nbsp;two pins are short circuited. So I have to control them together by GPOPTF4.&lt;/P&gt;&lt;P&gt;The CS_RD time is controlled by the stateflow like above figure. Every state change will cost the one cycle of PIT(100us). If I set the SPI-config like this,&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/22729iA6961725B9947284/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;.&lt;/P&gt;&lt;P&gt;Block error occurs like following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;Pin check failed on block 'ADC_test20200723SPI/Speed_Measure /CS1_RD'. Pin is shared with other module: 'ADC_test20200723SPI/SPI_Config'.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can I need to&amp;nbsp; close the SPI diagnostic in the&amp;nbsp; MBD_MPC574x_Config_Information→diagnostics？&lt;/P&gt;&lt;P&gt;In additon,&amp;nbsp; can you help me check if the SPI configuration is right according to the AD2s1205 timing?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24214i624D5BF091575077/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;hao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 08:08:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084517#M4772</guid>
      <dc:creator>haoxue1027</dc:creator>
      <dc:date>2020-07-24T08:08:12Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084518#M4773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/haoxue1027@qq.com"&gt;haoxue1027@qq.com&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I haven't got a chance to look at the&amp;nbsp;AD2S1205 manual, so I'm not sure what RD signal is used for. Now I understand what problem you were talking about with the configuration block. Well that error you are getting is stating that you can't have that output pin with dual functionality - both SPI CS and GPO, so this would be the correct behavior - throwing an error. Before I get to take a look at that manual you should decide if you really need to control it from the GPO block.&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>Fri, 24 Jul 2020 14:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084518#M4773</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2020-07-24T14:05:01Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084519#M4774</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/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;In my opinion, PCSx&amp;nbsp; in the configuration is for the master 5744P, while in this application, 5744P only receives SPI signals from slave AD2S1205, so whether PCSx can be arbitrarily selected or not(except PTF4), and CS_RD which is&amp;nbsp; PCS&amp;nbsp; pin of&amp;nbsp; AD2S1205&amp;nbsp; needs to be configured for timing sequence, so it is used as GPO&amp;nbsp; port.&lt;/P&gt;&lt;P&gt;Now I changed the baud rate to 1M bps , and set the PCS1 as PTC12.&lt;/P&gt;&lt;P&gt;I can capture the SCLK and&amp;nbsp; SO signal in the hardware.&amp;nbsp; but&amp;nbsp; I can read any SPI SO data by the freemaster.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/53866i3076701FF06F2D9D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&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/53918i5E07539A8AB64131/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;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/54017iFF6951011DE30882/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you help me check whether the signal in the figure is right or not.&lt;/P&gt;&lt;P&gt;Why can't I get the data in the freemaster?&lt;/P&gt;&lt;P&gt;thank you very much.&lt;/P&gt;&lt;P&gt;best regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;hao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 14:47:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084519#M4774</guid>
      <dc:creator>haoxue1027</dc:creator>
      <dc:date>2020-07-24T14:47:13Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084520#M4775</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/haoxue1027@qq.com"&gt;haoxue1027@qq.com&lt;/A&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;hao xue wrote:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-containerid="-1" data-containertype="-1" data-content-finding="Community" data-objectid="298737" data-objecttype="3" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;Constantin Razvan Chivu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In my opinion, PCSx&amp;nbsp; in the configuration is for the master 5744P, while in this application, 5744P only receives SPI signals from slave AD2S1205, so whether PCSx can be arbitrarily selected or not(except PTF4),&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I want to make one remark here - it does not matter if the MPC5744P is only receiving messages from the slave, it is still the one that triggers the transfer, being the master - in SPI communication this is the one that sends out the clock and CS signals. Without those, there will be no transfer started over SPI. This is the reason why I was suggesting you use the CS from the SPI block.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now regarding the signal, I still haven't gone through the manual for&amp;nbsp;AD2S1205 -- but can you send me a screenshot from your osciloscope with the CS, clock and data? Or if you only have 2 channels, you can send CS and clock.&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>Mon, 27 Jul 2020 07:21:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084520#M4775</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2020-07-27T07:21:33Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084521#M4776</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/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for replying.&lt;/P&gt;&lt;P&gt;In the following picture, the Ch1 is CS, the Ch2 is clock,the Ch3 is data.&lt;/P&gt;&lt;P&gt;I captured the singals at two different positons of the motor rotor.&lt;/P&gt;&lt;P&gt;Please confirm it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/104737i15345BDEEEDD7C0F/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/105027i4689FE6FBBCDBBE7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But , I can read any data in the freemaster.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/105073i367AB1F64BF7A7CD/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;hao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Jul 2020 09:49:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084521#M4776</guid>
      <dc:creator>haoxue1027</dc:creator>
      <dc:date>2020-07-27T09:49:51Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084522#M4777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/haoxue1027@qq.com"&gt;haoxue1027@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you should take a look at how you calculate THETA - you must be careful at what data types you set in the blocks you use for this. For example, I see you have a gain block that has a uint16 input and outputs a uint32, but the value for the gain is&lt;EM&gt; 2*pi/4096&lt;/EM&gt;. If the data type of this would be any integer type, you will get &lt;STRONG&gt;0 as output&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After you have made sure all the calculations are done correctly (with corresponding data types used), if it still shows 0 as value in FreeMASTER, you should watch the SPI raw data that you get, an calculate by hand to see if you get an accurate value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 08:26:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084522#M4777</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2020-07-31T08:26:30Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084523#M4778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,Razvan,&lt;/P&gt;&lt;P&gt;Thank you for replying.&lt;/P&gt;&lt;P&gt;I am still confused to the&lt;STRONG&gt;&amp;nbsp; If the data type of this would be any integer type, you will get 0 as output.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Can you explain it further?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;hao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 09:13:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084523#M4778</guid>
      <dc:creator>haoxue1027</dc:creator>
      <dc:date>2020-07-31T09:13:05Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084524#M4779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&amp;nbsp;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/haoxue1027@qq.com"&gt;haoxue1027@qq.com&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sure - you can see in Simulink simulation or you can even try in MATLAB terminal the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;value = 2*pi/4096&amp;nbsp; % this will give you the output 0.0015, if no data type is specified; this is because it will default to &lt;STRONG&gt;double&amp;nbsp;&lt;/STRONG&gt;as it's data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you were to get this value and cast it to an &lt;STRONG&gt;integer&lt;/STRONG&gt; (let's say int32), you will get the value 0. You can try by going further in the MATLAB terminal with:&lt;/P&gt;&lt;P&gt;int32(value) % This will produce the output 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now going back to your example, I see the output of the gain block is an integer, so that might be a problem for you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To make it easier, I would do the following:&lt;/P&gt;&lt;P&gt;start off a new model, only for simulation purposes. Get two constant blocks (instead of data you get on the SPI), and copy the rest of the blocks you use for getting the THETA value from the raw data. Think what you would get as values from the sensor if the angle was some value you choose, and write those values to the constant blocks (just as you received them over SPI). Then start the simulation and see what THETA outputs. You will change these blocks until you make it output the correct value for the angle. Once you have tested this thoroughly, just copy those blocks and get them back in your first model. Now you can go onto the hardware and see if it works.&amp;nbsp;&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>Fri, 31 Jul 2020 09:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084524#M4779</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2020-07-31T09:23:42Z</dc:date>
    </item>
    <item>
      <title>Re:   MBD SPI problem based MPC57**</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084525#M4780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello，Razvan&lt;/P&gt;&lt;P&gt;Thank you for your explaning.&lt;/P&gt;&lt;P&gt;Now,I think the failure reason of SPI is that Stateflow timing.&lt;/P&gt;&lt;P&gt;As the AD2S1205 SPI needed for strict timing requirements, the stateflow seems cannot satisfy that condition.&lt;/P&gt;&lt;P&gt;Error occurred when using oscilloscope to measure pin signal,&lt;/P&gt;&lt;P&gt;pin signal of AD terminal(voltage level:5V) is as follows,&amp;nbsp; the level of voltage and the 8th clock singal is abnormal.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109445iC1E2F41EC59C0A25/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I used 2K and 1K resistance to divided,&amp;nbsp; pin signal of 5744 terminal(voltage level:3V3) is as follows, the SO data is abnormal.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/109585iDA250F7617D6F089/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;I'm confused about this question now, Can you give me a&amp;nbsp; suggestion?&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;hao&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Jul 2020 09:59:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBD-SPI-problem-based-MPC57/m-p/1084525#M4780</guid>
      <dc:creator>haoxue1027</dc:creator>
      <dc:date>2020-07-31T09:59:18Z</dc:date>
    </item>
  </channel>
</rss>

