<?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のトピックLPC17xx PWM duty cycle of zero</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC17xx-PWM-duty-cycle-of-zero/m-p/643923#M25439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the PWM to drive a buzzer at a specified frequency. I am able to turn on the buzzer and control its frequency as expected, so that's fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, I also want to be able to turn the buzzer off, and also ensure the output&amp;nbsp; is low so the drive transistor isn't left on. So, according to the LPC17xx User Manual, to ensure it outputs low (when in Single Edge mode), I should set the match value to 0. Manual section 24.4.1 says "All single edge controlled PWM outputs go high at the beginning of a PWM cycle&lt;BR /&gt;unless their match value is equal to 0." However, if I do that, then the output is left high, not low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found that if I set the PWM channel's match value to equal to the MR0 value, then it does seem to stay low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct use of the PWM? If so, the User Manual should be changed to clarify this point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Nov 2016 00:37:58 GMT</pubDate>
    <dc:creator>CraigMcQueen</dc:creator>
    <dc:date>2016-11-09T00:37:58Z</dc:date>
    <item>
      <title>LPC17xx PWM duty cycle of zero</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC17xx-PWM-duty-cycle-of-zero/m-p/643923#M25439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to use the PWM to drive a buzzer at a specified frequency. I am able to turn on the buzzer and control its frequency as expected, so that's fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Of course, I also want to be able to turn the buzzer off, and also ensure the output&amp;nbsp; is low so the drive transistor isn't left on. So, according to the LPC17xx User Manual, to ensure it outputs low (when in Single Edge mode), I should set the match value to 0. Manual section 24.4.1 says "All single edge controlled PWM outputs go high at the beginning of a PWM cycle&lt;BR /&gt;unless their match value is equal to 0." However, if I do that, then the output is left high, not low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've found that if I set the PWM channel's match value to equal to the MR0 value, then it does seem to stay low.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this correct use of the PWM? If so, the User Manual should be changed to clarify this point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Nov 2016 00:37:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC17xx-PWM-duty-cycle-of-zero/m-p/643923#M25439</guid>
      <dc:creator>CraigMcQueen</dc:creator>
      <dc:date>2016-11-09T00:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: LPC17xx PWM duty cycle of zero</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC17xx-PWM-duty-cycle-of-zero/m-p/643924#M25440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-userid="201753" data-username="CraigMcQueen" href="https://community.nxp.com/people/CraigMcQueen"&gt;Craig McQueen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;The output will keep constant low if the match value is 0, I'd highly recommend that you can create a simple testing demo and upload it, then I can replicate the issue on my site.&lt;/P&gt;&lt;P&gt;I'm looking forward to your reply.&lt;/P&gt;&lt;P&gt;Have a great day,&lt;BR /&gt;Ping&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&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, 11 Nov 2016 07:56:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC17xx-PWM-duty-cycle-of-zero/m-p/643924#M25440</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2016-11-11T07:56:20Z</dc:date>
    </item>
  </channel>
</rss>

