<?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 Re: Use PDB to trigger ADC0 and ADC1 at the same time in S32K</title>
    <link>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1673139#M24219</link>
    <description>&lt;P&gt;Hi VaneB,&lt;/P&gt;&lt;P&gt;Yes. I want to measure ADC bandgap voltage(27) in both ADC.&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2023 02:22:56 GMT</pubDate>
    <dc:creator>ivyxx</dc:creator>
    <dc:date>2023-06-21T02:22:56Z</dc:date>
    <item>
      <title>Use PDB to trigger ADC0 and ADC1 at the same time</title>
      <link>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1672653#M24190</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I use ADC0, ADC1, PDB0, PDB1 to convert ADC bandgap voltage at the same time. The CPU is S32K146. In some boards, the value converted by ADC1 is lower than ADC0. Can ADC0 and ADC1, or PDB0 and PDB1 be used at the same time?&lt;/P&gt;&lt;P&gt;The ADC bus clock is SIRCDIV2, conversion clock is input clock/2, trigger mode is HW trigger. System clock is FIRC.&lt;/P&gt;&lt;P&gt;PDB0 and PDB1 use same config:&lt;/P&gt;&lt;P&gt;PCC-&amp;gt;PCCn[PCC_PDB0_INDEX] |= PCC_PCCn_CGC_MASK;&lt;BR /&gt;PDB0-&amp;gt;SC |= PDB_SC_TRGSEL(0xF) |&amp;nbsp;PDB_SC_PRESCALER(1) |PDB_SC_MULT(0) |&amp;nbsp;PDB_SC_PDBEN_MASK;&amp;nbsp;&lt;BR /&gt;PDB0-&amp;gt;CH[0].C1 |= PDB_C1_BB(0xFE) |&amp;nbsp;PDB_C1_TOS(0x00) |&amp;nbsp;PDB_C1_EN(0xFF);&amp;nbsp;&lt;BR /&gt;PDB0-&amp;gt;SC |= PDB_SC_LDOK_MASK;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I enable sw trigger of PDB0 and PDB1 at the same time and read the result:&lt;/P&gt;&lt;P&gt;PDB0-&amp;gt;SC |= PDB_SC_SWTRIG_MASK;&amp;nbsp;&lt;BR /&gt;PDB1-&amp;gt;SC |= PDB_SC_SWTRIG_MASK;&lt;/P&gt;&lt;P&gt;while(((ADC1-&amp;gt;SC1[7] &amp;amp; ADC_SC1_COCO_MASK)&amp;gt;&amp;gt;ADC_SC1_COCO_SHIFT) == 0);&lt;/P&gt;&lt;P&gt;rawvalue0 = ADC0-&amp;gt;R[1];&lt;/P&gt;&lt;P&gt;rawvalue1 = ADC1-&amp;gt;R[1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 10:33:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1672653#M24190</guid>
      <dc:creator>ivyxx</dc:creator>
      <dc:date>2023-06-20T10:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: Use PDB to trigger ADC0 and ADC1 at the same time</title>
      <link>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1672940#M24206</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190585"&gt;@ivyxx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you clarify if you are trying to measure the same pad with both ADC?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B.R.&lt;/P&gt;
&lt;P&gt;VaneB&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 18:02:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1672940#M24206</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-06-20T18:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Use PDB to trigger ADC0 and ADC1 at the same time</title>
      <link>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1673139#M24219</link>
      <description>&lt;P&gt;Hi VaneB,&lt;/P&gt;&lt;P&gt;Yes. I want to measure ADC bandgap voltage(27) in both ADC.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2023 02:22:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1673139#M24219</guid>
      <dc:creator>ivyxx</dc:creator>
      <dc:date>2023-06-21T02:22:56Z</dc:date>
    </item>
    <item>
      <title>Re: Use PDB to trigger ADC0 and ADC1 at the same time</title>
      <link>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1674596#M24291</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190585"&gt;@ivyxx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is not recommended to measure the same pad with two different ADC. You can get interference or noise in any of the channels.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Jun 2023 18:09:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1674596#M24291</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-06-22T18:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: Use PDB to trigger ADC0 and ADC1 at the same time</title>
      <link>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1675564#M24348</link>
      <description>&lt;P&gt;Hi VaneB,&lt;/P&gt;&lt;P&gt;Just want to make sure, does the same pad means two ADCs connect to the same pin?&lt;/P&gt;&lt;P&gt;Do two ADCs share the same bandgap voltage measure pin?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 03:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1675564#M24348</guid>
      <dc:creator>ivyxx</dc:creator>
      <dc:date>2023-06-26T03:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: Use PDB to trigger ADC0 and ADC1 at the same time</title>
      <link>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1676370#M24420</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190585"&gt;@ivyxx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am sorry if I was not clear.&lt;/P&gt;
&lt;P&gt;I mean two MCU pins each from a different ADC measuring a single pin from your (let's say) external device.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jun 2023 21:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1676370#M24420</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-06-26T21:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: Use PDB to trigger ADC0 and ADC1 at the same time</title>
      <link>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1676651#M24433</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi VaneB,&lt;/P&gt;&lt;P&gt;I thought the Bandgap voltage is the internal pin? I do not know the hardware in the chip, but I want to confirm do the two ADCs measure the same bandgap voltage if I set ADCx-&amp;gt;ADCH to 27 in both ADCs.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ivyxx_1-1687846510991.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/229530i259D6520E05F5963/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ivyxx_1-1687846510991.png" alt="ivyxx_1-1687846510991.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 06:18:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1676651#M24433</guid>
      <dc:creator>ivyxx</dc:creator>
      <dc:date>2023-06-27T06:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use PDB to trigger ADC0 and ADC1 at the same time</title>
      <link>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1678106#M24536</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/190585"&gt;@ivyxx&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the feedback and sorry I misunderstood what you were looking to measure.&lt;/P&gt;
&lt;P&gt;The same situation that I mentioned before continues to apply, when measuring the same reference voltage, in this case, the Bandgap, there may be an interference from an ADC if it is measured at the same time.&lt;/P&gt;
&lt;P&gt;What you could verify is measuring at different times, that is, first the ADC0, wait a while, and then ADC1.&lt;/P&gt;
&lt;P&gt;Let me know if you notice a difference in the values obtained and please share the values.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 22:06:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/Use-PDB-to-trigger-ADC0-and-ADC1-at-the-same-time/m-p/1678106#M24536</guid>
      <dc:creator>VaneB</dc:creator>
      <dc:date>2023-06-28T22:06:06Z</dc:date>
    </item>
  </channel>
</rss>

