Charles Reese

5329evb/3.6 LCD kit - LCDC Graphic WIndow

Discussion created by Charles Reese on May 11, 2007
Latest reply on Jun 2, 2009 by Jackson James
I have the display working, but can't seem to get the graphic window functionality going.  I am running the display in 16 bpp mode.

Here is the graphic window initialization code (to create a 64x64 graphic window):

    MCF_LCDC_LGWSAR = (unsigned long)videoMemoryGW;
    MCF_LCDC_LGWSR = MCF_LCDC_LGWSR_GWW(64/16) | MCF_LCDC_LGWSR_GWH(64);
    MCF_LCDC_LGWVPWR = 64/2;
    MCF_LCDC_LGWDCR = MCF_LCDC_LGWDCR_GWHM(4) | MCF_LCDC_LGWDCR_GWTM(8);

    MCF_LCDC_LGWPR = MCF_LCDC_LGWPR_GWXP(0) | MCF_LCDC_LGWPR_GWYP(0);

    MCF_LCDC_LGWCR = MCF_LCDC_LGWCR_GWAV(255) | MCF_LCDC_LGWCR_GWE;

The video memory area referenced is initialized to 0xFFFF (white).

Here are the register values as shown in the debugger:

LCD_GWSAR   0x400E894C
LCD_GWSR    0x00400040
LCD_GWVPW   0x00000020
LCD_GWPOR   0x00000000
LCD_GWPR    0x00000000
LCD_GWCR    0xFF400000
LCD_GWDCR   0x00040008

I am perplexed as to why the graphic window is not visible.  Is there anything outside the LCDC graphic window registers that must be configured to enable it?

Outcomes