<?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: MK30F64VLH10 CMP Problem in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK30F64VLH10-CMP-Problem/m-p/415313#M23637</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Martin,&lt;/P&gt;&lt;P&gt;I think you use the same analog pin as the ADC channel and the CMP input, when the ADC channel is routed to S/H(sample/hold), the ADC channel input impedance is changed, which may change the ADC analog channel voltage.&lt;/P&gt;&lt;P&gt;I suggest you set the HYSTCTR bits in CMPx_CR0 as 11 in binary, which will set the hysteresis as level 3(30mV), I think the hysteresis feature will solve the problem.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Sep 2015 01:32:36 GMT</pubDate>
    <dc:creator>xiangjun_rong</dc:creator>
    <dc:date>2015-09-29T01:32:36Z</dc:date>
    <item>
      <title>MK30F64VLH10 CMP Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK30F64VLH10-CMP-Problem/m-p/415312#M23636</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;I got a problem of MK30F64VLH10 CMP with ADC module, following is the detail:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCU:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MKV30F64VLH10&lt;/P&gt;&lt;P&gt;ADC Module:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ADC0 and ADC1&lt;/P&gt;&lt;P&gt;Every second, there are 16 sampling groups, in each sampling group, there are 9 sampling points, in each sampling points, the ADC0 work in differential 16-bit mode and ADC1 work in single-ended 16-bit mode&lt;/P&gt;&lt;P&gt;CMP Module:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CMP1:&lt;/P&gt;&lt;P&gt;Pins:&lt;/P&gt;&lt;P&gt;CMP1_IN1&lt;/P&gt;&lt;P&gt;CMP1_IN3&lt;/P&gt;&lt;P&gt;CMP1_OUT&lt;/P&gt;&lt;P&gt;Signal in CMP1_IN1: 50Hz sine wave&lt;/P&gt;&lt;P&gt;Signal in CMP1_IN3: Reference voltage&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Issue Description:&lt;/P&gt;&lt;P&gt;When the ADC module is working, the output of CMP signal is getting bad that means there is a lots of output in the zero crossing point. But if disabled ADC module, the CMP output is OK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attached files are the signal got from CM1_OUT disabled and enabled ADC module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Martin Zhang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Sep 2015 03:02:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK30F64VLH10-CMP-Problem/m-p/415312#M23636</guid>
      <dc:creator>martinzhang</dc:creator>
      <dc:date>2015-09-28T03:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: MK30F64VLH10 CMP Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK30F64VLH10-CMP-Problem/m-p/415313#M23637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Martin,&lt;/P&gt;&lt;P&gt;I think you use the same analog pin as the ADC channel and the CMP input, when the ADC channel is routed to S/H(sample/hold), the ADC channel input impedance is changed, which may change the ADC analog channel voltage.&lt;/P&gt;&lt;P&gt;I suggest you set the HYSTCTR bits in CMPx_CR0 as 11 in binary, which will set the hysteresis as level 3(30mV), I think the hysteresis feature will solve the problem.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 01:32:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK30F64VLH10-CMP-Problem/m-p/415313#M23637</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2015-09-29T01:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: MK30F64VLH10 CMP Problem</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK30F64VLH10-CMP-Problem/m-p/415314#M23638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;You are right, I connected the pin for ADC sampling and CMP input, but I have done the test: Disabled the ADC input pin, but there is no improvement.&amp;nbsp; So I am not understand the reason you said that ‘&lt;/SPAN&gt;when the ADC channel is routed to S/H(sample/hold), the ADC channel input impedance is changed, which may change the ADC analog channel voltage.’&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Calibri',sans-serif; color: #1f497d;"&gt;I have already set the HYSTCTR to 3 (30mV), this can partly solve this problem. In addition I have increased the&amp;nbsp; number of CMP_CR0_FILTER_CNT, the result is better. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Sep 2015 01:46:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MK30F64VLH10-CMP-Problem/m-p/415314#M23638</guid>
      <dc:creator>martinzhang</dc:creator>
      <dc:date>2015-09-29T01:46:10Z</dc:date>
    </item>
  </channel>
</rss>

