This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

LCD initialization for Himax HX8238 driven LCDs

Other Parts Discussed in Thread: OMAP3530

I am writing LCD drivers for a LCD panel (part number: PT0353224T-A802) that is driven by the Himax HX8238 IC. There is a piece of LCD initialization code given in the data sheet, which I am copying below:

RESET(0);
Delayms(100);
RESET(1);
Delayms(100);

WriteRegHX8238(0x0001); WriteDatHX8238(0x6300); //Driver Output Control
WriteRegHX8238(0x0002); WriteDatHX8238(0x0200); //LCD-Driving-Waveform Control

WriteRegHX8238(0x0003); WriteDatHX8238(0x7166); //Power Control 1
WriteRegHX8238(0x0004); WriteDatHX8238(0x0447); //Input Data and Color Filter Control

WriteRegHX8238(0x0005); WriteDatHX8238(0xbcd4); //Function Control

WriteRegHX8238(0x000A); WriteDatHX8238(0x3f08); //Contrast/Brightness Control
WriteRegHX8238(0x000B); WriteDatHX8238(0xd400); //Frame Cycle Control

.......

However, I do not see any equivalent display controller registers to write the driving IC registers so the lcd panel can be initialized properly. For example, there are no DISPLAY CONTROLLER registers to control the LCD-Driving-Waveform, Power Control, Input Data Color Filter etc.. Is this a LCD panel that I can not use on OMAP3530 or is there any way of initializing the LCD nicely.

Can anyone help me please?

 

 

  • Krishna,

    All register programming is dpne through the SPI port of the LCD so you will need to connect one of the OMAP SPI ports to the SPI port of the LCD. This is not very clear from the LCD data sheet but all the registers are detailed in the controller data sheet.

    The example code is really just saying that you should write 0x6300 to register 0x01, 0x0200 to register 0x02, 0x7166 to register 0x03 etc...

    The LCD pixel data should be connected to the OMAP parallel CMOS LCD port in 24 bit mode utilizing red[7:0], blue[7:0], green[7:0], hsync, vsync, den and pclk.

    OMAP will need to be configured to output the correct pixel clock and resolution but this may already be one of the Linux options if you are using Linux as your OS.

    This LCD should be OK for connection to OMAP.

    Kind regards,

    Steve

  • Hi,

      Can anyone tell me if there is a way to configure OMAP to write 24 bits of LCD data in wince? If not, what piece of code needs to be changed for that. Hoping to get help from you guys..