<?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: Problem in setting the system clock for MPC5744P in MPC5xxx</title>
    <link>https://community.nxp.com/t5/MPC5xxx/Problem-in-setting-the-system-clock-for-MPC5744P/m-p/710636#M9271</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, such configuration is out of tolerance&lt;/P&gt;&lt;P&gt;&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/31362i4BAE73CAC645341F/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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2017 14:50:18 GMT</pubDate>
    <dc:creator>davidtosenovjan</dc:creator>
    <dc:date>2017-09-22T14:50:18Z</dc:date>
    <item>
      <title>Problem in setting the system clock for MPC5744P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problem-in-setting-the-system-clock-for-MPC5744P/m-p/710635#M9270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to set the PLL0_PHI to 1 MHz with a 10MHz XOSC.&lt;/P&gt;&lt;P&gt;My code is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* Configure PLL0 to 1 MHz&amp;nbsp;&lt;SPAN&gt;with a 10MHz XOSC&lt;/SPAN&gt;. */&lt;BR /&gt; PLLDIG.PLL0DV.B.RFDPHI1 = 10;&lt;BR /&gt; PLLDIG.PLL0DV.B.RFDPHI = 20;&lt;BR /&gt; PLLDIG.PLL0DV.B.PREDIV = 5;&lt;BR /&gt; PLLDIG.PLL0DV.B.MFD = 10;&lt;/P&gt;&lt;P&gt;// Mode Transition to enter RUN0 mode:&lt;BR /&gt; MC_ME.MCTL.R = 0x40005AF0; // Enter RUN0 Mode &amp;amp; Key&lt;BR /&gt; MC_ME.MCTL.R = 0x4000A50F; // Enter RUN0 Mode &amp;amp; Inverted Key&lt;BR /&gt; while (MC_ME.GS.B.S_MTRANS) {}; // Wait for mode transition to complete&lt;BR /&gt; while(MC_ME.GS.B.S_CURRENT_MODE != 4) {}; // Verify RUN0 is the current mode&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I debug the code, I find that the program stops at the following line:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;while (MC_ME.GS.B.S_MTRANS) {}; // Wait for mode transition to complete&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;which means the mode transition to RUN0 never completes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But when I change the number of PLLDIG to&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PLLDIG.PLL0DV.B.RFDPHI1 = &lt;SPAN&gt;4&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PLLDIG.PLL0DV.B.RFDPHI =4&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PLLDIG.PLL0DV.B.PREDIV = &lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PLLDIG.PLL0DV.B.MFD = &lt;/SPAN&gt;&lt;SPAN&gt;16&lt;/SPAN&gt;&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;the program has no problem.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;I wonder what's wrong with my previous code? Is there any regulations about the PLLDIG register I don't know?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Sep 2017 14:24:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problem-in-setting-the-system-clock-for-MPC5744P/m-p/710635#M9270</guid>
      <dc:creator>nathan_</dc:creator>
      <dc:date>2017-09-21T14:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in setting the system clock for MPC5744P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problem-in-setting-the-system-clock-for-MPC5744P/m-p/710636#M9271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, such configuration is out of tolerance&lt;/P&gt;&lt;P&gt;&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/31362i4BAE73CAC645341F/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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 14:50:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problem-in-setting-the-system-clock-for-MPC5744P/m-p/710636#M9271</guid>
      <dc:creator>davidtosenovjan</dc:creator>
      <dc:date>2017-09-22T14:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in setting the system clock for MPC5744P</title>
      <link>https://community.nxp.com/t5/MPC5xxx/Problem-in-setting-the-system-clock-for-MPC5744P/m-p/710637#M9272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your remind.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Sep 2017 12:50:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MPC5xxx/Problem-in-setting-the-system-clock-for-MPC5744P/m-p/710637#M9272</guid>
      <dc:creator>nathan_</dc:creator>
      <dc:date>2017-09-27T12:50:18Z</dc:date>
    </item>
  </channel>
</rss>

