<?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: Quadrature_Decoder</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Quadrature-Decoder/m-p/951857#M3630</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/erik.ziel@autoliv.com"&gt;erik.ziel@autoliv.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you talking about the difference from our example or the difference about the modes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Jun 2019 07:05:31 GMT</pubDate>
    <dc:creator>mariuslucianand</dc:creator>
    <dc:date>2019-06-18T07:05:31Z</dc:date>
    <item>
      <title>Quadrature_Decoder</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Quadrature-Decoder/m-p/951854#M3627</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to use the Quadrature Decoder Model-Based Design toolbox.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="encoder.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/85446iC5590F06268B3B93/image-size/large?v=v2&amp;amp;px=999" role="button" title="encoder.PNG" alt="encoder.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;First try doesn't work, but as I changed the prescale factor from 1 to 2 it works more or less as&amp;nbsp;expected.&lt;/P&gt;&lt;P&gt;And is there a better explanation of these module?&amp;nbsp;&lt;/P&gt;&lt;P&gt;The build in help unfortunately doesn't explain all configurable parameters and what's there influence.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing is the FTM counter&amp;nbsp;counts in one direction, regadless of the turning direction from my&amp;nbsp;rotation sensor.&lt;/P&gt;&lt;P&gt;Am I wrong with the assumption that counter increases and decreases depending from A and B channel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 15:43:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Quadrature-Decoder/m-p/951854#M3627</guid>
      <dc:creator>erik_ziel</dc:creator>
      <dc:date>2019-06-05T15:43:55Z</dc:date>
    </item>
    <item>
      <title>Re: Quadrature_Decoder</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Quadrature-Decoder/m-p/951855#M3628</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/erik.ziel@autoliv.com"&gt;erik.ziel@autoliv.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With our toolbox we provide a great example called &lt;STRONG&gt;ftm_qd_s32k14x&lt;/STRONG&gt;. This example shows how the QD works either in Count and Direction or Phase A and Phase B mode on the S32K144EVB. You need to use the FreeMaster and to connect the pins like in the model description.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the best explanation about the QD module, can be read from the S32K-Reference manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Long story short:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Quadrature Decoder – Count and Direction Encoding mode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In this mode, the phase B input value indicates the counting direction,&amp;nbsp;and the phase A input defines the counting rate. The FTM counter is updated when there&amp;nbsp;is a rising edge at phase A input signal.&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/85449i5F3F932F3613B262/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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Quadrature Decoder – Phase A and Phase B Encoding Mode&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;In this mode, the relationship between phase A and B signals indicates&amp;nbsp;the counting direction, and phase A and B signals define the counting rate. The FTM&amp;nbsp;counter is updated when there is an edge either at the phase A or phase B signals.&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/85450iAE46E6D90ADF82D8/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;&lt;/P&gt;&lt;P&gt;If you want to use the Count and direction Encoding Mode please also select this in the QD Mask, because in your example it looks like there is a bad setting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2019 16:41:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Quadrature-Decoder/m-p/951855#M3628</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-06-05T16:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Quadrature_Decoder</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Quadrature-Decoder/m-p/951856#M3629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Marius,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the example to setup my model and now it works, thanks for that.&lt;/P&gt;&lt;P&gt;The only thing is I didn't discover the difference in the moment, but that does not matter, it works now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Erik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2019 14:24:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Quadrature-Decoder/m-p/951856#M3629</guid>
      <dc:creator>erik_ziel</dc:creator>
      <dc:date>2019-06-17T14:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: Quadrature_Decoder</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Quadrature-Decoder/m-p/951857#M3630</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/erik.ziel@autoliv.com"&gt;erik.ziel@autoliv.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you talking about the difference from our example or the difference about the modes?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2019 07:05:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Quadrature-Decoder/m-p/951857#M3630</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-06-18T07:05:31Z</dc:date>
    </item>
  </channel>
</rss>

