<?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>LPC MicrocontrollersのトピックRe: Driver Doubt ADC - LPC55S16</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1443846#M48482</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The LPC55ss ADC support command chain, each command register includes the ADC channel, and Next Command bit field which point to next command.&lt;/P&gt;
&lt;P&gt;In the first command, you can define the ADC channel, in the next command bit field, you can set up the chained command index. In the chained command, you can define the second ADC channel and secondly chained next-command. In the secondly-chained command register, you can define the third ADC analog channel, if this is the last channel, set the third-chained next-command bits as 0, which means chaining ends up.&lt;/P&gt;
&lt;P&gt;The following is the command chain, hope it can help you.&lt;/P&gt;
&lt;P&gt;lpadc_conv_command_config_t mLpadcCommandConfigStruct0,mLpadcCommandConfigStruct1,mLpadcCommandConfigStruct2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LPADC_GetDefaultConvCommandConfig(&amp;amp;mLpadcCommandConfigStruct0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct0.channelNumber = DEMO_LPADC_USER_CHANNEL; //&lt;U&gt;adc&lt;/U&gt; channel0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct0.chainedNextCommandNumber=DEMO_LPADC_USER_CMDID2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_SetConvCommandConfig(DEMO_LPADC_BASE, DEMO_LPADC_USER_CMDID1, &amp;amp;mLpadcCommandConfigStruct0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ///////////////&lt;U&gt;Rong&lt;/U&gt; added another &lt;U&gt;adc&lt;/U&gt; channel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_GetDefaultConvCommandConfig(&amp;amp;mLpadcCommandConfigStruct1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct1.channelNumber = DEMO_LPADC_USER_CHANNEL+1;&amp;nbsp; //DEMO_LPADC_USER_CHANNEL+1=1, &lt;U&gt;adc&lt;/U&gt; channel1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct1.chainedNextCommandNumber=DEMO_LPADC_USER_CMDID3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_SetConvCommandConfig(DEMO_LPADC_BASE, DEMO_LPADC_USER_CMDID2, &amp;amp;mLpadcCommandConfigStruct1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_GetDefaultConvCommandConfig(&amp;amp;mLpadcCommandConfigStruct2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct2.channelNumber = DEMO_LPADC_USER_CHANNEL+2;&amp;nbsp; //DEMO_LPADC_USER_CHANNEL+1=1, &lt;U&gt;adc&lt;/U&gt; channel1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct2.chainedNextCommandNumber=0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_SetConvCommandConfig(DEMO_LPADC_BASE, DEMO_LPADC_USER_CMDID3, &amp;amp;mLpadcCommandConfigStruct2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Apr 2022 06:22:53 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2022-04-14T06:22:53Z</dc:date>
    <item>
      <title>Driver Doubt ADC - LPC55S16</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1443276#M48478</link>
      <description>&lt;P&gt;We are customizing ADC channel in LPC 55S16 to use multiple channel&lt;/P&gt;&lt;P&gt;Here we are using following pins&lt;/P&gt;&lt;P&gt;P1_9 (ADC0_12), P1_8(ADC0_4),&amp;nbsp; P0_16(ADC0_8)&amp;nbsp; &amp;nbsp;)&lt;/P&gt;&lt;P&gt;How we can configure multiple channels for those pins&lt;/P&gt;&lt;P&gt;i) Is any relation between ADC channel and SWTRIG&lt;/P&gt;&lt;P&gt;&amp;nbsp;How we can choose the value of&amp;nbsp;ADC0-&amp;gt;SWTRIG = ?&lt;/P&gt;&lt;P&gt;ii)&amp;nbsp;Is any relation between TCTRL and SWTRIG&lt;/P&gt;&lt;P&gt;&amp;nbsp;How we can choose the element and value of&amp;nbsp; of&amp;nbsp;ADC0-&amp;gt;TCTRL[?] = ?&lt;/P&gt;&lt;P&gt;Kindly give the solution to solve the problem&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 08:33:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1443276#M48478</guid>
      <dc:creator>Dhayanandhan</dc:creator>
      <dc:date>2022-04-13T08:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Driver Doubt ADC - LPC55S16</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1443353#M48479</link>
      <description>&lt;P&gt;I need to configure ADC for these PINS&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;P1_9 (ADC0_12), P1_8(ADC0_4),&amp;nbsp; P0_16(ADC0_8)&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2022 10:19:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1443353#M48479</guid>
      <dc:creator>Dhayanandhan</dc:creator>
      <dc:date>2022-04-13T10:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Driver Doubt ADC - LPC55S16</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1443846#M48482</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The LPC55ss ADC support command chain, each command register includes the ADC channel, and Next Command bit field which point to next command.&lt;/P&gt;
&lt;P&gt;In the first command, you can define the ADC channel, in the next command bit field, you can set up the chained command index. In the chained command, you can define the second ADC channel and secondly chained next-command. In the secondly-chained command register, you can define the third ADC analog channel, if this is the last channel, set the third-chained next-command bits as 0, which means chaining ends up.&lt;/P&gt;
&lt;P&gt;The following is the command chain, hope it can help you.&lt;/P&gt;
&lt;P&gt;lpadc_conv_command_config_t mLpadcCommandConfigStruct0,mLpadcCommandConfigStruct1,mLpadcCommandConfigStruct2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LPADC_GetDefaultConvCommandConfig(&amp;amp;mLpadcCommandConfigStruct0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct0.channelNumber = DEMO_LPADC_USER_CHANNEL; //&lt;U&gt;adc&lt;/U&gt; channel0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct0.chainedNextCommandNumber=DEMO_LPADC_USER_CMDID2;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_SetConvCommandConfig(DEMO_LPADC_BASE, DEMO_LPADC_USER_CMDID1, &amp;amp;mLpadcCommandConfigStruct0);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ///////////////&lt;U&gt;Rong&lt;/U&gt; added another &lt;U&gt;adc&lt;/U&gt; channel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_GetDefaultConvCommandConfig(&amp;amp;mLpadcCommandConfigStruct1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct1.channelNumber = DEMO_LPADC_USER_CHANNEL+1;&amp;nbsp; //DEMO_LPADC_USER_CHANNEL+1=1, &lt;U&gt;adc&lt;/U&gt; channel1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct1.chainedNextCommandNumber=DEMO_LPADC_USER_CMDID3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_SetConvCommandConfig(DEMO_LPADC_BASE, DEMO_LPADC_USER_CMDID2, &amp;amp;mLpadcCommandConfigStruct1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_GetDefaultConvCommandConfig(&amp;amp;mLpadcCommandConfigStruct2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct2.channelNumber = DEMO_LPADC_USER_CHANNEL+2;&amp;nbsp; //DEMO_LPADC_USER_CHANNEL+1=1, &lt;U&gt;adc&lt;/U&gt; channel1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct2.chainedNextCommandNumber=0;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_SetConvCommandConfig(DEMO_LPADC_BASE, DEMO_LPADC_USER_CMDID3, &amp;amp;mLpadcCommandConfigStruct2);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;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;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Apr 2022 06:22:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1443846#M48482</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-04-14T06:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Driver Doubt ADC - LPC55S16</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1445123#M48498</link>
      <description>&lt;P&gt;Thanks for the support.&lt;/P&gt;&lt;P&gt;could you help me to configure ADC for channel 8 (i.e, ADC0_8&amp;nbsp; &amp;nbsp; &amp;nbsp;P0_16)&lt;/P&gt;&lt;P&gt;Kindly forward the ADC driver to configuring ADC0_8&lt;/P&gt;</description>
      <pubDate>Mon, 18 Apr 2022 13:22:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1445123#M48498</guid>
      <dc:creator>Dhayanandhan</dc:creator>
      <dc:date>2022-04-18T13:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: Driver Doubt ADC - LPC55S16</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1445421#M48503</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;For the P1_9 (ADC0_12), it's channel index is CH4B. For the P1_8(ADC0_4),&amp;nbsp;it's channel index is CH4A.&lt;/P&gt;
&lt;P&gt;If you sample P1_9 (ADC0_12, CH4B), you can use the code:&lt;/P&gt;
&lt;P&gt;LPADC_GetDefaultConvCommandConfig(&amp;amp;mLpadcCommandConfigStruct1);&lt;/P&gt;
&lt;P&gt;mLpadcCommandConfigStruct1.sampleChannelMode=kLPADC_SampleChannelSingleEndSideB;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct1.channelNumber = 4;&amp;nbsp; //CH4A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct1.chainedNextCommandNumber=DEMO_LPADC_USER_CMDID3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_SetConvCommandConfig(DEMO_LPADC_BASE, DEMO_LPADC_USER_CMDID2, &amp;amp;mLpadcCommandConfigStruct1);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you sample P1_8(ADC0_12, CH4A), you can use the code:&lt;/P&gt;
&lt;P&gt;LPADC_GetDefaultConvCommandConfig(&amp;amp;mLpadcCommandConfigStruct1);&lt;/P&gt;
&lt;P&gt;mLpadcCommandConfigStruct1.sampleChannelMode=kLPADC_SampleChannelSingleEndSideA;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct1.channelNumber = 4;&amp;nbsp; //CH4A&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mLpadcCommandConfigStruct1.chainedNextCommandNumber=DEMO_LPADC_USER_CMDID3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPADC_SetConvCommandConfig(DEMO_LPADC_BASE, DEMO_LPADC_USER_CMDID2, &amp;amp;mLpadcCommandConfigStruct1);&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;</description>
      <pubDate>Tue, 19 Apr 2022 05:12:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1445421#M48503</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2022-04-19T05:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: Driver Doubt ADC - LPC55S16</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1446166#M48514</link>
      <description>&lt;P&gt;&lt;SPAN&gt;could you help me to configure ADC for channel 8 (i.e, ADC0_8 ,&amp;nbsp; &amp;nbsp;PIN P0_16)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 07:03:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Driver-Doubt-ADC-LPC55S16/m-p/1446166#M48514</guid>
      <dc:creator>Dhayanandhan</dc:creator>
      <dc:date>2022-04-20T07:03:24Z</dc:date>
    </item>
  </channel>
</rss>

