<?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: Setting up scaling etc. for PMSM vector control on eTPU with customer motor in Other NXP Products</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Setting-up-scaling-etc-for-PMSM-vector-control-on-eTPU-with/m-p/323393#M3048</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;I said:&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;"However, I never get any output during the ALIGN_START ... ALIGN_FINISH&amp;nbsp; steps.&amp;nbsp; The duty cycle is always 50%.&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;The u_dq D output is a reasonable value, but the u_ab output is always {0, 0}.&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 10pt; line-height: 1.5em;"&gt;Any suggestions on how to debug this or additional info I can give?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 10pt; line-height: 1.5em;"&gt;The second PMSMVC thread that does the backward park transformation and the DC bus elimination isn't running.&amp;nbsp; That might explain why I see u_dq non-zero but u_ab zero.&amp;nbsp; If I then force an align finish I see the second thread run, but of course the motor isn't aligned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 10pt; line-height: 1.5em;"&gt;What lets the second thread run?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Jun 2014 17:18:33 GMT</pubDate>
    <dc:creator>peterdufault</dc:creator>
    <dc:date>2014-06-24T17:18:33Z</dc:date>
    <item>
      <title>Setting up scaling etc. for PMSM vector control on eTPU with customer motor</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Setting-up-scaling-etc-for-PMSM-vector-control-on-eTPU-with/m-p/323392#M3047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to control a customer motor using the approach in AN3206, but I'm having trouble scaling the quantities and setting things up.&lt;/P&gt;&lt;P&gt;I have controlled the setup as a BLDC motor using Hall detectors, so the setup is working, but I can't get past the ALIGN part of the example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ADC Vref is set to 2.5V, so below 0V corresponds to 2.5V VREF.&lt;/P&gt;&lt;P&gt;The currents come in with {-3.125A ... 0 ... 3.125A} mapped to {-2.5 ... 0V ... 2.5}&lt;/P&gt;&lt;P&gt;The bus voltage is 24V and is comes in with {0V ... 24V} mapped to {0V ... 2.4V}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I thought this should work is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Phase current range in mA: 3125 (3.125A is 7FFFFF);&lt;/LI&gt;&lt;LI&gt;DC bus voltage range in mA: 25000 (25.0V is7FFFFF);&lt;/LI&gt;&lt;LI&gt;Phase current option should be FS_ETPU_ASAC_PHASE_CURR_USE_AB_CALC_C (I assume the demo board uses 2 shunt resistors?)&lt;/LI&gt;&lt;LI&gt;CFIFO update should be FS_ETPU_ASAC_CFIFO_UPDATE_OFF (since I'm calculating C from A and B)&lt;/LI&gt;&lt;LI&gt;Sign extension should be turned on in the ADC conversion?&amp;nbsp; It isn't in the example program.&lt;/LI&gt;&lt;LI&gt;Negate phase currents should be FS_ETPU_ASAC_PHASE_CURRENTS_POS (example program is NEG).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I never get any output during the ALIGN_START ... ALIGN_FINISH&amp;nbsp; steps.&amp;nbsp; The duty cycle is always 50%.&lt;/P&gt;&lt;P&gt;The u_dq D output is a reasonable value, but the u_ab output is always {0, 0}.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on how to debug this or additional info I can give?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 13:57:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Setting-up-scaling-etc-for-PMSM-vector-control-on-eTPU-with/m-p/323392#M3047</guid>
      <dc:creator>peterdufault</dc:creator>
      <dc:date>2014-06-24T13:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up scaling etc. for PMSM vector control on eTPU with customer motor</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Setting-up-scaling-etc-for-PMSM-vector-control-on-eTPU-with/m-p/323393#M3048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;I said:&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;"However, I never get any output during the ALIGN_START ... ALIGN_FINISH&amp;nbsp; steps.&amp;nbsp; The duty cycle is always 50%.&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;The u_dq D output is a reasonable value, but the u_ab output is always {0, 0}.&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 10pt; line-height: 1.5em;"&gt;Any suggestions on how to debug this or additional info I can give?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 10pt; line-height: 1.5em;"&gt;The second PMSMVC thread that does the backward park transformation and the DC bus elimination isn't running.&amp;nbsp; That might explain why I see u_dq non-zero but u_ab zero.&amp;nbsp; If I then force an align finish I see the second thread run, but of course the motor isn't aligned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-style: inherit; font-size: 10pt; line-height: 1.5em;"&gt;What lets the second thread run?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 17:18:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Setting-up-scaling-etc-for-PMSM-vector-control-on-eTPU-with/m-p/323393#M3048</guid>
      <dc:creator>peterdufault</dc:creator>
      <dc:date>2014-06-24T17:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: Setting up scaling etc. for PMSM vector control on eTPU with customer motor</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Setting-up-scaling-etc-for-PMSM-vector-control-on-eTPU-with/m-p/323394#M3049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I said:&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; line-height: 1.5em;"&gt;The second PMSMVC thread that does the backward park transformation and the DC bus elimination isn't running.&amp;nbsp; That might explain why I see u_dq non-zero but u_ab zero.&amp;nbsp; If I then force an align finish I see the second thread run, but of course the motor isn't aligned.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; line-height: 1.5em;"&gt;What lets the second thread run?"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; line-height: 1.5em;"&gt;I found the source code for the eTPU function at the Ashware site and see that when PMSMVC_PID_OFF is in effect it jumps directly to the PMSMVC_INV_PARK_TRANSFORMATION section of the code in the first thread, so all work is done in a single thread.&amp;nbsp; I'm still stuck with the 50% duty cycle during the ALIGN_START state of the application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;&lt;SPAN style="font-family: inherit; font-size: 10pt; font-style: inherit; line-height: 1.5em;"&gt;Any suggestions would be greatly appreciated.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Jun 2014 21:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Setting-up-scaling-etc-for-PMSM-vector-control-on-eTPU-with/m-p/323394#M3049</guid>
      <dc:creator>peterdufault</dc:creator>
      <dc:date>2014-06-24T21:19:11Z</dc:date>
    </item>
  </channel>
</rss>

