<?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>8-bit MicrocontrollersのトピックRe: QG8 - ACMP to compare LDR voltage</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-ACMP-to-compare-LDR-voltage/m-p/153378#M8544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello and Welcome,&lt;BR /&gt;&lt;BR /&gt;Sending replies by email rather than posting to the Forum is fundamentally against the principle of any forum.&lt;BR /&gt;Forums are about exchange and not only take.&lt;BR /&gt;&lt;BR /&gt;That is why &lt;B&gt;I really hope that nobody will answer you by email&lt;/B&gt;, but will answer on the forum itself.&lt;BR /&gt;If you want to receive the answer via email, just "subscribe" to receive the replies from your post.&lt;BR /&gt;&lt;BR /&gt;When you post, there is an option below the edition window saying "E-mail me if someone replies to this", you just need to check it.&lt;BR /&gt;Otherwise, if you forgot, you can come on any post of this the thread and click Options-&amp;gt; &lt;B&gt;Add this thread to my subscriptions&lt;/B&gt;.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Alban. &lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Oct 2007 03:55:46 GMT</pubDate>
    <dc:creator>Alban</dc:creator>
    <dc:date>2007-10-08T03:55:46Z</dc:date>
    <item>
      <title>QG8 - ACMP to compare LDR voltage</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-ACMP-to-compare-LDR-voltage/m-p/153377#M8543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;hi,&lt;/DIV&gt;&lt;DIV&gt;I want to use the analog comparator on the qg8 chip to compare 2 voltage levels from the LDR .I have the input from the LDR's ready as 2 different input .I tried the code available with the development kit(as i am a newbie)but i have not yet got any result.The program i used is the one given in the quickstart module.&lt;/DIV&gt;&lt;DIV&gt;It would be very useful if u can send a sample code where the ACMP is used&amp;nbsp;,which can make it work.&lt;/DIV&gt;&lt;DIV&gt;please mail me at &lt;A class="jive-link-email-small" href="mailto:ashwinbhat008@gmail.com"&gt;ashwinbhat008@gmail.com&lt;/A&gt;&lt;/DIV&gt;&lt;DIV&gt;thank you&lt;/DIV&gt;&lt;DIV&gt;regards&lt;/DIV&gt;&lt;DIV&gt;ashwin&lt;BR /&gt;&lt;BR /&gt;--&lt;BR /&gt;Alban Edit: subject clarified.&lt;BR /&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-10-07&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;09:56 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Oct 2007 21:17:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-ACMP-to-compare-LDR-voltage/m-p/153377#M8543</guid>
      <dc:creator>KAMATH_innovato</dc:creator>
      <dc:date>2007-10-07T21:17:19Z</dc:date>
    </item>
    <item>
      <title>Re: QG8 - ACMP to compare LDR voltage</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-ACMP-to-compare-LDR-voltage/m-p/153378#M8544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello and Welcome,&lt;BR /&gt;&lt;BR /&gt;Sending replies by email rather than posting to the Forum is fundamentally against the principle of any forum.&lt;BR /&gt;Forums are about exchange and not only take.&lt;BR /&gt;&lt;BR /&gt;That is why &lt;B&gt;I really hope that nobody will answer you by email&lt;/B&gt;, but will answer on the forum itself.&lt;BR /&gt;If you want to receive the answer via email, just "subscribe" to receive the replies from your post.&lt;BR /&gt;&lt;BR /&gt;When you post, there is an option below the edition window saying "E-mail me if someone replies to this", you just need to check it.&lt;BR /&gt;Otherwise, if you forgot, you can come on any post of this the thread and click Options-&amp;gt; &lt;B&gt;Add this thread to my subscriptions&lt;/B&gt;.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Alban. &lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 03:55:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-ACMP-to-compare-LDR-voltage/m-p/153378#M8544</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-10-08T03:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: QG8 - ACMP to compare LDR voltage</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-ACMP-to-compare-LDR-voltage/m-p/153379#M8545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello Ashwin,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;You have not explained the exact nature of your problem, and it would be a good idea to post the relevant portion of your code here, so as to avoid any ambiguity.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I assume you wish to compare the light intensity from two different sources, to determine which is the stronger source.&amp;nbsp; Do you have one LDR circuit connected to one input of the comparator, and the second LDR connected to the other input?&amp;nbsp; Do you bias each LDR with a resistor connected to Vdd?&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Since the LDR devices may have a wide unit-to-unit tolerance, you will likely need to provide adjustment of the bias current to compensate for this tolerance.&amp;nbsp; You will also need to check that the resistor values you have chosen provide sufficient dynamic range over the range of lignt levels of interest.&amp;nbsp; The comparison is unlikely to be satisfactory if the voltage levels applied to the comparator inputs are quite close to zero or to Vdd, since&amp;nbsp;a large change of light level would produce a very small change of voltage.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;A final thought - you might also consider the use of the ATD module for this application.&amp;nbsp; Simply measure the output from each LDR circuit, and compare the values in firmware.&amp;nbsp; This has the advantage that you can apply a calibration factor to each reading, before making a comparison.&amp;nbsp; You can also check the dynamic range within the firmware.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Oct 2007 07:46:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/QG8-ACMP-to-compare-LDR-voltage/m-p/153379#M8545</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2007-10-08T07:46:07Z</dc:date>
    </item>
  </channel>
</rss>

