<?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: HSADC on LPC4370 question in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-on-LPC4370-question/m-p/557214#M15339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JohnR on Thu Apr 24 06:31:17 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I have answered my own question. With some trepidation I cut the trace that grounded the ADCHS_NEG pin and set the bias as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_HSADC_SetACDCBias(LPC_ADCHS, 0, HSADC_CHANNEL_DCBIAS, HSADC_CHANNEL_NODCBIAS); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I get the expected output 100 - 4095 for an input range from 0.1 to 0.88 volts approximately. Plotting in Excel gives&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = 5114.4x - 438.36&amp;nbsp;&amp;nbsp;&amp;nbsp; R² = 0.9995&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JohnR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:44:45 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:44:45Z</dc:date>
    <item>
      <title>HSADC on LPC4370 question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-on-LPC4370-question/m-p/557213#M15338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JohnR on Wed Apr 23 18:15:30 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What are the settings to allow the 12-bit HSADC in LPC4370 to generate a 0 - 4095 straight binary output for a unipolar input on, say ADCHS_0, from an input voltage of 0 to 1.2 volts approx.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At the present I have grounded ADCHS_NEG and tried different combinations of the DCINNEG and DCINPOS settings but I seem to get only half of the range. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For instance, with DCINNEG and DCINPOS both equal to HSADC_CHANNEL_NODCBIAS (0) and TWOS set to offset binary, an input range of 0.05 to .40 volts gives output values from 2148 to 3840 counts.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I may have to remove the ground on ADCHS_NEG so it floats and set DCINNEG = 1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could someone let me know that this is right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JohnR&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:44:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-on-LPC4370-question/m-p/557213#M15338</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: HSADC on LPC4370 question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-on-LPC4370-question/m-p/557214#M15339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JohnR on Thu Apr 24 06:31:17 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I guess I have answered my own question. With some trepidation I cut the trace that grounded the ADCHS_NEG pin and set the bias as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_HSADC_SetACDCBias(LPC_ADCHS, 0, HSADC_CHANNEL_DCBIAS, HSADC_CHANNEL_NODCBIAS); &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I get the expected output 100 - 4095 for an input range from 0.1 to 0.88 volts approximately. Plotting in Excel gives&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; y = 5114.4x - 438.36&amp;nbsp;&amp;nbsp;&amp;nbsp; R² = 0.9995&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;JohnR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:44:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-on-LPC4370-question/m-p/557214#M15339</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: HSADC on LPC4370 question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-on-LPC4370-question/m-p/557215#M15340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by SHUICHI SANO on Wed Apr 13 23:32:58 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm having same issue here, and cannot figure out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you explain what you are doing with this?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Chip_HSADC_SetACDCBias(LPC_ADCHS, 0, HSADC_CHANNEL_DCBIAS, HSADC_CHANNEL_NODCBIAS); &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sano&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:44:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/HSADC-on-LPC4370-question/m-p/557215#M15340</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:44:46Z</dc:date>
    </item>
  </channel>
</rss>

