<?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>S32KのトピックRe: BCTU EMIOS Extra Triggering Issue</title>
    <link>https://community.nxp.com/t5/S32K/BCTU-EMIOS-Extra-Triggering-Issue/m-p/1827177#M32919</link>
    <description>&lt;P&gt;&lt;SPAN&gt;I have prepared the code that I can share with you. By default, it will work with Hardwire Trigger. If you want to use Software Trigger, simply define the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;BCTU_SW_TRIGGER&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;macro inside the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;main.c&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;file.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Mar 2024 12:33:42 GMT</pubDate>
    <dc:creator>serhatTUG4N</dc:creator>
    <dc:date>2024-03-13T12:33:42Z</dc:date>
    <item>
      <title>BCTU EMIOS Extra Triggering Issue</title>
      <link>https://community.nxp.com/t5/S32K/BCTU-EMIOS-Extra-Triggering-Issue/m-p/1826551#M32865</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I need help with an issue related to BCTU. I’m trying to trigger multiple ADC channels (ADC0 CH40 and ADC1 CH6) simultaneously using BCTU. You can find the screenshot of the BCTU settings I made below.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="serhatTUG4N_0-1710275673522.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267948iE6C8C69223397FCA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="serhatTUG4N_0-1710275673522.png" alt="serhatTUG4N_0-1710275673522.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="serhatTUG4N_1-1710275709615.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267950i4F75DED7B2F378C0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="serhatTUG4N_1-1710275709615.png" alt="serhatTUG4N_1-1710275709615.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I’m using the BswAdc_Bctu_Watermark_Notification and BswAdc_Bctu_Trigger_Notification functions to observe when the program enters these functions by toggling certain pins.&amp;nbsp;In a 100 us callback function, I’m calling Bctu_Ip_SwTriggerConversion to software trigger the BCTU (the TRGCFG_0.TRIGEN bit is set to 0). As can be seen in the logic analyzer screenshot, the BswAdc_Bctu_Trigger_Notification and then BswAdc_Bctu_Watermark_Notification functions are called as expected every 100 us.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="serhatTUG4N_2-1710275801803.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267951i7679E09E417A4EE7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="serhatTUG4N_2-1710275801803.png" alt="serhatTUG4N_2-1710275801803.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;However, when I comment out the place where the software trigger function is called and set the TRGCFG_0.TRIGEN bit to 1 (hardware trigger), as can be seen in the screenshot below, these functions are called more than once in each cycle. It’s as if another source is triggering the BCTU. But EMIOS channel 0 should have triggered it only once every 100 us.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="serhatTUG4N_3-1710276013927.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/267952iE9C4F65E53BA6AE6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="serhatTUG4N_3-1710276013927.png" alt="serhatTUG4N_3-1710276013927.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I’m wondering what could be causing this extra triggering.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2024 21:00:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/BCTU-EMIOS-Extra-Triggering-Issue/m-p/1826551#M32865</guid>
      <dc:creator>serhatTUG4N</dc:creator>
      <dc:date>2024-03-12T21:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: BCTU EMIOS Extra Triggering Issue</title>
      <link>https://community.nxp.com/t5/S32K/BCTU-EMIOS-Extra-Triggering-Issue/m-p/1826668#M32871</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;serhatTUG4N&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Could you please provide me with your test project so that i can reproduce the issue.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 01:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/BCTU-EMIOS-Extra-Triggering-Issue/m-p/1826668#M32871</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-03-13T01:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: BCTU EMIOS Extra Triggering Issue</title>
      <link>https://community.nxp.com/t5/S32K/BCTU-EMIOS-Extra-Triggering-Issue/m-p/1827177#M32919</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have prepared the code that I can share with you. By default, it will work with Hardwire Trigger. If you want to use Software Trigger, simply define the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;BCTU_SW_TRIGGER&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;macro inside the&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;main.c&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;file.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2024 12:33:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/BCTU-EMIOS-Extra-Triggering-Issue/m-p/1827177#M32919</guid>
      <dc:creator>serhatTUG4N</dc:creator>
      <dc:date>2024-03-13T12:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: BCTU EMIOS Extra Triggering Issue</title>
      <link>https://community.nxp.com/t5/S32K/BCTU-EMIOS-Extra-Triggering-Issue/m-p/1827905#M32951</link>
      <description>&lt;P&gt;&lt;A href="mailto:Hi@serhatTUG4N" target="_blank"&gt;Hi@serhatTUG4N&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;I didn't test your code because I already saw some errors when I opened the project.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1710382839791.png" style="width: 510px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/268243i54E245A186533E3E/image-dimensions/510x111?v=v2" width="510" height="111" role="button" title="Senlent_0-1710382839791.png" alt="Senlent_0-1710382839791.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;you can refer to the attachments which i wrote before.&lt;/P&gt;
&lt;P&gt;the hardware is S32K3X4-Q257, hardware trigger BCTU via emios-pwm to sample ADC.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 02:27:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/BCTU-EMIOS-Extra-Triggering-Issue/m-p/1827905#M32951</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-03-14T02:27:07Z</dc:date>
    </item>
  </channel>
</rss>

