<?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: eLCDIF for 800x480 LCD questions AN12302 in i.MX RT Crossover MCUs</title>
    <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/eLCDIF-for-800x480-LCD-questions-AN12302/m-p/1490326#M20637</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Jing,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have tried this solution, but it is incorrect.&lt;BR /&gt;The clock config and clock diagram do not result in the same configuration as the hardcoded overwrite configuration:&lt;BR /&gt;&lt;BR /&gt;In the temperature control EMWIN example there is the following hardcoded:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;     * Here set the LCDIF pixel clock to 9.3M.

    clock_video_pll_config_t config = {
        .loopDivider = 31,
        .postDivider = 8,
        .numerator   = 0,
        .denominator = 0,
    };

    CLOCK_InitVideoPll(&amp;amp;config);

    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;&lt;P&gt;When i try to copy this into the clock configurator the MCUXpresso IDE does not even let me change the DENOM from 1 to 0.&lt;BR /&gt;&lt;BR /&gt;When i place the value 9.3 Mhz I get totally different values for the LCD pixel clock settings.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please help i am not understanding, The screen is buggy and i cannot use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Jul 2022 12:18:34 GMT</pubDate>
    <dc:creator>_bjs</dc:creator>
    <dc:date>2022-07-15T12:18:34Z</dc:date>
    <item>
      <title>eLCDIF for 800x480 LCD questions AN12302</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/eLCDIF-for-800x480-LCD-questions-AN12302/m-p/1488075#M20546</link>
      <description>&lt;P&gt;Hello i am in need of help with the clock framerate calculations for 60Hz/30Hz and 10Hz.&lt;/P&gt;&lt;P&gt;following the&amp;nbsp;&lt;A href="https://www.nxp.com/docs/en/application-note/AN12302.pdf" target="_blank"&gt;https://www.nxp.com/docs/en/application-note/AN12302.pdf&lt;/A&gt;&amp;nbsp;guide to set up custom resolution. I have the following parameters, the screen is working with these settings:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;#define APP_IMG_HEIGHT 480
#define APP_IMG_WIDTH 800
#define APP_HSW 1 // HSync signal width
#define APP_HFP 210 // Horizontal front porch
#define APP_HBP 46 // Horizontal back porch
#define APP_VSW 1 // VSync signal width
#define APP_VFP 22 // Vertical front porch
#define APP_VBP 23 // Vertical back porch

#define LCD_WIDTH           800
#define LCD_HEIGHT          480
#define LCD_BITS_PER_PIXEL  16
#define LCD_BYTES_PER_PIXEL (LCD_BITS_PER_PIXEL / 8)

#define DISPLAY_DRIVER      GUIDRV_LIN_16
#define COLOR_CONVERSION    GUICC_565
#define ELCDIF_PIXEL_FORMAT kELCDIF_PixelFormatRGB565
#define APP_LCDIF_DATA_BUS  kELCDIF_DataBus16Bit

&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;I am testing using the EVKBIMXRT1050-EmWin_Slide_Show demo.&lt;BR /&gt;&lt;BR /&gt;In the&amp;nbsp;BOARD_InitLcdifPixelClock function, i can set the desired frame rate. I have the values:&lt;BR /&gt;(800 + 1 + 210 + 46 ) * (480 + 1 + 22 + 23) * 60 = 33.358.920&lt;BR /&gt;(800 + 1 + 210 + 46 ) * (480 + 1 + 22 + 23) * 30 = 16.679.460&lt;BR /&gt;(800 + 1 + 210 + 46 ) * (480 + 1 + 22 + 23) * 10 =&amp;nbsp; &amp;nbsp;5.559.820&lt;/P&gt;&lt;P&gt;how do i convert it into the following?&lt;BR /&gt;For 60Hz i have chosen loopDevider as 69, and for postDevider as 5.&lt;BR /&gt;How do i get the CLOCK_SetMux and CLOCK_SetDive values?&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    /*
     * 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;&lt;P&gt;Where can i find this&amp;nbsp;MIMXRT1052xxxxx_sdram.icf, or similar for EMWIN slide show demo?&lt;/P&gt;&lt;P&gt;For the AN12302 example there is a line saying set&amp;nbsp;APP_ELCDIF-&amp;gt;CTRL2 = 0x00700000;&lt;BR /&gt;Can i use this value ? What value do i set it?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Tue, 12 Jul 2022 11:03:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/eLCDIF-for-800x480-LCD-questions-AN12302/m-p/1488075#M20546</guid>
      <dc:creator>_bjs</dc:creator>
      <dc:date>2022-07-12T11:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: eLCDIF for 800x480 LCD questions AN12302</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/eLCDIF-for-800x480-LCD-questions-AN12302/m-p/1488474#M20558</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199509"&gt;@_bjs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can try MCUxpresso Config Tools. When you change the settings, the function parameter also will change. And the line number will show in purple.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="jingpan_0-1657689598132.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/186404i240BB2D048DB43DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="jingpan_0-1657689598132.png" alt="jingpan_0-1657689598132.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;.icf file is IAR link file. In emWin project, it only has&amp;nbsp;MIMXRT1052xxxxx_flexspi_nor_sdram.icf. You can find more in other demo project in SDK, for example in SDK_2_10_0_EVKB-IMXRT1050\boards\evkbimxrt1050\demo_apps\hello_world\iar&lt;/P&gt;
&lt;P&gt;Yes, you can set this value.&amp;nbsp;The LCDIF_CTRL2[OUTSTANDING_REQS] bitfield will control how many&lt;BR /&gt;requests the eLCDIF can have in flight on any given clock cycle. This should be programmed based on the expected system bus latency for returned read data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2022 05:27:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/eLCDIF-for-800x480-LCD-questions-AN12302/m-p/1488474#M20558</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2022-07-13T05:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: eLCDIF for 800x480 LCD questions AN12302</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/eLCDIF-for-800x480-LCD-questions-AN12302/m-p/1490326#M20637</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Jing,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I have tried this solution, but it is incorrect.&lt;BR /&gt;The clock config and clock diagram do not result in the same configuration as the hardcoded overwrite configuration:&lt;BR /&gt;&lt;BR /&gt;In the temperature control EMWIN example there is the following hardcoded:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;     * Here set the LCDIF pixel clock to 9.3M.

    clock_video_pll_config_t config = {
        .loopDivider = 31,
        .postDivider = 8,
        .numerator   = 0,
        .denominator = 0,
    };

    CLOCK_InitVideoPll(&amp;amp;config);

    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;&lt;P&gt;When i try to copy this into the clock configurator the MCUXpresso IDE does not even let me change the DENOM from 1 to 0.&lt;BR /&gt;&lt;BR /&gt;When i place the value 9.3 Mhz I get totally different values for the LCD pixel clock settings.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Please help i am not understanding, The screen is buggy and i cannot use it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2022 12:18:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/eLCDIF-for-800x480-LCD-questions-AN12302/m-p/1490326#M20637</guid>
      <dc:creator>_bjs</dc:creator>
      <dc:date>2022-07-15T12:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: eLCDIF for 800x480 LCD questions AN12302</title>
      <link>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/eLCDIF-for-800x480-LCD-questions-AN12302/m-p/1491736#M20690</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/199509"&gt;@_bjs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Sorry I doesn't understand what you want to do. Did you try the config tool?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Jing&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 11:07:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-RT-Crossover-MCUs/eLCDIF-for-800x480-LCD-questions-AN12302/m-p/1491736#M20690</guid>
      <dc:creator>jingpan</dc:creator>
      <dc:date>2022-07-19T11:07:10Z</dc:date>
    </item>
  </channel>
</rss>

