<?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 How to use eMIOS OPWFMB mode? in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/How-to-use-eMIOS-OPWFMB-mode/m-p/673661#M7874</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using MPC5746C micro controller for my project development. I am referring MPC5746C reference manual and AN4830 application note. Please refer attached file for application note.&lt;/P&gt;&lt;P&gt;In section 2.9 various mode of eMIOS has been configured like MCB, OPWFMB, OPWMB, IPM, IPWM etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able understand how to counter value 2K comes? How to calculate register value of A and B can be configured as two time duty cycle is mentioned there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jun 2017 12:17:50 GMT</pubDate>
    <dc:creator>atuldixit</dc:creator>
    <dc:date>2017-06-02T12:17:50Z</dc:date>
    <item>
      <title>How to use eMIOS OPWFMB mode?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-use-eMIOS-OPWFMB-mode/m-p/673661#M7874</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am using MPC5746C micro controller for my project development. I am referring MPC5746C reference manual and AN4830 application note. Please refer attached file for application note.&lt;/P&gt;&lt;P&gt;In section 2.9 various mode of eMIOS has been configured like MCB, OPWFMB, OPWMB, IPM, IPWM etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not able understand how to counter value 2K comes? How to calculate register value of A and B can be configured as two time duty cycle is mentioned there?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 12:17:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-use-eMIOS-OPWFMB-mode/m-p/673661#M7874</guid>
      <dc:creator>atuldixit</dc:creator>
      <dc:date>2017-06-02T12:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to use eMIOS OPWFMB mode?</title>
      <link>https://community.nxp.com/t5/MPC5xxx/How-to-use-eMIOS-OPWFMB-mode/m-p/673662#M7875</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Atul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The basic description is wrong.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21115iB633515B51E855F7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And does not correspond with a real implementation&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21154iD5E1B86CCF76129D/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21196i619575C225AE1B83/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/21245i7EED8CF86DDE16C0/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In OPWFMB mode B register is used to set the PWM frequency and A register to set duty cycle.&lt;/P&gt;&lt;P&gt;Thus for above code&lt;/P&gt;&lt;P&gt;Period = B * (UCPRE + 1) / channel clock = 200 * 1 / 1MHz = 200us ~ 5kHz&lt;/P&gt;&lt;P&gt;Pulse width = A * (UCPRE + 1) / channel clock = 20 us&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR, Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 09:44:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/How-to-use-eMIOS-OPWFMB-mode/m-p/673662#M7875</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2017-06-15T09:44:32Z</dc:date>
    </item>
  </channel>
</rss>

