<?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中的主题 emWin Initialization for GUIDRV_FLEXCOLOR driver</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-Initialization-for-GUIDRV-FLEXCOLOR-driver/m-p/600316#M23287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on the emWin GUI lib. My mcu is lpc1837, my lcd driver chip is ssd2119, the screen size is 320*240, the lcd interface is a 8088 8-bits bus. So I use the&amp;nbsp;GUIDRV_FLEXCOLOR_F66714 driver. The emWin lib version is V5.36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the bus/cache configuration function.&lt;/P&gt;&lt;P&gt;GUIDRV_FlexColor_SetFunc(pDevice, &amp;amp;PortAPI, GUIDRV_FLEXCOLOR_F66714, GUIDRV_FLEXCOLOR_M16C0B8);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the GUI is initialized, I traced the bus write call back functions. I found the following registers are written by the GUI lib.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;REG11H&amp;lt;- 0x0030 &amp;nbsp; //this is not good&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R&lt;/SPAN&gt;&lt;SPAN&gt;EG44&lt;/SPAN&gt;&lt;SPAN&gt;H&amp;lt;- 0xEF00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R&lt;SPAN&gt;EG45&lt;/SPAN&gt;&lt;SPAN&gt;H&amp;lt;- 0x0000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;R&lt;SPAN&gt;EG46&lt;/SPAN&gt;&lt;SPAN&gt;H&amp;lt;- 0x013F&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;R&lt;SPAN&gt;EG4E&lt;/SPAN&gt;&lt;SPAN&gt;H&amp;lt;- 0x0000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R&lt;/SPAN&gt;&lt;SPAN&gt;EG4F&lt;/SPAN&gt;&lt;SPAN&gt;H&amp;lt;- 0x0000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have written the register 0x0011 with a value 0x6270 in the&amp;nbsp;_InitController function. The gui lib will write it again. According to the SSD2119 datasheet, 0x0030 is not a good value for this register. It makes the LCD screen not work normally.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is a bug in the emwin lib? or it is my configuration error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fei&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 25 Oct 2016 21:14:27 GMT</pubDate>
    <dc:creator>feiyan</dc:creator>
    <dc:date>2016-10-25T21:14:27Z</dc:date>
    <item>
      <title>emWin Initialization for GUIDRV_FLEXCOLOR driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-Initialization-for-GUIDRV-FLEXCOLOR-driver/m-p/600316#M23287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on the emWin GUI lib. My mcu is lpc1837, my lcd driver chip is ssd2119, the screen size is 320*240, the lcd interface is a 8088 8-bits bus. So I use the&amp;nbsp;GUIDRV_FLEXCOLOR_F66714 driver. The emWin lib version is V5.36.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the bus/cache configuration function.&lt;/P&gt;&lt;P&gt;GUIDRV_FlexColor_SetFunc(pDevice, &amp;amp;PortAPI, GUIDRV_FLEXCOLOR_F66714, GUIDRV_FLEXCOLOR_M16C0B8);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the GUI is initialized, I traced the bus write call back functions. I found the following registers are written by the GUI lib.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;REG11H&amp;lt;- 0x0030 &amp;nbsp; //this is not good&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R&lt;/SPAN&gt;&lt;SPAN&gt;EG44&lt;/SPAN&gt;&lt;SPAN&gt;H&amp;lt;- 0xEF00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R&lt;SPAN&gt;EG45&lt;/SPAN&gt;&lt;SPAN&gt;H&amp;lt;- 0x0000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;R&lt;SPAN&gt;EG46&lt;/SPAN&gt;&lt;SPAN&gt;H&amp;lt;- 0x013F&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;SPAN&gt;R&lt;SPAN&gt;EG4E&lt;/SPAN&gt;&lt;SPAN&gt;H&amp;lt;- 0x0000&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R&lt;/SPAN&gt;&lt;SPAN&gt;EG4F&lt;/SPAN&gt;&lt;SPAN&gt;H&amp;lt;- 0x0000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have written the register 0x0011 with a value 0x6270 in the&amp;nbsp;_InitController function. The gui lib will write it again. According to the SSD2119 datasheet, 0x0030 is not a good value for this register. It makes the LCD screen not work normally.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is a bug in the emwin lib? or it is my configuration error?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fei&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Oct 2016 21:14:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-Initialization-for-GUIDRV-FLEXCOLOR-driver/m-p/600316#M23287</guid>
      <dc:creator>feiyan</dc:creator>
      <dc:date>2016-10-25T21:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: emWin Initialization for GUIDRV_FLEXCOLOR driver</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-Initialization-for-GUIDRV-FLEXCOLOR-driver/m-p/600317#M23288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Fei,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP LPC product, I would like to provide service for you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your Config function:&lt;BR /&gt;GUIDRV_FlexColor_SetFunc(pDevice, &amp;amp;PortAPI, GUIDRV_FLEXCOLOR_F66714, GUIDRV_FLEXCOLOR_M16C0B8);&lt;BR /&gt;This calling is correct according to the emwin lib. &lt;BR /&gt;But I think the most important code is the static void _InitController(void), this function include the LCD driver initialization code.&lt;BR /&gt;If this code is not correct, your LCD screen won't work.&lt;BR /&gt;So, did you try to call the initialization code directly, and not call the emwin lib, then display your LCD with bare bone code?&lt;BR /&gt;Just make sure your LCD driver initialization code is working, then add the emwin lib will be more easier.&lt;BR /&gt;Please checking your LCD driver initialization code, and test it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;BR /&gt;If you still have problem, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2016 05:47:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-Initialization-for-GUIDRV-FLEXCOLOR-driver/m-p/600317#M23288</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-10-27T05:47:59Z</dc:date>
    </item>
  </channel>
</rss>

