<?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>LPC Microcontrollers中的主题 LPC4370 HSADC external VIN_NEG</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-HSADC-external-VIN-NEG/m-p/588148#M21751</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using a LPC4370 HSADC wich is working good with internal DC VIN_NEG reference.&lt;/P&gt;&lt;P&gt;Now I want to use the external reference wich is at&amp;nbsp; 360mV on the board, but as soon as I execute Chip_HSADC_EnablePower(LPC_ADCHS) the VIN_NEG pin outputs 500mV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code that we execute :&lt;/P&gt;&lt;P&gt;setupClock(frequency); // Configure clock for measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_Init(LPC_ADCHS); // Initialize HSADC.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_DisablePowerDownMode(LPC_ADCHS);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetupFIFO(LPC_ADCHS, FIFO_INT_SIZE, PACKED_FIFO); // Configure FIFO.&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Select negative as external reference, Positive as external.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetACDCBias(LPC_ADCHS, currentChannel, HSADC_CHANNEL_NODCBIAS, HSADC_CHANNEL_NODCBIAS);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(i = 0; i &amp;lt; 1;i++)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetActiveDescriptor(LPC_ADCHS,0,i); // Activate descriptor table 0 with 0&amp;lt;ID&amp;lt;8.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetupDescEntry(LPC_ADCHS, 0, i,0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // External trigger only, on falling edge, 0x90 recovery clocks, add channel IF to FIFO entry&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_ConfigureTrigger(LPC_ADCHS, HSADC_CONFIG_TRIGGER_EXT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; HSADC_CONFIG_TRIGGER_RISEEXT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; HSADC_CONFIG_TRIGGER_NOEXTSYNC,HSADC_CHANNEL_ID_EN_ADD, 0x90);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Edge detection enabled/Synchronization/No pulse&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPC_GIMA-&amp;gt;ADCHS_TRIGGER_IN = (1 &amp;lt;&amp;lt; 1 | 1 &amp;lt;&amp;lt; 2 | 0 &amp;lt;&amp;lt; 3 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Only one PWM used as trigger source.&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPC_GIMA-&amp;gt;ADCHS_TRIGGER_IN |= 7 &amp;lt;&amp;lt; 4; // CTOUT_8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetupDescEntry(LPC_ADCHS,0, 0, (HSADC_DESC_CH(currentChannel) |&lt;/P&gt;&lt;P&gt;&amp;nbsp; HSADC_DESC_BRANCH_FIRST | HSADC_DESC_MATCH(1)| HSADC_DESC_THRESH_NONE |HSADC_DESC_RESET_TIMER ));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetPowerSpeed(LPC_ADCHS,true);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_EnablePower(LPC_ADCHS);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_DisablePowerDownMode(LPC_ADCHS);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any idea of what's happening ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2016 11:50:12 GMT</pubDate>
    <dc:creator>colinstephant</dc:creator>
    <dc:date>2016-07-19T11:50:12Z</dc:date>
    <item>
      <title>LPC4370 HSADC external VIN_NEG</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-HSADC-external-VIN-NEG/m-p/588148#M21751</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using a LPC4370 HSADC wich is working good with internal DC VIN_NEG reference.&lt;/P&gt;&lt;P&gt;Now I want to use the external reference wich is at&amp;nbsp; 360mV on the board, but as soon as I execute Chip_HSADC_EnablePower(LPC_ADCHS) the VIN_NEG pin outputs 500mV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code that we execute :&lt;/P&gt;&lt;P&gt;setupClock(frequency); // Configure clock for measure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_Init(LPC_ADCHS); // Initialize HSADC.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_DisablePowerDownMode(LPC_ADCHS);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetupFIFO(LPC_ADCHS, FIFO_INT_SIZE, PACKED_FIFO); // Configure FIFO.&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Select negative as external reference, Positive as external.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetACDCBias(LPC_ADCHS, currentChannel, HSADC_CHANNEL_NODCBIAS, HSADC_CHANNEL_NODCBIAS);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; for(i = 0; i &amp;lt; 1;i++)&lt;/P&gt;&lt;P&gt;&amp;nbsp; {&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetActiveDescriptor(LPC_ADCHS,0,i); // Activate descriptor table 0 with 0&amp;lt;ID&amp;lt;8.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetupDescEntry(LPC_ADCHS, 0, i,0);&lt;/P&gt;&lt;P&gt;&amp;nbsp; }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // External trigger only, on falling edge, 0x90 recovery clocks, add channel IF to FIFO entry&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_ConfigureTrigger(LPC_ADCHS, HSADC_CONFIG_TRIGGER_EXT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; HSADC_CONFIG_TRIGGER_RISEEXT,&lt;/P&gt;&lt;P&gt;&amp;nbsp; HSADC_CONFIG_TRIGGER_NOEXTSYNC,HSADC_CHANNEL_ID_EN_ADD, 0x90);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Edge detection enabled/Synchronization/No pulse&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPC_GIMA-&amp;gt;ADCHS_TRIGGER_IN = (1 &amp;lt;&amp;lt; 1 | 1 &amp;lt;&amp;lt; 2 | 0 &amp;lt;&amp;lt; 3 );&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; // Only one PWM used as trigger source.&lt;/P&gt;&lt;P&gt;&amp;nbsp; LPC_GIMA-&amp;gt;ADCHS_TRIGGER_IN |= 7 &amp;lt;&amp;lt; 4; // CTOUT_8&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetupDescEntry(LPC_ADCHS,0, 0, (HSADC_DESC_CH(currentChannel) |&lt;/P&gt;&lt;P&gt;&amp;nbsp; HSADC_DESC_BRANCH_FIRST | HSADC_DESC_MATCH(1)| HSADC_DESC_THRESH_NONE |HSADC_DESC_RESET_TIMER ));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_SetPowerSpeed(LPC_ADCHS,true);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_EnablePower(LPC_ADCHS);&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chip_HSADC_DisablePowerDownMode(LPC_ADCHS);&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any idea of what's happening ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2016 11:50:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-HSADC-external-VIN-NEG/m-p/588148#M21751</guid>
      <dc:creator>colinstephant</dc:creator>
      <dc:date>2016-07-19T11:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4370 HSADC external VIN_NEG</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-HSADC-external-VIN-NEG/m-p/588149#M21752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please try using the following configuration?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 15px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; line-height: 25.95px; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;Chip_HSADC_SetACDCBias(LPC_ADCHS, 0, HSADC_CHANNEL_DCBIAS, HSADC_CHANNEL_NODCBIAS); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Please let me know if this helps. &lt;BR /&gt;Have a great day,&lt;BR /&gt; Sol&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>Fri, 02 Sep 2016 23:49:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4370-HSADC-external-VIN-NEG/m-p/588149#M21752</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2016-09-02T23:49:34Z</dc:date>
    </item>
  </channel>
</rss>

