<?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のトピックLPC4088 dual AIN</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4088-dual-AIN/m-p/1552664#M50681</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a LPC4088 and the Developer’s Kit board. I would like to get two AIN running. One works but if i just double the command it doesn't work:&lt;/P&gt;&lt;P&gt;pinmode_s ADC_IO = { .port = 0, .pin = 24, .mode = 1};&lt;/P&gt;&lt;P&gt;#define ADC LPC_ADC&lt;BR /&gt;#define ADC_CH 1&lt;BR /&gt;#define ADC_INTCH ADC_ADINTEN1&lt;BR /&gt;#define ADC_NVIC_IRQ ADC_IRQn&lt;/P&gt;&lt;P&gt;PINSEL_SetPinMode(ADC_IO.port, ADC_IO.pin, ADC_IO.mode);&lt;BR /&gt;PINSEL_SetAnalogPinMode(ADC_IO.port, ADC_IO.pin, true);&lt;/P&gt;&lt;P&gt;ADC_Init(ADC, 200000);&lt;BR /&gt;ADC_ChannelCmd(ADC, ADC_CH, ENABLE);&lt;BR /&gt;ADC_IntConfig(ADC, ADC_INTCH, ENABLE);&lt;/P&gt;&lt;P&gt;ADC_StartCmd(ADC, 1);&lt;/P&gt;&lt;P&gt;uint16_t val = ADC_ChannelGetData(ADC, ADC_CH);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this is the relevant code for 1 channel. What i did is literally double the code and change the channel and naming a bit like:&lt;/P&gt;&lt;P&gt;#define ADC2 LPC_ADC&lt;BR /&gt;#define ADC_CH2 2&lt;BR /&gt;#define ADC_INTCH2 ADC_ADINTEN2&lt;BR /&gt;#define ADC_NVIC_IRQ2 ADC_IRQn&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;ADC_Init(ADC2, 200000);&lt;BR /&gt;ADC_ChannelCmd(ADC2, ADC_CH2, ENABLE);&lt;BR /&gt;ADC_IntConfig(ADC2, ADC_INTCH2, ENABLE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;or&lt;/P&gt;&lt;P&gt;ADC_StartCmd(ADC2, 1);&lt;/P&gt;&lt;P&gt;With breakpoints i know it stops right after i try to get the value of the first channel.&lt;/P&gt;&lt;P&gt;Does somebody has any idea what i do wrong?&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
    <pubDate>Fri, 11 Nov 2022 15:35:40 GMT</pubDate>
    <dc:creator>Eggord</dc:creator>
    <dc:date>2022-11-11T15:35:40Z</dc:date>
    <item>
      <title>LPC4088 dual AIN</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4088-dual-AIN/m-p/1552664#M50681</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have a LPC4088 and the Developer’s Kit board. I would like to get two AIN running. One works but if i just double the command it doesn't work:&lt;/P&gt;&lt;P&gt;pinmode_s ADC_IO = { .port = 0, .pin = 24, .mode = 1};&lt;/P&gt;&lt;P&gt;#define ADC LPC_ADC&lt;BR /&gt;#define ADC_CH 1&lt;BR /&gt;#define ADC_INTCH ADC_ADINTEN1&lt;BR /&gt;#define ADC_NVIC_IRQ ADC_IRQn&lt;/P&gt;&lt;P&gt;PINSEL_SetPinMode(ADC_IO.port, ADC_IO.pin, ADC_IO.mode);&lt;BR /&gt;PINSEL_SetAnalogPinMode(ADC_IO.port, ADC_IO.pin, true);&lt;/P&gt;&lt;P&gt;ADC_Init(ADC, 200000);&lt;BR /&gt;ADC_ChannelCmd(ADC, ADC_CH, ENABLE);&lt;BR /&gt;ADC_IntConfig(ADC, ADC_INTCH, ENABLE);&lt;/P&gt;&lt;P&gt;ADC_StartCmd(ADC, 1);&lt;/P&gt;&lt;P&gt;uint16_t val = ADC_ChannelGetData(ADC, ADC_CH);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So this is the relevant code for 1 channel. What i did is literally double the code and change the channel and naming a bit like:&lt;/P&gt;&lt;P&gt;#define ADC2 LPC_ADC&lt;BR /&gt;#define ADC_CH2 2&lt;BR /&gt;#define ADC_INTCH2 ADC_ADINTEN2&lt;BR /&gt;#define ADC_NVIC_IRQ2 ADC_IRQn&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;ADC_Init(ADC2, 200000);&lt;BR /&gt;ADC_ChannelCmd(ADC2, ADC_CH2, ENABLE);&lt;BR /&gt;ADC_IntConfig(ADC2, ADC_INTCH2, ENABLE);&lt;/P&gt;&lt;P&gt;&amp;nbsp;or&lt;/P&gt;&lt;P&gt;ADC_StartCmd(ADC2, 1);&lt;/P&gt;&lt;P&gt;With breakpoints i know it stops right after i try to get the value of the first channel.&lt;/P&gt;&lt;P&gt;Does somebody has any idea what i do wrong?&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 15:35:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4088-dual-AIN/m-p/1552664#M50681</guid>
      <dc:creator>Eggord</dc:creator>
      <dc:date>2022-11-11T15:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4088 dual AIN</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4088-dual-AIN/m-p/1553173#M50687</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/198167"&gt;@Eggord&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Recommend you use the ADC driver under LPCopen.&lt;/P&gt;
&lt;P&gt;And if still not work well, please describe it more detail. Is there no ADC data? Or the ADC result is not correct?&amp;nbsp; How about the secondary channel work alone?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2022 09:26:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4088-dual-AIN/m-p/1553173#M50687</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-11-14T09:26:37Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4088 dual AIN</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4088-dual-AIN/m-p/1579965#M51231</link>
      <description>&lt;P&gt;I got it working in December.&lt;/P&gt;&lt;P&gt;The solution was to use "ADC_BurstCmd(LPC_ADC,ENABLE);"&lt;/P&gt;&lt;P&gt;instead&lt;/P&gt;&lt;P&gt;ADC_StartCmd(ADC, 1);&lt;BR /&gt;ADC_StartCmd(ADC2, 1);&lt;/P&gt;&lt;P&gt;but now i have a different problem ;( but i will open a new topic for this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions!!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jan 2023 10:06:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4088-dual-AIN/m-p/1579965#M51231</guid>
      <dc:creator>Eggord</dc:creator>
      <dc:date>2023-01-10T10:06:04Z</dc:date>
    </item>
  </channel>
</rss>

