<?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: [S32K146] : Need help about ADC management in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K146-Need-help-about-ADC-management/m-p/824838#M3173</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your response, but in fact, in my understanding ADC0 means analog input 0 (channel 0), but not an instance, so know it is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question, on same instance (ADC0 for exemple), if there are 4 channels, is it possible to read in same time the ADC result of each analog input, and if yes how do you do this, because, if I correctly understand, you have to:&lt;/P&gt;&lt;P&gt;1 : Select your channel (one only), and initiate conversion&lt;/P&gt;&lt;P&gt;2 : Wait for ADC completion&lt;/P&gt;&lt;P&gt;3 : Read the ADC result (12 bits) on selected channel.&lt;/P&gt;&lt;P&gt;So with this exemple, it is not possible to read several channel in same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2018 16:10:27 GMT</pubDate>
    <dc:creator>sebastien_ledio</dc:creator>
    <dc:date>2018-11-12T16:10:27Z</dc:date>
    <item>
      <title>[S32K146] : Need help about ADC management</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-Need-help-about-ADC-management/m-p/824836#M3171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello wonderful community,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on S32K146 µc, and I try to "play" with ADC functionnality, but I occurs any understanding.&lt;/P&gt;&lt;P&gt;It is about SC1 (ADC Status and Control Register 1) and RA (ADC Data Result Registers).&lt;/P&gt;&lt;P&gt;These registers have each one 16 possible addresses. So I think basically than each address is for each ADC, I mean for ADC0 --&amp;gt; SC1[0] and RA[0], ADC1 --&amp;gt; SC1[1] and RA[1],&amp;nbsp;ADC2 --&amp;gt; SC1[2] and RA[2], ...,&amp;nbsp;ADC15 --&amp;gt; SC1[15] and RA[15]&lt;/P&gt;&lt;P&gt;But it seems unexact because ADCH from SC1 defines the channel used.&lt;/P&gt;&lt;P&gt;So I am a little lost, someone can help me to understand please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks by advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 08:03:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-Need-help-about-ADC-management/m-p/824836#M3171</guid>
      <dc:creator>sebastien_ledio</dc:creator>
      <dc:date>2018-11-12T08:03:30Z</dc:date>
    </item>
    <item>
      <title>Re: [S32K146] : Need help about ADC management</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-Need-help-about-ADC-management/m-p/824837#M3172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sebastien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The S32K146 derivative has 2 ADC instances, ADC0 and ADC1.&lt;/P&gt;&lt;P&gt;As you just described, if you use ADC0-&amp;gt;SC1[0], regardless of ADCH which selects the analog inputs, the result will be in&amp;nbsp;ADC0-&amp;gt;R[0].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 15:41:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-Need-help-about-ADC-management/m-p/824837#M3172</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-11-12T15:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: [S32K146] : Need help about ADC management</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-Need-help-about-ADC-management/m-p/824838#M3173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your response, but in fact, in my understanding ADC0 means analog input 0 (channel 0), but not an instance, so know it is ok.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have another question, on same instance (ADC0 for exemple), if there are 4 channels, is it possible to read in same time the ADC result of each analog input, and if yes how do you do this, because, if I correctly understand, you have to:&lt;/P&gt;&lt;P&gt;1 : Select your channel (one only), and initiate conversion&lt;/P&gt;&lt;P&gt;2 : Wait for ADC completion&lt;/P&gt;&lt;P&gt;3 : Read the ADC result (12 bits) on selected channel.&lt;/P&gt;&lt;P&gt;So with this exemple, it is not possible to read several channel in same time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sebastien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 16:10:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-Need-help-about-ADC-management/m-p/824838#M3173</guid>
      <dc:creator>sebastien_ledio</dc:creator>
      <dc:date>2018-11-12T16:10:27Z</dc:date>
    </item>
    <item>
      <title>Re: [S32K146] : Need help about ADC management</title>
      <link>https://community.nxp.com/t5/S32K/S32K146-Need-help-about-ADC-management/m-p/824839#M3174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sebastien,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The conversion can be trigger either by SW or by HW triggers.&lt;BR /&gt;However, only ADCn-&amp;gt;SC1[0] support SW trigger and the conversion gets triggered by a write to SC1[0]_ADCH.&lt;BR /&gt;Once the conversion is done, SC1[0]_COCO bit is set and the data are available in ADC0-&amp;gt;R[0].&lt;BR /&gt;The next conversion is again triggered by a write to SC1[0]_ADCH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WH triggers are more flexible. PDB can be configured to trigger multiple channels in back-to-back conversion.&lt;BR /&gt;There is an example:&amp;nbsp;&lt;A href="https://community.nxp.com/docs/DOC-332749"&gt;https://community.nxp.com/docs/DOC-332749&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please note that the SDK ADC_PAL driver allows to trigger multiple channels by SW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2018 20:15:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K146-Need-help-about-ADC-management/m-p/824839#M3174</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2018-11-12T20:15:16Z</dc:date>
    </item>
  </channel>
</rss>

