<?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>LPCXpresso IDE中的主题 how to change sampling frequency</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/how-to-change-sampling-frequency/m-p/590073#M28941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by SantiagoElias on Tue Nov 15 13:16:55 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new on LPC, and I'm trying to change the sampling frequency on a LPC1114.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried so far changing some variables, such as &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_ADC-&amp;gt;CR = ((SystemCoreClock/LPC_SYSCON-&amp;gt;SYSAHBCLKDIV)/ADC_Clk-1)&amp;lt;&amp;lt;8;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; #define ADC_CLK2400000/* set to 2.4Mhz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but it did not success.:mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I test it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;S.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:51:18 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:51:18Z</dc:date>
    <item>
      <title>how to change sampling frequency</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/how-to-change-sampling-frequency/m-p/590073#M28941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by SantiagoElias on Tue Nov 15 13:16:55 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am new on LPC, and I'm trying to change the sampling frequency on a LPC1114.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried so far changing some variables, such as &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; LPC_ADC-&amp;gt;CR = ((SystemCoreClock/LPC_SYSCON-&amp;gt;SYSAHBCLKDIV)/ADC_Clk-1)&amp;lt;&amp;lt;8;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; #define ADC_CLK2400000/* set to 2.4Mhz */&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but it did not success.:mad:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How can I test it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;S.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:51:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/how-to-change-sampling-frequency/m-p/590073#M28941</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:51:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to change sampling frequency</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/how-to-change-sampling-frequency/m-p/590074#M28942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Nov 15 14:06:06 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That's your clock divider CLKDIV, see user manual:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;20.5.1 A/D Control Register (AD0CR - 0x4001 C000)&lt;BR /&gt;&lt;BR /&gt;15:8 CLKDIV The APB clock (PCLK) is divided by CLKDIV +1 to produce the clock for the ADC, which&lt;BR /&gt;should be less than or equal to 4.5 MHz. Typically, software should program the smallest&lt;BR /&gt;value in this field that yields a clock of 4.5 MHz or slightly less, but in certain cases (such&lt;BR /&gt;as a high-impedance analog source) a slower clock may be desirable.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;SPAN&gt;Your sampling frequency depends on something like ADCRead(i), where you can find the start of conversion :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to use a fixed frequency you can use 'Optional conversion on transition on input pin or Timer Match signal' :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;User manual:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;Table 268. A/D Control Register (AD0CR - address 0x4001 C000) bit description&lt;BR /&gt;&lt;BR /&gt;26:24 START When the BURST bit is 0, these bits control whether and when an A/D conversion is&lt;BR /&gt;started:&lt;BR /&gt;0&lt;BR /&gt;0x0 No start (this value should be used when clearing PDN to 0).&lt;BR /&gt;0x1 Start conversion now.&lt;BR /&gt;[COLOR=Red]0x2 Start conversion when the edge selected by bit 27 occurs on&lt;BR /&gt;PIO0_2/SSEL/CT16B0_CAP0.&lt;BR /&gt;0x3 Start conversion when the edge selected by bit 27 occurs on&lt;BR /&gt;PIO1_5/DIR/CT32B0_CAP0.&lt;BR /&gt;0x4 Start conversion when the edge selected by bit 27 occurs on CT32B0_MAT0[1].&lt;BR /&gt;0x5 Start conversion when the edge selected by bit 27 occurs on CT32B0_MAT1[1].&lt;BR /&gt;0x6 Start conversion when the edge selected by bit 27 occurs on CT16B0_MAT0[1].&lt;BR /&gt;0x7 Start conversion when the edge selected by bit 27 occurs on CT16B0_MAT1[1].[/COLOR]&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:51:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/how-to-change-sampling-frequency/m-p/590074#M28942</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:51:19Z</dc:date>
    </item>
  </channel>
</rss>

