<?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のトピックWhy in FRDM-KL03, when I mesure with timer the frequency of IRC48M reference I see 8MHz instead 48?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-in-FRDM-KL03-when-I-mesure-with-timer-the-frequency-of/m-p/355398#M17697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I wrote a driver for the FRDM_KL03Z's MCG module, all seems work, the only strange beahvior is that when mesure the IRC48M reference with a timer, I obtain 8MHz instead 48MHz.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Help me! Does anyone know why this happens?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best Regards!&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Alessio Paolucci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 19 Jan 2015 09:49:40 GMT</pubDate>
    <dc:creator>alessiopaolucci</dc:creator>
    <dc:date>2015-01-19T09:49:40Z</dc:date>
    <item>
      <title>Why in FRDM-KL03, when I mesure with timer the frequency of IRC48M reference I see 8MHz instead 48?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-in-FRDM-KL03-when-I-mesure-with-timer-the-frequency-of/m-p/355398#M17697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I wrote a driver for the FRDM_KL03Z's MCG module, all seems work, the only strange beahvior is that when mesure the IRC48M reference with a timer, I obtain 8MHz instead 48MHz.&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 10pt; font-family: inherit;"&gt;Help me! Does anyone know why this happens?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Best Regards!&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Alessio Paolucci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Jan 2015 09:49:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-in-FRDM-KL03-when-I-mesure-with-timer-the-frequency-of/m-p/355398#M17697</guid>
      <dc:creator>alessiopaolucci</dc:creator>
      <dc:date>2015-01-19T09:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: Why in FRDM-KL03, when I mesure with timer the frequency of IRC48M reference I see 8MHz instead 48?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-in-FRDM-KL03-when-I-mesure-with-timer-the-frequency-of/m-p/355399#M17698</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;You can check the IRC48M frequency in a pin setting the CLKOUT pin. I tested this on the FRDM-KL03 on the pin PTA12 which is J4[3] on the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to set the following registers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_14217853132588998" jivemacro_uid="_14217853132588998" modifiedtitle="true"&gt;
&lt;P&gt;SIM_SOPT2 = SIM_SOPT2_CLKOUTSEL(7)&amp;nbsp; //Selects the IRC48M clock output on the CLKOUT pin.&lt;/P&gt;
&lt;P&gt;SIM_SCGC5 |= SIM_SCGC5_PORTA_MASK;&amp;nbsp;&amp;nbsp;&amp;nbsp; //PORTA clock enabled&lt;/P&gt;
&lt;P&gt;PORTA_PCR12 = PORT_PCR_MUX(0x05) | PORT_PCR_DSE_MASK;&amp;nbsp; //Set PTA12 to CLOCKOUT functionallity and DS on the pin&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I initialized the Core at 48 MHz and the Bus clock at 24 MHz using the IRC48M internal reference clock and measured ~48 MHz on the PTA12.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope this information can help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Adrian Sanchez Cano&lt;BR /&gt;Technical Support Engineer&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Jan 2015 20:26:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-in-FRDM-KL03-when-I-mesure-with-timer-the-frequency-of/m-p/355399#M17698</guid>
      <dc:creator>adriancano</dc:creator>
      <dc:date>2015-01-20T20:26:47Z</dc:date>
    </item>
    <item>
      <title>Re: Why in FRDM-KL03, when I mesure with timer the frequency of IRC48M reference I see 8MHz instead 48?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-in-FRDM-KL03-when-I-mesure-with-timer-the-frequency-of/m-p/355400#M17699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I try this solution and, even if the waveform is very blunt, the frequency is in fact 48MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards.&lt;/P&gt;&lt;P&gt;Alessio Paolucci&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jan 2015 08:02:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Why-in-FRDM-KL03-when-I-mesure-with-timer-the-frequency-of/m-p/355400#M17699</guid>
      <dc:creator>alessiopaolucci</dc:creator>
      <dc:date>2015-01-21T08:02:21Z</dc:date>
    </item>
  </channel>
</rss>

