<?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: Setting FlexSPI root clock to slower clock rate: &amp;lt;= 30MHz in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Setting-FlexSPI-root-clock-to-slower-clock-rate-lt-30MHz/m-p/1532315#M21882</link>
    <description>&lt;P&gt;You should be able to lower the&amp;nbsp;&lt;SPAN&gt;PLL3 PFD0 even further. You currently have it with a 24 divider, but it can be increased up to 35:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwinHz_0-1664913625612.png" style="width: 897px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195731i5562CC88C04C6FF8/image-dimensions/897x397?v=v2" width="897" height="397" role="button" title="EdwinHz_0-1664913625612.png" alt="EdwinHz_0-1664913625612.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The resulting frequency should be&amp;nbsp;216/7 MHz.&lt;/P&gt;
&lt;P&gt;Alternatively, as you mention, by selecting the SEMC clock root clock as input for the FlexSPI clock divider, you should be able to get much lower frequencies, since the clock would be router after the SEMC clock divider, allowing you to control the signal with two dividers instead of one:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwinHz_1-1664914181994.png" style="width: 900px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195736iB604753D2E38040A/image-dimensions/900x442?v=v2" width="900" height="442" role="button" title="EdwinHz_1-1664914181994.png" alt="EdwinHz_1-1664914181994.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see, from using the SEMC clock, I am able to output a 25 MHz signal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Edwin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Oct 2022 20:11:01 GMT</pubDate>
    <dc:creator>EdwinHz</dc:creator>
    <dc:date>2022-10-04T20:11:01Z</dc:date>
    <item>
      <title>Setting FlexSPI root clock to slower clock rate: &lt;= 30MHz</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Setting-FlexSPI-root-clock-to-slower-clock-rate-lt-30MHz/m-p/1532191#M21878</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am setting up FLEXSPI interface to communicate to FPGA chip which has been configured to run up to 30MHz.&lt;/P&gt;&lt;P&gt;I am referring to the SDK examples on how to setup the root clock for the FLEXSPI, as shown below:-&lt;/P&gt;&lt;P&gt;example: flexspi_nor_polling_transfer&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;const clock_usb_pll_config_t g_ccmConfigUsbPll = {.loopDivider = 0U};&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;CLOCK_InitUsb1Pll(&amp;amp;g_ccmConfigUsbPll);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;// formula: USB1 PLL = 480MHz PLL3 =&amp;gt; ((480MHz * 18) / fraction)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;// Where, fraction = 24, so, USB1 PFD0 clock = (480MHz * 18) / 24 = 360MHz&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;CLOCK_InitUsb1Pfd(kCLOCK_Pfd0, 24);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;EM&gt;// &lt;/EM&gt;&lt;EM&gt;&amp;nbsp;FLEXSPI_CLK_SEL&lt;/EM&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;// 00 derive clock from semc_clk_root_pre&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;// 01 derive clock from pll3_sw_clk&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;// 10 derive clock from PLL2 PFD2&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;// 11 derive clock from PLL3 PFD0&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;CLOCK_SetMux(kCLOCK_FlexspiMux, 0x3);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;// maximum FLEXSPI_PODF field value = 7 as it is a 3-bit field&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;// FLEXSPI_PODF = 2 =&amp;gt; FLEXSPI root clock = 360MHz / 3 = 120MHz&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT color="#3366FF"&gt;// FLEXSPI_PODF = 7 =&amp;gt; FLEXSPI root clock = 360MHz / 8 = 45MHz&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;CLOCK_SetDiv(kCLOCK_FlexspiDiv, 2);&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;As shown above, if&amp;nbsp; FLEXSPI_CLK_SEL = &lt;/FONT&gt;&lt;FONT color="#3366FF"&gt;&lt;FONT color="#000000"&gt;PLL3 PFD0, even I set the FLEXSPI clock divider,&amp;nbsp;FLEXSPI_PODF , to 7, the lowest&amp;nbsp; possible FLEXSPI root clock&amp;nbsp; = 45MHz.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;FONT color="#000000"&gt;Can you please suggest the best way to lower the FLEXSPI root clock freq to &amp;lt;= 30MHz? &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#3366FF"&gt;&lt;FONT color="#000000"&gt;Should I set &lt;EM&gt;FLEXSPI_CLK_SEL&lt;/EM&gt; = &lt;EM&gt;semc_clk_root_pre or something else&lt;/EM&gt;?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;FONT color="#000000"&gt;Thank you!&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;FONT color="#000000"&gt;Kind Regards,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#3366FF"&gt;&lt;FONT color="#000000"&gt;Cindy&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 14:53:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Setting-FlexSPI-root-clock-to-slower-clock-rate-lt-30MHz/m-p/1532191#M21878</guid>
      <dc:creator>Cindy</dc:creator>
      <dc:date>2022-10-04T14:53:11Z</dc:date>
    </item>
    <item>
      <title>Re: Setting FlexSPI root clock to slower clock rate: &lt;= 30MHz</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Setting-FlexSPI-root-clock-to-slower-clock-rate-lt-30MHz/m-p/1532315#M21882</link>
      <description>&lt;P&gt;You should be able to lower the&amp;nbsp;&lt;SPAN&gt;PLL3 PFD0 even further. You currently have it with a 24 divider, but it can be increased up to 35:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwinHz_0-1664913625612.png" style="width: 897px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195731i5562CC88C04C6FF8/image-dimensions/897x397?v=v2" width="897" height="397" role="button" title="EdwinHz_0-1664913625612.png" alt="EdwinHz_0-1664913625612.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;The resulting frequency should be&amp;nbsp;216/7 MHz.&lt;/P&gt;
&lt;P&gt;Alternatively, as you mention, by selecting the SEMC clock root clock as input for the FlexSPI clock divider, you should be able to get much lower frequencies, since the clock would be router after the SEMC clock divider, allowing you to control the signal with two dividers instead of one:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="EdwinHz_1-1664914181994.png" style="width: 900px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/195736iB604753D2E38040A/image-dimensions/900x442?v=v2" width="900" height="442" role="button" title="EdwinHz_1-1664914181994.png" alt="EdwinHz_1-1664914181994.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;As you can see, from using the SEMC clock, I am able to output a 25 MHz signal.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Edwin.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Oct 2022 20:11:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/Setting-FlexSPI-root-clock-to-slower-clock-rate-lt-30MHz/m-p/1532315#M21882</guid>
      <dc:creator>EdwinHz</dc:creator>
      <dc:date>2022-10-04T20:11:01Z</dc:date>
    </item>
  </channel>
</rss>

