<?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 doubt in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-doubt/m-p/1254939#M60049</link>
    <description>&lt;P&gt;Hi perlam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;4) In fact Vin1=VREFH and also ADC use VREF as reference&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regarding this Vin1=VREFH ---&amp;gt; Reference manual of says that Vin1 and Vin2 are connected to Vdd. Can i now where can i find about this Vin1=VREFH circuit or any information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cmp_vref.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141062i65D431C80949C46B/image-size/large?v=v2&amp;amp;px=999" role="button" title="cmp_vref.png" alt="cmp_vref.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Anup&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 11:37:39 GMT</pubDate>
    <dc:creator>anup_gandra</dc:creator>
    <dc:date>2021-03-31T11:37:39Z</dc:date>
    <item>
      <title>Comparator doubt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-doubt/m-p/316796#M13965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the KL04 for BLDC motor control. I want more precise control for state changes in my motor. I was thinking of using the comparator for the same. I want to compare a BEMF voltage from a winding of the motor with the supply voltage. I am looking for the instant the BEMF is almost half of the main supply voltage. Ofcourse, the BLDC is supplied almost 10V , I am stepping that down (volt div) and LPF to acceptable levels for Kinetis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My point, we need to voltages to the comparator. Can i do the following -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Keep the reference voltage as say 3.3V or as in this case half of it or any reference value for that matter. Can i tweak the reference voltage and hard code it or should it always be an input via a pin.&lt;/P&gt;&lt;P&gt;2) Supply the BEMF to the other comparator pin.&lt;/P&gt;&lt;P&gt;3) When the BEMF is half of reference trigger an interrupt.&lt;/P&gt;&lt;P&gt;4) I am using a 24 pin Kinetis KL04. Can I use the Vref for the ADC as the reference voltage of the comparator as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vinod.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jun 2014 14:53:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-doubt/m-p/316796#M13965</guid>
      <dc:creator>vinkar</dc:creator>
      <dc:date>2014-06-10T14:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Comparator doubt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-doubt/m-p/316797#M13966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vinod:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I read your questions and at this moment I am not pretty sure what you are trying to do, but following your question structure I submit some answers, please tell me if I misunderstand something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Here I understand that you want to know if your signal must come from external pin or if you can get this reference signal internally, here I only know that for CMP you must use external pins to get the signal or use the signal from DAC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You can supply any signal but you must consider electrical specifications for the pin, please review this information in 3.6.2 CMP and 6-bit DAC electrical specifications, I use as example the reference manual &lt;A href="http://cache.freescale.com/files/32bit/doc/data_sheet/KL04P48M48SF1.pdf"&gt;&lt;STRONG&gt;KL04P48M48SF1&lt;/STRONG&gt;&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) CMP module will only generate an interruption with rising or falling of the output signal from comparator, you will have to select carefully your signals in order to generate a change on CMP output and then generate a interruption.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) In fact Vin1=VREFH and also ADC use VREF as reference&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if I understand your questions and if this information as been useful&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a nice day,&lt;BR /&gt;Perla Moncada&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, 12 Jun 2014 17:39:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-doubt/m-p/316797#M13966</guid>
      <dc:creator>perlam_i_au</dc:creator>
      <dc:date>2014-06-12T17:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Comparator doubt</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-doubt/m-p/1254939#M60049</link>
      <description>&lt;P&gt;Hi perlam,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;4) In fact Vin1=VREFH and also ADC use VREF as reference&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Regarding this Vin1=VREFH ---&amp;gt; Reference manual of says that Vin1 and Vin2 are connected to Vdd. Can i now where can i find about this Vin1=VREFH circuit or any information?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cmp_vref.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/141062i65D431C80949C46B/image-size/large?v=v2&amp;amp;px=999" role="button" title="cmp_vref.png" alt="cmp_vref.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Anup&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 11:37:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Comparator-doubt/m-p/1254939#M60049</guid>
      <dc:creator>anup_gandra</dc:creator>
      <dc:date>2021-03-31T11:37:39Z</dc:date>
    </item>
  </channel>
</rss>

