<?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: LPC845-BRK example ADC: Mex-file differs from code in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-BRK-example-ADC-Mex-file-differs-from-code/m-p/891088#M35727</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your honesty. I'll switch to your recommended examples. Actually it really doesn't make sense to continue with the LPC845-BRK examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SWM module is used to select the pin function, not the ADC module function.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I know. What I meant was: Why is PIO0_7, which is fixed to potentiometer, used in this example with an LDR sampled on PIO0_18. That makes no sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 25 Apr 2019 14:57:12 GMT</pubDate>
    <dc:creator>1234567890</dc:creator>
    <dc:date>2019-04-25T14:57:12Z</dc:date>
    <item>
      <title>LPC845-BRK example ADC: Mex-file differs from code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-BRK-example-ADC-Mex-file-differs-from-code/m-p/891086#M35725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, I just started to explore the ADC example of&amp;nbsp; &lt;A class="link-titled" href="https://www.nxp.com/downloads/en/software/LPC845BRK_Examples.zip" title="https://www.nxp.com/downloads/en/software/LPC845BRK_Examples.zip"&gt;https://www.nxp.com/downloads/en/software/LPC845BRK_Examples.zip&lt;/A&gt; (LPC845_ADC_LDR).&lt;/P&gt;&lt;P&gt;The function BOARD_InitPins() in pin_mux.c contains:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80808i807763C05826149A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As you can see in the last 2 lines, USART0_TXD and USART0_RXD are configured.&lt;/P&gt;&lt;P&gt;Why line 1, 2 and 4 are here? Are they to trigger a conversion? Then this information is missed in the introductory description of the application (but I may be wrong because I'm very tired today).&lt;/P&gt;&lt;P&gt;When I switch to the Pins tool and the mex-file is loaded, this pin_mux.c differs. Here the USART0 e.g. is not configured:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/80809iBE907F4C147E8FAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And why ADC_CHN0 is configured? I think it's fixed to the potentiometer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 19:54:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-BRK-example-ADC-Mex-file-differs-from-code/m-p/891086#M35725</guid>
      <dc:creator>1234567890</dc:creator>
      <dc:date>2019-04-24T19:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845-BRK example ADC: Mex-file differs from code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-BRK-example-ADC-Mex-file-differs-from-code/m-p/891087#M35726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; From my own viewpoint, I highly suggest you refer to the SDK2.5.0 for lpc845 code, at least that code is tested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; It seems the LPC845-BRK code have a lot of bugs.&lt;/P&gt;&lt;P&gt;&amp;nbsp; So, please download the SDK code from this link:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://mcuxpresso.nxp.com/" title="https://mcuxpresso.nxp.com/"&gt;Welcome | MCUXpresso SDK Builder&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you have any problem about the SDK ADC, just let me know.&lt;/P&gt;&lt;P&gt;SWM module is used to select the pin function, not the ADC module function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks a lot for your understanding.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 10:58:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-BRK-example-ADC-Mex-file-differs-from-code/m-p/891087#M35726</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-25T10:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845-BRK example ADC: Mex-file differs from code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-BRK-example-ADC-Mex-file-differs-from-code/m-p/891088#M35727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for your honesty. I'll switch to your recommended examples. Actually it really doesn't make sense to continue with the LPC845-BRK examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;SWM module is used to select the pin function, not the ADC module function.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;I know. What I meant was: Why is PIO0_7, which is fixed to potentiometer, used in this example with an LDR sampled on PIO0_18. That makes no sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 25 Apr 2019 14:57:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-BRK-example-ADC-Mex-file-differs-from-code/m-p/891088#M35727</guid>
      <dc:creator>1234567890</dc:creator>
      <dc:date>2019-04-25T14:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845-BRK example ADC: Mex-file differs from code</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-BRK-example-ADC-Mex-file-differs-from-code/m-p/891089#M35728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Customer,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; Thanks a lot for your understanding.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; From pin_mux.h, we can find ADC_0 will connect potentiometer, so I think it is determined by the hardware design.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Even this project LPC845_ADC_LDR didn't use ADC_0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; If you don't need it, you totally can delete that code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 26 Apr 2019 02:38:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-BRK-example-ADC-Mex-file-differs-from-code/m-p/891089#M35728</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-04-26T02:38:33Z</dc:date>
    </item>
  </channel>
</rss>

