<?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>Processor Expert Software中的主题 Re: ADC Clock Divide Select from the register ADC0_CFG1.</title>
    <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-Clock-Divide-Select-from-the-register-ADC0-CFG1/m-p/429521#M3498</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The problem is caused by the high ADC clock frequency. There is defined a limit frequency that depend on the selected configuration of the ADC device, see for example KL25Z datasheet:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/32bit/doc/data_sheet/KL25P80M48SF0.pdf?fpsp=1&amp;amp;WT_TYPE=Data%20Sheets&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;http://www.freescale.com/files/32bit/doc/data_sheet/KL25P80M48SF0.pdf?fpsp=1&amp;amp;WT_TYPE=Data%20Sheets&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is following table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25089i4518DD047E704BCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When you set higher ADC clock frequency the behavior of the ADC device is not defined (I have already checked on the FRDM-KL2Z target board).&lt;/P&gt;&lt;P&gt;You can enable High-speed conversion mode, 8-bits A/D resolution and shortest sample time to achieve the fastest conversion time. See also the KL25Z reference manual for details about the ADC conversion time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 Oct 2015 09:50:28 GMT</pubDate>
    <dc:creator>marek_neuzil</dc:creator>
    <dc:date>2015-10-27T09:50:28Z</dc:date>
    <item>
      <title>ADC Clock Divide Select from the register ADC0_CFG1.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-Clock-Divide-Select-from-the-register-ADC0-CFG1/m-p/429520#M3497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a FRDM-KL25Z and I am working with the ADC. &lt;/P&gt;&lt;P&gt;I configure the ADC_LDD component with the PE, to make it to work in continuous measuremente mode with interrupts. I save the results of the ADC conversions into an array. &lt;/P&gt;&lt;P&gt;The PE defines&amp;nbsp; the Clock Divide Select bits from the ADC0_CFG1 register as &lt;STRONG&gt;input clock/2&lt;/STRONG&gt; (ADIV = 01) . However I am interested to make the conversiones as fast as possible, so I change the register value manualy to &lt;STRONG&gt;input clock/1 &lt;/STRONG&gt;(ADIV = 00). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use a led pin to see the time that needs 3000 measurements by the oscilloscope, and I see that there is no difference when I change ADIV to 00. &lt;/P&gt;&lt;P&gt;In both cases it need 7.13ms for 3000measuremente (2.37us per measure). How is that possible? Should not be a difference when the ADC clock is changed? &lt;/P&gt;&lt;P&gt;Please find below my code.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ADC Clock prescaler.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/3673i88ABE785AA27B7AE/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC Clock prescaler.png" alt="ADC Clock prescaler.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is the interrupt routine:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="ADC Clock prescaler 2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/24435iA26A17FF2A4D2926/image-size/large?v=v2&amp;amp;px=999" role="button" title="ADC Clock prescaler 2.png" alt="ADC Clock prescaler 2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance. Any help will be appreciated. &lt;/P&gt;&lt;P&gt;Aitor.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2015 12:46:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-Clock-Divide-Select-from-the-register-ADC0-CFG1/m-p/429520#M3497</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2015-10-26T12:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: ADC Clock Divide Select from the register ADC0_CFG1.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-Clock-Divide-Select-from-the-register-ADC0-CFG1/m-p/429521#M3498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;The problem is caused by the high ADC clock frequency. There is defined a limit frequency that depend on the selected configuration of the ADC device, see for example KL25Z datasheet:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/32bit/doc/data_sheet/KL25P80M48SF0.pdf?fpsp=1&amp;amp;WT_TYPE=Data%20Sheets&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf"&gt;http://www.freescale.com/files/32bit/doc/data_sheet/KL25P80M48SF0.pdf?fpsp=1&amp;amp;WT_TYPE=Data%20Sheets&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=pdf&amp;amp;WT_ASSET=Documentation&amp;amp;fileExt=.pdf&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is following table:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/25089i4518DD047E704BCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When you set higher ADC clock frequency the behavior of the ADC device is not defined (I have already checked on the FRDM-KL2Z target board).&lt;/P&gt;&lt;P&gt;You can enable High-speed conversion mode, 8-bits A/D resolution and shortest sample time to achieve the fastest conversion time. See also the KL25Z reference manual for details about the ADC conversion time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 Oct 2015 09:50:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-Clock-Divide-Select-from-the-register-ADC0-CFG1/m-p/429521#M3498</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2015-10-27T09:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: ADC Clock Divide Select from the register ADC0_CFG1.</title>
      <link>https://community.nxp.com/t5/Processor-Expert-Software/ADC-Clock-Divide-Select-from-the-register-ADC0-CFG1/m-p/429522#M3499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Marek,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Oct 2015 08:44:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Processor-Expert-Software/ADC-Clock-Divide-Select-from-the-register-ADC0-CFG1/m-p/429522#M3499</guid>
      <dc:creator>patricio</dc:creator>
      <dc:date>2015-10-28T08:44:04Z</dc:date>
    </item>
  </channel>
</rss>

