Hello,

I'm using i.MX21 on the ADS eval board from freescale. I try to drive a
monochrome display. The BSP is delivered to support a sharp display and
I've modified initialisation code for LCD in OAL but as soon as I
configure the monochrome mode (clear TFT and COLOR bits of LPCR
register) the FLM and LP signal are stopped ?

any clue, any experience in this domain ...

If you have already a configuration that works for a monochrome display
it could help.

Any advises are welcome

thanks in advance

Nyrbyk

Re: Using i.MX21 with a monochrome display by creative

creative
Tue Dec 19 21:09:17 CST 2006


I have support a NEC VGA panel in OAL/display.c,
only need to modify as below,

pLCDC->PCR =
#ifdef VGA_DISPLAY // for NEC VGA panel
(LCDC_PCR_SHARP, LCDC_PCR_SHARP_DISABLE) |
(LCDC_PCR_PIXPOL, LCDC_PCR_PIXPOL_ACTIVE_HIGH) |

#else // for SHARP QVGA panel
(LCDC_PCR_SHARP, LCDC_PCR_SHARP_ENABLE) |
(LCDC_PCR_PIXPOL, LCDC_PCR_PIXPOL_ACTIVE_LOW) |
#endif
(LCDC_PCR_SCLKSEL, LCDC_PCR_SCLKSEL_ENABLE) |
(LCDC_PCR_ACDSEL, LCDC_PCR_ACDSEL_USE_LPHSYNC) |
(LCDC_PCR_REV_VS, LCDC_PCR_REV_VS_NORMAL) |
(LCDC_PCR_SWAP_SEL, LCDC_PCR_SWAP_SEL_16BPP) |
(LCDC_PCR_END_SEL, LCDC_PCR_END_SEL_LITTLE_ENDIAN) |
(LCDC_PCR_SCLKIDLE, LCDC_PCR_SCLKIDLE_DISABLE) |
(LCDC_PCR_OEPOL, LCDC_PCR_OEPOL_ACTIVE_HIGH) |
(LCDC_PCR_CLKPOL, LCDC_PCR_CLKPOL_NEG_EDGE) |
(LCDC_PCR_LPPOL, LCDC_PCR_LPPOL_ACTIVE_HIGH) |
(LCDC_PCR_FLMPOL, LCDC_PCR_FLMPOL_ACTIVE_HIGH) |
(LCDC_PCR_PBSIZ, LCDC_PCR_PBSIZ_8BIT) |
(LCDC_PCR_COLOR, LCDC_PCR_COLOR_COLOR) |
(LCDC_PCR_TFT, LCDC_PCR_TFT_ACTIVE) |
(LCDC_PCR_PCD, (LCDRefClk, PIXEL_CLOCK));

maybe you can try it.


Re: Using i.MX21 with a monochrome display by nyrbyk

nyrbyk
Wed Dec 20 01:50:49 CST 2006

Thanks for example, my problem seems to be due to the use of a 4bpp
mode and a 4 bit bus width.
It's Ok if I use 2bpp and 4bits bus ??
According to i.MX21 doc 4bpp in grayscale should be possible.

Perhaps it will push us to use color screen (:-))

Thanks

Nyrbyk