<?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: pwm by eMIOS in S32K</title>
    <link>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1783708#M30286</link>
    <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224120"&gt;@Ayaz&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;In the eMIOS mode configuration you posted here, the period is given by the MCB_UP_COUNTER period, not by the OPWMB channel.&lt;/P&gt;
&lt;P&gt;The equation is then:&lt;/P&gt;
&lt;P&gt;CORE_CLK / Global_EMIOs_prescaler / MCB_Prescaler / MCB_A_register&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Master Bus Alternative Prescaler&lt;/STRONG&gt; of the MCB can be set using this API:&lt;/P&gt;
&lt;P&gt;Emios_Mcl_Ip_SetClockMode()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Clock prescaler Alternate &lt;/STRONG&gt;is applicable in these two modes only:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1704460304857.png" style="width: 607px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256905i368BA185E7A1DA59/image-dimensions/607x211?v=v2" width="607" height="211" role="button" title="danielmartynek_0-1704460304857.png" alt="danielmartynek_0-1704460304857.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the max. eMIOS freq.&lt;/P&gt;
&lt;P&gt;The eMIOS is clocked by the CORE_CLK.&lt;/P&gt;
&lt;P&gt;If you are asking about the max. PWM frequency that the eMIOS can generate, then the limitations are given by the IO slew rate rather than the eMIOS .&lt;/P&gt;
&lt;P&gt;All the eMIOS clock dividers can be bypassed, and if the period is set to just a few eMIOS counter ticks, we can get PWM freq. in tens of MHz.&lt;/P&gt;
&lt;P&gt;DS, Table 25. GPIO DC electrical specifications, 5.0V (4.5V - 5.5V).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1704460874509.png" style="width: 687px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256906i87E944B9EBD5D385/image-dimensions/687x249?v=v2" width="687" height="249" role="button" title="danielmartynek_1-1704460874509.png" alt="danielmartynek_1-1704460874509.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jan 2024 13:24:58 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2024-01-05T13:24:58Z</dc:date>
    <item>
      <title>pwm by eMIOS</title>
      <link>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1782228#M30158</link>
      <description>&lt;P&gt;I am using eMIOS to generate PWM signals using the OPWMb Mode. In this mode, just the external counter buses are used. However, is it required to configure the internal prescaler?&lt;/P&gt;&lt;P&gt;Second, what is the&amp;nbsp;&lt;SPAN&gt;prescaler in the image&lt;/SPAN&gt;?&lt;/P&gt;&lt;P&gt;I am using the formular below :&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skærmbillede 2024-01-03 104830.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256516i23C50AA8C61666C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Skærmbillede 2024-01-03 104830.png" alt="Skærmbillede 2024-01-03 104830.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;PWM frequency&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;= CORE_CLK / global prescaler / internal prescaler / (B1+1).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what is the case for&amp;nbsp; B1 is +1?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;can i find the formular in RM or DS?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what is the higest frequency we can go for by using eMIOS?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jan 2024 10:06:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1782228#M30158</guid>
      <dc:creator>Ayaz</dc:creator>
      <dc:date>2024-01-03T10:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: pwm by eMIOS</title>
      <link>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1782930#M30212</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224120"&gt;@Ayaz&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I'm not sure where you got the equation. The OPWMB mode is very flexible PWM mode because it allows independent setting of both PWM signal edges (by channels register A and B). Please refer to the RM, Section 64.5.3.18 Output PWM Buffered (OPWMB) mode.&lt;/P&gt;
&lt;P&gt;Each EMIOS instance has its own global prescaler.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1704360478568.png" style="width: 612px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256687i1845C65467499592/image-dimensions/612x349?v=v2" width="612" height="349" role="button" title="danielmartynek_0-1704360478568.png" alt="danielmartynek_0-1704360478568.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1704361035900.png" style="width: 772px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256690iABC911C9CE13309C/image-dimensions/772x192?v=v2" width="772" height="192" role="button" title="danielmartynek_1-1704361035900.png" alt="danielmartynek_1-1704361035900.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;And each channel has it own local prescaler.&lt;/P&gt;
&lt;P&gt;For example, the Master Bus Prescaler is the local prescaler for CH23 which generates Global Counter Bus A.&lt;/P&gt;
&lt;P&gt;Global Counter Bus A can be used by channels configured in the OPWMB mode.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_2-1704361555768.png" style="width: 778px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256692i28542D397F161429/image-dimensions/778x321?v=v2" width="778" height="321" role="button" title="danielmartynek_2-1704361555768.png" alt="danielmartynek_2-1704361555768.png" /&gt;&lt;/span&gt;&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;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 13:23:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1782930#M30212</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-01-05T13:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: pwm by eMIOS</title>
      <link>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1782955#M30218</link>
      <description>&lt;P&gt;I got the equation from one of your colleague&amp;nbsp;&lt;LI-MESSAGE title="PWM issue" uid="1763225" url="https://community.nxp.com/t5/S32K/PWM-issue/m-p/1763225#U1763225" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 10:17:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1782955#M30218</guid>
      <dc:creator>Ayaz</dc:creator>
      <dc:date>2024-01-04T10:17:35Z</dc:date>
    </item>
    <item>
      <title>Re: pwm by eMIOS</title>
      <link>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1782970#M30219</link>
      <description>&lt;P&gt;This is an example of OPWMB from the Reference Manual.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1704364192201.png" style="width: 707px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256704i904593758B057CBA/image-dimensions/707x608?v=v2" width="707" height="608" role="button" title="danielmartynek_0-1704364192201.png" alt="danielmartynek_0-1704364192201.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Output pin is driven LOW on A match and HIGH on B match.&lt;/P&gt;
&lt;P&gt;The period is given by the selected counter bus period.&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;</description>
      <pubDate>Thu, 04 Jan 2024 10:33:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1782970#M30219</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-01-04T10:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: pwm by eMIOS</title>
      <link>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1782984#M30221</link>
      <description>&lt;P&gt;i need to be sure about the formula&amp;nbsp; and the max reliable frequency that Emios can provider&amp;nbsp;by refere to the RM or datasheet?&lt;/P&gt;&lt;P&gt;i am using the trailling Edge !!&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Skærmbillede 2024-01-04 114626.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256708iD70DA7D253C0EF9F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Skærmbillede 2024-01-04 114626.png" alt="Skærmbillede 2024-01-04 114626.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jan 2024 10:50:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1782984#M30221</guid>
      <dc:creator>Ayaz</dc:creator>
      <dc:date>2024-01-04T10:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: pwm by eMIOS</title>
      <link>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1783593#M30277</link>
      <description>&lt;P&gt;what is the alternative prescaler used for ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 09:33:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1783593#M30277</guid>
      <dc:creator>Ayaz</dc:creator>
      <dc:date>2024-01-05T09:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: pwm by eMIOS</title>
      <link>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1783708#M30286</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/224120"&gt;@Ayaz&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;In the eMIOS mode configuration you posted here, the period is given by the MCB_UP_COUNTER period, not by the OPWMB channel.&lt;/P&gt;
&lt;P&gt;The equation is then:&lt;/P&gt;
&lt;P&gt;CORE_CLK / Global_EMIOs_prescaler / MCB_Prescaler / MCB_A_register&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Master Bus Alternative Prescaler&lt;/STRONG&gt; of the MCB can be set using this API:&lt;/P&gt;
&lt;P&gt;Emios_Mcl_Ip_SetClockMode()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Clock prescaler Alternate &lt;/STRONG&gt;is applicable in these two modes only:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_0-1704460304857.png" style="width: 607px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256905i368BA185E7A1DA59/image-dimensions/607x211?v=v2" width="607" height="211" role="button" title="danielmartynek_0-1704460304857.png" alt="danielmartynek_0-1704460304857.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding the max. eMIOS freq.&lt;/P&gt;
&lt;P&gt;The eMIOS is clocked by the CORE_CLK.&lt;/P&gt;
&lt;P&gt;If you are asking about the max. PWM frequency that the eMIOS can generate, then the limitations are given by the IO slew rate rather than the eMIOS .&lt;/P&gt;
&lt;P&gt;All the eMIOS clock dividers can be bypassed, and if the period is set to just a few eMIOS counter ticks, we can get PWM freq. in tens of MHz.&lt;/P&gt;
&lt;P&gt;DS, Table 25. GPIO DC electrical specifications, 5.0V (4.5V - 5.5V).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="danielmartynek_1-1704460874509.png" style="width: 687px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/256906i87E944B9EBD5D385/image-dimensions/687x249?v=v2" width="687" height="249" role="button" title="danielmartynek_1-1704460874509.png" alt="danielmartynek_1-1704460874509.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Daniel&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jan 2024 13:24:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/pwm-by-eMIOS/m-p/1783708#M30286</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2024-01-05T13:24:58Z</dc:date>
    </item>
  </channel>
</rss>

