<?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>Other NXP ProductsのトピックRe: CMP peripheral usage issues</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/CMP-peripheral-usage-issues/m-p/1669767#M18158</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mk10dn512M10&amp;nbsp;seems not a correct part number. Do you mean MK10DN512VLQ10 or&amp;nbsp;MK10DN512&lt;STRONG&gt;Z&lt;/STRONG&gt;VLQ10?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you are using&amp;nbsp;MK10DN512VLQ10 (no ‘Z’ character: PRODUCTION mask set), please download&amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/en/welcome" target="_self"&gt;SDK_2_2_0_MK10DN512xxx10.zip&lt;/A&gt;. And you can test twrk60d100m_driver_examples_cmp_interrupt and&amp;nbsp;twrk60d100m_driver_examples_cmp_polling examples.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you are using&amp;nbsp;MK10DN512&lt;STRONG&gt;Z&lt;/STRONG&gt;VLQ10(‘&lt;STRONG&gt;Z&lt;/STRONG&gt;’ character: INITIAL Production mask set), please refer to the answer in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/silicon-revision-for-K20-family/td-p/1479450" target="_self"&gt;silicon revision for K20 family&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Thu, 15 Jun 2023 01:52:38 GMT</pubDate>
    <dc:creator>Robin_Shen</dc:creator>
    <dc:date>2023-06-15T01:52:38Z</dc:date>
    <item>
      <title>CMP peripheral usage issues</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/CMP-peripheral-usage-issues/m-p/1667991#M18123</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm pretty new to this, so bear with me.&lt;BR /&gt;the following actions are from an example I have, and I'm trying to verify this against the datasheet, however I haven't found any resemblance .&lt;/P&gt;&lt;P&gt;I'm using mk10dn512M10 (this model does not appear in the catalog, which I'm having hard time finding any documentation for this model.&lt;/P&gt;&lt;P&gt;where I'm trying to use the CMP peripheral to compare between :&lt;BR /&gt;1. a pin on my MCU which connected to a battery&lt;BR /&gt;2. reference voltage from DAC&lt;/P&gt;&lt;P&gt;I configured the DAC to send output voltage on DAC output (3v) which is said to be connected to CMP1 input internally.&amp;nbsp;&lt;/P&gt;&lt;P&gt;using this template:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; // Configure the CMP1 input pin&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; // Assuming the pin is on Port C, adjust accordingly for other ports&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; PORTC_PCR[cmpInputPin] = PORT_PCR_MUX(7); // Set the pin as the CMP1 input&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; // Configure CMP1&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CMP1_CR0 = CMP_CR0_FILTER_CNT(0x00); // Adjust filter count if needed&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CMP1_CR1 = CMP_CR1_EN_MASK | CMP_CR1_OPE_MASK | CMP_CR1_PMODE_MASK; // Enable the comparator, set high-speed mode&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; CMP1_MUXCR = (CMP1_MUXCR &amp;amp; ~CMP_MUXCR_PSEL_MASK) | CMP_MUXCR_PSEL(cmpInputPin); // Set the CMP1 positive input to the specified pin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried to read the CMP with :&lt;/P&gt;&lt;P&gt;if (CMP1_SCR &amp;amp; CMP_SCR_COUT_MASK)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;but I don't seem to have any change occuring at the CMP COUT.&lt;/P&gt;&lt;P&gt;I would appreciate help in understanding what is a general flow of the CMP peripheral as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jun 2023 06:28:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/CMP-peripheral-usage-issues/m-p/1667991#M18123</guid>
      <dc:creator>Baraku</dc:creator>
      <dc:date>2023-06-13T06:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: CMP peripheral usage issues</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/CMP-peripheral-usage-issues/m-p/1669767#M18158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mk10dn512M10&amp;nbsp;seems not a correct part number. Do you mean MK10DN512VLQ10 or&amp;nbsp;MK10DN512&lt;STRONG&gt;Z&lt;/STRONG&gt;VLQ10?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you are using&amp;nbsp;MK10DN512VLQ10 (no ‘Z’ character: PRODUCTION mask set), please download&amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/en/welcome" target="_self"&gt;SDK_2_2_0_MK10DN512xxx10.zip&lt;/A&gt;. And you can test twrk60d100m_driver_examples_cmp_interrupt and&amp;nbsp;twrk60d100m_driver_examples_cmp_polling examples.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you are using&amp;nbsp;MK10DN512&lt;STRONG&gt;Z&lt;/STRONG&gt;VLQ10(‘&lt;STRONG&gt;Z&lt;/STRONG&gt;’ character: INITIAL Production mask set), please refer to the answer in&amp;nbsp;&lt;A href="https://community.nxp.com/t5/Kinetis-Microcontrollers/silicon-revision-for-K20-family/td-p/1479450" target="_self"&gt;silicon revision for K20 family&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Best Regards,&lt;BR /&gt;Robin&lt;BR /&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jun 2023 01:52:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/CMP-peripheral-usage-issues/m-p/1669767#M18158</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-06-15T01:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: CMP peripheral usage issues</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/CMP-peripheral-usage-issues/m-p/1672555#M18208</link>
      <description>&lt;P&gt;Hi Robin,&lt;/P&gt;&lt;P&gt;thank you for the assistance.&lt;BR /&gt;&lt;BR /&gt;to be honest I managed to solve this one myself, and can use the CMP on my board.&lt;/P&gt;&lt;P&gt;I still would like to view the example you offered, however the link you sent (for the zip file) just leads me to the welcome screen (&amp;nbsp;&lt;A href="https://mcuxpresso.nxp.com/en/welcome" target="_blank"&gt;https://mcuxpresso.nxp.com/en/welcome&lt;/A&gt;)&amp;nbsp;&lt;BR /&gt;can't seem to find the specific file you mentioned via the search either, it would just let me to select filters there, not sure where do I find the actual examples/files.&lt;/P&gt;&lt;P&gt;thanks again.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 08:41:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/CMP-peripheral-usage-issues/m-p/1672555#M18208</guid>
      <dc:creator>Baraku</dc:creator>
      <dc:date>2023-06-20T08:41:34Z</dc:date>
    </item>
    <item>
      <title>Re: CMP peripheral usage issues</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/CMP-peripheral-usage-issues/m-p/1672577#M18209</link>
      <description>&lt;P&gt;I'm glad to hear it's resolved.&lt;BR /&gt;1. click &lt;STRONG&gt;Select Development Board&lt;/STRONG&gt;&lt;BR /&gt;2. input MK10DN512VLQ10 at&amp;nbsp;&lt;STRONG&gt;Search for Hardware&lt;/STRONG&gt;&lt;BR /&gt;3. select MK10DN512xxx10 &lt;BR /&gt;4. click &lt;STRONG&gt;Build MCUXpresso SDK&lt;/STRONG&gt; v2.0.0&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2023 09:06:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/CMP-peripheral-usage-issues/m-p/1672577#M18209</guid>
      <dc:creator>Robin_Shen</dc:creator>
      <dc:date>2023-06-20T09:06:00Z</dc:date>
    </item>
  </channel>
</rss>

