EA's 7" LCD interface

5 replies [Last post]
e135193
Offline
Joined: 2012-03-13

Hello

Does EA's 7" LCD has an extra SPI configuration pin ?

I come accross code line like below. I guess that these bunch of code is required to initialize the LCD. As I trying to find the datasheet of the EA's 7" LCD. I found attached LCD datasheet which does not have an extra SPI pins.

Does any one have the datasheet of EA's 7" LCD ? Or is the one that I found correct ?

I'm trying to change the emWin 5.16 code for my 7" LCD which do not have an SPI interface. Does someone help ?

Engin

static void _InitTrulyLCD(void) {
//
// Power LCD
//
LPC_GPIO2->DIR |= 1; // Set to output
LPC_GPIO2->SET = 1; // Output LCD power
//
// Set display CMD/DATA register select pin to output high
//
LPC_GPIO0->DIR |= (1 << LCD_REG_BIT);
//
// Display init sequence
//
_WriteLcdReg(0x00,0x0001);
_DelayMs(15 * 2);
_WriteLcdReg(0x03,0x6E3E); // AAAC
_WriteLcdReg(0x0C,0x0007); // 0002
_WriteLcdReg(0x0D,0x000E); // 000A
_WriteLcdReg(0x0E,0x2C00); // 2C00
_WriteLcdReg(0x1E,0x00AE); // 00B8
_DelayMs(15 * 2);

_WriteLcdReg(0x07,0x0021);
_DelayMs(50 * 2);
_WriteLcdReg(0x07,0x0023);
_DelayMs(50 * 2);
_WriteLcdReg(0x07,0x0033);
_DelayMs(50 * 2);

_WriteLcdReg(0x01,0x2B3F);
_WriteLcdReg(0x02,0x0600);
_WriteLcdReg(0x10,0x0000);
_DelayMs(15 * 2);
_WriteLcdReg(0x11,0xC5B0); // 60B0: RGB I/R
_DelayMs(20 * 2);
_WriteLcdReg(0x15,0x00D0);

_WriteLcdReg(0x05,0x0000);
_WriteLcdReg(0x06,0x0000);
_WriteLcdReg(0x16,0xEF1C);
_WriteLcdReg(0x17,0x0003);
_WriteLcdReg(0x07,0x0233);
_WriteLcdReg(0x0B,0x5310);
_WriteLcdReg(0x0F,0x0000);
_WriteLcdReg(0x25,0xE000);
_DelayMs(20 * 2);

_WriteLcdReg(0x41,0x0000);
_WriteLcdReg(0x42,0x0000);
_WriteLcdReg(0x48,0x0000);
_WriteLcdReg(0x49,0x013F);
_WriteLcdReg(0x44,0xEF00);
_WriteLcdReg(0x45,0x0000);
_WriteLcdReg(0x46,0x013F);
_WriteLcdReg(0x4A,0x0000);
_WriteLcdReg(0x4B,0x0000);
_DelayMs(20 * 2);

_WriteLcdReg(0x30,0x0707);
_WriteLcdReg(0x31,0x0600); // 0704
_WriteLcdReg(0x32,0x0005); // 0204
_WriteLcdReg(0x33,0x0402); // 0201
_WriteLcdReg(0x34,0x0203);
_WriteLcdReg(0x35,0x0204);
_WriteLcdReg(0x36,0x0204);
_WriteLcdReg(0x37,0x0401); // 0502
_WriteLcdReg(0x3A,0x0302);
_WriteLcdReg(0x3B,0x0500);
_DelayMs(20 * 2);
_WriteLcdReg(0x22,0x0000);
_DelayMs(20 * 2);
}

PreviewAttachmentSize
AT070TN84_V02.pdf449.42 KB
0
Your rating: None

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
mc's picture
mc
Offline
Joined: 2012-05-21

Hi E135193,
If you have LCD from EA you can ask schematics for LCD board from EA. Actually EA1788 BSP works with this LCD. BSP with emWin for EA1788 is at
http://www.lpcware.com/content/nxpfile/nxplpc1788emwin516bspv101.

It is not clear if you are using EA Board or not?

e135193
Offline
Joined: 2012-03-13

Helli mac

i am not using EA's board. i am just trying to port emWin which is already ported for EA's board. What i wanted to know is that what Are these "spi" commands. Because i do not know what type of EA's LCD, i can not modify the emwin code to my LCD. That's Why i wanted to know the LCD.

mc's picture
mc
Offline
Joined: 2012-05-21

Hi e135193,
SPI interface is for touch chip. LPC1788 LCD Controller directly controls LCD in 5:6:5 mode.

e135193
Offline
Joined: 2012-03-13

Hello mc

In the function below, there is a comment like "Display init sequence" Therefore I confused about the ınterface of the LCD.

I'm sure that LCD works in 5:6:5 mode but I think that those configuration lines is not for touch chip. if those SPI interface for touch chip, then why there is a comment like "Display init sequence"

If you think that those lines is for touch chip, then there should be no effect when I comment out all of then. However my CPU crashes.

static void _InitTrulyLCD(void){

//
// Display init sequence
//
_WriteLcdReg(0x00,0x0001);
_DelayMs(15 * 2);
_WriteLcdReg(0x03,0x6E3E); // AAAC
_WriteLcdReg(0x0C,0x0007); // 0002
_WriteLcdReg(0x0D,0x000E); // 000A
_WriteLcdReg(0x0E,0x2C00); // 2C00
_WriteLcdReg(0x1E,0x00AE); // 00B8 .......

}

engin

mc's picture
mc
Offline
Joined: 2012-05-21

Hi Engin,
The BSP can be used with Embedded Artists 7" TFT,4.3"TFT and 3.2" QVGA LCD. 3.2" QVGA LCD need to be initialized using SPI.

I am not sure why Your code is crashing. May be you want to share your code and schematics.

Please also go to Embedded Artist's Website. Below is the link of 7" TFT. You can also look documentation for other LCDs
http://www.embeddedartists.com/products/displays/lcdb_70.php

feedback