void LCD_Initialize(void)
{
LCD_RD_SET;
LCD_CS_CLR;
wr_cmd_date(0x0001,0x0100);
wr_cmd_date(0x0002,0x0700);
wr_cmd_date(0x0003,0x1030);
wr_cmd_date(0x0004,0x0000);
wr_cmd_date(0x0008,0x0207);
wr_cmd_date(0x0009,0x0000);
wr_cmd_date(0x000A,0x0000);
wr_cmd_date(0x000C,0x0000);
wr_cmd_date(0x000D,0x0000);
wr_cmd_date(0x000F,0x0000);
//power on sequence VGHVGL
wr_cmd_date(0x0010,0x0000);
wr_cmd_date(0x0011,0x0007);
wr_cmd_date(0x0012,0x0000);
wr_cmd_date(0x0013,0x0000);
//vgh
wr_cmd_date(0x0010,0x1290);
wr_cmd_date(0x0011,0x0227);
delayms(100);
//vregiout
wr_cmd_date(0x0012,0x001d); //0x001b
delayms(100);
//vom amplitude
wr_cmd_date(0x0013,0x1500);
delayms(100);
//vom H
wr_cmd_date(0x0029,0x0018);
wr_cmd_date(0x002B,0x000D);
//gamma
wr_cmd_date(0x0030,0x0004);
wr_cmd_date(0x0031,0x0307);
wr_cmd_date(0x0032,0x0002);// 0006
wr_cmd_date(0x0035,0x0206);
wr_cmd_date(0x0036,0x0408);
wr_cmd_date(0x0037,0x0507);
wr_cmd_date(0x0038,0x0204);//0200
wr_cmd_date(0x0039,0x0707);
wr_cmd_date(0x003C,0x0405);// 0504
wr_cmd_date(0x003D,0x0F02);
//ram
wr_cmd_date(0x0050,0x0000);
wr_cmd_date(0x0051,0x00EF);
wr_cmd_date(0x0052,0x0000);
wr_cmd_date(0x0053,0x013F);
wr_cmd_date(0x0060,0xA700);
wr_cmd_date(0x0061,0x0001);
wr_cmd_date(0x006A,0x0000);
//
wr_cmd_date(0x0080,0x0000);
wr_cmd_date(0x0081,0x0000);
wr_cmd_date(0x0082,0x0000);
wr_cmd_date(0x0083,0x0000);
wr_cmd_date(0x0084,0x0000);
wr_cmd_date(0x0085,0x0000);
//
wr_cmd_date(0x0090,0x0010);
wr_cmd_date(0x0093,0x0003);
wr_cmd_date(0x0095,0x0110);
wr_cmd_date(0x0097,0x0000);
wr_cmd_date(0x0098,0x0000);
wr_cmd_date(0x0007,0x0133);