<?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: Multiple PDB trigger output</title>
    <link>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1440689#M14847</link>
    <description>&lt;P&gt;How to do the:&lt;BR /&gt;"Do you have pdb_config_1_adcTrigConfign defined with pretrigger index and pretrigger output options enabled?"&lt;BR /&gt;Al my configuration is now posted for PDB_0.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2022 14:31:52 GMT</pubDate>
    <dc:creator>Antal</dc:creator>
    <dc:date>2022-04-07T14:31:52Z</dc:date>
    <item>
      <title>Multiple PDB trigger output</title>
      <link>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1439828#M14815</link>
      <description>&lt;P&gt;I want to generate multiple triggers for the ADC.&lt;BR /&gt;The PDB's input trigger originates from PWM:&lt;BR /&gt;Ftm0InitTrig -&amp;gt; Pdb0TrgIn. Relative to this, I want to generate ADC conversion on 600, 1300, 2000, and 2700 clock delays.&lt;/P&gt;&lt;P&gt;I can only make one trigger with (INST_PDB_0, 0, 0, delay) setup.&lt;BR /&gt;Did I misunderstand the PDB functions, or am I doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;void PDB0_init(void)&lt;BR /&gt;{&lt;BR /&gt;PDB_DRV_Init(INST_PDB_0, &amp;amp;pdb_config_1_timerConfig0);&lt;BR /&gt;PDB_DRV_Init(INST_PDB_0, &amp;amp;pdb_config_1_timerConfig1);&lt;BR /&gt;PDB_DRV_Init(INST_PDB_0, &amp;amp;pdb_config_1_timerConfig2);&lt;BR /&gt;PDB_DRV_Init(INST_PDB_0, &amp;amp;pdb_config_1_timerConfig3);&lt;/P&gt;&lt;P&gt;PDB_DRV_Enable(INST_PDB_0); // enable PDB before LDOK&lt;/P&gt;&lt;P&gt;// config pretriggers on ch0 based on component setting&lt;BR /&gt;PDB_DRV_ConfigAdcPreTrigger(INST_PDB_0, 0UL, &amp;amp;pdb_config_1_adcTrigConfig0);&lt;BR /&gt;PDB_DRV_ConfigAdcPreTrigger(INST_PDB_0, 0UL, &amp;amp;pdb_config_1_adcTrigConfig1);&lt;BR /&gt;PDB_DRV_ConfigAdcPreTrigger(INST_PDB_0, 0UL, &amp;amp;pdb_config_1_adcTrigConfig2);&lt;BR /&gt;PDB_DRV_ConfigAdcPreTrigger(INST_PDB_0, 0UL, &amp;amp;pdb_config_1_adcTrigConfig3);&lt;BR /&gt;PDB_DRV_ConfigAdcPreTrigger(INST_PDB_0, 0UL, &amp;amp;pdb_config_1_adcTrigConfig4);&lt;BR /&gt;PDB_DRV_ConfigAdcPreTrigger(INST_PDB_0, 0UL, &amp;amp;pdb_config_1_adcTrigConfig5);&lt;BR /&gt;PDB_DRV_ConfigAdcPreTrigger(INST_PDB_0, 0UL, &amp;amp;pdb_config_1_adcTrigConfig6);&lt;/P&gt;&lt;P&gt;/* Set PDB0 modulus value */&lt;BR /&gt;PDB_DRV_SetTimerModulusValue(INST_PDB_0, 4096);&lt;/P&gt;&lt;P&gt;/* PDB0 pre-trigger0 delays set to sense in the middle of the PWM cycle */&lt;/P&gt;&lt;P&gt;PDB_DRV_SetAdcPreTriggerDelayValue(INST_PDB_0, 0, 0, 600); // 640 -&amp;gt; 16us, OK&lt;BR /&gt;PDB_DRV_SetAdcPreTriggerDelayValue(INST_PDB_0, 0, 1, 1300); // 1300 -&amp;gt; 24us ?&lt;BR /&gt;PDB_DRV_SetAdcPreTriggerDelayValue(INST_PDB_0, 0, 2, 2000); // 2400 -&amp;gt; 33.6us ?&lt;BR /&gt;PDB_DRV_SetAdcPreTriggerDelayValue(INST_PDB_0, 0, 3, 2700); // 2700 -&amp;gt; 42.4us ?&lt;/P&gt;&lt;P&gt;// PDB_DRV_SetCmpPulseOutDelayForHigh(INST_PDB_0, 0L , 0); // &amp;lt;- PDB0PulseOut signal in TRGMUX&lt;BR /&gt;// PDB_DRV_SetCmpPulseOutDelayForLow(INST_PDB_0, 0L, 600); // &amp;lt;- PDB0PulseOut signal in TRGMUX&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;// PDB_DRV_SetCmpPulseOutEnable(INST_PDB_0, 1&amp;lt;&amp;lt;0, true);&lt;/P&gt;&lt;P&gt;//PDB_DRV_SetValueForTimerInterrupt(INST_PDB_0, 4999); /* Set PDB1 interrupt delay value */&lt;/P&gt;&lt;P&gt;PDB_DRV_LoadValuesCmd(INST_PDB_0); /* Load PDB0 configuration */&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2022 17:07:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1439828#M14815</guid>
      <dc:creator>Antal</dc:creator>
      <dc:date>2022-04-06T17:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple PDB trigger output</title>
      <link>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1440440#M14835</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;usage of functions&amp;nbsp;&lt;SPAN&gt;PDB_DRV_ConfigAdcPreTrigger,&amp;nbsp;PDB_DRV_SetAdcPreTriggerDelayValue&lt;/SPAN&gt; is correct.&lt;BR /&gt;So you do not see ch0DLYn registers written, and triggers does not happen in desired time?&amp;nbsp;&lt;BR /&gt;Do you have&amp;nbsp;&lt;SPAN&gt;pdb_config_1_adcTrigConfign defined with pretrigger index and pretrigger output&amp;nbsp;options enabled?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 09:30:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1440440#M14835</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2022-04-07T09:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple PDB trigger output</title>
      <link>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1440637#M14846</link>
      <description>&lt;P&gt;Of these, only the first configuration is active with correct timing for any selected clock delay:&lt;/P&gt;&lt;P&gt;PDB_DRV_SetAdcPreTriggerDelayValue(INST_PDB_0, 0, 0, 600); // 640 -&amp;gt; 16us, OK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Antal_0-1649338824015.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/176270i3CFBC3A860372532/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Antal_0-1649338824015.png" alt="Antal_0-1649338824015.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;These are not triggering the ADC :&lt;BR /&gt;PDB_DRV_SetAdcPreTriggerDelayValue(INST_PDB_0, 0, 1, 1300); // 1300 -&amp;gt; 24us ?&lt;BR /&gt;PDB_DRV_SetAdcPreTriggerDelayValue(INST_PDB_0, 0, 2, 2000); // 2400 -&amp;gt; 33.6us ?&lt;BR /&gt;PDB_DRV_SetAdcPreTriggerDelayValue(INST_PDB_0, 0, 3, 2700); // 2700 -&amp;gt; 42.4us ?&lt;/P&gt;&lt;P&gt;I observed the ADC conversion in the ADC0_IRQHandler() using an output pin On/Off during the interrupt execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My setup for this:&lt;/P&gt;&lt;P&gt;---------------------------------------------------------------------------------&lt;BR /&gt;/*! @brief ADC pre-trigger configurations */&lt;BR /&gt;const pdb_adc_pretrigger_config_t pdb_config_1_adcTrigConfig0 = {&lt;BR /&gt;.adcPreTriggerIdx = 0U,&lt;BR /&gt;.preTriggerEnable = true,&lt;BR /&gt;.preTriggerOutputEnable = true,&lt;BR /&gt;.preTriggerBackToBackEnable = false&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const pdb_adc_pretrigger_config_t pdb_config_1_adcTrigConfig1 = {&lt;BR /&gt;.adcPreTriggerIdx = 1U,&lt;BR /&gt;.preTriggerEnable = true,&lt;BR /&gt;.preTriggerOutputEnable = true,&lt;BR /&gt;.preTriggerBackToBackEnable = true&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const pdb_adc_pretrigger_config_t pdb_config_1_adcTrigConfig2 = {&lt;BR /&gt;.adcPreTriggerIdx = 2U,&lt;BR /&gt;.preTriggerEnable = true,&lt;BR /&gt;.preTriggerOutputEnable = true,&lt;BR /&gt;.preTriggerBackToBackEnable = true&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const pdb_adc_pretrigger_config_t pdb_config_1_adcTrigConfig3 = {&lt;BR /&gt;.adcPreTriggerIdx = 3U,&lt;BR /&gt;.preTriggerEnable = true,&lt;BR /&gt;.preTriggerOutputEnable = true,&lt;BR /&gt;.preTriggerBackToBackEnable = true&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const pdb_adc_pretrigger_config_t pdb_config_1_adcTrigConfig4 = {&lt;BR /&gt;.adcPreTriggerIdx = 4U,&lt;BR /&gt;.preTriggerEnable = true,&lt;BR /&gt;.preTriggerOutputEnable = true,&lt;BR /&gt;.preTriggerBackToBackEnable = true&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const pdb_adc_pretrigger_config_t pdb_config_1_adcTrigConfig5 = {&lt;BR /&gt;.adcPreTriggerIdx = 5U,&lt;BR /&gt;.preTriggerEnable = true,&lt;BR /&gt;.preTriggerOutputEnable = true,&lt;BR /&gt;.preTriggerBackToBackEnable = true&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const pdb_adc_pretrigger_config_t pdb_config_1_adcTrigConfig6 = {&lt;BR /&gt;.adcPreTriggerIdx = 6U,&lt;BR /&gt;.preTriggerEnable = true,&lt;BR /&gt;.preTriggerOutputEnable = true,&lt;BR /&gt;.preTriggerBackToBackEnable = true&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/*! @brief PDB timer configurations */&lt;BR /&gt;const pdb_timer_config_t pdb_config_1_timerConfig0 = {&lt;BR /&gt;.loadValueMode = PDB_LOAD_VAL_IMMEDIATELY,&lt;BR /&gt;.seqErrIntEnable = false,&lt;BR /&gt;.clkPreDiv = PDB_CLK_PREDIV_BY_1,&lt;BR /&gt;.clkPreMultFactor = PDB_CLK_PREMULT_FACT_AS_1,&lt;BR /&gt;.triggerInput = PDB_TRIGGER_IN0,&lt;BR /&gt;.continuousModeEnable = false,&lt;BR /&gt;.dmaEnable = false,&lt;BR /&gt;.intEnable = false,&lt;BR /&gt;.instanceBackToBackEnable = false,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const pdb_timer_config_t pdb_config_1_timerConfig1 = {&lt;BR /&gt;.loadValueMode = PDB_LOAD_VAL_IMMEDIATELY,&lt;BR /&gt;.seqErrIntEnable = false,&lt;BR /&gt;.clkPreDiv = PDB_CLK_PREDIV_BY_1,&lt;BR /&gt;.clkPreMultFactor = PDB_CLK_PREMULT_FACT_AS_1,&lt;BR /&gt;.triggerInput = PDB_TRIGGER_IN0,&lt;BR /&gt;.continuousModeEnable = false,&lt;BR /&gt;.dmaEnable = false,&lt;BR /&gt;.intEnable = false,&lt;BR /&gt;.instanceBackToBackEnable = false,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const pdb_timer_config_t pdb_config_1_timerConfig2 = {&lt;BR /&gt;.loadValueMode = PDB_LOAD_VAL_IMMEDIATELY,&lt;BR /&gt;.seqErrIntEnable = false,&lt;BR /&gt;.clkPreDiv = PDB_CLK_PREDIV_BY_1,&lt;BR /&gt;.clkPreMultFactor = PDB_CLK_PREMULT_FACT_AS_1,&lt;BR /&gt;.triggerInput = PDB_TRIGGER_IN0,&lt;BR /&gt;.continuousModeEnable = false,&lt;BR /&gt;.dmaEnable = false,&lt;BR /&gt;.intEnable = false,&lt;BR /&gt;.instanceBackToBackEnable = false,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const pdb_timer_config_t pdb_config_1_timerConfig3 = {&lt;BR /&gt;.loadValueMode = PDB_LOAD_VAL_IMMEDIATELY,&lt;BR /&gt;.seqErrIntEnable = false,&lt;BR /&gt;.clkPreDiv = PDB_CLK_PREDIV_BY_1,&lt;BR /&gt;.clkPreMultFactor = PDB_CLK_PREMULT_FACT_AS_1,&lt;BR /&gt;.triggerInput = PDB_TRIGGER_IN0,&lt;BR /&gt;.continuousModeEnable = false,&lt;BR /&gt;.dmaEnable = false,&lt;BR /&gt;.intEnable = false,&lt;BR /&gt;.instanceBackToBackEnable = false,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 13:40:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1440637#M14846</guid>
      <dc:creator>Antal</dc:creator>
      <dc:date>2022-04-07T13:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple PDB trigger output</title>
      <link>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1440689#M14847</link>
      <description>&lt;P&gt;How to do the:&lt;BR /&gt;"Do you have pdb_config_1_adcTrigConfign defined with pretrigger index and pretrigger output options enabled?"&lt;BR /&gt;Al my configuration is now posted for PDB_0.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 14:31:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1440689#M14847</guid>
      <dc:creator>Antal</dc:creator>
      <dc:date>2022-04-07T14:31:52Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple PDB trigger output</title>
      <link>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1441047#M14854</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;you have back-to-back enabled for pretriggers1-7, so its delay is ignored. So disable it thus pretrigger delay can be used&lt;BR /&gt;However with back-to-back operation a conversion should be done too.&lt;/P&gt;
&lt;P&gt;BR, Petr&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 06:29:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1441047#M14854</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2022-04-08T06:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple PDB trigger output</title>
      <link>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1441332#M14879</link>
      <description>&lt;P&gt;Hello Petr,&lt;BR /&gt;I don't understand your response.&lt;BR /&gt;Is the S32K144's PDB hardware support multiple delayed triggers, as the image depicts, or not?&lt;BR /&gt;If yes, and you know the solution can you share it with us?&lt;BR /&gt;Best Regards,&lt;BR /&gt;Antal&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ADC_REatTimeControl.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/176382iA7EE7E41710CF6F1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ADC_REatTimeControl.png" alt="ADC_REatTimeControl.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 13:50:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1441332#M14879</guid>
      <dc:creator>Antal</dc:creator>
      <dc:date>2022-04-08T13:50:34Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple PDB trigger output</title>
      <link>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1441877#M14897</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;if the green box represents single ADC channel then you can achieve this by setting individual pretriggers delay. If it represents multiple channels then it can be done by using back-2-back mode, but just 2 multiple conversion can be initiated using both PDB channels.&lt;/P&gt;
&lt;P&gt;BR, Petr&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2022 07:38:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1441877#M14897</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2022-04-11T07:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple PDB trigger output</title>
      <link>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1569009#M19413</link>
      <description>&lt;P&gt;hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/52961"&gt;@PetrS&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got the same error.&lt;/P&gt;&lt;P&gt;I want to modify the S32K144 pmsm demo to add more analog signals. The original demo uses adc0 to get 1 analog signal, and adc1 to get 2 analog signals. I want to use adc0 and adc1 to get 3 analog signals respectively, totally 6 analog signals. And the pretrigger delay time is 0, 200, 2000. Please see my thread for detail. Also the project.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32-SDK/how-to-config-adc-and-pdb-for-multiple-channels/m-p/1549325" target="_blank"&gt;https://community.nxp.com/t5/S32-SDK/how-to-config-adc-and-pdb-for-multiple-channels/m-p/1549325&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I got pdb sequency error during debug phase and have no idea on how to solve it. Could you give me some support?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 13:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Multiple-PDB-trigger-output/m-p/1569009#M19413</guid>
      <dc:creator>Jimny</dc:creator>
      <dc:date>2022-12-13T13:28:32Z</dc:date>
    </item>
  </channel>
</rss>

