<?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>Kinetis Microcontrollers中的主题 How can I cause interrupt from ADC compare?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-cause-interrupt-from-ADC-compare/m-p/230726#M4963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to&amp;nbsp; create an interrupt that occurs when an ADC channel input crosses a voltage threshold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using processor expert, on a K40&amp;nbsp; (but would be happy to have non-processor expert help!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In processor expert, I&amp;nbsp; have created an AnalogComp_LDD&amp;nbsp;&amp;nbsp; component&lt;/P&gt;&lt;P&gt;This component has&lt;/P&gt;&lt;P&gt; 1 positive input&amp;nbsp; : CMP0_IN4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the 2nd input to be from the internal DAC and be able to select the output of the DAC.&lt;/P&gt;&lt;P&gt;So within&amp;nbsp; the AnalogComp_LDD component,&amp;nbsp; I set the negative input to Dac6 output , sourced internally&amp;nbsp; from&amp;nbsp; component DA2&lt;/P&gt;&lt;P&gt;[I'm not sure why one is positive and one is negative. They are both positive voltages.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Component DA2 is configured to to an initial value of 32&amp;nbsp; which should be 1/2 of the refrerence voltage since there is 6 bits of resolution and the full range is 0-64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My "code" does get an initial interrupt on startup.&amp;nbsp; But does not get another interrupt. regardless of the signal I put on&amp;nbsp; the input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggesteions on what to try or alternate methods is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PE_capture.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41264iC56DE19584D648EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="PE_capture.JPG.jpg" alt="PE_capture.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Jan 2014 06:01:17 GMT</pubDate>
    <dc:creator>melvinblades</dc:creator>
    <dc:date>2014-01-13T06:01:17Z</dc:date>
    <item>
      <title>How can I cause interrupt from ADC compare?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-cause-interrupt-from-ADC-compare/m-p/230726#M4963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to&amp;nbsp; create an interrupt that occurs when an ADC channel input crosses a voltage threshold.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using processor expert, on a K40&amp;nbsp; (but would be happy to have non-processor expert help!)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In processor expert, I&amp;nbsp; have created an AnalogComp_LDD&amp;nbsp;&amp;nbsp; component&lt;/P&gt;&lt;P&gt;This component has&lt;/P&gt;&lt;P&gt; 1 positive input&amp;nbsp; : CMP0_IN4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the 2nd input to be from the internal DAC and be able to select the output of the DAC.&lt;/P&gt;&lt;P&gt;So within&amp;nbsp; the AnalogComp_LDD component,&amp;nbsp; I set the negative input to Dac6 output , sourced internally&amp;nbsp; from&amp;nbsp; component DA2&lt;/P&gt;&lt;P&gt;[I'm not sure why one is positive and one is negative. They are both positive voltages.]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Component DA2 is configured to to an initial value of 32&amp;nbsp; which should be 1/2 of the refrerence voltage since there is 6 bits of resolution and the full range is 0-64.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My "code" does get an initial interrupt on startup.&amp;nbsp; But does not get another interrupt. regardless of the signal I put on&amp;nbsp; the input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggesteions on what to try or alternate methods is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="PE_capture.JPG.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/41264iC56DE19584D648EC/image-size/large?v=v2&amp;amp;px=999" role="button" title="PE_capture.JPG.jpg" alt="PE_capture.JPG.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 06:01:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-cause-interrupt-from-ADC-compare/m-p/230726#M4963</guid>
      <dc:creator>melvinblades</dc:creator>
      <dc:date>2014-01-13T06:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: How can I cause interrupt from ADC compare?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-cause-interrupt-from-ADC-compare/m-p/230727#M4964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I solved my own problem.&amp;nbsp; &lt;/P&gt;&lt;P&gt;I wanted the 2nd input on the comparator to come internally from the DAC&lt;/P&gt;&lt;P&gt;I&amp;nbsp; had set the &lt;SPAN style="text-decoration: underline;"&gt;&lt;EM&gt;reference voltage&lt;/EM&gt;&lt;/SPAN&gt; up to&amp;nbsp; "internal"&amp;nbsp;&amp;nbsp; --&amp;nbsp; but&amp;nbsp; what I I wanted&lt;/P&gt;&lt;P&gt;was the&amp;nbsp; DAC &lt;SPAN style="text-decoration: underline;"&gt;output&lt;/SPAN&gt; to be generated internally,&lt;/P&gt;&lt;P&gt; The&amp;nbsp; reference voltage for the DAC is actually external (VDD)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jan 2014 19:03:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-can-I-cause-interrupt-from-ADC-compare/m-p/230727#M4964</guid>
      <dc:creator>melvinblades</dc:creator>
      <dc:date>2014-01-13T19:03:33Z</dc:date>
    </item>
  </channel>
</rss>

