<?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 IRRELEVANT ADC VALUES in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/IRRELEVANT-ADC-VALUES/m-p/531598#M2570</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by KalavathiPR on Thu Sep 24 02:19:13 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In presence of external pull up, I was getting proper ADC values corresponding to the voltage provided to the ADC pin of LPC1769.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When no input is provided, ADC value was 4095. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I have removed external pull up because I don't want to use it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting proper ADC values corresponding to the voltage provided to the ADC pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But, when I remove the connection to the i/p pin or when no input is provided, ADC value is neither 4095 nor 0. It reads some other ADC values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have changed pinmode register for ADC to&amp;nbsp; pull-up resistor, repeater mode, neither pull-up nor pull-down and also pull-down resistor enabled. But did not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As per UM10360 LPC176x/5x User manual page 111's [2], due to internal pull up- Voltage on the ADC input pin measures around 2.3V.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After power on reset, the voltage on the same pin is around 0V.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) After power on reset, why there is voltage drop? Is this the reason for getting irrelevant ADC values?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) What is the solution? Why are the ADC pins in floating state even in presence of internal pull ups?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Where should I modify the code to get get proper ADC values?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Will the ADC work without external pull ups?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:07:49 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:07:49Z</dc:date>
    <item>
      <title>IRRELEVANT ADC VALUES</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IRRELEVANT-ADC-VALUES/m-p/531598#M2570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by KalavathiPR on Thu Sep 24 02:19:13 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In presence of external pull up, I was getting proper ADC values corresponding to the voltage provided to the ADC pin of LPC1769.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When no input is provided, ADC value was 4095. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, I have removed external pull up because I don't want to use it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting proper ADC values corresponding to the voltage provided to the ADC pin.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But, when I remove the connection to the i/p pin or when no input is provided, ADC value is neither 4095 nor 0. It reads some other ADC values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have changed pinmode register for ADC to&amp;nbsp; pull-up resistor, repeater mode, neither pull-up nor pull-down and also pull-down resistor enabled. But did not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As per UM10360 LPC176x/5x User manual page 111's [2], due to internal pull up- Voltage on the ADC input pin measures around 2.3V.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After power on reset, the voltage on the same pin is around 0V.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) After power on reset, why there is voltage drop? Is this the reason for getting irrelevant ADC values?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) What is the solution? Why are the ADC pins in floating state even in presence of internal pull ups?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3) Where should I modify the code to get get proper ADC values?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4) Will the ADC work without external pull ups?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:07:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IRRELEVANT-ADC-VALUES/m-p/531598#M2570</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:07:49Z</dc:date>
    </item>
  </channel>
</rss>

