<?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>MPC5xxxのトピックRe: Motor position sensor MPC5604P</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878030#M12911</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, looking to following kit&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/automotive-motor-control-development-solutions/mpc5xxx-solutions-/3-phase-pmsm-development-kit-with-nxp-mpc5604p-mcu:MTRCKTSPS5604P" title="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/automotive-motor-control-development-solutions/mpc5xxx-solutions-/3-phase-pmsm-development-kit-with-nxp-mpc5604p-mcu:MTRCKTSPS5604P"&gt;3-phase PMSM Development Kit with MPC5604P | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and its documentation (AN4561) speaks about using of encoder or resolver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it is would be best to ask HELLA which type are their Motor Position Sensors. I am not completely sure if this is equal to standard resolver solution. Is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Mar 2019 19:49:31 GMT</pubDate>
    <dc:creator>davidtosenovjan</dc:creator>
    <dc:date>2019-03-21T19:49:31Z</dc:date>
    <item>
      <title>Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878029#M12910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am planning to use a motor position sensor which has sin cos output and can be used at end of the shaft. I want to observe the difference between the outputs of resolver and motor position sensor. Instead of the resolver signals i want to use the signals from the motor position sensor. So the output from the sensor i use should go as an input to the micro controller (PHASE A and PHASE B). Is there any particular pin i can use for this."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the tests i found the output of resolver is a modulated signal and the demodulated signal is named as PHASE A and PHASE B. The signals from the motor position sensor is a demodulated PHASE A and PHASE B signal. So i would like to know how it can be possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Mar 2019 11:41:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878029#M12910</guid>
      <dc:creator>fixed-term_apar</dc:creator>
      <dc:date>2019-03-20T11:41:23Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878030#M12911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, looking to following kit&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/automotive-motor-control-development-solutions/mpc5xxx-solutions-/3-phase-pmsm-development-kit-with-nxp-mpc5604p-mcu:MTRCKTSPS5604P" title="https://www.nxp.com/support/developer-resources/evaluation-and-development-boards/automotive-motor-control-development-solutions/mpc5xxx-solutions-/3-phase-pmsm-development-kit-with-nxp-mpc5604p-mcu:MTRCKTSPS5604P"&gt;3-phase PMSM Development Kit with MPC5604P | NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and its documentation (AN4561) speaks about using of encoder or resolver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it is would be best to ask HELLA which type are their Motor Position Sensors. I am not completely sure if this is equal to standard resolver solution. Is it?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Mar 2019 19:49:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878030#M12911</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2019-03-21T19:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878031#M12912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for the reply!&lt;/P&gt;&lt;P&gt;Its not equal to standard resolver solution, the outputs of the sensor are sin and cos signals. I have mainly two doubts:&lt;/P&gt;&lt;P&gt;1. From the documentation of µC board(MPC5604PMCBUG),it seen that the output of resolver , PHASE_A and PHASE_B goes to µC (fig). The signals from the motor position sensors are same as these signal, so is it possible to input the signal from motor position sensor to µC through these pins.&lt;/P&gt;&lt;P&gt;2. If the above is not possible, then i would like to know which all are the configurable pins of the µC board so that i can input my sensor signals there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/75318iD3D03D640140EBAB/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aparna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Mar 2019 06:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878031#M12912</guid>
      <dc:creator>fixed-term_apar</dc:creator>
      <dc:date>2019-03-22T06:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878032#M12913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;Connector J207 on MPC5604P controller board is Resolver and SinCos Sensor Interface. It is possible to use it also for SinCos sensor with appropriate settings.&lt;/P&gt;&lt;P&gt;I recommend MPC5604P Controller Board User’s Guide document.&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/MPC5604PMCBUG.pdf"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline; "&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/MPC5604PMCBUG.pdf" target="test_blank"&gt;https://www.nxp.com/docs/en/user-guide/MPC5604PMCBUG.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Chapter 4.5 describes interface and appropriate schematics.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas Fedor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2019 13:43:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878032#M12913</guid>
      <dc:creator>tomasfedor</dc:creator>
      <dc:date>2019-04-02T13:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878033#M12914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Tomas Fedor!&lt;/P&gt;&lt;P&gt;If its okay can you please elaborate the term "appropriate settings". Did you mean making changes in program code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Aparna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2019 11:16:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878033#M12914</guid>
      <dc:creator>fixed-term_apar</dc:creator>
      <dc:date>2019-04-03T11:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878034#M12915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All settings depend on your sensor and your app requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From HW perspective:&lt;/P&gt;&lt;P&gt;Jumpers J203, J204, J205, J206, JP200 (and potentiometer R221)&amp;nbsp;is needed to be setup accord your requirements.&lt;/P&gt;&lt;P&gt;If you use offset&amp;nbsp;for analog signal processing&amp;nbsp;you can adjust&amp;nbsp;offset by R209 potentiometer.&lt;/P&gt;&lt;P&gt;If you need to change OAMPS gain in analog signal processing&amp;nbsp;it is possible to do by replacing appropriate resistors.&lt;/P&gt;&lt;P&gt;Jumpers description and schematic are in&lt;/P&gt;&lt;P&gt;&lt;A data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fuser-guide%2FMPC5604PMCBUG.pdf" rel="nofollow" target="_blank"&gt;&lt;SPAN style="color: #0066cc; text-decoration: underline;"&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;A href="https://www.nxp.com/docs/en/user-guide/MPC5604PMCBUG.pdf" target="test_blank"&gt;https://www.nxp.com/docs/en/user-guide/MPC5604PMCBUG.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From SW perspective:&lt;/P&gt;&lt;P&gt;Application flow, peripheral settings,&amp;nbsp;resolver interface sw processing and sampling rate setting are described in:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.nxp.com/docs/en/application-note/AN4561.pdf"&gt;https://www.nxp.com/docs/en/application-note/AN4561.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Tomas Fedor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2019 11:26:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878034#M12915</guid>
      <dc:creator>tomasfedor</dc:creator>
      <dc:date>2019-04-05T11:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878035#M12916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for your reply. I was able to integrate my sensor with the system. But here i find an issue that the motor pole pair&amp;nbsp; is 3, resolver pole pair is 1 and the pole pair of our newly integrated sensor is 4. The motor is controlled by default using Speed FOC which for the case of resolver uses an Angle Tracking Observer (ATO) to execute speed and position control. So this function is written for resolver with 1 pole pair. But in the code this function is called from an external library, so it cannot be edited by user. So is it possible to control the motor using the newly added sensor with 4 pole pairs ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jun 2019 08:27:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878035#M12916</guid>
      <dc:creator>fixed-term_apar</dc:creator>
      <dc:date>2019-06-21T08:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878036#M12917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;BR /&gt;I apologize for later answer but I was on sick leave.&lt;BR /&gt;Yes it is possible to control the&amp;nbsp;motor with 4 pole pairs sensor, but some changes are needed&amp;nbsp;for&amp;nbsp;code.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;As you mentioned&amp;nbsp;AMCLIB_TrackObsrv_F32 function is solid function from the library and it is not possible to edit the function, but you can find implementation details in library documentation MPC560XPMCLUG.pdf (this document is in&amp;nbsp;folder where the library is installed)&lt;BR /&gt;All basic blocks needed for Angle Tracking Observer&amp;nbsp;(like PI controller, integrator …&amp;nbsp;) are part of the library too&amp;nbsp;so you can build your own&amp;nbsp;customized Angle Tracking Observer&amp;nbsp;&amp;nbsp;and you can use&amp;nbsp;it in POSPE_GetPositionElRes function instead of &amp;nbsp;AMCLIB_TrackObsrv_F32 to get shaft mechanical speed and position and then you can compute motor electrical speed and position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm&amp;nbsp;adding simplified block diagram to explain the idea (in real implementation all expressions must respect fraction arithmetic and appropriate scaling).&amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90010iA359B90E5E38FA27/image-size/large?v=v2&amp;amp;px=999" title="Block_diagram.bmp" alt="Block_diagram.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Tomas Fedor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Jul 2019 06:02:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878036#M12917</guid>
      <dc:creator>tomasfedor</dc:creator>
      <dc:date>2019-07-01T06:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878037#M12918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much for the answer Tomas!&lt;/P&gt;&lt;P&gt;I went through MPC560XPMCLUG.pdf, but unfortunately i could not find any implementation details of AMCLIB_TrackObsrv_F32.&amp;nbsp; And could you please explain what the symbols / and * represent in the block diagram. Are they normal multiplication and division?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 08:03:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878037#M12918</guid>
      <dc:creator>fixed-term_apar</dc:creator>
      <dc:date>2019-07-02T08:03:41Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878038#M12919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;"/" is division. For example (/ resolver pp) is&amp;nbsp;division by number of resolver pole pairs.&lt;/P&gt;&lt;P&gt;"*" is multiplication. For example (* motor pp) is multiplication by number of motor pole pairs.&lt;/P&gt;&lt;P&gt;But as I mentioned before all blocks and math operations must respect fraction arithmetic and appropriate scaling. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Chapter 3.7 in MPC560XPMCLUG.pdf describes angle tracking observer.&lt;/P&gt;&lt;P&gt;Chapter 3.7.1 describes observer in general and chapters &amp;nbsp;3.7.3&amp;nbsp;and 3.7.4&amp;nbsp;&amp;nbsp;describes&amp;nbsp;Fix 32 and Fix 16 implementation.&lt;/P&gt;&lt;P&gt;Equations and commentary are used for functionality and &amp;nbsp;coefficients explanations. Usage is shown in code example in the end of the chapter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Tomas Fedor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 11:31:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878038#M12919</guid>
      <dc:creator>tomasfedor</dc:creator>
      <dc:date>2019-07-02T11:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878039#M12920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tomas,&lt;/P&gt;&lt;P&gt;I think there was a small misunderstanding from my side about the document. I had downloaded document&amp;nbsp;MPC560XPMCLUG.pdf available in (&lt;A class="link-titled" href="http://cache.freescale.com/files/microcontrollers/doc/user_guide/MPC560XPMCLUG.pdf" title="http://cache.freescale.com/files/microcontrollers/doc/user_guide/MPC560XPMCLUG.pdf"&gt;http://cache.freescale.com/files/microcontrollers/doc/user_guide/MPC560XPMCLUG.pdf&lt;/A&gt;&amp;nbsp;) and it showed another details. Sorry for the confusion.&lt;/P&gt;&lt;P&gt;Thank you very much. I shall try to implement what you have suggested.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90140iB044D19BC7846E80/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 11:39:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878039#M12920</guid>
      <dc:creator>fixed-term_apar</dc:creator>
      <dc:date>2019-07-02T11:39:32Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878040#M12921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are welcome.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jul 2019 11:44:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878040#M12921</guid>
      <dc:creator>tomasfedor</dc:creator>
      <dc:date>2019-07-02T11:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878041#M12922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tomas,&lt;/P&gt;&lt;P&gt;I tried as you suggested. But i find some parts of the code difficult to understand.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt;So as per my understanding, in MPC5604P_POSPE_BSP.c &amp;nbsp;the electrical position (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060; background: yellow;"&gt;f32ThetaEl&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt;) is obtained when mechanical position (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0; background: yellow;"&gt;f32ThetaMech&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt;) is multiplied with motor pole pair number (pp). But in the code, the variables &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0; background: silver;"&gt;f32MechElScale&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt;(FRAC32(0.75)) and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0; background: silver;"&gt;u8MechElScaleShift&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt; (2) is used. Can you please explain me how does this variables are used instead of multiplication with pole pair number.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt;And I see that, both &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0; background: silver;"&gt;f32MechElScale&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #0000c0; background: silver;"&gt;u8MechElScaleShift&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt; are initialised in PMSM_appconfig.h as&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: silver;"&gt; MOTOR_PP_GAIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt; and &lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: silver;"&gt;MOTOR_PP_SHIFT&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt;. &amp;nbsp;And I see that similar variables are there for resolver too (&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black; background: silver;"&gt;RES_PP_GAIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;, &lt;SPAN style="background: silver;"&gt;RES_PP_SC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt;), so I thought I could use these variables for ATO modification instead of multiplying directly with Resolver pole pair number. But I really not sure how does it work.&amp;nbsp; So can you pleas explain me about this. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90944i2C738BAE8ACC3C19/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #002060;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/90945i1033E5A956BB35D9/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jul 2019 06:20:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878041#M12922</guid>
      <dc:creator>fixed-term_apar</dc:creator>
      <dc:date>2019-07-11T06:20:04Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878042#M12923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;yes electrical p&lt;/SPAN&gt;&lt;SPAN&gt;osition (&lt;/SPAN&gt;f32ThetaEl) is obtained when mechanical position (f32ThetaMech) is multiplied with motor pole pair number (pp). But this&amp;nbsp;multiplication is done in fraction arithmetic. In this case motor pole pair number is 3. Fixed point 32 bit fractional&amp;nbsp;numbers are in range&amp;nbsp;&amp;nbsp;&amp;lt;-1,1). You can find in MPC560XPMCLUG.pdf chapter 2.2. Motor pole pair number&amp;nbsp;is split into f32MechElScale =&lt;SPAN&gt;FRAC32(0.75)) &lt;/SPAN&gt;and u8MechElScaleShift =2.&lt;/P&gt;&lt;P&gt;0.75*(2^2) = 3&amp;nbsp;&lt;/P&gt;&lt;P&gt;x*2^2=LeftShift(x,2)&lt;/P&gt;&lt;P&gt;so multiplication is done in 2 steps.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #00ff00;"&gt;Step1: &lt;/SPAN&gt;Multiplication of Fraction numbers f32MechElScale and &lt;SPAN&gt;f32ThetaMech. Booth numbers are in range &amp;lt;-1,1) as well as result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;Step2: &lt;/SPAN&gt;Left shift.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ptr-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;f32ThetaEl&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;SPAN style="color: #0000ff;"&gt;MLIB_ShL(&lt;/SPAN&gt;&lt;SPAN style="color: #00ff00;"&gt;(MLIB_Mul(ptr-&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #00ff00;"&gt;&lt;SPAN&gt;f32MechElScale&lt;/SPAN&gt;&lt;SPAN&gt;,ptr-&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt;f32ThetaMech&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="color: #00ff00;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;),(ptr-&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN&gt;u8MechElScaleShift&lt;/SPAN&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Moreover wrapping is ensured by this approach.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;SPAN style="color: #0000ff; "&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Tomas Fedor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 12:24:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878042#M12923</guid>
      <dc:creator>tomasfedor</dc:creator>
      <dc:date>2019-07-17T12:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878043#M12924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Tomas, I derived this by trial and error in the meantime and i was able to get output for both speed and angle signal from our newly added sensor. But only when i select resolver in Freemaster. So i created a new variable in JavaScript for the new sensor and was added to each page . I then found a variable "PositionType" which is used in many .js functions in the "if" condition to select sensor. I couldn't find what it stands for. I tried using "Typeof" operator and it shows the type as "undefined". Could you please check on this and let me know what variable is that and how is it possible to add new sensor to it. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82245i524FB9B01FC4F84D/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 15:10:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878043#M12924</guid>
      <dc:creator>fixed-term_apar</dc:creator>
      <dc:date>2019-07-17T15:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878044#M12925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;Lines 73 and 84 test whether encoder and resolver are selected. You can open application setting by pressing settings button.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81797iFD96495A0DCD4748/image-size/large?v=v2&amp;amp;px=999" title="setttings.bmp" alt="setttings.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But what is the motivation of editing pages and JavaScript files?&lt;/P&gt;&lt;P&gt;You can use sensors&amp;nbsp;tab for constants calculation and you can use these constants (stored in output file) in your application.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81882i885FEC6BC3841C68/image-size/large?v=v2&amp;amp;px=999" title="sensors.bmp" alt="sensors.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Tomas Fedor.&lt;/P&gt;&lt;DIV style="direction: ltr;"&gt;&lt;DIV style="width: 9.843in; margin-top: 0in; margin-left: 0in; direction: ltr;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2019 17:49:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878044#M12925</guid>
      <dc:creator>tomasfedor</dc:creator>
      <dc:date>2019-07-17T17:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878045#M12926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the reply Tomas. The reason why i thought of changing js files is that even after adding new sensor in S32 design studio- PMSM_appconfig.h the values for newly added sensor was not seen in freemaster. Is this has to do something with the js files? I thought i might have to make changes there as well and i found it has only 2 sensors everywhere and i may have to make changes to add the new sensor.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81927iF7E9D0C4A81B0E53/image-size/large?v=v2&amp;amp;px=999" 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"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81969i15EA67AB2B831951/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 07:52:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878045#M12926</guid>
      <dc:creator>fixed-term_apar</dc:creator>
      <dc:date>2019-07-18T07:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878046#M12927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;if you press store data button constants&amp;nbsp;will be&amp;nbsp;stored to "output file" tab and when you press "Generate configuration file" button constants from "output file" tab will be stored to PMSM_appconfing.h file and you can use them in your Design Studio project.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81880iE68645DB146C9994/image-size/large?v=v2&amp;amp;px=999" title="reply.bmp" alt="reply.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Tomas Fedor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 09:14:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878046#M12927</guid>
      <dc:creator>tomasfedor</dc:creator>
      <dc:date>2019-07-18T09:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878047#M12928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tomas, Yes, i understand what you are saying, this could be done if we have just 2 sensors. I have added a third sensor externally and want to compare it with output of resolver. So the details of third sensor is not present in Freemaster. So does it automatically get updated in Freemaster or should i make changes in js, html or xml files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 Jul 2019 11:52:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878047#M12928</guid>
      <dc:creator>fixed-term_apar</dc:creator>
      <dc:date>2019-07-18T11:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: Motor position sensor MPC5604P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878048#M12929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aparna,&lt;/P&gt;&lt;P&gt;yes MCAT&amp;nbsp;doesn't offer possibility of&amp;nbsp;having 2 resolvers for one motor. But you could use a workaround.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is&amp;nbsp;possible&amp;nbsp;to add second motor by selecting "dual motor" in Application&amp;nbsp;setting page-&amp;gt;general-&amp;gt;number of motors and add resolver to second motor.&lt;/P&gt;&lt;P&gt;There will be 2 motors in&amp;nbsp;MCAT and it will generate (by pressing "Generate Configuration File" in "output file" tab for every motor) M1_PMSM_appconfig.h and M2_PMSM_appconfig.h instead of one PMSM_appconfig.h .&lt;/P&gt;&lt;P&gt;You can use generated constants for new sensor&amp;nbsp;from M2_PMSM_appconfig.h.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waveform visualization is task of Freemaster (Mcat is for constants calculation and tunning).&lt;/P&gt;&lt;P&gt;You can use scope&amp;nbsp;or recorder for waveform&amp;nbsp;visualization.&amp;nbsp;Any global variable&amp;nbsp;from the Design Studio project can be added as freemaster variable and you can see its value in Variable Watch, recorder or scope. You can find more details in freemaster user guide. Pdf document is installed with your Freemaster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCAT can update some variables during run time by pressing "Update Target" button. It is good feature for online tuning.&lt;/P&gt;&lt;P&gt;Relation between MCAT and Freemaster variables is given by &amp;nbsp;FM_params_list.xml and generated constants naming is given by Header_file_constant_list.xml.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of on/off button in app control tab:&lt;/P&gt;&lt;P&gt;You can find line&amp;nbsp;in FM_params_list.xml:&lt;/P&gt;&lt;P&gt;&amp;lt;M1_onoff&amp;gt;switchAppOnOff&amp;lt;/M1_onoff&amp;gt;&amp;lt;!-- Main application switch of MOTOR1 --&amp;gt;&lt;/P&gt;&lt;P&gt;what means MCAT onoff for motor 1&amp;nbsp;controls Freemaster variable switchAppOnOff.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Freemaster variable switchAppOnOf covers embedded variable switchAppOnOf (address 0x40004570).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/82684iAD6DBF7E98F0C724/image-size/large?v=v2&amp;amp;px=999" title="reply2.bmp" alt="reply2.bmp" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best regards,&lt;BR /&gt;Tomas Fedor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2019 10:12:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Motor-position-sensor-MPC5604P/m-p/878048#M12929</guid>
      <dc:creator>tomasfedor</dc:creator>
      <dc:date>2019-07-19T10:12:22Z</dc:date>
    </item>
  </channel>
</rss>

