<?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: S32K148 ADC Config in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K148-ADC-Config/m-p/1191387#M9058</link>
    <description>&lt;P&gt;Thanks, y&lt;SPAN&gt;our reply was of great help to me.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Dec 2020 07:58:12 GMT</pubDate>
    <dc:creator>linglei_meng</dc:creator>
    <dc:date>2020-12-01T07:58:12Z</dc:date>
    <item>
      <title>S32K148 ADC Config</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-ADC-Config/m-p/1190855#M9046</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello NXP team,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;We are using ADC1 in our project. I a&lt;/SPAN&gt;&lt;SPAN&gt;m configured the 26 channel of ADC1 according to the example and detected the voltage, but I don't get the value in the data register. Please help to check whether I have to configure it correctly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;ADC_DRV_ConfigConverter(INST_ADCONV1, &amp;amp;adConv1_ConvConfig0);&lt;BR /&gt;ADC_DRV_AutoCalibration(INST_ADCONV1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;/* Configure ADC channel and software trigger a conversion */&lt;BR /&gt;ADC_DRV_ConfigChan(INST_ADCONV1, 26U, &amp;amp;adConv1_ChnConfig0);&lt;BR /&gt;/* Wait for the conversion to be done */&lt;BR /&gt;ADC_DRV_WaitConvDone(INST_ADCONV1);&lt;/P&gt;&lt;P&gt;/* Store the channel result into a local variable */&lt;BR /&gt;ADC_DRV_GetChanResult(INST_ADCONV1, 26U, &amp;amp;adcRawValue);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;#include "adConv1.h"&lt;/P&gt;&lt;P&gt;/*! adConv1 configuration structure */&lt;BR /&gt;const adc_converter_config_t adConv1_ConvConfig0 = {&lt;BR /&gt;.clockDivide = ADC_CLK_DIVIDE_4,&lt;BR /&gt;.sampleTime = 12U,&lt;BR /&gt;.resolution = ADC_RESOLUTION_12BIT,&lt;BR /&gt;.inputClock = ADC_CLK_ALT_1,&lt;BR /&gt;.trigger = ADC_TRIGGER_SOFTWARE,&lt;BR /&gt;.pretriggerSel = ADC_PRETRIGGER_SEL_PDB,&lt;BR /&gt;.triggerSel = ADC_TRIGGER_SEL_PDB,&lt;BR /&gt;.dmaEnable = false,&lt;BR /&gt;.voltageRef = ADC_VOLTAGEREF_VREF,&lt;BR /&gt;.continuousConvEnable = false,&lt;BR /&gt;.supplyMonitoringEnable = false,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const adc_chan_config_t adConv1_ChnConfig0 = {&lt;BR /&gt;.interruptEnable = false,&lt;BR /&gt;.channel = ADC_INPUTCHAN_EXT26,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const adc_compare_config_t adConv1_HwCompConfig0 = {&lt;BR /&gt;.compareEnable = false,&lt;BR /&gt;.compareGreaterThanEnable = false,&lt;BR /&gt;.compareRangeFuncEnable = false,&lt;BR /&gt;.compVal1 = 0U,&lt;BR /&gt;.compVal2 = 0U,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;const adc_average_config_t adConv1_HwAvgConfig0 = {&lt;BR /&gt;.hwAvgEnable = false,&lt;BR /&gt;.hwAverage = ADC_AVERAGE_4,&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;/* END adConv1. */&lt;/P&gt;</description>
      <pubDate>Mon, 30 Nov 2020 10:10:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-ADC-Config/m-p/1190855#M9046</guid>
      <dc:creator>linglei_meng</dc:creator>
      <dc:date>2020-11-30T10:10:54Z</dc:date>
    </item>
    <item>
      <title>Re: S32K148 ADC Config</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-ADC-Config/m-p/1191363#M9057</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="comment"&gt;when Software Trigger mode is enabled, configuring control channel index 0,&lt;/SPAN&gt;&lt;SPAN class="comment"&gt;&amp;nbsp;implicitly triggers a new conversion on the selected ADC input channel (defined in &lt;SPAN&gt;adConv1_ChnConfig0)&lt;/SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="comment"&gt;Therefore, ADC_DRV_ConfigChan can be used for sw-triggering conversions. Thus you should use rather&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="comment"&gt;&lt;SPAN&gt;ADC_DRV_ConfigChan(INST_ADCONV1, 0U, &amp;amp;adConv1_ChnConfig0);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="comment"&gt;&lt;SPAN&gt;ADC_DRV_GetChanResult(INST_ADCONV1, 0U, &amp;amp;adcRawValue);&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="line"&gt;&lt;SPAN class="comment"&gt;&lt;SPAN&gt;BR, Petr&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:24:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-ADC-Config/m-p/1191363#M9057</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2020-12-01T07:24:34Z</dc:date>
    </item>
    <item>
      <title>，Re: S32K148 ADC Config</title>
      <link>https://community.nxp.com/t5/S32K/S32K148-ADC-Config/m-p/1191387#M9058</link>
      <description>&lt;P&gt;Thanks, y&lt;SPAN&gt;our reply was of great help to me.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Dec 2020 07:58:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K148-ADC-Config/m-p/1191387#M9058</guid>
      <dc:creator>linglei_meng</dc:creator>
      <dc:date>2020-12-01T07:58:12Z</dc:date>
    </item>
  </channel>
</rss>

