<?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>S12 / MagniV MicrocontrollersのトピックRe: Software PWM</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652715#M13829</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;I have checked with NXP and told me that&amp;nbsp;the document is wrong and needs to be corrected.&lt;/P&gt;&lt;P&gt;Could you please confirm?And i have another question how to map the output of PWM0 and PWM1 because if i concatenated two channels 0,1 for both PWM0 and PWM1 So the output PIN in this case is channel 1 which will be common for both how this case will be handled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 07 May 2017 08:06:35 GMT</pubDate>
    <dc:creator>saberragab</dc:creator>
    <dc:date>2017-05-07T08:06:35Z</dc:date>
    <item>
      <title>Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652707#M13821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;Hello All,&amp;nbsp;i need to make&amp;nbsp;software PWM 3 channels with minimum CPUload and minimum # of timers i'm using S12ZVL128K any one can help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Apr 2017 08:31:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652707#M13821</guid>
      <dc:creator>saberragab</dc:creator>
      <dc:date>2017-04-29T08:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652708#M13822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The S12ZVL128 has a PWM module.&lt;/P&gt;&lt;P&gt;Please refer to the attached example code.&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>Tue, 02 May 2017 07:36:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652708#M13822</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-05-02T07:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652709#M13823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Thanks for your reply , I know that MagniV has (4 channels 16 bit)HW PWM but i need (7) channels ,So three more channels needed to be implemented by SW.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 08:00:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652709#M13823</guid>
      <dc:creator>saberragab</dc:creator>
      <dc:date>2017-05-02T08:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652710#M13824</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 S12ZVL128 has actually two PWM modules.&lt;/P&gt;&lt;P&gt;You can therefore use 8 16-bit channels.&lt;/P&gt;&lt;P&gt;See following:&lt;/P&gt;&lt;P&gt;Table 1-2. MC9S12ZVL-Family Comparison.&lt;/P&gt;&lt;P&gt;Figure 1-8. PWM channel mapping for MC9S12ZVL(A)128/96/64&lt;/P&gt;&lt;P&gt;Appendix O.9, O.10 Detailed Register Address MAP for PWM0, PWM1. &amp;nbsp;&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>Tue, 02 May 2017 12:38:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652710#M13824</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-05-02T12:38:31Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652711#M13825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks again but according to the data sheet&amp;nbsp;&lt;STRONG&gt;17.4.2.7 PWM 16-Bit Functions&lt;/STRONG&gt; say that 4 channels 16 bit only&lt;BR /&gt;&lt;STRONG&gt;"The scalable PWM timer also has the option of generating up to 8-channels of 8-bits or 4-channels of&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;16-bits for greater PWM resolution."&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 12:47:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652711#M13825</guid>
      <dc:creator>saberragab</dc:creator>
      <dc:date>2017-05-02T12:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652712#M13826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is true for one PWM module. But S12ZVL128 has 2 PWM modules.&lt;/P&gt;&lt;P&gt;In figure 1-8 you can see 2 PWM modules, 16 8-bit channels concatenated into 8 16-bit channels.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 12:56:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652712#M13826</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-05-02T12:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652713#M13827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;You are right &amp;nbsp;but it was not clear in the datasheet if you have example code how to use PWM1?.&lt;BR /&gt;because it seems that the registers are the same as PWM0 and according to the datasheet&amp;nbsp;Figure 17-21. PWM 16-Bit Mode the only mode is to use 4 channels 16 bit mode only?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 13:36:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652713#M13827</guid>
      <dc:creator>saberragab</dc:creator>
      <dc:date>2017-05-02T13:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652714#M13828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;We don’t have an example code, but it should not be difficult.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The name of PWM0-1 registers are the same but they have different addresses. If you look at the S12ZVL128.h header file, you will see that all registers are mapped.&lt;/P&gt;&lt;P&gt;For instance, instead of enable channel 1: PWME_PWME1, there are PWM0E_PWME1, PWM1E_PWME1.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you can use 8-bit as well, for example PMW0_ch1 or PMW0_ch3 but not PMW0_ch2 because this channel is not routed to a port.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example code I attached previously shows how to concatenate two channels.&lt;/P&gt;&lt;P&gt;For PWM0_Ch01 it will be:&lt;/P&gt;&lt;P&gt;PWM0CTL_CON01 = 1;&lt;/P&gt;&lt;P&gt;For PWM1_Ch01:&lt;/P&gt;&lt;P&gt;PWM1CTL_CON01 = 1;&lt;/P&gt;&lt;P&gt;In this case, channels 0 becomes high order byte of the timer,&lt;/P&gt;&lt;P&gt;channels 1 are used for control determination (clock, polarity, alignment, enablement).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope it helps.&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>Tue, 02 May 2017 14:15:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652714#M13828</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-05-02T14:15:21Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652715#M13829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;I have checked with NXP and told me that&amp;nbsp;the document is wrong and needs to be corrected.&lt;/P&gt;&lt;P&gt;Could you please confirm?And i have another question how to map the output of PWM0 and PWM1 because if i concatenated two channels 0,1 for both PWM0 and PWM1 So the output PIN in this case is channel 1 which will be common for both how this case will be handled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 May 2017 08:06:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652715#M13829</guid>
      <dc:creator>saberragab</dc:creator>
      <dc:date>2017-05-07T08:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652716#M13830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please specify what exactly is wrong? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output of PWM0, channels 0-1 of is routed to PWM OPTION 1 of the PIM module.&lt;/P&gt;&lt;P&gt;Whereas the output of PWM1 channels 0-1 of is routed to PWM OPTION 0 of the PIM module.&lt;/P&gt;&lt;P&gt;As you can see in Figure 1-8.&lt;/P&gt;&lt;P&gt;In the PIM module, PWM options 0-7 are routed to Port P by default and can be rerouted in MODRR1 register.&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>Tue, 09 May 2017 07:57:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652716#M13830</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-05-09T07:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652717#M13831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;Thanks for reply my small issue is that when i have contacted NXP by mail they told me that the number of channels available for &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;S12ZVL128&lt;/SPAN&gt;&amp;nbsp;are 8 channels 8 bit and the&amp;nbsp;section in the datasheet need to be corrected , So Could you please confirm?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding to your proposal when i concatenate channel 0,1 for PWM0 , So the output is channel 1&lt;BR /&gt;the same will happen for PWM1 in that case the output for both is channel 1, so what we can do with rerouting now?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 08:16:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652717#M13831</guid>
      <dc:creator>saberragab</dc:creator>
      <dc:date>2017-05-09T08:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652718#M13832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Daniel,&lt;/P&gt;&lt;P&gt;I understand your proposal now thank you. Could you please just confirm if &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;S12ZVL128 has&amp;nbsp;&lt;/SPAN&gt;8*16 bit PWM ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 11:48:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652718#M13832</guid>
      <dc:creator>saberragab</dc:creator>
      <dc:date>2017-05-09T11:48:24Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652719#M13833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I don’t think the datasheet needs to be corrected. You should be able to use 8 16-bit PWMs. The mc9s12zvl128.h header file clearly handles 2 PWM modules. I would like to try it, but I’m out of office this week.&lt;/P&gt;&lt;P&gt;&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>Tue, 09 May 2017 14:04:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652719#M13833</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-05-09T14:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Software PWM</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652720#M13834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;Thank you very much the issue solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 May 2017 07:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Software-PWM/m-p/652720#M13834</guid>
      <dc:creator>saberragab</dc:creator>
      <dc:date>2017-05-14T07:58:44Z</dc:date>
    </item>
  </channel>
</rss>

