<?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 S12G PWM first waveform in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-PWM-first-waveform/m-p/656194#M13885</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;According to datasheet of S12G PWM section, "The first PWM cycle after enabling the channel can be irregular."&lt;/P&gt;&lt;P&gt;Do we have workaround &amp;nbsp;to generate a good waveform for the first PWM pulse?&lt;/P&gt;&lt;P&gt;Write PWM CNT register before enable the PWM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jason Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Mar 2017 15:55:42 GMT</pubDate>
    <dc:creator>jinjingyang</dc:creator>
    <dc:date>2017-03-15T15:55:42Z</dc:date>
    <item>
      <title>S12G PWM first waveform</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-PWM-first-waveform/m-p/656194#M13885</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;According to datasheet of S12G PWM section, "The first PWM cycle after enabling the channel can be irregular."&lt;/P&gt;&lt;P&gt;Do we have workaround &amp;nbsp;to generate a good waveform for the first PWM pulse?&lt;/P&gt;&lt;P&gt;Write PWM CNT register before enable the PWM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jason Yang&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Mar 2017 15:55:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-PWM-first-waveform/m-p/656194#M13885</guid>
      <dc:creator>jinjingyang</dc:creator>
      <dc:date>2017-03-15T15:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: S12G PWM first waveform</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-PWM-first-waveform/m-p/656195#M13886</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The irregularity is caused by synchronization of the PWM module and the output. The PWM starts immediately but its waveform is not available on the associated output until its clock source begins its next cycle. I think there is nothing we could do with it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any write to the PWM CNT register only causes the counter to reset to 0. Since the counter is set to 0 after reset, there is no need to write to the register unless you want to re-enable the PWM and clear its previous state.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Mar 2017 09:34:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-PWM-first-waveform/m-p/656195#M13886</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-03-16T09:34:23Z</dc:date>
    </item>
  </channel>
</rss>

