<?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>topic Re: Hello, are there anyone using COP and internal ADCs on MKL15? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384111#M20543</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your attention and help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me to know how to print "unsigned long long" and "float" types?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rui Faria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 13:15:23 GMT</pubDate>
    <dc:creator>RuiFaria</dc:creator>
    <dc:date>2015-04-09T13:15:23Z</dc:date>
    <item>
      <title>Hello, are there anyone using COP and internal ADCs on MKL15?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384109#M20541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are there anyone using COP and internal ADCs on MKL15?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rui Faria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2015 19:20:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384109#M20541</guid>
      <dc:creator>RuiFaria</dc:creator>
      <dc:date>2015-04-07T19:20:02Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, are there anyone using COP and internal ADCs on MKL15?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384110#M20542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check attached KL series COP validation code.&lt;/P&gt;&lt;P&gt;And you could find KL26 ADC example code at KL26 sample software [FRDM_KL26Zdemo] project, major at &amp;lt;adc_test.c&amp;gt;. (KL15 using the same ADC module with KL26)&lt;/P&gt;&lt;P&gt;The KL26 sample code could be downloaded &lt;A href="http://cache.freescale.com/files/32bit/software/FRDM-KL26Z_SC.exe"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 07:54:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384110#M20542</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2015-04-09T07:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, are there anyone using COP and internal ADCs on MKL15?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384111#M20543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your attention and help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you help me to know how to print "unsigned long long" and "float" types?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Rui Faria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 13:15:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384111#M20543</guid>
      <dc:creator>RuiFaria</dc:creator>
      <dc:date>2015-04-09T13:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, are there anyone using COP and internal ADCs on MKL15?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384112#M20544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;#include &amp;lt;inttypes.h&amp;gt; to get the format specifiers for your compiler.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Explained here: &lt;A href="http://embeddedgurus.com/stack-overflow/2011/02/formatted-output-when-using-c99-data-types/" title="http://embeddedgurus.com/stack-overflow/2011/02/formatted-output-when-using-c99-data-types/"&gt;Formatted output when using C99 data types « Stack Overflow&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 13:37:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384112#M20544</guid>
      <dc:creator>bobpaddock</dc:creator>
      <dc:date>2015-04-09T13:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, are there anyone using COP and internal ADCs on MKL15?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384113#M20545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;char SerialBuffer[13];&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;int Trash = sprintf(SerialBuffer, "%llu", Value);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;or&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;int Trash = sprintf(SerialBuffer, "%" PRIu64, Value);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the two situtions prints "lu"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:09:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384113#M20545</guid>
      <dc:creator>RuiFaria</dc:creator>
      <dc:date>2015-04-09T14:09:32Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, are there anyone using COP and internal ADCs on MKL15?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384114#M20546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i were checking the &amp;lt;adc_test.c&amp;gt; example but it doesn't seem right.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;uint16 adc_read(uint8 channel)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;{&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; ADC0_SC1A = !AIEN_ON | DIFF_SINGLE | ADC_SC1_ADCH(channel) ;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // start conversion&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;while((ADC0_SC1A &amp;amp; ADC_SC1_COCO_MASK)!= 0){};&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; return ADC0_RA;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Page 453 of KL15P80M48SFORM.pdf&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;7 COCO&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Conversion Complete Flag&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Field Description&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;This is a read-only field that is set each time a conversion is completed when the compare function is&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;disabled, or SC2[ACFE]=0 and the hardware average function is disabled, or SC3[AVGE]=0. When the&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;compare function is enabled, or SC2[ACFE]=1, COCO is set upon completion of a conversion only if the&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;compare result is true. When the hardware average function is enabled, or SC3[AVGE]=1, COCO is set&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;upon completion of the selected number of conversions (determined by AVGS). COCO in SC1A is also set&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;at the completion of a calibration sequence. COCO is cleared when the respective SC1n register is written&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;or when the respective Rn register is read.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;0 Conversion is not completed.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;1 Conversion is completed.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;So we start conversion and wait while&lt;EM&gt; Conversion is completed...&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 12:50:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384114#M20546</guid>
      <dc:creator>RuiFaria</dc:creator>
      <dc:date>2015-04-13T12:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, are there anyone using COP and internal ADCs on MKL15?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384115#M20547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the ADC module operation, customer could enable ADC interrupt mode.&lt;/P&gt;&lt;P&gt;When ADC module finish the conversion and will generate an interrupt, in interrupt service routine, the ADC conversion result could be read out.&lt;/P&gt;&lt;P&gt;The FRDM_KL26Z board ADC demo is using the interrupt mode, customer could download related code &lt;A href="http://cache.freescale.com/files/32bit/software/FRDM-KL26Z_SC.exe"&gt;here&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;Wish it helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ma Hui&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 02:29:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384115#M20547</guid>
      <dc:creator>Hui_Ma</dc:creator>
      <dc:date>2015-04-14T02:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, are there anyone using COP and internal ADCs on MKL15?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384116#M20548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tested ADC code in FRDM_KL25Z board and seems to be working well, but not so good in my custom board with MKL15. The values are always in overflow state (0xFFFF) and i don't understand why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to read TempSensor, ADC0_SE8/PTB0 and ADC0_SE13/PTB3 inputs using Generated Code by Processor Expert.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your attention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rui Faria&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 17:07:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384116#M20548</guid>
      <dc:creator>RuiFaria</dc:creator>
      <dc:date>2015-04-14T17:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Hello, are there anyone using COP and internal ADCs on MKL15?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384117#M20549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are any problem in using VREFH equal to VDDA 3V3? it is the only difference between boards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 17:53:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Hello-are-there-anyone-using-COP-and-internal-ADCs-on-MKL15/m-p/384117#M20549</guid>
      <dc:creator>RuiFaria</dc:creator>
      <dc:date>2015-04-14T17:53:14Z</dc:date>
    </item>
  </channel>
</rss>

