<?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のトピックADC HardWare Trigger Using PDB Autosar mode</title>
    <link>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2006123#M43844</link>
    <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I come here because after a lot of tries, I cannot successfully trigger the sampling of the ADC with the PDB using the MCALs drivers.&lt;/P&gt;&lt;P&gt;What I have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm using an S32K144 demoboard&lt;/LI&gt;&lt;LI&gt;I program it with S32DS using the SDK for easier configuration of the driver&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What I want:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Let's say I want to sample 3 channels with the ADC0 at 10kHz&lt;/LI&gt;&lt;LI&gt;I would like to trigger the samples with the PDB, but each channel is triggered with its specific timing&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For exemple, if the PDB counter goes from 0 to 8000 ; I would like the ADC0CH0 to be triggered when the counter value is 2000, ADC0CH1 at 4000 and ADC0CH2 at 6000.&lt;/P&gt;&lt;P&gt;The idea is then to program those timings dynamically so that we can change the moment when the samples are done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me setting up all of this? For now, after my tries, I could trigger the ADC using the GPT MCAL with the LPIT0 timer but all the samples are done at the same time, I cannot add a delay between them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw this topic in the forum: &lt;A href="https://community.nxp.com/t5/S32K/How-to-config-PDB-in-S32K144-using-MCAL/m-p/1722130" target="_blank"&gt;https://community.nxp.com/t5/S32K/How-to-config-PDB-in-S32K144-using-MCAL/m-p/1722130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I can't open the project since it seems it hasn't been done with S32DS, or at least not with the config tool I'm using (I need a .mex file in the project)&lt;/P&gt;&lt;P&gt;Thank you for your time &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt; &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 03 Dec 2024 13:12:28 GMT</pubDate>
    <dc:creator>Anthony_PAT_EFI</dc:creator>
    <dc:date>2024-12-03T13:12:28Z</dc:date>
    <item>
      <title>ADC HardWare Trigger Using PDB Autosar mode</title>
      <link>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2006123#M43844</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;I come here because after a lot of tries, I cannot successfully trigger the sampling of the ADC with the PDB using the MCALs drivers.&lt;/P&gt;&lt;P&gt;What I have:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I'm using an S32K144 demoboard&lt;/LI&gt;&lt;LI&gt;I program it with S32DS using the SDK for easier configuration of the driver&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;What I want:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Let's say I want to sample 3 channels with the ADC0 at 10kHz&lt;/LI&gt;&lt;LI&gt;I would like to trigger the samples with the PDB, but each channel is triggered with its specific timing&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;For exemple, if the PDB counter goes from 0 to 8000 ; I would like the ADC0CH0 to be triggered when the counter value is 2000, ADC0CH1 at 4000 and ADC0CH2 at 6000.&lt;/P&gt;&lt;P&gt;The idea is then to program those timings dynamically so that we can change the moment when the samples are done.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you help me setting up all of this? For now, after my tries, I could trigger the ADC using the GPT MCAL with the LPIT0 timer but all the samples are done at the same time, I cannot add a delay between them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I saw this topic in the forum: &lt;A href="https://community.nxp.com/t5/S32K/How-to-config-PDB-in-S32K144-using-MCAL/m-p/1722130" target="_blank"&gt;https://community.nxp.com/t5/S32K/How-to-config-PDB-in-S32K144-using-MCAL/m-p/1722130&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I can't open the project since it seems it hasn't been done with S32DS, or at least not with the config tool I'm using (I need a .mex file in the project)&lt;/P&gt;&lt;P&gt;Thank you for your time &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt; &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Dec 2024 13:12:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2006123#M43844</guid>
      <dc:creator>Anthony_PAT_EFI</dc:creator>
      <dc:date>2024-12-03T13:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: ADC HardWare Trigger Using PDB Autosar mode</title>
      <link>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2006780#M43867</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Anthony_PAT_EFI&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;This demo is made base on RTM 4.0.1 and S32 DS V3.4.&lt;/P&gt;
&lt;P&gt;FTM to trigger PDB through TRGMUX and PDB pre-trigger ADC to sample.&lt;/P&gt;
&lt;P&gt;You can refer to it and let me know if you have any questions about the demo.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 08:11:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2006780#M43867</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-12-04T08:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: ADC HardWare Trigger Using PDB Autosar mode</title>
      <link>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2007082#M43887</link>
      <description>&lt;P&gt;Hello !&lt;BR /&gt;&lt;BR /&gt;Unfortunatly, this project has been done for S32k116! I'm using a S32K144 which doesn't have the MCAL named PDB (or something like this) so I can't use the project you gave me &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;BR /&gt;In the SDK, there is the Low Level driver PDB but I'd like to use only High Level Driver.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have the same example but for the S32K144? Pls&lt;/P&gt;</description>
      <pubDate>Wed, 04 Dec 2024 13:16:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2007082#M43887</guid>
      <dc:creator>Anthony_PAT_EFI</dc:creator>
      <dc:date>2024-12-04T13:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: ADC HardWare Trigger Using PDB Autosar mode</title>
      <link>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2007685#M43906</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Anthony_PAT_EFI&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I guess you are using the RTD driver of S32K1,right?&amp;nbsp;Your previous reply was a bit confusing for me, because S32K1 provides two SDKs: RTM and RTD&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This pacakge made base on RTD1.0.1 and with S32K148 used, you can refer to it.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K148-RTD-Example-Use-cases-Projects/m-p/1633067#M22078" target="_blank"&gt;https://community.nxp.com/t5/S32K/S32K148-RTD-Example-Use-cases-Projects/m-p/1633067#M22078&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;After you download this package, you may find below demos and you can refer to hightlight demo.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1733364567527.png" style="width: 725px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314185i2364F51AC9527F63/image-dimensions/725x350?v=v2" width="725" height="350" role="button" title="Senlent_0-1733364567527.png" alt="Senlent_0-1733364567527.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Dec 2024 02:13:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2007685#M43906</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-12-05T02:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: ADC HardWare Trigger Using PDB Autosar mode</title>
      <link>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2009510#M43996</link>
      <description>&lt;P&gt;Hello!&lt;BR /&gt;Thank you for your answer.&lt;BR /&gt;Thank you also for the package you gave me it can be really helpful for the following project. However, in the example you highlighted, we indeed use everything I asked except the part where we can change dynamically the PDB timings.&lt;/P&gt;&lt;P&gt;Do you have any other example about this? Or maybe make one? &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;I could see on the web that I'm not the only one asking for this so it can help more than one &lt;LI-EMOJI id="lia_grinning-face-with-smiling-eyes" title=":grinning_face_with_smiling_eyes:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Sat, 07 Dec 2024 18:18:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2009510#M43996</guid>
      <dc:creator>Anthony_PAT_EFI</dc:creator>
      <dc:date>2024-12-07T18:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: ADC HardWare Trigger Using PDB Autosar mode</title>
      <link>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2009829#M44013</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Anthony_PAT_EFI&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I made a PDB trigger ADC routine with reference to "Adc_example_S32K144", you can refer to it.&lt;/P&gt;
&lt;P&gt;The hardware is S32K144EVB and RTD Version is 1.0.1.&lt;/P&gt;
&lt;P&gt;10K = 48MHz/4800&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_0-1733732284463.png" style="width: 739px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314763i3DE1FFB64ADDB446/image-dimensions/739x139?v=v2" width="739" height="139" role="button" title="Senlent_0-1733732284463.png" alt="Senlent_0-1733732284463.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;PDB delay time:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Senlent_1-1733732326919.png" style="width: 737px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/314764i04228DD607613421/image-dimensions/737x234?v=v2" width="737" height="234" role="button" title="Senlent_1-1733732326919.png" alt="Senlent_1-1733732326919.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 08:20:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2009829#M44013</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-12-09T08:20:49Z</dc:date>
    </item>
    <item>
      <title>Re: ADC HardWare Trigger Using PDB Autosar mode</title>
      <link>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2010073#M44037</link>
      <description>&lt;P&gt;Hello! Thank you for your work and your example&lt;BR /&gt;&lt;BR /&gt;This almost exactly what I need! &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;It misses the part where you can change the PDB delay time from the code.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any example to do it pls? &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt; &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 10:31:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2010073#M44037</guid>
      <dc:creator>Anthony_PAT_EFI</dc:creator>
      <dc:date>2024-12-09T10:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: ADC HardWare Trigger Using PDB Autosar mode</title>
      <link>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2010612#M44069</link>
      <description>&lt;P&gt;Hi@&lt;SPAN&gt;Anthony_PAT_EFI&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I did not find any API to adjust PDB Delay in the API provided by MCAL.&lt;/P&gt;
&lt;P&gt;The PDB Delay setting is determined when the ADC is initialized.&lt;/P&gt;
&lt;P&gt;If you need to modify the PDB configuration, I think it may be easier to use bare metal code.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 02:37:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2010612#M44069</guid>
      <dc:creator>Senlent</dc:creator>
      <dc:date>2024-12-10T02:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: ADC HardWare Trigger Using PDB Autosar mode</title>
      <link>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2012088#M44165</link>
      <description>&lt;P&gt;Ok thank you, I'll deal with this&lt;/P&gt;</description>
      <pubDate>Wed, 11 Dec 2024 14:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/ADC-HardWare-Trigger-Using-PDB-Autosar-mode/m-p/2012088#M44165</guid>
      <dc:creator>Anthony_PAT_EFI</dc:creator>
      <dc:date>2024-12-11T14:39:09Z</dc:date>
    </item>
  </channel>
</rss>

