<?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: Changing PWM Duty Cycles in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-PWM-Duty-Cycles/m-p/139827#M5476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Anyone?&amp;nbsp; Anyone?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Jun 2006 20:26:23 GMT</pubDate>
    <dc:creator>admin</dc:creator>
    <dc:date>2006-06-22T20:26:23Z</dc:date>
    <item>
      <title>Changing PWM Duty Cycles</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-PWM-Duty-Cycles/m-p/139826#M5475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi all,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm using an &lt;SPAN style="font-size: 2;"&gt;MC9S08AW16 and doing some stuff with the PWM output off of timer 2.&amp;nbsp; In my app, I need to change the duty cycle on the fly.&amp;nbsp; I consulted some Freescale app notes similar to my application, and found that they updated the PWM duty cycle (the timer channel's value register) using an interrupt generated by the timer channel that I'm using (TPM2CH1).&amp;nbsp; I've tried this several different ways, and the only way I've gotten this to work is if I update the duty cycle using&amp;nbsp;the timer 2 overflow interrupt rather than the channel's interrupt.&amp;nbsp; Anyone experience anything similar?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;Thanks,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 2;"&gt;Tomahawk&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2006 21:52:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-PWM-Duty-Cycles/m-p/139826#M5475</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-06-15T21:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing PWM Duty Cycles</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-PWM-Duty-Cycles/m-p/139827#M5476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Anyone?&amp;nbsp; Anyone?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2006 20:26:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Changing-PWM-Duty-Cycles/m-p/139827#M5476</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-06-22T20:26:23Z</dc:date>
    </item>
  </channel>
</rss>

