<?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中的主题 LPC1518: Two ADCs on ADC0 - crosstalk</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1518-Two-ADCs-on-ADC0-crosstalk/m-p/1008754#M39563</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;i'm trying to use the ADC0_8 and the ADC0_0 at the same time on a LPC1518.&lt;BR /&gt;Both ADCs are initialized with there fixed pins:&lt;/P&gt;&lt;PRE&gt;Chip_IOCON_PinMuxSet(pIOCON, 0, 8, IOCON_MODE_INACT);
Chip_IOCON_PinMuxSet(pIOCON, 1, 0, IOCON_MODE_INACT);
Chip_SWM_EnableFixedPin(SWM_FIXED_ADC0_8);&amp;nbsp; // P1_0
Chip_SWM_EnableFixedPin(SWM_FIXED_ADC0_0);&amp;nbsp; // P0_8
Chip_ADC_Init(LPC_ADC0, 0);
Chip_ADC_SetupSequencer(LPC_ADC0, ADC_SEQB_IDX, (ADC_SEQ_CTRL_CHANSEL(8) | ADC_SEQ_CTRL_MODE_EOS));
Chip_ADC_SetupSequencer(LPC_ADC0, ADC_SEQA_IDX, (ADC_SEQ_CTRL_CHANSEL(0) | ADC_SEQ_CTRL_MODE_EOS));
Chip_ADC_SetTrim(LPC_ADC0, ADC_TRIM_VRANGE_HIGHV);
Chip_ADC_StartCalibration(LPC_ADC0);
while (!(Chip_ADC_IsCalibrationDone(LPC_ADC0))) {}
Chip_ADC_SetDivider(LPC_ADC0, 16);&lt;/PRE&gt;&lt;P&gt;...setting up interrupts...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input voltage on ADC0_0 directly influence the measurement on the ADC0_8 (voltage on ADC0_0 keeps less than the reference voltage).&lt;BR /&gt;This happens as soon i just initilialize the fixed pin on ADC0_0 (without sequencer B...).&lt;BR /&gt;Without the activation of the fixed pin, all works properly.&lt;/P&gt;&lt;P&gt;Does i forgot something or is this some known issue?&lt;BR /&gt;Best Regards&lt;BR /&gt;Jürgen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 28 Jan 2020 08:19:32 GMT</pubDate>
    <dc:creator>jensen_j</dc:creator>
    <dc:date>2020-01-28T08:19:32Z</dc:date>
    <item>
      <title>LPC1518: Two ADCs on ADC0 - crosstalk</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1518-Two-ADCs-on-ADC0-crosstalk/m-p/1008754#M39563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;i'm trying to use the ADC0_8 and the ADC0_0 at the same time on a LPC1518.&lt;BR /&gt;Both ADCs are initialized with there fixed pins:&lt;/P&gt;&lt;PRE&gt;Chip_IOCON_PinMuxSet(pIOCON, 0, 8, IOCON_MODE_INACT);
Chip_IOCON_PinMuxSet(pIOCON, 1, 0, IOCON_MODE_INACT);
Chip_SWM_EnableFixedPin(SWM_FIXED_ADC0_8);&amp;nbsp; // P1_0
Chip_SWM_EnableFixedPin(SWM_FIXED_ADC0_0);&amp;nbsp; // P0_8
Chip_ADC_Init(LPC_ADC0, 0);
Chip_ADC_SetupSequencer(LPC_ADC0, ADC_SEQB_IDX, (ADC_SEQ_CTRL_CHANSEL(8) | ADC_SEQ_CTRL_MODE_EOS));
Chip_ADC_SetupSequencer(LPC_ADC0, ADC_SEQA_IDX, (ADC_SEQ_CTRL_CHANSEL(0) | ADC_SEQ_CTRL_MODE_EOS));
Chip_ADC_SetTrim(LPC_ADC0, ADC_TRIM_VRANGE_HIGHV);
Chip_ADC_StartCalibration(LPC_ADC0);
while (!(Chip_ADC_IsCalibrationDone(LPC_ADC0))) {}
Chip_ADC_SetDivider(LPC_ADC0, 16);&lt;/PRE&gt;&lt;P&gt;...setting up interrupts...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The input voltage on ADC0_0 directly influence the measurement on the ADC0_8 (voltage on ADC0_0 keeps less than the reference voltage).&lt;BR /&gt;This happens as soon i just initilialize the fixed pin on ADC0_0 (without sequencer B...).&lt;BR /&gt;Without the activation of the fixed pin, all works properly.&lt;/P&gt;&lt;P&gt;Does i forgot something or is this some known issue?&lt;BR /&gt;Best Regards&lt;BR /&gt;Jürgen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 08:19:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1518-Two-ADCs-on-ADC0-crosstalk/m-p/1008754#M39563</guid>
      <dc:creator>jensen_j</dc:creator>
      <dc:date>2020-01-28T08:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1518: Two ADCs on ADC0 - crosstalk</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1518-Two-ADCs-on-ADC0-crosstalk/m-p/1008755#M39564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;I think I need more information before figuring the issue out, so I was wondering if you can tell me which board you used and can you replicate the phenomenon on multiple identical boards? In further, I appreciate it a lot if you can show the testing result you get.&lt;/P&gt;&lt;P&gt;Looking forward to your reply.&lt;/P&gt;&lt;P&gt;TIC&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 06:50:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1518-Two-ADCs-on-ADC0-crosstalk/m-p/1008755#M39564</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-01-30T06:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1518: Two ADCs on ADC0 - crosstalk</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1518-Two-ADCs-on-ADC0-crosstalk/m-p/1008756#M39565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply!&lt;BR /&gt;I use a custom board, but i could replicate the phenomenon on a LPCXpresso 1549.&lt;BR /&gt;It seems to set the divider very low after the calibration make the problems.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;To retrace, I adapt the periph_adc example from lpcopen 2.20:&lt;BR /&gt;Test setup:&lt;BR /&gt;-Board supply over USB&lt;BR /&gt;-variable power supply on ADC0_0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;A0 on J7 -&amp;gt; variable input voltage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; GND connected to power supply&lt;BR /&gt;-ADC0_8 on ground&lt;BR /&gt;&amp;nbsp;&amp;nbsp; D9 on J1 -&amp;gt; To ground&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If setting the DIVIDER_WORKAROUND to false in the config header, i get an offset/crosstalk from ADC0_0 on ADC0_8&lt;BR /&gt;If setting to true all works fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to attach the files.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;In difference to my costum board, the calibration with lower dividers works&amp;nbsp;on the LPCXpresso much better.&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Jürgen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 12:27:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1518-Two-ADCs-on-ADC0-crosstalk/m-p/1008756#M39565</guid>
      <dc:creator>jensen_j</dc:creator>
      <dc:date>2020-01-30T12:27:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1518: Two ADCs on ADC0 - crosstalk</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1518-Two-ADCs-on-ADC0-crosstalk/m-p/1008757#M39566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is your sampling frequency and, more importantly, your signal impedance.&lt;/P&gt;&lt;P&gt;This is most often a hardware problem, nothing to do with software.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Feb 2020 17:08:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1518-Two-ADCs-on-ADC0-crosstalk/m-p/1008757#M39566</guid>
      <dc:creator>ianbenton</dc:creator>
      <dc:date>2020-02-03T17:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1518: Two ADCs on ADC0 - crosstalk</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1518-Two-ADCs-on-ADC0-crosstalk/m-p/1008758#M39567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ian,&lt;BR /&gt;in the LPCXpresso1549 example above, a sampling rate about 1.38 Mhz is activ.&lt;/P&gt;&lt;P&gt;The output impedance from the power supply on ADC0_0 i don't know, but it should be very low.&lt;/P&gt;&lt;P&gt;The error on ADC0_8 would probably get better with a capacitor to ground (e.g. 4.7nF) on ADC0_0.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;Jürgen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 17:46:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1518-Two-ADCs-on-ADC0-crosstalk/m-p/1008758#M39567</guid>
      <dc:creator>jensen_j</dc:creator>
      <dc:date>2020-02-06T17:46:31Z</dc:date>
    </item>
  </channel>
</rss>

