<?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のトピックRe: Please check if ADC example code is correct</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Please-check-if-ADC-example-code-is-correct/m-p/807157#M32399</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, you are right, it is the lpcopen code bug.&lt;/P&gt;&lt;P&gt;1. ADC input 0 is PIO1_9, and the Func is Func3.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78295iBAFB94AC924AD1C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. You are right, you need to use Func3, it is the code bug.&lt;/P&gt;&lt;P&gt;This type bug I have reported to our according department, but it is not fixed now.&lt;/P&gt;&lt;P&gt;You can modify it by yourself now.&lt;/P&gt;&lt;P&gt;A similar post also for your reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/464406"&gt;Errors in "periph_adc" example for LPC11U68&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&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: 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>Thu, 29 Nov 2018 06:23:21 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2018-11-29T06:23:21Z</dc:date>
    <item>
      <title>Please check if ADC example code is correct</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Please-check-if-ADC-example-code-is-correct/m-p/807156#M32398</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;My MCU is LPC11U68 and using LPCExpresso board rev c.&lt;/P&gt;&lt;P&gt;In periph_adc.c, there is a line:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; /* ADC input 0 is on PIO0_12 mapped to FUNC2 */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_IOCON_PinMuxSet(LPC_IOCON, 1, 9, (IOCON_FUNC1 | IOCON_MODE_INACT |&amp;nbsp;IOCON_ADMODE_EN));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) For LPC11U68, ADC input 0 should be PIO1_9, so the comment description is wrong.&lt;/P&gt;&lt;P&gt;(2) If using PIO1_9, the example code seems incorrect (&lt;SPAN&gt;IOCON_FUNC3 instead of&amp;nbsp;IOCON_FUNC1)&amp;nbsp;&lt;/SPAN&gt;and it should be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;/* ADC input 0 is on PIO1_9 mapped to FUNC3 */&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;Chip_IOCON_PinMuxSet(LPC_IOCON, 1, 9, (IOCON_FUNC3 | IOCON_MODE_INACT | IOCON_ADMODE_EN));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help to check. Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jeremy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Nov 2018 08:28:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Please-check-if-ADC-example-code-is-correct/m-p/807156#M32398</guid>
      <dc:creator>jeremyhsiao</dc:creator>
      <dc:date>2018-11-28T08:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Please check if ADC example code is correct</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Please-check-if-ADC-example-code-is-correct/m-p/807157#M32399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, you are right, it is the lpcopen code bug.&lt;/P&gt;&lt;P&gt;1. ADC input 0 is PIO1_9, and the Func is Func3.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/78295iBAFB94AC924AD1C7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;2. You are right, you need to use Func3, it is the code bug.&lt;/P&gt;&lt;P&gt;This type bug I have reported to our according department, but it is not fixed now.&lt;/P&gt;&lt;P&gt;You can modify it by yourself now.&lt;/P&gt;&lt;P&gt;A similar post also for your reference:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/464406"&gt;Errors in "periph_adc" example for LPC11U68&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&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: 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>Thu, 29 Nov 2018 06:23:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Please-check-if-ADC-example-code-is-correct/m-p/807157#M32399</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2018-11-29T06:23:21Z</dc:date>
    </item>
  </channel>
</rss>

