very question
Advanced Member level 4
- Joined
- Nov 11, 2012
- Messages
- 100
- Helped
- 4
- Reputation
- 8
- Reaction score
- 4
- Trophy points
- 1,298
- Location
- Iran
- Activity points
- 1,906
Hello bianchiyes there's but what I have, is 3.2" with MCS51
Hello bianchi
my lcd is TFT"2.4" with ILI9325 chip driver
where can i found this library?
void Lcd_Write_Com(char VH,char VL) //·¢ËÍÃüÁî
{
LCD_RS=0;
LCD_Writ_Bus(VH,VL);
}
void Lcd_Write_Data(char VH,char VL) //·¢ËÍÊý¾Ý
{
LCD_RS=1;
LCD_Writ_Bus(VH,VL);
}
void Lcd_Init(void)
{
LCD_REST=1;
delayms(5);
LCD_REST=0;
delayms(5);
LCD_REST=1;
LCD_CS=1;
LCD_RD=1;
LCD_WR=1;
delayms(5);
LCD_CS =0; //´ò¿ªÆ¬Ñ¡Ê¹ÄÜ
//************* Start Initial Sequence **********//
Lcd_Write_Com(0x00,0xE5); Lcd_Write_Data(0x78,0xF0); // set SRAM internal timing
Lcd_Write_Com(0x00,0x01); Lcd_Write_Data(0x01,0x00); // set SS and SM bit
Lcd_Write_Com(0x00,0x02); Lcd_Write_Data(0x07,0x00); // set 1 line inversion
Lcd_Write_Com(0x00,0x03); Lcd_Write_Data(0x10,0x30); // set GRAM write direction and BGR=1.
Lcd_Write_Com(0x00,0x04); Lcd_Write_Data(0x00,0x00); // Resize register
Lcd_Write_Com(0x00,0x08); Lcd_Write_Data(0x02,0x07); // set the back porch and front porch
Lcd_Write_Com(0x00,0x09); Lcd_Write_Data(0x00,0x00); // set non-display area refresh cycle ISC[3:0]
Lcd_Write_Com(0x00,0x0A); Lcd_Write_Data(0x00,0x00); // FMARK function
Lcd_Write_Com(0x00,0x0C); Lcd_Write_Data(0x00,0x00); // RGB interface setting
Lcd_Write_Com(0x00,0x0D); Lcd_Write_Data(0x00,0x00); // Frame marker Position
Lcd_Write_Com(0x00,0x0F); Lcd_Write_Data(0x00,0x00); // RGB interface polarity
//*************Power On sequence ****************//
Lcd_Write_Com(0x00,0x10); Lcd_Write_Data(0x00,0x00); // SAP, BT[3:0], AP, DSTB, SLP, STB
Lcd_Write_Com(0x00,0x11); Lcd_Write_Data(0x00,0x07); // DC1[2:0], DC0[2:0], VC[2:0]
Lcd_Write_Com(0x00,0x12); Lcd_Write_Data(0x00,0x00); // VREG1OUT voltage
Lcd_Write_Com(0x00,0x13); Lcd_Write_Data(0x00,0x00); // VDV[4:0] for VCOM amplitude
Lcd_Write_Com(0x00,0x07); Lcd_Write_Data(0x00,0x01);
delayms(50); // Dis-charge capacitor power voltage
Lcd_Write_Com(0x00,0x10); Lcd_Write_Data(0x10,0x90); // 1490//SAP, BT[3:0], AP, DSTB, SLP, STB
Lcd_Write_Com(0x00,0x11); Lcd_Write_Data(0x02,0x27); // DC1[2:0], DC0[2:0], VC[2:0]
delayms(50); // Delay 50ms
Lcd_Write_Com(0x00,0x12); Lcd_Write_Data(0x00,0x1F); //001C// Internal reference voltage= Vci;
delayms(50); // Delay 50ms
Lcd_Write_Com(0x00,0x13); Lcd_Write_Data(0x15,0x00); //0x1000//1400 Set VDV[4:0] for VCOM amplitude 1A00
Lcd_Write_Com(0x00,0x29); Lcd_Write_Data(0x00,0x27); //0x0012 //001a Set VCM[5:0] for VCOMH //0x0025 0034
Lcd_Write_Com(0x00,0x2B); Lcd_Write_Data(0x00,0x0D); // Set Frame Rate 000C
delayms(50); // Delay 50ms
Lcd_Write_Com(0x00,0x20); Lcd_Write_Data(0x00,0x00); // GRAM horizontal Address
Lcd_Write_Com(0x00,0x21); Lcd_Write_Data(0x00,0x00); // GRAM Vertical Address
// ----------- Adjust the Gamma Curve ----------//
Lcd_Write_Com(0x00,0x30); Lcd_Write_Data(0x00,0x00);
Lcd_Write_Com(0x00,0x31); Lcd_Write_Data(0x07,0x07);
Lcd_Write_Com(0x00,0x32); Lcd_Write_Data(0x03,0x07);
Lcd_Write_Com(0x00,0x35); Lcd_Write_Data(0x02,0x00);
Lcd_Write_Com(0x00,0x36); Lcd_Write_Data(0x00,0x08);//0207
Lcd_Write_Com(0x00,0x37); Lcd_Write_Data(0x00,0x04);//0306
Lcd_Write_Com(0x00,0x38); Lcd_Write_Data(0x00,0x00);//0102
Lcd_Write_Com(0x00,0x39); Lcd_Write_Data(0x07,0x07);//0707
Lcd_Write_Com(0x00,0x3C); Lcd_Write_Data(0x00,0x02);//0702
Lcd_Write_Com(0x00,0x3D); Lcd_Write_Data(0x1D,0x04);//1604
//------------------ Set GRAM area ---------------//
Lcd_Write_Com(0x00,0x50); Lcd_Write_Data(0x00,0x00); // Horizontal GRAM Start Address
Lcd_Write_Com(0x00,0x51); Lcd_Write_Data(0x00,0xEF); // Horizontal GRAM End Address
Lcd_Write_Com(0x00,0x52); Lcd_Write_Data(0x00,0x00); // Vertical GRAM Start Address
Lcd_Write_Com(0x00,0x53); Lcd_Write_Data(0x01,0x3F); // Vertical GRAM Start Address
Lcd_Write_Com(0x00,0x60); Lcd_Write_Data(0xA7,0x00); // Gate Scan Line
Lcd_Write_Com(0x00,0x61); Lcd_Write_Data(0x00,0x01); // NDL,VLE, REV
Lcd_Write_Com(0x00,0x6A); Lcd_Write_Data(0x00,0x00); // set scrolling line
//-------------- Partial Display Control ---------//
Lcd_Write_Com(0x00,0x80); Lcd_Write_Data(0x00,0x00);
Lcd_Write_Com(0x00,0x81); Lcd_Write_Data(0x00,0x00);
Lcd_Write_Com(0x00,0x82); Lcd_Write_Data(0x00,0x00);
Lcd_Write_Com(0x00,0x83); Lcd_Write_Data(0x00,0x00);
Lcd_Write_Com(0x00,0x84); Lcd_Write_Data(0x00,0x00);
Lcd_Write_Com(0x00,0x85); Lcd_Write_Data(0x00,0x00);
//-------------- Panel Control -------------------//
Lcd_Write_Com(0x00,0x90); Lcd_Write_Data(0x00,0x10);
Lcd_Write_Com(0x00,0x92); Lcd_Write_Data(0x06,0x00);
Lcd_Write_Com(0x00,0x07); Lcd_Write_Data(0x01,0x33); // 262K color and display ON
LCD_CS =1; //¹Ø±ÕƬѡʹÄÜ
}
thanks for you reply
i need schematic for how this type of lcd pins connect to microcontrollers
yes I have it,I want example of thatAnyway do you have the LCD itself in your hand ?
yes I have it,I want example of that
Hi jayanthPost the datasheet of TFT.
I know that,
pin 28 to 33 are for touch screenHi
I found this Pin Description but I don't know is it true or not?
which pins for touch screen?
View attachment 87864
what type of TFT do you want ?hello ;
please anyone have a schematic for tft lcd with pic ??((how can i connect it with pic please help me ))
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?