<?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: clocks tool FRGCTRL_MUL value selection in MCUXpresso Config Tools</title>
    <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/clocks-tool-FRGCTRL-MUL-value-selection/m-p/841165#M607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cedric,&lt;/P&gt;&lt;P&gt;I have checked the implementation and it seems that there are selected confusing names of the divider and multiplier only. The clock model works properly.&lt;/P&gt;&lt;P&gt;If you look into reference manual (UM11060) you can find the following expression for computing the FRG clock:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Flexcomm Interface function clock = (clock selected via FRGCLKSEL) / (1 + MULT / DIV)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also the following definition of the related bitfields:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69480iC99E44CCB12A2207/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is mean that the MULT bitfield works as the divider and DIV bitfield works as the multiplier part of the fractional divider.&lt;/P&gt;&lt;P&gt;In the clock model (clock diagram) the FRGCTRL_MUL multiplier controls the DIV bitfield and must be 0xFF. The FRGCTRL_DIV divider controls the MULT bitfield (1+MULT/0xFF = (0xFF + MULT) / 0xFF), i.e. the divider provides values 256 - 511.&lt;/P&gt;&lt;P&gt;It means that&amp;nbsp;the clock model works properly and provide the correct values in the FRGCTRL register (you can also check the bitfield values in the Registers window of the Clocks tool).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2018 08:39:34 GMT</pubDate>
    <dc:creator>marek_neuzil</dc:creator>
    <dc:date>2018-09-19T08:39:34Z</dc:date>
    <item>
      <title>clocks tool FRGCTRL_MUL value selection</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/clocks-tool-FRGCTRL-MUL-value-selection/m-p/841164#M606</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;I'm trying to configure clocks for an&amp;nbsp;LPCXpresso54018, SDK version is:&amp;nbsp;SDK Version: KSDK 2.4.2 (2018-09-14).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to configure the FRG_clock.&lt;/P&gt;&lt;P&gt;The value for FRGCTRL_MUL is set to *256, and can't be changed. It's only possible to set FRGCTRL_DIV.&lt;/P&gt;&lt;P&gt;From the LPC540xx reference manual, it looks like&amp;nbsp;FRGCTRL_DIV should always set to 0xff. But i should be able to set&amp;nbsp;FRGCTRL_MUL.&lt;/P&gt;&lt;P&gt;I've added screenshots showing the dropdown menu's for both settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am i doing something wrong? Or is it a problem in clocks tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;Cedric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 13:02:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/clocks-tool-FRGCTRL-MUL-value-selection/m-p/841164#M606</guid>
      <dc:creator>cedricjehasse</dc:creator>
      <dc:date>2018-09-18T13:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: clocks tool FRGCTRL_MUL value selection</title>
      <link>https://community.nxp.com/t5/MCUXpresso-Config-Tools/clocks-tool-FRGCTRL-MUL-value-selection/m-p/841165#M607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cedric,&lt;/P&gt;&lt;P&gt;I have checked the implementation and it seems that there are selected confusing names of the divider and multiplier only. The clock model works properly.&lt;/P&gt;&lt;P&gt;If you look into reference manual (UM11060) you can find the following expression for computing the FRG clock:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Flexcomm Interface function clock = (clock selected via FRGCLKSEL) / (1 + MULT / DIV)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And also the following definition of the related bitfields:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/69480iC99E44CCB12A2207/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is mean that the MULT bitfield works as the divider and DIV bitfield works as the multiplier part of the fractional divider.&lt;/P&gt;&lt;P&gt;In the clock model (clock diagram) the FRGCTRL_MUL multiplier controls the DIV bitfield and must be 0xFF. The FRGCTRL_DIV divider controls the MULT bitfield (1+MULT/0xFF = (0xFF + MULT) / 0xFF), i.e. the divider provides values 256 - 511.&lt;/P&gt;&lt;P&gt;It means that&amp;nbsp;the clock model works properly and provide the correct values in the FRGCTRL register (you can also check the bitfield values in the Registers window of the Clocks tool).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marek Neuzil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 08:39:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-Config-Tools/clocks-tool-FRGCTRL-MUL-value-selection/m-p/841165#M607</guid>
      <dc:creator>marek_neuzil</dc:creator>
      <dc:date>2018-09-19T08:39:34Z</dc:date>
    </item>
  </channel>
</rss>

