<?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: PDB - ADC back to back triggering (S32K micro)</title>
    <link>https://community.nxp.com/t5/S32K/PDB-ADC-back-to-back-triggering-S32K-micro/m-p/645848#M463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out the problem is with sequence in which initialization of ADC and PDB configuration&lt;/P&gt;&lt;P&gt;is being called in my main code. &amp;nbsp;In my main code, PDB initialization is called before ADC.&lt;/P&gt;&lt;P&gt;The ADC initialization routine that I have contains auto-calibration.&lt;/P&gt;&lt;P&gt;Once I comment out the auto-calibration part from my ADC initialization, &amp;nbsp;or swap ADC and PDB&lt;/P&gt;&lt;P&gt;initialization, my program runs just fine. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect auto-calibration of ADC might run longer than one PDB period (maximum count on PDB as specified by&lt;/P&gt;&lt;P&gt;PDB-&amp;gt;MOD). &amp;nbsp;I am not quite clear behavior of S32 micro, when PDB goes over several cycles when ADC&lt;/P&gt;&lt;P&gt;doesn't get a chance to respond to previous pre-trigger. &amp;nbsp;Is it simply just reporting the error to PDB-&amp;gt;CHnS&lt;/P&gt;&lt;P&gt;register, or it will do something about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tanto&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Jan 2017 18:24:15 GMT</pubDate>
    <dc:creator>tsugiart</dc:creator>
    <dc:date>2017-01-27T18:24:15Z</dc:date>
    <item>
      <title>PDB - ADC back to back triggering (S32K micro)</title>
      <link>https://community.nxp.com/t5/S32K/PDB-ADC-back-to-back-triggering-S32K-micro/m-p/645847#M462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I attempt to trigger ADC via PDB in back to back fashion. &amp;nbsp;&lt;/P&gt;&lt;P&gt;I have read other &lt;A _jive_internal="true" data-containerid="11492" data-containertype="14" data-objectid="332749" data-objecttype="102" href="https://community.nxp.com/docs/DOC-332749" style="color: #2989c5;"&gt;link&lt;/A&gt; on how to do this. The link provides an example where&amp;nbsp;&lt;/P&gt;&lt;P&gt;initial trigger is performed by software trigger. However, I would like to perform&lt;/P&gt;&lt;P&gt;the initial trigger by trigger delay from PDB. &amp;nbsp;I can't get it to work with my&amp;nbsp;&lt;/P&gt;&lt;P&gt;PDB configuration. Below, is some of relevant PDB configuration that I think&amp;nbsp;&lt;/P&gt;&lt;P&gt;is critical. &amp;nbsp;Basically, I try to trigger 2 A2D channel (Ch0 and Ch1 of ADC0).&lt;/P&gt;&lt;P&gt;Ch0 is triggered by pre-trigger delay of PDB, Ch1 is triggered after it receives&lt;/P&gt;&lt;P&gt;COCO flag from Ch0 &amp;nbsp;(back to back).&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;SIM_CHIPCTL[PDB_BB_SEL] = 0;&lt;/P&gt;&lt;P&gt;PDB0-&amp;gt;MOD = 950;&lt;/P&gt;&lt;P&gt;PDB0-&amp;gt;CH[0].C1 |&amp;nbsp;&amp;nbsp;&amp;nbsp;=&amp;nbsp;&amp;nbsp;&amp;nbsp;PDB_C1_BB(0b00000010) //Pretrigger Back to Back: 0= disabled, 1=enabled&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| PDB_C1_TOS(0b00000001) //Pretrigger Output Select: 0=bypassed , 1=enabled&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;| PDB_C1_EN(0b00000001); //Pretrigger Enable: 0=enabled , 1=enabled&lt;/P&gt;&lt;P&gt;PDB0-&amp;gt;CH[0].DLY[0] &lt;SPAN class=""&gt;&lt;/SPAN&gt;= 200;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The behavior that I see is in the debugger, Ch0 of ADC0 seems get triggered.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It generates COCO flag, however Ch1 of ADC0 doesn't seem to respond to COCO flag&amp;nbsp;&lt;/P&gt;&lt;P&gt;from Ch0. &amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for your help.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Tanto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 26 Jan 2017 21:29:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PDB-ADC-back-to-back-triggering-S32K-micro/m-p/645847#M462</guid>
      <dc:creator>tsugiart</dc:creator>
      <dc:date>2017-01-26T21:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: PDB - ADC back to back triggering (S32K micro)</title>
      <link>https://community.nxp.com/t5/S32K/PDB-ADC-back-to-back-triggering-S32K-micro/m-p/645848#M463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found out the problem is with sequence in which initialization of ADC and PDB configuration&lt;/P&gt;&lt;P&gt;is being called in my main code. &amp;nbsp;In my main code, PDB initialization is called before ADC.&lt;/P&gt;&lt;P&gt;The ADC initialization routine that I have contains auto-calibration.&lt;/P&gt;&lt;P&gt;Once I comment out the auto-calibration part from my ADC initialization, &amp;nbsp;or swap ADC and PDB&lt;/P&gt;&lt;P&gt;initialization, my program runs just fine. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect auto-calibration of ADC might run longer than one PDB period (maximum count on PDB as specified by&lt;/P&gt;&lt;P&gt;PDB-&amp;gt;MOD). &amp;nbsp;I am not quite clear behavior of S32 micro, when PDB goes over several cycles when ADC&lt;/P&gt;&lt;P&gt;doesn't get a chance to respond to previous pre-trigger. &amp;nbsp;Is it simply just reporting the error to PDB-&amp;gt;CHnS&lt;/P&gt;&lt;P&gt;register, or it will do something about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Tanto&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 18:24:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PDB-ADC-back-to-back-triggering-S32K-micro/m-p/645848#M463</guid>
      <dc:creator>tsugiart</dc:creator>
      <dc:date>2017-01-27T18:24:15Z</dc:date>
    </item>
    <item>
      <title>Re: PDB - ADC back to back triggering (S32K micro)</title>
      <link>https://community.nxp.com/t5/S32K/PDB-ADC-back-to-back-triggering-S32K-micro/m-p/645849#M464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tanto,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, the PDB.CHnS[ERR[m]] gives a feedback about wrong trigger sequence. A sequence error typically happens because the delay m is set too short and the pre-trigger m asserts before the previously triggered ADC conversion finishes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Feb 2017 08:10:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/PDB-ADC-back-to-back-triggering-S32K-micro/m-p/645849#M464</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2017-02-09T08:10:38Z</dc:date>
    </item>
  </channel>
</rss>

