<?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: How can I select the ADC input channel on LPC1769? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600405#M23301</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Csaba,&lt;/P&gt;&lt;P&gt;Kerry has good example and if helps that is great.&lt;/P&gt;&lt;P&gt;I reproduced your issue with the periph_adc example.&lt;/P&gt;&lt;P&gt;What I found was the board_sysinit.c Board_SetupMuxing() function is setting up a bunch of pins to default functions including setting up the ADC_CH0 to be used.&lt;/P&gt;&lt;P&gt;The adc.c code does not show that this has magically happened and therefore when you switch the _ADC_CHANNLE #define to something other than ADC_CH0 the desired pin is not configured correctly.&lt;/P&gt;&lt;P&gt;My example changes the to use ADC_CH1 in the adc.c main(). &amp;nbsp;Look for "//DES" in comments.&lt;/P&gt;&lt;P&gt;The condensed code change is here:&lt;/P&gt;&lt;P&gt;#define _ADC_CHANNLE ADC_CH1 //DES was ADC_CH0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Chip_IOCON_PinMux(0, 25, IOCON_ADMODE_EN, IOCON_FUNC1); */ //DES old API&lt;BR /&gt; /*ADC Init */&lt;BR /&gt;#if (_ADC_CHANNLE == ADC_CH1) //DES ADC_CH0 is setup to ADC analog function in board_sysinit.c via the pinmuxing structure. When wanting different ADC channel we need to enable it.&lt;BR /&gt; Chip_IOCON_PinMux(LPC_IOCON, 0, 24, IOCON_MODE_INACT, IOCON_FUNC1); //DES new API....enabling ADC_CH1 on port 0 pin 24&lt;BR /&gt;#endif&lt;BR /&gt; Chip_ADC_Init(_LPC_ADC_ID, &amp;amp;ADCSetup);&lt;BR /&gt; Chip_ADC_EnableChannel(_LPC_ADC_ID, _ADC_CHANNLE, ENABLE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to setup the desired ADC_CH1 by default you could add the following line into the pinmuxing structure in board_sysinit.c like following:&lt;/P&gt;&lt;P&gt;/* Pin muxing configuration */&lt;BR /&gt;STATIC const PINMUX_GRP_T pinmuxing[] = {&lt;BR /&gt; {0, 0, IOCON_MODE_INACT | IOCON_FUNC2}, /* TXD3 */&lt;BR /&gt; {0, 1, IOCON_MODE_INACT | IOCON_FUNC2}, /* RXD3 */&lt;BR /&gt; {0, 4, IOCON_MODE_INACT | IOCON_FUNC2}, /* CAN-RD2 */&lt;BR /&gt; {0, 5, IOCON_MODE_INACT | IOCON_FUNC2}, /* CAN-TD2 */&lt;BR /&gt; {0, 22, IOCON_MODE_INACT | IOCON_FUNC0}, /* Led 0 */&lt;BR /&gt; {0, 23, IOCON_MODE_INACT | IOCON_FUNC1}, /* ADC 0 */&lt;BR /&gt;// {0, 24, IOCON_MODE_INACT | IOCON_FUNC1}, /* ADC 1 */ //DES uncomment to added ADC_CH1 as default pin function&lt;BR /&gt; {0, 26, IOCON_MODE_INACT | IOCON_FUNC2}, /* DAC */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Oct 2016 13:32:02 GMT</pubDate>
    <dc:creator>DavidS</dc:creator>
    <dc:date>2016-10-28T13:32:02Z</dc:date>
    <item>
      <title>How can I select the ADC input channel on LPC1769?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600400#M23296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to find out without any luck.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started from periph_adc project, and I was able to read the AD0.0 (P0.23) without problem (the code is in the attachment).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I replaced the ADC_CHANNLE with&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt; ADC_CHANNLE_T myADC_CHANNLE&lt;SPAN class="line-numbers-rows"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;so I can change channel from AD_CH0 to AD_CH7.&lt;/P&gt;&lt;P&gt;Compiling this code it was running well only when myADC_CHANNLE = AD_CH0, else stucked in a while cycle.&lt;/P&gt;&lt;P&gt;Then modified set _LPC_ADC_ID (I saw similar method in a lot of example &lt;SPAN class="lia-unicode-emoji" title=":disappointed_face:"&gt;&lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE class="language-cpp line-numbers"&gt;&lt;CODE&gt;_LPC_ADC_ID&lt;SPAN class="operator token"&gt;-&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;&amp;gt;&lt;/SPAN&gt;CR &lt;SPAN class="operator token"&gt;|&lt;/SPAN&gt;&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;0x01&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;hoping I could get AD_CH1 data, but the program get into this cycle:&lt;/P&gt;&lt;PRE class="language-cpp line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;HardFault_Handler&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="keyword token"&gt;void&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt; &lt;SPAN class="keyword token"&gt;while&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was searching a lot for the solution, but can not find more information.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anybody could help me?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best wishes!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-338036" rel="nofollow noopener noreferrer" target="_blank"&gt;lpcxpresso.txt.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 13:48:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600400#M23296</guid>
      <dc:creator>csabakatona</dc:creator>
      <dc:date>2016-10-25T13:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the ADC input channel on LPC1769?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600401#M23297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Csaba,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thank you for your interest in NXP LPC product, I would like to provide service for you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; From your description, the result should be the same as the code which you attached, this code is just from the official lpcopen code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;CODE&gt;_LPC_ADC_ID&lt;SPAN class=""&gt;-&lt;/SPAN&gt;&lt;SPAN class=""&gt;&amp;gt;&lt;/SPAN&gt;CR &lt;SPAN class=""&gt;|&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;0x01&lt;/SPAN&gt;&lt;SPAN class=""&gt;; &lt;BR /&gt;&amp;nbsp; This code is used to enable ADC channel 0, not channel 1.&lt;BR /&gt;&amp;nbsp; Did you try to get the result of ADC channel 1?&lt;BR /&gt;&amp;nbsp; Please check you code.&lt;BR /&gt;If you still have problem, please attached your modified code.&lt;BR /&gt;I will help you to check it.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 03:26:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600401#M23297</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-10-27T03:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the ADC input channel on LPC1769?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600402#M23298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Kerry,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&lt;/P&gt;&lt;P&gt;I tried your suggestion, but the result is the same.&lt;/P&gt;&lt;P&gt;This is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#include "board.h"&lt;BR /&gt;#include "chip.h"&lt;/P&gt;&lt;P&gt;#define _LPC_ADC_ID LPC_ADC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static ADC_CLOCK_SETUP_T ADCSetup;&lt;BR /&gt;static volatile uint8_t Burst_Mode_Flag = 0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ADC_CHANNEL_T ADC_Ch = ADC_CH2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;int main(void)&lt;BR /&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; uint16_t dataADC;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;SystemCoreClockUpdate();&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Board_Init();&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_ADC_Init(LPC_ADC, &amp;amp;ADCSetup);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_ADC_EnableChannel(LPC_ADC, ADC_Ch, ENABLE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;//LPC_ADC-&amp;gt;CR |= 2;//ADC_CR_CH_SEL(channel);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (Burst_Mode_Flag) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_ADC_SetBurstCmd(LPC_ADC, ENABLE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;else {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_ADC_SetBurstCmd(LPC_ADC, DISABLE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while (1) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;if (!Burst_Mode_Flag) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_ADC_SetStartMode(LPC_ADC, ADC_START_NOW, ADC_TRIGGERMODE_RISING);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;while (Chip_ADC_ReadStatus(LPC_ADC, ADC_Ch, ADC_DR_DONE_STAT) != SET) {}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_ADC_ReadValue(LPC_ADC, ADC_Ch, &amp;amp;dataADC);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (Burst_Mode_Flag) {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;Chip_ADC_SetBurstCmd(_LPC_ADC_ID , DISABLE);&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return 0;&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 06:45:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600402#M23298</guid>
      <dc:creator>csabakatona</dc:creator>
      <dc:date>2016-10-27T06:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the ADC input channel on LPC1769?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600403#M23299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I change ADC_Ch to ADC_CH0 I can read a valid value from dataADC.&lt;/P&gt;&lt;P&gt;But with any other value I get only 0.&lt;/P&gt;&lt;P&gt;This code enables the ADC channel with the CHIP_ADC_Enable procedure. If I use the LPC_ADC-&amp;gt;CR |=2 then the program stucks in the loop containing the Chip_ADC_ReadStatus function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you got an idea what I am doing wrong ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a nice day!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 06:54:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600403#M23299</guid>
      <dc:creator>csabakatona</dc:creator>
      <dc:date>2016-10-27T06:54:10Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the ADC input channel on LPC1769?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600404#M23300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Csaba Katona,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; I have attached a project which have the ADC code, it convert AD0_2, P0[25], this code works ok on my side, you can refer to it.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You can refer to the ADC.c and ADC.h file.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;Please use this code on your side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please let me know!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 10:56:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600404#M23300</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-10-28T10:56:27Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the ADC input channel on LPC1769?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600405#M23301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Csaba,&lt;/P&gt;&lt;P&gt;Kerry has good example and if helps that is great.&lt;/P&gt;&lt;P&gt;I reproduced your issue with the periph_adc example.&lt;/P&gt;&lt;P&gt;What I found was the board_sysinit.c Board_SetupMuxing() function is setting up a bunch of pins to default functions including setting up the ADC_CH0 to be used.&lt;/P&gt;&lt;P&gt;The adc.c code does not show that this has magically happened and therefore when you switch the _ADC_CHANNLE #define to something other than ADC_CH0 the desired pin is not configured correctly.&lt;/P&gt;&lt;P&gt;My example changes the to use ADC_CH1 in the adc.c main(). &amp;nbsp;Look for "//DES" in comments.&lt;/P&gt;&lt;P&gt;The condensed code change is here:&lt;/P&gt;&lt;P&gt;#define _ADC_CHANNLE ADC_CH1 //DES was ADC_CH0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Chip_IOCON_PinMux(0, 25, IOCON_ADMODE_EN, IOCON_FUNC1); */ //DES old API&lt;BR /&gt; /*ADC Init */&lt;BR /&gt;#if (_ADC_CHANNLE == ADC_CH1) //DES ADC_CH0 is setup to ADC analog function in board_sysinit.c via the pinmuxing structure. When wanting different ADC channel we need to enable it.&lt;BR /&gt; Chip_IOCON_PinMux(LPC_IOCON, 0, 24, IOCON_MODE_INACT, IOCON_FUNC1); //DES new API....enabling ADC_CH1 on port 0 pin 24&lt;BR /&gt;#endif&lt;BR /&gt; Chip_ADC_Init(_LPC_ADC_ID, &amp;amp;ADCSetup);&lt;BR /&gt; Chip_ADC_EnableChannel(_LPC_ADC_ID, _ADC_CHANNLE, ENABLE);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to setup the desired ADC_CH1 by default you could add the following line into the pinmuxing structure in board_sysinit.c like following:&lt;/P&gt;&lt;P&gt;/* Pin muxing configuration */&lt;BR /&gt;STATIC const PINMUX_GRP_T pinmuxing[] = {&lt;BR /&gt; {0, 0, IOCON_MODE_INACT | IOCON_FUNC2}, /* TXD3 */&lt;BR /&gt; {0, 1, IOCON_MODE_INACT | IOCON_FUNC2}, /* RXD3 */&lt;BR /&gt; {0, 4, IOCON_MODE_INACT | IOCON_FUNC2}, /* CAN-RD2 */&lt;BR /&gt; {0, 5, IOCON_MODE_INACT | IOCON_FUNC2}, /* CAN-TD2 */&lt;BR /&gt; {0, 22, IOCON_MODE_INACT | IOCON_FUNC0}, /* Led 0 */&lt;BR /&gt; {0, 23, IOCON_MODE_INACT | IOCON_FUNC1}, /* ADC 0 */&lt;BR /&gt;// {0, 24, IOCON_MODE_INACT | IOCON_FUNC1}, /* ADC 1 */ //DES uncomment to added ADC_CH1 as default pin function&lt;BR /&gt; {0, 26, IOCON_MODE_INACT | IOCON_FUNC2}, /* DAC */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;David&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Oct 2016 13:32:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600405#M23301</guid>
      <dc:creator>DavidS</dc:creator>
      <dc:date>2016-10-28T13:32:02Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the ADC input channel on LPC1769?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600406#M23302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Zhou,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the project!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to start it in Keil 5, it asked me to install legacy package. After that I restart Keil, the project was built but then it couldn't find some dll, so I could not try the code. I will try to find the reason later.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But thanks again for your code!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 09:37:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600406#M23302</guid>
      <dc:creator>csabakatona</dc:creator>
      <dc:date>2016-11-09T09:37:25Z</dc:date>
    </item>
    <item>
      <title>Re: How can I select the ADC input channel on LPC1769?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600407#M23303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works like a charm! You are my savior!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 09:44:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-can-I-select-the-ADC-input-channel-on-LPC1769/m-p/600407#M23303</guid>
      <dc:creator>csabakatona</dc:creator>
      <dc:date>2016-11-09T09:44:55Z</dc:date>
    </item>
  </channel>
</rss>

