<?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: Input edge capture problems, doesn't detect edges</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681896#M784</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it shows all hall transitions reading PTA13, PTA12 and PTD6.&lt;/P&gt;&lt;P&gt;The problem was that when using input edge capture block, FTM2 only lets to configure PTB18 and PTB19 pins in capture mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PTA12 and PTA13 can be configured in FTM1, but it is not possible to set PTD6 in capture mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solved my problem, thank you very much!&lt;BR /&gt;Mikel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 18 May 2017 18:14:58 GMT</pubDate>
    <dc:creator>mikelgodoy</dc:creator>
    <dc:date>2017-05-18T18:14:58Z</dc:date>
    <item>
      <title>Input edge capture problems, doesn't detect edges</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681889#M777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV data-object-id="451204" data-object-type="1"&gt;&lt;DIV data-jive-view="apps/content/questions/correct_view"&gt;&lt;DIV&gt;&lt;P&gt;&lt;BR /&gt;I'm developing a motor control program with &lt;STRONG&gt;Simulink&lt;/STRONG&gt; using the &lt;STRONG&gt;Motor Contol Toolbox&lt;/STRONG&gt;. I am currently using the following boards:&lt;/P&gt;&lt;P&gt;- TWR-KV31F120M&lt;/P&gt;&lt;P&gt;- TWR-MC-LV3PH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And the controlled motor is a BLDC type: Linix 45ZWN24-40.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to read the hall sensors signal to know the rotor position and make a trapezoidal control, so I have configured PTB18, PTB19 and PTA13 pins in Input Edge Capture blocks connected to FTM2_CH0, FTM2_CH1 and FTM1_CH1, as it says in user manual, then I could read the pin logic via GPIO to know the motor position.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I try to read the signal logic via GPIO input, I can see that FTM1_CH1 is the only one that detects rising and falling edges. FTM2_CH0 and FTM2_CH1 detect nothing. Am I doing something wrong? Does FTM need to be initialized in some way to work in capture mode? Why is FTM1 working and FTM2 not?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you all.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 15:10:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681889#M777</guid>
      <dc:creator>mikelgodoy</dc:creator>
      <dc:date>2017-05-16T15:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Input edge capture problems, doesn't detect edges</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681890#M778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What user manual are you following to configure the GPIOs for Hall sensor input capture ? Can you leave a link or attach the file ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you check with an oscilloscope that all Hall signals reach the MCU pins ?&lt;/P&gt;&lt;P&gt;Perhaps you need to configure the board to re-route those signals: i see &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;PTB19 &lt;/SPAN&gt; is used for LED as default while PTB18 goes via a resistor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let us know your findings!&lt;/P&gt;&lt;P&gt;Best regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 16:13:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681890#M778</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-16T16:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: Input edge capture problems, doesn't detect edges</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681891#M779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi Daniel,&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Thanks for your reply. I'm attaching the reference manual I'm using.&lt;/DIV&gt;&lt;DIV&gt;I checked all Hall signals reach the TWR-MC-LV3PH board, but didn't if they reach the MCU pins. Unfortunately I can't check it today.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Regards,&lt;/DIV&gt;&lt;DIV&gt;Mikel.&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 May 2017 16:47:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681891#M779</guid>
      <dc:creator>mikelgodoy</dc:creator>
      <dc:date>2017-05-16T16:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Input edge capture problems, doesn't detect edges</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681892#M780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that MCU's PTA13 pin changes its voltage between 0 and 5V for diferent rotor positions, while PTB18 and PTB19 do not. PTB18 maintains constant value of 1.27V and PTB19 varies between 2 and 3. They do not work as configured.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mikel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 10:32:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681892#M780</guid>
      <dc:creator>mikelgodoy</dc:creator>
      <dc:date>2017-05-17T10:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: Input edge capture problems, doesn't detect edges</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681893#M781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikel,&lt;/P&gt;&lt;P&gt;The easiest way to validate that signals are reaching into processor is to create a simple model with 3 digital input blocks that read data from those general purpose pins. Route the digital input blocks outputs to 3 variables and check them with Freemaster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20936i5AADAA7589974BEB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Digital input block is doing all the setup necessary for PORT. If the variables are not changing into Freemaster viewer then it means that something else is interfering with the signals on the boards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please keep us updated with the progress.&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 10:56:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681893#M781</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-17T10:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Input edge capture problems, doesn't detect edges</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681894#M782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached the image with the signals I get to the first message.&lt;/P&gt;&lt;P&gt;It's clear that something is not right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help,&lt;/P&gt;&lt;P&gt;Mikel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 May 2017 17:21:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681894#M782</guid>
      <dc:creator>mikelgodoy</dc:creator>
      <dc:date>2017-05-17T17:21:41Z</dc:date>
    </item>
    <item>
      <title>Re: Input edge capture problems, doesn't detect edges</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681895#M783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikel,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately i do not have your hardware available for me to try so the only thing i can do for you is a schematic analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#1: according with &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;TWR-MC-LV3PH&lt;/SPAN&gt;&amp;nbsp;&lt;A class="link-titled" href="http://www.nxp.com/assets/documents/data/en/user-guides/TWRMCLV3PHUG.pdf" title="http://www.nxp.com/assets/documents/data/en/user-guides/TWRMCLV3PHUG.pdf"&gt;http://www.nxp.com/assets/documents/data/en/user-guides/TWRMCLV3PHUG.pdf&lt;/A&gt;&amp;nbsp; Table 5, the hall signals go&amp;nbsp;PCIe Tower System PRIMARY connector on &lt;STRONG&gt;A33/A34/B34 as TMR0/1/2&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20599i847979D16B5EE1FD/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20630i8C40DEB0743493A3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#2: according with TWR-KV31F120M schematics&amp;nbsp;&lt;A class="link-titled" href="http://www.nxp.com/assets/downloads/data/en/schematics/TWR-KV31F120M_SCH.pdf" title="http://www.nxp.com/assets/downloads/data/en/schematics/TWR-KV31F120M_SCH.pdf"&gt;http://www.nxp.com/assets/downloads/data/en/schematics/TWR-KV31F120M_SCH.pdf&lt;/A&gt;&amp;nbsp;these TMR0/1/2 are routed to &lt;STRONG&gt;PTA13/PTA12/PTD6&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/20680i8295DDD37E64815D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please modify your Simulink GPI read model to read hall signals from&amp;nbsp;&lt;SPAN&gt;PTA13/PTA12/PTD6 sources. Does it shows all hall transitions ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Daniel&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 10:47:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681895#M783</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-18T10:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: Input edge capture problems, doesn't detect edges</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681896#M784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it shows all hall transitions reading PTA13, PTA12 and PTD6.&lt;/P&gt;&lt;P&gt;The problem was that when using input edge capture block, FTM2 only lets to configure PTB18 and PTB19 pins in capture mode.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PTA12 and PTA13 can be configured in FTM1, but it is not possible to set PTD6 in capture mode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This solved my problem, thank you very much!&lt;BR /&gt;Mikel.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 18:14:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681896#M784</guid>
      <dc:creator>mikelgodoy</dc:creator>
      <dc:date>2017-05-18T18:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Input edge capture problems, doesn't detect edges</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681897#M785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mikel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just for the records, what you are pointing as functionality is a special mode of FTM operation that is designed to offload the CPU computation for motor&amp;nbsp;speed and position.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Capture.JPG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19330iF4DCC76049EF92BA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To take benefit of it you need to design your custom board to feed the hall signals to that particular input pins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The devkit you are using are built to be generic and to pack as much functionalities as possible in a small footprint. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 18 May 2017 19:11:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Input-edge-capture-problems-doesn-t-detect-edges/m-p/681897#M785</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-05-18T19:11:21Z</dc:date>
    </item>
  </channel>
</rss>

