<?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 ADC HW Trigger mismatch in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-HW-Trigger-mismatch/m-p/2130026#M10334</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i'm trying the adc conversion with hw trigger on&amp;nbsp;S32K3X8EVB-Q289.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this example i've configued:&lt;/P&gt;&lt;P&gt;PTF21 as PWM(eMIOS)&lt;/P&gt;&lt;P&gt;PTA11 as ADC&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also configured an ADC group with conversion type injected and hw trigger signal RISING EDGE&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simon98_0-1751965265308.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346507iFFDAB13FBDF1036E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="simon98_0-1751965265308.png" alt="simon98_0-1751965265308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the model i've put a filp led block inside the adc interrupt callback which toggle the led1_blue of the board each time a coversion is completed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simon98_1-1751965518629.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346508iBD616B07A25C1DF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="simon98_1-1751965518629.png" alt="simon98_1-1751965518629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The behavior which i don't understand is that whether i configure the hw trigger signal as RISING or FALLING edge, on my oscilloscope i see that the led is always toggled on the FALLING edge...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is this happening? could someone help me with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
    <pubDate>Tue, 08 Jul 2025 09:22:55 GMT</pubDate>
    <dc:creator>simon98</dc:creator>
    <dc:date>2025-07-08T09:22:55Z</dc:date>
    <item>
      <title>ADC HW Trigger mismatch</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-HW-Trigger-mismatch/m-p/2130026#M10334</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;i'm trying the adc conversion with hw trigger on&amp;nbsp;S32K3X8EVB-Q289.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For this example i've configued:&lt;/P&gt;&lt;P&gt;PTF21 as PWM(eMIOS)&lt;/P&gt;&lt;P&gt;PTA11 as ADC&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've also configured an ADC group with conversion type injected and hw trigger signal RISING EDGE&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simon98_0-1751965265308.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346507iFFDAB13FBDF1036E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="simon98_0-1751965265308.png" alt="simon98_0-1751965265308.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in the model i've put a filp led block inside the adc interrupt callback which toggle the led1_blue of the board each time a coversion is completed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="simon98_1-1751965518629.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/346508iBD616B07A25C1DF5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="simon98_1-1751965518629.png" alt="simon98_1-1751965518629.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The behavior which i don't understand is that whether i configure the hw trigger signal as RISING or FALLING edge, on my oscilloscope i see that the led is always toggled on the FALLING edge...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why is this happening? could someone help me with that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Simon&lt;/P&gt;</description>
      <pubDate>Tue, 08 Jul 2025 09:22:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC-HW-Trigger-mismatch/m-p/2130026#M10334</guid>
      <dc:creator>simon98</dc:creator>
      <dc:date>2025-07-08T09:22:55Z</dc:date>
    </item>
  </channel>
</rss>

