<?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のトピックLPC4078 ADC: Hardware-Triggered conversion and A/D Clock</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-ADC-Hardware-Triggered-conversion-and-A-D-Clock/m-p/777624#M31274</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developping code for managing the ADC of the LPC4078. As introduction, I need to read 7 channels in non-continuous adquisition and 1 channel in continuous acquisition at 100Ksps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First , I want to bring out that the LPC Open library is setting the A/D Clock at 15Mhz when setting the adcRate at 400Ksps while using the APB clock (PCLK) at 60MHz. The LPCOPEN library is setting the CLKDIV of 4. The A/D Clock at 15Mhz is causing unexpected adcRate. I've set the CLKDIV at 5 to achieve a 12 Mhz clock which is&amp;nbsp;within the 12.4MHz which points out the user manual. Using the 12MHz clock, I'm achiving the expected adcRate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my purpose I'm triggering the ADC conversion through the Match 1 of the Timer 0 at a sample rate of 100Ksps and&amp;nbsp; setting the A/D Clock at 12MHz. Also, I enable the interrupt of ADC to read the continuous acquisition channel. For the remaining Non-continuous acquisition channels I'm thinking to enable and disable those channels when required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muy set up works fine when I have enable only the continuous acquisition channel. The problems comes out when I enable a second channel. When I'm enabling a second channel I'm acquiring a different sample rate for the continous adquisition channel, and I don't understand why. I'm going deep reading the user manual, and the only point I think can cause a problem&amp;nbsp;is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Selects which of the AD0[7:0] pins is (are) to be sampled and converted. For AD0, bit 0 selects Pin AD0[0], and bit 7 selects pin AD0[7]. &lt;STRONG&gt;In software-controlled mode, only one of these bits should be 1.&lt;/STRONG&gt; In hardware scan mode, any value containing 1 to 8 ones is allowed. All zeroes is equivalent to 0x01."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think that may be while using the triggering of the ADC conversion through the Match of the Timer can only be 1 ADC channel&amp;nbsp; enabled ? altough it is hardware and not software controlled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sampling rate of the continuous adquisition channel should not be modified for only two channels enabled with a 31 clock ADC conversion and 12MHz ADC clock, which at least should support 3 enabled channels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 27 Apr 2018 19:58:07 GMT</pubDate>
    <dc:creator>joanfontanet</dc:creator>
    <dc:date>2018-04-27T19:58:07Z</dc:date>
    <item>
      <title>LPC4078 ADC: Hardware-Triggered conversion and A/D Clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-ADC-Hardware-Triggered-conversion-and-A-D-Clock/m-p/777624#M31274</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm developping code for managing the ADC of the LPC4078. As introduction, I need to read 7 channels in non-continuous adquisition and 1 channel in continuous acquisition at 100Ksps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First , I want to bring out that the LPC Open library is setting the A/D Clock at 15Mhz when setting the adcRate at 400Ksps while using the APB clock (PCLK) at 60MHz. The LPCOPEN library is setting the CLKDIV of 4. The A/D Clock at 15Mhz is causing unexpected adcRate. I've set the CLKDIV at 5 to achieve a 12 Mhz clock which is&amp;nbsp;within the 12.4MHz which points out the user manual. Using the 12MHz clock, I'm achiving the expected adcRate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For my purpose I'm triggering the ADC conversion through the Match 1 of the Timer 0 at a sample rate of 100Ksps and&amp;nbsp; setting the A/D Clock at 12MHz. Also, I enable the interrupt of ADC to read the continuous acquisition channel. For the remaining Non-continuous acquisition channels I'm thinking to enable and disable those channels when required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Muy set up works fine when I have enable only the continuous acquisition channel. The problems comes out when I enable a second channel. When I'm enabling a second channel I'm acquiring a different sample rate for the continous adquisition channel, and I don't understand why. I'm going deep reading the user manual, and the only point I think can cause a problem&amp;nbsp;is the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Selects which of the AD0[7:0] pins is (are) to be sampled and converted. For AD0, bit 0 selects Pin AD0[0], and bit 7 selects pin AD0[7]. &lt;STRONG&gt;In software-controlled mode, only one of these bits should be 1.&lt;/STRONG&gt; In hardware scan mode, any value containing 1 to 8 ones is allowed. All zeroes is equivalent to 0x01."&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think that may be while using the triggering of the ADC conversion through the Match of the Timer can only be 1 ADC channel&amp;nbsp; enabled ? altough it is hardware and not software controlled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The sampling rate of the continuous adquisition channel should not be modified for only two channels enabled with a 31 clock ADC conversion and 12MHz ADC clock, which at least should support 3 enabled channels.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Apr 2018 19:58:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-ADC-Hardware-Triggered-conversion-and-A-D-Clock/m-p/777624#M31274</guid>
      <dc:creator>joanfontanet</dc:creator>
      <dc:date>2018-04-27T19:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4078 ADC: Hardware-Triggered conversion and A/D Clock</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-ADC-Hardware-Triggered-conversion-and-A-D-Clock/m-p/777625#M31275</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find out where was the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The ADC trigger conversion through the Match of a Timer, it justs starts ONE channel conversion and not all the ADC enabled channels as Burst Mode does. That means that when I'm enabling a second ADC channel I shall set up the Timer Frequency at double.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 09:02:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4078-ADC-Hardware-Triggered-conversion-and-A-D-Clock/m-p/777625#M31275</guid>
      <dc:creator>joanfontanet</dc:creator>
      <dc:date>2018-04-30T09:02:00Z</dc:date>
    </item>
  </channel>
</rss>

