<?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: LPC4357 MOTOCONPWM MIC0-2 external counter max frequence in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-MOTOCONPWM-MIC0-2-external-counter-max-frequence/m-p/640357#M25329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sky，&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;I think i need the more information, therefore I&amp;nbsp; was wondering if you can demonstrate the more testing result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;I'm looking forward to your reply.&lt;/SPAN&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Mon, 13 Mar 2017 03:18:37 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2017-03-13T03:18:37Z</dc:date>
    <item>
      <title>LPC4357 MOTOCONPWM MIC0-2 external counter max frequence</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-MOTOCONPWM-MIC0-2-external-counter-max-frequence/m-p/640356#M25328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i want to use the pin-MIC0 of LPC4357 MOTOCONPWM to counter a external signal's frequence.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;and i use the way of&amp;nbsp;External event counting (Counter mode),the pin&amp;nbsp;MCI0 is used to input the&amp;nbsp;Signal to be measured。&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;then set a match value in counter mode,then play the role of frequency&amp;nbsp;division,(100 prescaler-Check the MOTORCONPWM's output pin MCOA0)。&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;In order to test whether this method is effective，i use CLK0(IDVE clock)clock connect to MCI0。&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;So,i find a error:&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;1.CLK0 be set to 2MHZ,the MIC counter is correct,the MCOA0 output 20KHZ&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;2.CLK0 be set to 4MHZ,the MIC counter is corrent,the MCOA0 output 40KHZ&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;3.CLK0 be set to 8MHZ,the MIC counter is error,the MCOA0 output also about 40KHZ&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;my code such follow:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;LPC_CCU1-&amp;gt;CLK_APB1_MOTOCONPWM_CFG = 0x7;&lt;BR /&gt;&lt;BR /&gt;LPC_RGU-&amp;gt;RESET_CTRL1 = 1 &amp;lt;&amp;lt; 6; //MOTOCONPWM_RST&lt;BR /&gt;while(!(LPC_RGU-&amp;gt;RESET_ACTIVE_STATUS1 &amp;amp; (1 &amp;lt;&amp;lt; 6)));&lt;BR /&gt;&lt;BR /&gt;LPC_SCU-&amp;gt;SFSP8_2 = ((1 &amp;lt;&amp;lt; 4) | (1&amp;lt;&amp;lt;6) | (1&amp;lt;&amp;lt;7) | 3);//&amp;nbsp;&amp;nbsp;&amp;nbsp;MIC0&lt;BR /&gt;LPC_SCU-&amp;gt;SFSP9_3 = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//MCOA0&lt;BR /&gt;LPC_SCU-&amp;gt;SFSP9_4 = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;//MCOB0&lt;BR /&gt;&lt;BR /&gt;LPC_MCPWM-&amp;gt;CON_CLR = 0xffffffff;&lt;BR /&gt;LPC_MCPWM-&amp;gt;CNTCON_SET = (1 &amp;lt;&amp;lt; 29) | 1; //channel0 counter / rising&lt;BR /&gt;&lt;BR /&gt;LPC_MCPWM-&amp;gt;LIM0 = 100;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;//100 prescaler&lt;BR /&gt;LPC_MCPWM-&amp;gt;MAT0 = 50;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;thank you very much&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 10:05:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-MOTOCONPWM-MIC0-2-external-counter-max-frequence/m-p/640356#M25328</guid>
      <dc:creator>skysky</dc:creator>
      <dc:date>2017-03-10T10:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: LPC4357 MOTOCONPWM MIC0-2 external counter max frequence</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-MOTOCONPWM-MIC0-2-external-counter-max-frequence/m-p/640357#M25329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sky，&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;I think i need the more information, therefore I&amp;nbsp; was wondering if you can demonstrate the more testing result.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 微软雅黑, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 21px; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; display: inline !important; float: none; background-color: #ffffff;"&gt;I'm looking forward to your reply.&lt;/SPAN&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Ping&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>Mon, 13 Mar 2017 03:18:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC4357-MOTOCONPWM-MIC0-2-external-counter-max-frequence/m-p/640357#M25329</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-03-13T03:18:37Z</dc:date>
    </item>
  </channel>
</rss>

