<?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>Kinetis MicrocontrollersのトピックRe: Re: MCG states</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314811#M13745</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 MCG are just similar between devices but some of the are not the same, here I show you a comparison between the MCG module of the KL25 and the MCG module of the KL05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MCG comparison.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43726i6574DB70749FACA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="MCG comparison.png" alt="MCG comparison.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the Freescale's webpage you can find the sample source code package for the KL25. Go to this path: &amp;lt;install folder&amp;gt;\kl25_sc_rev10\klxx-sc-baremetal\src\drivers\mcg there you can find the mcg driver which include the complete set of functions to move between the MCG modes. If you do not want the complete source code package I attach to the MCG driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KL25 sample source code:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/32bit/software/KL25_SC.exe?WT_TYPE=Lab%20and%20Test%20Software&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads" title="http://www.freescale.com/files/32bit/software/KL25_SC.exe?WT_TYPE=Lab%20and%20Test%20Software&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads"&gt;http://www.freescale.com/files/32bit/software/KL25_SC.exe?WT_TYPE=Lab%20and%20Test%20Software&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this information can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. It would be nice!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Jun 2014 15:47:43 GMT</pubDate>
    <dc:creator>adriancano</dc:creator>
    <dc:date>2014-06-06T15:47:43Z</dc:date>
    <item>
      <title>MCG states</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314808#M13742</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;In am trying to go through the whole MCG state machine and use all the clocking options. Unfortunately the MCG is acting up, and refuses to change to FBE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anybody has code that actually works?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want the "use Processor Expert" solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 13:10:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314808#M13742</guid>
      <dc:creator>galadragos</dc:creator>
      <dc:date>2014-06-05T13:10:44Z</dc:date>
    </item>
    <item>
      <title>Re: MCG states</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314809#M13743</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;Can you tell us which MCU are you using?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Saludos&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Santiago Lopez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2014 15:20:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314809#M13743</guid>
      <dc:creator>santiago_lopez</dc:creator>
      <dc:date>2014-06-05T15:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: MCG states</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314810#M13744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;KL25Z128&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't MCG the same in all MCUs ? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have notice that the FLL source reference will not change, no matter what I set C1[IREFS] bit to the status bit S[IREFST] maintains the old value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 07:10:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314810#M13744</guid>
      <dc:creator>galadragos</dc:creator>
      <dc:date>2014-06-06T07:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Re: MCG states</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314811#M13745</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 MCG are just similar between devices but some of the are not the same, here I show you a comparison between the MCG module of the KL25 and the MCG module of the KL05.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="MCG comparison.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43726i6574DB70749FACA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="MCG comparison.png" alt="MCG comparison.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;In the Freescale's webpage you can find the sample source code package for the KL25. Go to this path: &amp;lt;install folder&amp;gt;\kl25_sc_rev10\klxx-sc-baremetal\src\drivers\mcg there you can find the mcg driver which include the complete set of functions to move between the MCG modes. If you do not want the complete source code package I attach to the MCG driver.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KL25 sample source code:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/files/32bit/software/KL25_SC.exe?WT_TYPE=Lab%20and%20Test%20Software&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads" title="http://www.freescale.com/files/32bit/software/KL25_SC.exe?WT_TYPE=Lab%20and%20Test%20Software&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads"&gt;http://www.freescale.com/files/32bit/software/KL25_SC.exe?WT_TYPE=Lab%20and%20Test%20Software&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=exe&amp;amp;WT_ASSET=Downloads&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this information can help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. It would be nice!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 15:47:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314811#M13745</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2014-06-06T15:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: MCG states</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314812#M13746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think is a silicon problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My application runs through the whole MCG state machine continuously. I have found the only way to prevent a lock is no to change C1[IREFS] and C1[CLKS] at the same time !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the MCU just started you can change the whole 3 bits in one command, but after it passed through a few states the MCG locks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Safest way I could find was to ignore FEI-FBE, FEE-FBI, FBE-FEI, FBI-FEE, FBI-FBE, FBE-FBI changes, so the MCG will never go through those states.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above sample code is not much help, as it assumes some premises which I do not have. It is also poorly documented, with fixed valued instead of bitmasks, making it very hard to read and understand.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 19:24:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314812#M13746</guid>
      <dc:creator>galadragos</dc:creator>
      <dc:date>2014-06-06T19:24:38Z</dc:date>
    </item>
    <item>
      <title>Re: MCG states</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314813#M13747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just out of curiosity, does Freescale have some form of a spreadsheet with all the differences between parts in the same family ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2014 23:16:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCG-states/m-p/314813#M13747</guid>
      <dc:creator>galadragos</dc:creator>
      <dc:date>2014-06-06T23:16:30Z</dc:date>
    </item>
  </channel>
</rss>

