<?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: LPC54018 Reading Multiple ADCs in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1256343#M44521</link>
    <description>&lt;P&gt;The code is stuck in the main while loop. It did not work for me.&lt;/P&gt;&lt;P&gt;What could be causing the issue?&lt;/P&gt;</description>
    <pubDate>Fri, 02 Apr 2021 15:20:16 GMT</pubDate>
    <dc:creator>ahmed_mostafa</dc:creator>
    <dc:date>2021-04-02T15:20:16Z</dc:date>
    <item>
      <title>LPC54018 Reading Multiple ADCs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1255987#M44508</link>
      <description>I'm looking to collect multiple ADC readings at the same time with ADC0_4, ADC0_5, ADC0_6. I'm using the ADC basic example for the SDK. I configured all 3 inputs with the same configuration settings. Both are set to sequence A. I was able to receive accurate readings for ADC0_4 and ADC0_5, but for some reason ADC0_6 is not reporting any readings at all. Do I need to configure ADC0_6 differently? On the datasheet it says that ADC[0:5] are the fast channels and ADC[6:11] are the slow channels, does that mean that ADC0_6 can't be read alongside the other ones? If that is the case, how do I read an ADC from input channels 6:11? Should I set them up with sequence B?</description>
      <pubDate>Thu, 01 Apr 2021 21:52:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1255987#M44508</guid>
      <dc:creator>ahmed_mostafa</dc:creator>
      <dc:date>2021-04-01T21:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 Reading Multiple ADCs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1256114#M44513</link>
      <description>&lt;P&gt;Hi, Ahmed,&lt;/P&gt;
&lt;P&gt;Regarding your question, I do not think there is big difference for the ADC[0:5]&amp;nbsp; fast channels and ADC[6:11] slow channel except for the ADC fast/slow channel pin input impedance.&lt;/P&gt;
&lt;P&gt;Regarding your issue, I think your ADC code has issue, pls post your ADC code so that we can have a review.&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Xiangjun Rong&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 04:42:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1256114#M44513</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2021-04-02T04:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 Reading Multiple ADCs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1256317#M44519</link>
      <description>&lt;P&gt;I have attached my code. These 2 files are the only ones I made changes to.&lt;/P&gt;&lt;P&gt;In the pin_mux.c I initialized all 3 ADCs using the same parameters.&lt;/P&gt;&lt;P&gt;Again, ADC0_4 and ADC0_5 seem to work well, but ADC_6 is not working.&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 13:38:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1256317#M44519</guid>
      <dc:creator>ahmed_mostafa</dc:creator>
      <dc:date>2021-04-02T13:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 Reading Multiple ADCs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1256341#M44520</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Pls try to test the code.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;/* Initialize board hardware. */&lt;BR /&gt;/* attach 12 MHz clock to FLEXCOMM0 (debug console) */&lt;/P&gt;
&lt;P&gt;CLOCK_AttachClk(BOARD_DEBUG_UART_CLK_ATTACH);&lt;/P&gt;
&lt;P&gt;BOARD_InitPins();&lt;BR /&gt;BOARD_BootClockPLL180M();&lt;BR /&gt;BOARD_InitDebugConsole();&lt;BR /&gt;/* Reset DMA since core reset in IDE will not reset DMA */&lt;BR /&gt;RESET_SetPeripheralReset(kDMA_RST_SHIFT_RSTn);&lt;BR /&gt;/* Enable the power and clock for ADC. */&lt;BR /&gt;ADC_ClockPower_Configuration();&lt;BR /&gt;PRINTF("ADC basic example.\r\n");&lt;/P&gt;
&lt;P&gt;#if !(defined(FSL_FEATURE_ADC_HAS_NO_CALIB_FUNC) &amp;amp;&amp;amp; FSL_FEATURE_ADC_HAS_NO_CALIB_FUNC)&lt;BR /&gt;uint32_t frequency = 0U;&lt;BR /&gt;/* Calibration after power up. */&lt;BR /&gt;#if defined(FSL_FEATURE_ADC_HAS_CALIB_REG) &amp;amp;&amp;amp; FSL_FEATURE_ADC_HAS_CALIB_REG&lt;BR /&gt;DEMO_ADC_BASE-&amp;gt;CTRL |= ADC_CTRL_BYPASSCAL_MASK;&lt;BR /&gt;frequency = CLOCK_GetFreq(kCLOCK_BusClk);&lt;BR /&gt;if (true == ADC_DoOffsetCalibration(DEMO_ADC_BASE, frequency))&lt;BR /&gt;#else&lt;BR /&gt;#if defined(SYSCON_ADCCLKDIV_DIV_MASK)&lt;BR /&gt;frequency = CLOCK_GetFreq(DEMO_ADC_CLOCK_SOURCE) / CLOCK_GetClkDivider(kCLOCK_DivAdcClk);&lt;BR /&gt;#else&lt;BR /&gt;frequency = CLOCK_GetFreq(DEMO_ADC_CLOCK_SOURCE);&lt;BR /&gt;#endif /* SYSCON_ADCCLKDIV_DIV_MASK */&lt;BR /&gt;if (true == ADC_DoSelfCalibration(DEMO_ADC_BASE, frequency))&lt;BR /&gt;#endif /* FSL_FEATURE_ADC_HAS_CALIB_REG */&lt;BR /&gt;{&lt;BR /&gt;PRINTF("ADC Calibration Done.\r\n");&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;PRINTF("ADC Calibration Failed.\r\n");&lt;BR /&gt;}&lt;BR /&gt;#endif /* FSL_FEATURE_ADC_HAS_NO_CALIB_FUNC */&lt;/P&gt;
&lt;P&gt;/* Configure the converter and work mode. */&lt;BR /&gt;ADC_Configuration();&lt;BR /&gt;PRINTF("Configuration Done.\r\n");&lt;/P&gt;
&lt;P&gt;#if defined(FSL_FEATURE_ADC_HAS_CTRL_RESOL) &amp;amp; FSL_FEATURE_ADC_HAS_CTRL_RESOL&lt;BR /&gt;PRINTF("ADC Full Range: %d\r\n", g_Adc_12bitFullRange);&lt;BR /&gt;#endif /* FSL_FEATURE_ADC_HAS_CTRL_RESOL */&lt;BR /&gt;while (1)&lt;BR /&gt;{&lt;BR /&gt;/* Get the input from terminal and trigger the converter by software. */&lt;BR /&gt;GETCHAR();&lt;BR /&gt;ADC_DoSoftwareTriggerConvSeqA(DEMO_ADC_BASE);&lt;BR /&gt;//ADC_DoSoftwareTriggerConvSeqB(DEMO_ADC_BASE);&lt;/P&gt;
&lt;P&gt;/////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;/P&gt;
&lt;P&gt;///////Rong modified code beginning&lt;/P&gt;
&lt;P&gt;/* Wait for the converter to be done. */&lt;BR /&gt;#if 0 //Rong wrote: it appears the lines is incorrect&lt;BR /&gt;while ((!ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER4, &amp;amp;adcResultInfoStruct))&lt;BR /&gt;&amp;amp;&amp;amp; (!ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER5, &amp;amp;adcResultInfoStruct5))&lt;BR /&gt;&amp;amp;&amp;amp; (!ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER6, &amp;amp;adcResultInfoStruct6)))&lt;BR /&gt;#endif&lt;BR /&gt;&lt;BR /&gt;while(!(ADC0-&amp;gt;FLAGS&amp;amp;0x10000000)) //test the ADC0-&amp;gt;FLAGS[SEQA_INT], bit 28&lt;BR /&gt;{&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;ADC0-&amp;gt;FLAGS|=0x10000000;&lt;/P&gt;
&lt;P&gt;ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER4, &amp;amp;adcResultInfoStruct);&lt;/P&gt;
&lt;P&gt;ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER5, &amp;amp;adcResultInfoStruct5);&lt;/P&gt;
&lt;P&gt;ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER6, &amp;amp;adcResultInfoStruct6);&lt;/P&gt;
&lt;P&gt;///////Rong modified code end&lt;/P&gt;
&lt;P&gt;/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////&lt;BR /&gt;PRINTF("adcResultInfoStruct.result = %d\r\n", adcResultInfoStruct.result);&lt;BR /&gt;PRINTF("adcResultInfoStruct.channelNumber = %d\r\n", adcResultInfoStruct.channelNumber);&lt;BR /&gt;PRINTF("adcResultInfoStruct.overrunFlag = %d\r\n", adcResultInfoStruct.overrunFlag ? 1U : 0U);&lt;BR /&gt;PRINTF("\r\n");&lt;BR /&gt;PRINTF("adcResultInfoStruct5.result = %d\r\n", adcResultInfoStruct5.result);&lt;BR /&gt;PRINTF("adcResultInfoStruct5.channelNumber = %d\r\n", adcResultInfoStruct5.channelNumber);&lt;BR /&gt;PRINTF("adcResultInfoStruct5.overrunFlag = %d\r\n", adcResultInfoStruct5.overrunFlag ? 1U : 0U);&lt;BR /&gt;PRINTF("\r\n");&lt;BR /&gt;PRINTF("adcResultInfoStruct6.result = %d\r\n", adcResultInfoStruct6.result);&lt;BR /&gt;PRINTF("adcResultInfoStruct6.channelNumber = %d\r\n", adcResultInfoStruct6.channelNumber);&lt;BR /&gt;PRINTF("adcResultInfoStruct6.overrunFlag = %d\r\n", adcResultInfoStruct6.overrunFlag ? 1U : 0U);&lt;BR /&gt;PRINTF("\r\n");&lt;BR /&gt;}&lt;BR /&gt;/*&lt;BR /&gt;GETCHAR();&lt;BR /&gt;ADC_DoSoftwareTriggerConvSeqB(DEMO_ADC_BASE);&lt;/P&gt;
&lt;P&gt;/* Wait for the converter to be done. *./&lt;BR /&gt;while ((!ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER4, &amp;amp;adcResultInfoStruct6)))&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;}&lt;BR /&gt;PRINTF("adcResultInfoStruct6.result = %d\r\n", adcResultInfoStruct6.result);&lt;BR /&gt;PRINTF("adcResultInfoStruct6.channelNumber = %d\r\n", adcResultInfoStruct6.channelNumber);&lt;BR /&gt;PRINTF("adcResultInfoStruct6.overrunFlag = %d\r\n", adcResultInfoStruct6.overrunFlag ? 1U : 0U);&lt;BR /&gt;PRINTF("\r\n");*/&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 14:59:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1256341#M44520</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2021-04-02T14:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 Reading Multiple ADCs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1256343#M44521</link>
      <description>&lt;P&gt;The code is stuck in the main while loop. It did not work for me.&lt;/P&gt;&lt;P&gt;What could be causing the issue?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Apr 2021 15:20:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1256343#M44521</guid>
      <dc:creator>ahmed_mostafa</dc:creator>
      <dc:date>2021-04-02T15:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 Reading Multiple ADCs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1256992#M44529</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I have checked that&amp;nbsp;ADC0-&amp;gt;FLAGS[SEQA_INT] can not be set,&amp;nbsp; I do not know why either, maybe it is only used in interrupt or DMA mode.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any, pls use the code as you have done, I just modify it based on your architecture. Now it works fine. Note that the DATA VALID bit for DAT[0:11] register can only be read once. Reading the register will clear the bit.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;DATA&lt;BR /&gt;VALID&lt;BR /&gt;This bit is set to 1 at the end of each conversion when a new result is loaded into the RESULT&lt;BR /&gt;field. It is cleared whenever this register is read.&lt;BR /&gt;This bit will cause a conversion-complete interrupt for the corresponding sequence if the MODE&lt;BR /&gt;bit (in SEQB_CTRL) for that sequence is set to 0 (and if the interrupt is enabled).&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;
&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;BR /&gt;/* Initialize board hardware. */&lt;BR /&gt;/* attach 12 MHz clock to FLEXCOMM0 (debug console) */&lt;/P&gt;
&lt;P&gt;CLOCK_AttachClk(BOARD_DEBUG_UART_CLK_ATTACH);&lt;/P&gt;
&lt;P&gt;BOARD_InitPins();&lt;BR /&gt;BOARD_BootClockPLL180M();&lt;BR /&gt;BOARD_InitDebugConsole();&lt;BR /&gt;/* Reset DMA since core reset in IDE will not reset DMA */&lt;BR /&gt;RESET_SetPeripheralReset(kDMA_RST_SHIFT_RSTn);&lt;BR /&gt;/* Enable the power and clock for ADC. */&lt;BR /&gt;ADC_ClockPower_Configuration();&lt;BR /&gt;PRINTF("ADC basic example.\r\n");&lt;/P&gt;
&lt;P&gt;#if !(defined(FSL_FEATURE_ADC_HAS_NO_CALIB_FUNC) &amp;amp;&amp;amp; FSL_FEATURE_ADC_HAS_NO_CALIB_FUNC)&lt;BR /&gt;uint32_t frequency = 0U;&lt;BR /&gt;/* Calibration after power up. */&lt;BR /&gt;#if defined(FSL_FEATURE_ADC_HAS_CALIB_REG) &amp;amp;&amp;amp; FSL_FEATURE_ADC_HAS_CALIB_REG&lt;BR /&gt;DEMO_ADC_BASE-&amp;gt;CTRL |= ADC_CTRL_BYPASSCAL_MASK;&lt;BR /&gt;frequency = CLOCK_GetFreq(kCLOCK_BusClk);&lt;BR /&gt;if (true == ADC_DoOffsetCalibration(DEMO_ADC_BASE, frequency))&lt;BR /&gt;#else&lt;BR /&gt;#if defined(SYSCON_ADCCLKDIV_DIV_MASK)&lt;BR /&gt;frequency = CLOCK_GetFreq(DEMO_ADC_CLOCK_SOURCE) / CLOCK_GetClkDivider(kCLOCK_DivAdcClk);&lt;BR /&gt;#else&lt;BR /&gt;frequency = CLOCK_GetFreq(DEMO_ADC_CLOCK_SOURCE);&lt;BR /&gt;#endif /* SYSCON_ADCCLKDIV_DIV_MASK */&lt;BR /&gt;if (true == ADC_DoSelfCalibration(DEMO_ADC_BASE, frequency))&lt;BR /&gt;#endif /* FSL_FEATURE_ADC_HAS_CALIB_REG */&lt;BR /&gt;{&lt;BR /&gt;PRINTF("ADC Calibration Done.\r\n");&lt;BR /&gt;}&lt;BR /&gt;else&lt;BR /&gt;{&lt;BR /&gt;PRINTF("ADC Calibration Failed.\r\n");&lt;BR /&gt;}&lt;BR /&gt;#endif /* FSL_FEATURE_ADC_HAS_NO_CALIB_FUNC */&lt;/P&gt;
&lt;P&gt;/* Configure the converter and work mode. */&lt;BR /&gt;ADC_Configuration();&lt;BR /&gt;PRINTF("Configuration Done.\r\n");&lt;/P&gt;
&lt;P&gt;#if defined(FSL_FEATURE_ADC_HAS_CTRL_RESOL) &amp;amp; FSL_FEATURE_ADC_HAS_CTRL_RESOL&lt;BR /&gt;PRINTF("ADC Full Range: %d\r\n", g_Adc_12bitFullRange);&lt;BR /&gt;#endif /* FSL_FEATURE_ADC_HAS_CTRL_RESOL */&lt;BR /&gt;while (1)&lt;BR /&gt;{&lt;BR /&gt;/* Get the input from terminal and trigger the converter by software. */&lt;BR /&gt;GETCHAR();&lt;BR /&gt;ADC_DoSoftwareTriggerConvSeqA(DEMO_ADC_BASE);&lt;BR /&gt;//ADC_DoSoftwareTriggerConvSeqB(DEMO_ADC_BASE);&lt;BR /&gt;#if 1 //Rong wrote: it appears the lines is incorrect&lt;BR /&gt;while(!ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER4, &amp;amp;adcResultInfoStruct)) {}&lt;BR /&gt;ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER4, &amp;amp;adcResultInfoStruct);&lt;/P&gt;
&lt;P&gt;while(!ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER5, &amp;amp;adcResultInfoStruct5)) {}&lt;BR /&gt;ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER5, &amp;amp;adcResultInfoStruct5);&lt;/P&gt;
&lt;P&gt;while(!ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER6, &amp;amp;adcResultInfoStruct6)) {}&lt;BR /&gt;ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER6, &amp;amp;adcResultInfoStruct6);&lt;BR /&gt;#endif&lt;/P&gt;
&lt;P&gt;#if 0&lt;BR /&gt;/* Wait for the converter to be done. */&lt;BR /&gt;while(!(ADC0-&amp;gt;FLAGS&amp;amp; 0x10000000)) //test the ADC0-&amp;gt;FLAGS[SEQA_INT], bit 28&lt;BR /&gt;{&lt;BR /&gt;//PRINTF("In loop.\r\n");&lt;BR /&gt;}&lt;BR /&gt;ADC0-&amp;gt;FLAGS|=0x10000000;&lt;BR /&gt;#endif&lt;BR /&gt;ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER4, &amp;amp;adcResultInfoStruct);&lt;BR /&gt;ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER5, &amp;amp;adcResultInfoStruct5);&lt;BR /&gt;ADC_GetChannelConversionResult(DEMO_ADC_BASE, DEMO_ADC_SAMPLE_CHANNEL_NUMBER6, &amp;amp;adcResultInfoStruct6);&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;PRINTF("adcResultInfoStruct.result = %d\r\n", adcResultInfoStruct.result);&lt;BR /&gt;PRINTF("adcResultInfoStruct.channelNumber = %d\r\n", adcResultInfoStruct.channelNumber);&lt;BR /&gt;PRINTF("adcResultInfoStruct.overrunFlag = %d\r\n", adcResultInfoStruct.overrunFlag ? 1U : 0U);&lt;BR /&gt;PRINTF("\r\n");&lt;BR /&gt;PRINTF("adcResultInfoStruct5.result = %d\r\n", adcResultInfoStruct5.result);&lt;BR /&gt;PRINTF("adcResultInfoStruct5.channelNumber = %d\r\n", adcResultInfoStruct5.channelNumber);&lt;BR /&gt;PRINTF("adcResultInfoStruct5.overrunFlag = %d\r\n", adcResultInfoStruct5.overrunFlag ? 1U : 0U);&lt;BR /&gt;PRINTF("\r\n");&lt;BR /&gt;PRINTF("adcResultInfoStruct6.result = %d\r\n", adcResultInfoStruct6.result);&lt;BR /&gt;PRINTF("adcResultInfoStruct6.channelNumber = %d\r\n", adcResultInfoStruct6.channelNumber);&lt;BR /&gt;PRINTF("adcResultInfoStruct6.overrunFlag = %d\r\n", adcResultInfoStruct6.overrunFlag ? 1U : 0U);&lt;BR /&gt;PRINTF("\r\n");&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;</description>
      <pubDate>Tue, 06 Apr 2021 06:03:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1256992#M44529</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2021-04-06T06:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 Reading Multiple ADCs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1264492#M44703</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have used the code that you recommended, but I'm still not able to read accurate information for ADC0IN6. All I can read is 4092 every time I try to read, even though the result should be different (i'm measuring 1.6V on the pin so it should be ~2040 or so. Channels 4 and 5 are functioning correctly. Please review my main file and let me know what I am doing wrong.&lt;/P&gt;&lt;P&gt;Am I configuring the ADC wrong?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 16:19:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1264492#M44703</guid>
      <dc:creator>ahmed_mostafa</dc:creator>
      <dc:date>2021-04-19T16:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: LPC54018 Reading Multiple ADCs</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1264551#M44707</link>
      <description>&lt;P&gt;Thanks for your help. I believe I know the reason. On my evaluation board, the ADC input for channel 6 is shorted to ground.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 19:18:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC54018-Reading-Multiple-ADCs/m-p/1264551#M44707</guid>
      <dc:creator>ahmed_mostafa</dc:creator>
      <dc:date>2021-04-19T19:18:02Z</dc:date>
    </item>
  </channel>
</rss>

