<?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のトピックhow to configure the counter ?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-configure-the-counter/m-p/965724#M38232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am using LPC824 MCUXPRESSO IDE&amp;nbsp; , i need to act one GPIO PIN as counter if there is an example code for counter , i searched in example code but i din't got any thing in code . plz let me give some solution for counter&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aravind P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Aug 2019 07:31:23 GMT</pubDate>
    <dc:creator>aravindpb5009</dc:creator>
    <dc:date>2019-08-08T07:31:23Z</dc:date>
    <item>
      <title>how to configure the counter ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-configure-the-counter/m-p/965724#M38232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I am using LPC824 MCUXPRESSO IDE&amp;nbsp; , i need to act one GPIO PIN as counter if there is an example code for counter , i searched in example code but i din't got any thing in code . plz let me give some solution for counter&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&amp;nbsp;&lt;/P&gt;&lt;P&gt;Aravind P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 07:31:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-configure-the-counter/m-p/965724#M38232</guid>
      <dc:creator>aravindpb5009</dc:creator>
      <dc:date>2019-08-08T07:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: how to configure the counter ?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-configure-the-counter/m-p/965725#M38233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Aravind,&lt;/P&gt;&lt;P&gt;As you know that the LPC824 has SCTimer/PWM module, which can count the tick from external pad, so you use the SCTimer as a free-running counter.&lt;/P&gt;&lt;P&gt;Pls refer to the CONFIG register, for example you can use the one of SCT_PIN[0:3] signal as tick signal, for example, you use SCT_PIN0 signal as tick source, you can set the CONFIG[CLKMODE]=0x3, CONFIG[CKSEL]=0x0 0r 0x1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to set up the SCT0_INMUX[0] to selcet the SCT_PIN0 by SCT0_INMUX[0]=0x00;&lt;/P&gt;&lt;P&gt;for example, you connect the external clock signal to pin PIO0_7 as SCT0_PIN0 signal, you can write PINASSIGN6=7&amp;lt;&amp;lt;24. it is okay.&lt;/P&gt;&lt;P&gt;Pls refer to the application note an11538, which has simple example code as free-running Timer.&lt;/P&gt;&lt;P&gt;Hope it can help you&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Xiangjun Rong&lt;/P&gt;&lt;P&gt;&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/86545iC2662121C793FFBB/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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/87063iB6A96C482E4D110D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&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/86546iB2AB9E92EDDC7F3F/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Aug 2019 08:43:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/how-to-configure-the-counter/m-p/965725#M38233</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2019-08-08T08:43:28Z</dc:date>
    </item>
  </channel>
</rss>

