<?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: please help trouble shoot code_S32DS for MPC5744P in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/please-help-trouble-shoot-code-S32DS-for-MPC5744P/m-p/723954#M9724</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;could you share your output file so I can test it?&lt;/P&gt;&lt;P&gt;From your description it is not possible to judge what is wrong.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Nov 2017 14:11:28 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2017-11-01T14:11:28Z</dc:date>
    <item>
      <title>please help trouble shoot code_S32DS for MPC5744P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/please-help-trouble-shoot-code-S32DS-for-MPC5744P/m-p/723953#M9723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;NXP expert,&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please help trouble shoot code(a function and its call) below. why I got dutyU, V &amp;amp; W all equal to zero?&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;And would please provide a piece of suggested code to calculate: 4000*(19661/65535), the 3 numbers for in all integers(uint16), and the result should be integer(uint16) too, for MPC5744P motor control using S32DS.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;FLEXPWM_set_duty(19661, 19661, 19661);&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;tBool FLEXPWM_set_duty(tU16 x, tU16 y, tU16 z){&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;tU16 periodCarry, dutyU, dutyV, dutyW;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;dutyU = x;&lt;BR /&gt;&amp;nbsp;dutyV = y;&lt;BR /&gt;&amp;nbsp;dutyW = z;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;periodCarry = 4000;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;dutyU = (tU16)MLIB_Mul((tFloat)periodCarry, (MLIB_Div_FLT((tFloat)dutyU,(tFloat)65535)));&lt;BR /&gt;&amp;nbsp;dutyV = (tU16)MLIB_Mul((tFloat)periodCarry, (MLIB_Div_FLT((tFloat)dutyV,(tFloat)65535)));&lt;BR /&gt;&amp;nbsp;dutyW = (tU16)MLIB_Mul((tFloat)periodCarry, (MLIB_Div_FLT((tFloat)dutyW,(tFloat)65535)));&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;at this point, I got dutyU, dutyV, dutyW all equal to zero, but I am expecting them all 1200.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;return (TRUE);&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;thank you very much.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Susan Li&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Oct 2017 02:49:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/please-help-trouble-shoot-code-S32DS-for-MPC5744P/m-p/723953#M9723</guid>
      <dc:creator>liwuquan</dc:creator>
      <dc:date>2017-10-26T02:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: please help trouble shoot code_S32DS for MPC5744P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/please-help-trouble-shoot-code-S32DS-for-MPC5744P/m-p/723954#M9724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;could you share your output file so I can test it?&lt;/P&gt;&lt;P&gt;From your description it is not possible to judge what is wrong.&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 14:11:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/please-help-trouble-shoot-code-S32DS-for-MPC5744P/m-p/723954#M9724</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2017-11-01T14:11:28Z</dc:date>
    </item>
  </channel>
</rss>

