<?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>LPC MicrocontrollersのトピックRe: LPC845 FRO control register</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-FRO-control-register/m-p/844945#M33609</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alexis Andalon for your answer. The reason of my question was that I have trouble with get clock functions.&lt;/P&gt;&lt;P&gt;I created a simple USART project transmit data to VCOM port:&lt;span class="lia-inline-image-display-wrapper" image-alt="code.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62633i6FE7C9464ABFED4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.PNG" alt="code.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is clocks diagram of USART0:&lt;span class="lia-inline-image-display-wrapper" image-alt="frg0.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62634i668B82C97063C770/image-size/large?v=v2&amp;amp;px=999" role="button" title="frg0.PNG" alt="frg0.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change CLOCK_GetFRG0ClkFreq() to 30000000U the usart works well, but the function returns&amp;nbsp; wrong value(13222784)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Aug 2018 19:07:52 GMT</pubDate>
    <dc:creator>lajostoth</dc:creator>
    <dc:date>2018-08-10T19:07:52Z</dc:date>
    <item>
      <title>LPC845 FRO control register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-FRO-control-register/m-p/844943#M33607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;This is a snippet of 845 SDK :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="845sdk.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62576i63D260659FD09DD3/image-size/large?v=v2&amp;amp;px=999" role="button" title="845sdk.PNG" alt="845sdk.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I can't find any information about [1:0] bits of FROOSCCTRL register in the user manual.&lt;/P&gt;&lt;P&gt;These data are confidential ?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="845fro.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/63217iBDD0A0BC73EEE7AF/image-size/large?v=v2&amp;amp;px=999" role="button" title="845fro.PNG" alt="845fro.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 09:43:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-FRO-control-register/m-p/844943#M33607</guid>
      <dc:creator>lajostoth</dc:creator>
      <dc:date>2018-08-10T09:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845 FRO control register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-FRO-control-register/m-p/844944#M33608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lajos Toth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These bits are set in the &lt;STRONG&gt;&lt;EM&gt;set_fro_frequency()&lt;/EM&gt;&lt;/STRONG&gt; API, this function is located in the boot ROM. In the SDK you can found it with the following name and the argument helps you to modify the output frecuency:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;CLOCK_SetFroOscFreq(kCLOCK_FroOscOut18M);&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Set up FRO freq to 18MHz */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;CLOCK_SetFroOscFreq(kCLOCK_FroOscOut24M);&amp;nbsp;&lt;/STRONG&gt; &amp;nbsp;/*!&amp;lt; Set up FRO freq&amp;nbsp; to 24MHz*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;STRONG&gt;CLOCK_SetFroOscFreq(kCLOCK_FroOscOut30M);&lt;/STRONG&gt;&amp;nbsp; &amp;nbsp;/*!&amp;lt; Set up FRO freq&amp;nbsp; to 30MHz*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope it helps you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Alexis Andalon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 15:13:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-FRO-control-register/m-p/844944#M33608</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2018-08-10T15:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845 FRO control register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-FRO-control-register/m-p/844945#M33609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alexis Andalon for your answer. The reason of my question was that I have trouble with get clock functions.&lt;/P&gt;&lt;P&gt;I created a simple USART project transmit data to VCOM port:&lt;span class="lia-inline-image-display-wrapper" image-alt="code.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62633i6FE7C9464ABFED4D/image-size/large?v=v2&amp;amp;px=999" role="button" title="code.PNG" alt="code.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is clocks diagram of USART0:&lt;span class="lia-inline-image-display-wrapper" image-alt="frg0.PNG"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/62634i668B82C97063C770/image-size/large?v=v2&amp;amp;px=999" role="button" title="frg0.PNG" alt="frg0.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I change CLOCK_GetFRG0ClkFreq() to 30000000U the usart works well, but the function returns&amp;nbsp; wrong value(13222784)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 19:07:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-FRO-control-register/m-p/844945#M33609</guid>
      <dc:creator>lajostoth</dc:creator>
      <dc:date>2018-08-10T19:07:52Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845 FRO control register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-FRO-control-register/m-p/844946#M33610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lajos Toth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you're confusing the FRG Clock with the FRO clock, these are two diferent clock options.&lt;/P&gt;&lt;P&gt;In the &lt;EM&gt;&lt;STRONG&gt;USART_Init&lt;/STRONG&gt;&lt;/EM&gt;, you're using&amp;nbsp;&lt;EM&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f;"&gt;CLOCK_GetFRG0ClkFreq()&lt;/STRONG&gt;&lt;/EM&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f;"&gt;&amp;nbsp;&lt;/STRONG&gt;but the original question is about the &lt;EM&gt;&lt;STRONG&gt;CLOCK_GetFroFreq&lt;/STRONG&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regard,&lt;/P&gt;&lt;P&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 13:49:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-FRO-control-register/m-p/844946#M33610</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2018-08-14T13:49:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC845 FRO control register</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-FRO-control-register/m-p/844947#M33611</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG class=""&gt;&lt;SPAN class=""&gt;Alexis Andalon&lt;/SPAN&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;I am not confusing with clocks,&amp;nbsp; &lt;EM&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f;"&gt;CLOCK_GetFRG0ClkFreq()&lt;/STRONG&gt;&lt;/EM&gt; call &lt;EM&gt;&lt;STRONG&gt;CLOCK_GetFroFreq&lt;/STRONG&gt;&lt;STRONG&gt;()&lt;/STRONG&gt;&lt;/EM&gt; function if the clock source for FRG is setting to FRO. The problem is solved, there is a type casting bug in &lt;EM&gt;&lt;STRONG style="background-color: #ffffff; color: #51626f;"&gt;CLOCK_GetFRG0ClkFreq()&lt;/STRONG&gt;&lt;/EM&gt; function as well as in FRG1.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Aug 2018 14:59:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC845-FRO-control-register/m-p/844947#M33611</guid>
      <dc:creator>lajostoth</dc:creator>
      <dc:date>2018-08-14T14:59:07Z</dc:date>
    </item>
  </channel>
</rss>

