<?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: emWin can not read from SSD1963? in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-can-not-read-from-SSD1963/m-p/710253#M28656</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;DIV class="" style="margin: 20px 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline; overflow: hidden; word-wrap: break-word; line-height: 1.73;"&gt;&lt;DIV class="" style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;Hi,&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;I redirected this issue to SEGGER forum. Please check the following thread&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&lt;A class="link-titled" href="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=4411" title="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=4411"&gt;emWin can not read from SSD1963? - emWin related - SEGGER Forum&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&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;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="" data-display-overall="false" data-helpful-count="1" data-object-id="873207" data-object-type="2" data-overall-count="1" style="margin: 20px 0px 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #138700; fill: #138700; display: block; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;1 person found this helpful&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2017 20:31:12 GMT</pubDate>
    <dc:creator>soledad</dc:creator>
    <dc:date>2017-09-07T20:31:12Z</dc:date>
    <item>
      <title>emWin can not read from SSD1963?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-can-not-read-from-SSD1963/m-p/710252#M28655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;I am using the NXP emWin (5.38a) library running on an LPC1768 to drive a 800 x 480 pixel LCD panel using a Solomon SSD1963 controller. I have configured emWin to use the FlexColor driver with 16 bpp (565 format), no cache, and a 16 bit parallel bus, and allocated 30K bytes of RAM for emWin. I can execute various commands that write to the display (GUI_FillCircle, GUI_Drawline, &lt;SPAN style="background: lightgrey; color: black;"&gt;GUI_DispString&lt;/SPAN&gt;&lt;SPAN style="color: black;"&gt;), but not commands that read-modify-write to the display (GUI_InvertRect). The display is distorted (the width of all shapes is reduced by half) and the colors are not properly inverted.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: black;"&gt;It seems that emWin performs &lt;STRONG&gt;&lt;EM&gt;two&lt;/EM&gt;&lt;/STRONG&gt; 16-bit reads for each pixel, saving the first 16-bit word as the Red value and the second as the Blue value. Nothing is read for the Green value, which defaults to zero.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: black;"&gt;Because two pixels (words) are read from the SSD1963 and combined into one pixel in the emWin memory, the shape width is reduced by half. Also the color values are interpreted incorrectly.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: black;"&gt;Things get more interesting when working with text. If I first set the text mode to XOR with GUI_SetTextMode(GUI_TM_XOR) and then display text with &lt;SPAN style="background: lightgrey;"&gt;GUI_DispString&lt;/SPAN&gt;, it appears that emWin performs &lt;STRONG&gt;&lt;EM&gt;four&lt;/EM&gt;&lt;/STRONG&gt; 16-bit reads for each pixel; the first two reads are dummy, the next two are the Red and Blue values as above, and Green again defaults to zero.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: black;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="color: black;"&gt;I believe that I have configured emWin correctly, since all the write routines are working properly. Is this a bug in emWin? I suspect so, since the read operations are inconsistent without changing the configuration. Has anyone out there been able to perform read-modify-write operations using emWin on an SSD1963?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in 0in 0pt;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 19:47:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-can-not-read-from-SSD1963/m-p/710252#M28655</guid>
      <dc:creator>philiphills</dc:creator>
      <dc:date>2017-08-29T19:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: emWin can not read from SSD1963?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-can-not-read-from-SSD1963/m-p/710253#M28656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;DIV class="" style="margin: 20px 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline; overflow: hidden; word-wrap: break-word; line-height: 1.73;"&gt;&lt;DIV class="" style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;Hi,&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;I redirected this issue to SEGGER forum. Please check the following thread&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&lt;A class="link-titled" href="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=4411" title="http://forum.segger.com/index.php?page=Thread&amp;amp;threadID=4411"&gt;emWin can not read from SSD1963? - emWin related - SEGGER Forum&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin: 0px; padding: 0px; border: 0px; font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit; vertical-align: baseline;"&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;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV style="margin: 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #51626f; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt; &lt;/DIV&gt;&lt;P&gt;&lt;SPAN class="" data-display-overall="false" data-helpful-count="1" data-object-id="873207" data-object-type="2" data-overall-count="1" style="margin: 20px 0px 0px; padding: 0px; border: 0px; font-weight: normal; font-style: normal; font-size: 14px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; vertical-align: baseline; color: #138700; fill: #138700; display: block; font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;1 person found this helpful&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2017 20:31:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-can-not-read-from-SSD1963/m-p/710253#M28656</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2017-09-07T20:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: emWin can not read from SSD1963?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-can-not-read-from-SSD1963/m-p/710254#M28657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After Sol redirected this question to the SEGGER forum, it was answered by a SEGGER super moderator. At his suggestion, I added the following line after setting up the FlexColor driver for the SSD1963:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;GUIDRV_FlexColor_SetReadFunc66720_B16(pDevice, GUIDRV_FLEXCOLOR_READ_FUNC_II);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;According to the emWin User Manual, this configures the FlexColor driver to use 2 cycles and no data conversion, instead of 3 cycles with data conversion (the default.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After making the change, the graphical commands [ GUI_InvertRect() ] now work correctly. However, the text commands [ GUI_SetTextMode(GUI_TM_XOR) ]&amp;nbsp;&amp;nbsp;display the wrong color text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I guess I have half of my answer....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 18:50:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/emWin-can-not-read-from-SSD1963/m-p/710254#M28657</guid>
      <dc:creator>philiphills</dc:creator>
      <dc:date>2017-09-25T18:50:22Z</dc:date>
    </item>
  </channel>
</rss>

