<?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: Comparator CMP0_OUT no pad/pin output in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-CMP0-OUT-no-pad-pin-output/m-p/1840239#M66252</link>
    <description>&lt;P&gt;Yes, you must also put CMP0_CR1_OPE=1 to have the output redirected to a PAD/PIN. Now it works. Thank you for your attention.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Apr 2024 16:14:29 GMT</pubDate>
    <dc:creator>grizzly76</dc:creator>
    <dc:date>2024-04-03T16:14:29Z</dc:date>
    <item>
      <title>Comparator CMP0_OUT no pad/pin output</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-CMP0-OUT-no-pad-pin-output/m-p/1839352#M66241</link>
      <description>&lt;P&gt;With the FRDM-KV10 evaluation board I am able to check the operation of the CMP0 comparator by scanning the CMP0_SCR_COUT bit (switching of the FRDM-KV10 red LED) which validates the configuration of the inputs and the operation of the comparator.&lt;/P&gt;&lt;P&gt;BUT I can't get the comparator output to the PTC5 pin (which is frustrating when you want to have hysteresis set by external resistors).&lt;/P&gt;&lt;P&gt;Is this 3 instructions enough to have the output on PTC5 :&lt;/P&gt;&lt;P&gt;&amp;nbsp; ldr r0,=0x4004B014 //Pin Control Register n (PORTC_PCR5)&lt;BR /&gt;&amp;nbsp; ldr r1,=0x00000640 //PTC5 alt6 CMP0_OUT&lt;BR /&gt;&amp;nbsp; str r1,[r0]&lt;/P&gt;&lt;P&gt;Please see the "very little" assembler attached source file (I had to change the .S extension of the file for it to be attached).&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 12:36:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-CMP0-OUT-no-pad-pin-output/m-p/1839352#M66241</guid>
      <dc:creator>grizzly76</dc:creator>
      <dc:date>2024-04-02T12:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Comparator CMP0_OUT no pad/pin output</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-CMP0-OUT-no-pad-pin-output/m-p/1839704#M66249</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Thank you so much for your interest in our products and for using our community.&lt;/P&gt;
&lt;P&gt;Unfortunately we do not have an SDK example that shows how to use the &lt;EM&gt;Comparator Output (CMPO)&lt;/EM&gt;, there is just the &lt;EM&gt;cmp_interrupt&lt;/EM&gt; and &lt;EM&gt;cmp_polling&lt;/EM&gt; examples.&lt;/P&gt;
&lt;P&gt;However to set the &lt;EM&gt;CMPO&lt;/EM&gt; you just need to use the following registers:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_Leo__0-1712097500247.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/271671iB5CD289CDAE86E12/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_Leo__0-1712097500247.png" alt="_Leo__0-1712097500247.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope it helps you.&lt;/P&gt;
&lt;P&gt;Have a nice day!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2024 22:38:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-CMP0-OUT-no-pad-pin-output/m-p/1839704#M66249</guid>
      <dc:creator>_Leo_</dc:creator>
      <dc:date>2024-04-02T22:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: Comparator CMP0_OUT no pad/pin output</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-CMP0-OUT-no-pad-pin-output/m-p/1840239#M66252</link>
      <description>&lt;P&gt;Yes, you must also put CMP0_CR1_OPE=1 to have the output redirected to a PAD/PIN. Now it works. Thank you for your attention.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2024 16:14:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-CMP0-OUT-no-pad-pin-output/m-p/1840239#M66252</guid>
      <dc:creator>grizzly76</dc:creator>
      <dc:date>2024-04-03T16:14:29Z</dc:date>
    </item>
  </channel>
</rss>

