<?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>MPC5xxxのトピックRe: PWM on MPC5674F not working</title>
    <link>https://community.nxp.com/t5/MPC5xxx/PWM-on-MPC5674F-not-working/m-p/408693#M814</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you feed clock to the EMIOS?&lt;/P&gt;&lt;P&gt;Check &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4830.pdf" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4830.pdf"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4830.pdf&lt;/A&gt; , there is EMIOS example, as far as I remember, it was working on my side, when I've tested...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 May 2015 13:22:47 GMT</pubDate>
    <dc:creator>alexvinchev</dc:creator>
    <dc:date>2015-05-08T13:22:47Z</dc:date>
    <item>
      <title>PWM on MPC5674F not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PWM-on-MPC5674F-not-working/m-p/408692#M813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to output PWM en EMIOS CH4 and nothing is happening.&amp;nbsp; Here is my code:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;initEMIOS(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.MCR.B.GPRE = 63;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Divide by 64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.MCR.B.GTBE = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enable global time base&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.MCR.B.FRZ = 1;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Enable freeze mode when debugging&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.MCR.B.GPREN = 1;&amp;nbsp;&amp;nbsp; // Enable EMIOS Prescaler &lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;initEMIOSCh23(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.CH[23].CADR.R = 99;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // 100 clocks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.CH[23].CCR.B.MODE = 0x50;&amp;nbsp; // Modulus buffer counter&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.CH[23].CCR.B.BSL = 0x3;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // All channels internal counter &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.CH[23].CCR.B.UCPRE = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Divide by 1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.CH[23].CCR.B.UCPREN&amp;nbsp; = 1;&amp;nbsp; // Enable prescaler&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;initEMIOSCh4(){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.CH[4].CADR.R = 500;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.CH[4].CBDR.R = 1000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.CH[4].CCR.B.BSL = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Use counter channel A&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.CH[4].CCR.B.EDPOL = 1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; EMIOS.CH[4].CCR.B.MODE = 0x20;&amp;nbsp; // OPWM&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SIU.PCR[183].R = 0x0600;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Ouput and primary function&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;int main(){&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;initEMIOS();&lt;/P&gt;&lt;P&gt;initEMIOSCh23();&lt;/P&gt;&lt;P&gt;initEMIOSCh4();&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while(1){}&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 May 2015 14:14:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PWM-on-MPC5674F-not-working/m-p/408692#M813</guid>
      <dc:creator>vincentbergeron</dc:creator>
      <dc:date>2015-05-07T14:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: PWM on MPC5674F not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PWM-on-MPC5674F-not-working/m-p/408693#M814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you feed clock to the EMIOS?&lt;/P&gt;&lt;P&gt;Check &lt;A href="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4830.pdf" title="http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4830.pdf"&gt;http://cache.freescale.com/files/microcontrollers/doc/app_note/AN4830.pdf&lt;/A&gt; , there is EMIOS example, as far as I remember, it was working on my side, when I've tested...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 13:22:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PWM-on-MPC5674F-not-working/m-p/408693#M814</guid>
      <dc:creator>alexvinchev</dc:creator>
      <dc:date>2015-05-08T13:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: PWM on MPC5674F not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PWM-on-MPC5674F-not-working/m-p/408694#M815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to find the software example listed in the AN4830 document on the freescale site, but I cannot find it.. Can you send me the link please&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 14:14:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PWM-on-MPC5674F-not-working/m-p/408694#M815</guid>
      <dc:creator>vincentbergeron</dc:creator>
      <dc:date>2015-05-08T14:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: PWM on MPC5674F not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PWM-on-MPC5674F-not-working/m-p/408695#M816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do you feed the clock to the EMIOS??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 May 2015 18:06:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PWM-on-MPC5674F-not-working/m-p/408695#M816</guid>
      <dc:creator>vincentbergeron</dc:creator>
      <dc:date>2015-05-08T18:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: PWM on MPC5674F not working</title>
      <link>https://community.nxp.com/t5/MPC5xxx/PWM-on-MPC5674F-not-working/m-p/408696#M817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the channel 23 is used as time base for your channel 4 in OPWM mode, so channel 4’s CADR/CBDR registers have to be set to value between 1 and EMIOS.CH[23].CADR.R to be able to perform a match.&lt;/P&gt;&lt;P&gt;With your setting matching never happen, thus have no toggle on output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Petr&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 May 2015 07:49:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/PWM-on-MPC5674F-not-working/m-p/408696#M817</guid>
      <dc:creator>PetrS</dc:creator>
      <dc:date>2015-05-11T07:49:30Z</dc:date>
    </item>
  </channel>
</rss>

