<?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: MPC5775E - Generate PWM and Evaluate Resolver in MBDT without eTPU in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1718115#M8493</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am working on the same DevKit, and wondering that has this topic been fixed?&lt;BR /&gt;&lt;BR /&gt;Would you please advise the way to work in the simulink model, please?&lt;/P&gt;</description>
    <pubDate>Wed, 06 Sep 2023 15:13:47 GMT</pubDate>
    <dc:creator>TLin3</dc:creator>
    <dc:date>2023-09-06T15:13:47Z</dc:date>
    <item>
      <title>MPC5775E - Generate PWM and Evaluate Resolver in MBDT without eTPU</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1553354#M7840</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to develop motor control application software for a&amp;nbsp; MCSPTR2A&lt;STRONG&gt;5775E&lt;/STRONG&gt; motor kit with MPC5775E board using the MBDT. Unfortunately, the &lt;U&gt;&lt;STRONG&gt;MBDT is missing critical functions for a standard motor control application&lt;/STRONG&gt;&lt;/U&gt;. Specifically,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;I am facing the following problem:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Two essential functions, the evaluation of resolver/speed feedback and generation of the three phase PWM output signals, are realized using the eTPU peripheral. The MBDT does not feature blocks/functions set up the eTPU related functions. This was confirmed by NXP, see answer in an earlier topic:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Implement-eTPU-Resolver-and-PWM-functions-using-the-MBDT/td-p/1516816" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Implement-eTPU-Resolver-and-PWM-functions-using-the-MBDT/td-p/1516816&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hence, I am trying to find a way to create the above functions without eTPU.&amp;nbsp; I want to share with you my approach and to kindly ask the support to answer my questions.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Alternative Solution for Resolver Feedback:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;The resolver COS and SIN feedback is normally evaluated through SDADC, as stated in the application note:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Sine&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;--&amp;gt; SDADC 1:&amp;nbsp; M_ANA0_SDA0 &lt;STRONG&gt;ANA0&lt;/STRONG&gt; /SDA0&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Cosine&lt;/STRONG&gt; --&amp;gt; SDADC 4 M_ANB0_SDD0&amp;nbsp; &lt;STRONG&gt;ANB0&lt;/STRONG&gt;&amp;nbsp; /SDD0&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Since SDACD is not available, EQADC might be used instead. I would configure the EQADC as follows (example for COS evaluation on channel ANB0):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NilsTro_0-1668596079878.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200607iA53A0C68181F7B3D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NilsTro_0-1668596079878.png" alt="NilsTro_0-1668596079878.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Question for support:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In general: is this possible?&lt;/LI&gt;&lt;LI&gt;Can you confirm the followin: With this approach I "loose" two EQADC channels, which are normally needed to read the current and voltage measurements. I understood, that this board does only have a max. of 4 EQADC channels.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Alternative Solution for Resolver Excitation:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Resolver excitation is done using ETPUA6 /GPIO120. To bypass the eTPU I intend to write a 10kHz square wave signal directly to the GPIO120 pin (PTD24):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="NilsTro_1-1668596530110.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200609i2E39465E2C3FFB34/image-size/medium?v=v2&amp;amp;px=400" role="button" title="NilsTro_1-1668596530110.png" alt="NilsTro_1-1668596530110.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Question for support:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Is this approach feasible?&lt;/LI&gt;&lt;LI&gt;If not, what else can I use?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;Alternative Solution for Three Phase PWM:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;According to the application note the kit uses the following eTPU channels and pins (GPIOM 130...135) for the PWM generation/output:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;ETPUA16 /GPIO130 PWMM Phase A High&lt;/LI&gt;&lt;LI&gt;ETPUA17 /GPIO131 PWMM Phase A Low&lt;/LI&gt;&lt;LI&gt;ETPUA18 /GPIO132 PWMM Phase B High&lt;/LI&gt;&lt;LI&gt;ETPUA19 /GPIO133 PWMM Phase B Low&lt;/LI&gt;&lt;LI&gt;ETPUA20 /GPIO134 PWMM Phase C High&lt;/LI&gt;&lt;LI&gt;ETPUA21 /GPIO135 PWMM Phase C Low&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Since eTPU cannot be used, I scanned the documentation and communities for alternative solutions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;FlexPWM:&lt;/STRONG&gt; The motor control demo examples for MPC5774 use flexpwm blocks, which (from my understanding) are not available for MPC5775E. --&amp;gt; not an option&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;eMIOS:&lt;/STRONG&gt; this thread&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5777-MBD-ADC-Module/m-p/1212272" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5777-MBD-ADC-Module/m-p/1212272&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;proposes to use eMIOS channels for PWM creation. I had a look and I found that&amp;nbsp;neither eMIOS channel is connected to the correct pins (GPIOM 130...135).&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;My questions&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/72088"&gt;@mariuslucianand&lt;/a&gt;:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;How can I access the right GPIOM pins with eMIOS?&lt;/LI&gt;&lt;LI&gt;Can the pin-Assignment be rearranged?&lt;/LI&gt;&lt;LI&gt;If this is not possible, what else can I do? Write to GPIOM pins directly?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thank you so much for reading such a long text and many thanks in advance for help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nils&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 14:24:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1553354#M7840</guid>
      <dc:creator>NilsTro</dc:creator>
      <dc:date>2022-11-16T14:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5775E - Generate PWM and Evaluate Resolver in MBDT without eTPU</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1560399#M7891</link>
      <description>&lt;P&gt;Hello Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am really wondering, if I am the only person around here that tries to use the&amp;nbsp;&lt;SPAN&gt;MCSPTR2A&lt;/SPAN&gt;&lt;STRONG&gt;5775E&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;motor kit with MBDT. I would really appreciate any help.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Nils&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 07:06:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1560399#M7891</guid>
      <dc:creator>NilsTro</dc:creator>
      <dc:date>2022-11-28T07:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5775E - Generate PWM and Evaluate Resolver in MBDT without eTPU</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1718115#M8493</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I am working on the same DevKit, and wondering that has this topic been fixed?&lt;BR /&gt;&lt;BR /&gt;Would you please advise the way to work in the simulink model, please?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Sep 2023 15:13:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1718115#M8493</guid>
      <dc:creator>TLin3</dc:creator>
      <dc:date>2023-09-06T15:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5775E - Generate PWM and Evaluate Resolver in MBDT without eTPU</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1718756#M8497</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/205925"&gt;@NilsTro&lt;/a&gt;&amp;nbsp;and Community,&lt;BR /&gt;&lt;BR /&gt;I am in trying to figure out how it works - measuring the resolver and PWM signals.&lt;BR /&gt;&lt;BR /&gt;Would you be able to advise how it work and its principle please?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Chi&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 11:02:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1718756#M8497</guid>
      <dc:creator>TLin3</dc:creator>
      <dc:date>2023-09-07T11:02:17Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5775E - Generate PWM and Evaluate Resolver in MBDT without eTPU</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1718762#M8498</link>
      <description>&lt;P&gt;Hello TLin3,&lt;/P&gt;&lt;P&gt;It is great to hear from a peer. Unfortunately, we never succeeded with this and ended up using the C-Code firmware. However, recently we switched to Texas Instruments motor drivers which work excellent with Simulink.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry that I cant help you. We were more than disappointed by the wrong advertisement for this kit and the poor / not existing support.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Nils&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2023 11:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1718762#M8498</guid>
      <dc:creator>NilsTro</dc:creator>
      <dc:date>2023-09-07T11:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: MPC5775E - Generate PWM and Evaluate Resolver in MBDT without eTPU</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1719389#M8500</link>
      <description>Hello NilsTro,&lt;BR /&gt;Can you share the motor driver you use?</description>
      <pubDate>Fri, 08 Sep 2023 08:43:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MPC5775E-Generate-PWM-and-Evaluate-Resolver-in-MBDT-without-eTPU/m-p/1719389#M8500</guid>
      <dc:creator>MuhammedKoyuncu</dc:creator>
      <dc:date>2023-09-08T08:43:20Z</dc:date>
    </item>
  </channel>
</rss>

