<?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: RT1052: Unclarity in pixel clock configuration of lvgl_demo in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1052-Unclarity-in-pixel-clock-configuration-of-lvgl-demo/m-p/1457863#M19548</link>
    <description>&lt;P&gt;Hi，&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;Just as the below shows, the CLOCK_SetDiv(kCLOCK_LcdifPreDiv, 4) is used to set the LCDIF_PRED, and CLOCK_SetDiv(kCLOCK_LcdifDiv, 1)is used to set the LDIF_PODF.&lt;BR /&gt;The total divisor will be (4+1)*(1*1) = 10, after through the divider, the clock became 9.3 MHz。&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jeremyzhou_0-1652435963695.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/179746i780CA27BD662570C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jeremyzhou_0-1652435963695.png" alt="jeremyzhou_0-1652435963695.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2022 09:59:49 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2022-05-13T09:59:49Z</dc:date>
    <item>
      <title>RT1052: Unclarity in pixel clock configuration of lvgl_demo</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1052-Unclarity-in-pixel-clock-configuration-of-lvgl-demo/m-p/1457770#M19543</link>
      <description>&lt;P&gt;I'm currently evaluating the iMXRT1052, using the MIMXRT1050-EVK / EVKBIMXRT1050 and the LCD panel.&lt;/P&gt;&lt;P&gt;I've imported the &lt;EM&gt;lvgl_demo_benchmark_bm&lt;/EM&gt; and &lt;EM&gt;lvgl_demo_widgets_bm&lt;/EM&gt; examples from the MCUXpresso SDK.&lt;/P&gt;&lt;P&gt;In both examples, I noticed that the function DEMO_InitLcdClock (in board/lvgl_support.c) is used to configure the pixel clock, but I can't explain the factor 10 difference between the wanted pixel clock frequency (9.3 MHz) and the Video PLL configuration (93.0 MHz). Can someone elaborate where this factor 10 is coming from&lt;/P&gt;&lt;LI-CODE lang="c"&gt;static void DEMO_InitLcdClock(void)
{
    /*
     * The desired output frame rate is 60Hz. So the pixel clock frequency is:
     * (480 + 41 + 4 + 18) * (272 + 10 + 4 + 2) * 60 = 9.2M.
     * Here set the LCDIF pixel clock to 9.3M.
     */

    /*
     * Initialize the Video PLL.
     * Video PLL output clock is OSC24M * (loopDivider + (denominator / numerator)) / postDivider = 93MHz.
     */
    clock_video_pll_config_t config = {
        .loopDivider = 31,
        .postDivider = 8,
        .numerator   = 0,
        .denominator = 0,
    };

    CLOCK_InitVideoPll(&amp;amp;config);

    /*
     * 000 derive clock from PLL2
     * 001 derive clock from PLL3 PFD3
     * 010 derive clock from PLL5
     * 011 derive clock from PLL2 PFD0
     * 100 derive clock from PLL2 PFD1
     * 101 derive clock from PLL3 PFD1
     */
    CLOCK_SetMux(kCLOCK_LcdifPreMux, 2);

    CLOCK_SetDiv(kCLOCK_LcdifPreDiv, 4);

    CLOCK_SetDiv(kCLOCK_LcdifDiv, 1);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 08:04:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1052-Unclarity-in-pixel-clock-configuration-of-lvgl-demo/m-p/1457770#M19543</guid>
      <dc:creator>airios_arno</dc:creator>
      <dc:date>2022-05-13T08:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: RT1052: Unclarity in pixel clock configuration of lvgl_demo</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1052-Unclarity-in-pixel-clock-configuration-of-lvgl-demo/m-p/1457863#M19548</link>
      <description>&lt;P&gt;Hi，&lt;/P&gt;
&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;Just as the below shows, the CLOCK_SetDiv(kCLOCK_LcdifPreDiv, 4) is used to set the LCDIF_PRED, and CLOCK_SetDiv(kCLOCK_LcdifDiv, 1)is used to set the LDIF_PODF.&lt;BR /&gt;The total divisor will be (4+1)*(1*1) = 10, after through the divider, the clock became 9.3 MHz。&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jeremyzhou_0-1652435963695.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/179746i780CA27BD662570C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jeremyzhou_0-1652435963695.png" alt="jeremyzhou_0-1652435963695.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2022 09:59:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/RT1052-Unclarity-in-pixel-clock-configuration-of-lvgl-demo/m-p/1457863#M19548</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2022-05-13T09:59:49Z</dc:date>
    </item>
  </channel>
</rss>

