void NV3030B_ HSD2.01-IPS_Initial(void) { RST=1; Delay_ms(10); RST=0; Delay_ms(200); RST=1; Delay_ms(120); NV3030B_MCU8_8080_CMD(0xfd);//private_access NV3030B_MCU8_8080_DAT(0x06); NV3030B_MCU8_8080_DAT(0x08); ////osc 11.2K 45.87M //NV3030B_MCU8_8080_CMD(0x60);// //NV3030B_MCU8_8080_DAT(0x00);//osc_user_adj[3:0] 08 //NV3030B_MCU8_8080_DAT(0x00);// //NV3030B_MCU8_8080_DAT(0x09);//01 NV3030B_MCU8_8080_CMD(0x61);// NV3030B_MCU8_8080_DAT(0x07);// NV3030B_MCU8_8080_DAT(0x07);// NV3030B_MCU8_8080_CMD(0x73);// NV3030B_MCU8_8080_DAT(0x70);// NV3030B_MCU8_8080_CMD(0x73);// NV3030B_MCU8_8080_DAT(0x00);//07 //bias NV3030B_MCU8_8080_CMD(0x62);//bias setting NV3030B_MCU8_8080_DAT(0x00);//01 NV3030B_MCU8_8080_DAT(0x44);//04 44 NV3030B_MCU8_8080_DAT(0x40);//44 65 40 NV3030B_MCU8_8080_CMD(0x63);// NV3030B_MCU8_8080_DAT(0x41);// NV3030B_MCU8_8080_DAT(0x07);// NV3030B_MCU8_8080_DAT(0x12);// NV3030B_MCU8_8080_DAT(0x12);// NV3030B_MCU8_8080_CMD(0x64);// NV3030B_MCU8_8080_DAT(0x37);// //VSP NV3030B_MCU8_8080_CMD(0x65);//Pump1=4.7MHz //PUMP1 VSP NV3030B_MCU8_8080_DAT(0x09);//D6-5:pump1_clk[1:0] clamp 28 2b NV3030B_MCU8_8080_DAT(0x10);//6.26 NV3030B_MCU8_8080_DAT(0x21); //VSN NV3030B_MCU8_8080_CMD(0x66); //pump=2 AVCL NV3030B_MCU8_8080_DAT(0x09); //clamp 08 0b 09 NV3030B_MCU8_8080_DAT(0x10); //10 NV3030B_MCU8_8080_DAT(0x21); //add source_neg_time NV3030B_MCU8_8080_CMD(0x67);//pump_sel NV3030B_MCU8_8080_DAT(0x21);//21 20 NV3030B_MCU8_8080_DAT(0x40); //gamma vap/van NV3030B_MCU8_8080_CMD(0x68);//gamma vap/van NV3030B_MCU8_8080_DAT(0x9C);//90 NV3030B_MCU8_8080_DAT(0x30);//30 NV3030B_MCU8_8080_DAT(0x21);//17 NV3030B_MCU8_8080_DAT(0x27);// NV3030B_MCU8_8080_CMD(0xb1);//frame rate NV3030B_MCU8_8080_DAT(0x0F);//0x0f fr_h[5:0] 0F NV3030B_MCU8_8080_DAT(0x02);//0x02 fr_v[4:0] 02 NV3030B_MCU8_8080_DAT(0x02);//0x04 fr_div[2:0] 03 NV3030B_MCU8_8080_CMD(0xB4); NV3030B_MCU8_8080_DAT(0x01); //00 ////porch NV3030B_MCU8_8080_CMD(0xB5); NV3030B_MCU8_8080_DAT(0x02);//0x02 vfp[6:0] NV3030B_MCU8_8080_DAT(0x02);//0x02 vbp[6:0] NV3030B_MCU8_8080_DAT(0x0a);//0x0A hfp[6:0] NV3030B_MCU8_8080_DAT(0x14);//0x14 hbp[6:0] NV3030B_MCU8_8080_CMD(0xB6); NV3030B_MCU8_8080_DAT(0x04);// NV3030B_MCU8_8080_DAT(0x01);// NV3030B_MCU8_8080_DAT(0x9f);// NV3030B_MCU8_8080_DAT(0x00);// NV3030B_MCU8_8080_DAT(0x02);// ////gamme sel NV3030B_MCU8_8080_CMD(0xdf);// NV3030B_MCU8_8080_DAT(0x11);//gofc_gamma_en_sel=1 ////gamma_test1 A1#_wangly //3030b_gamma_new_12.18 //GAMMA---------------------------------///////////// NV3030B_MCU8_8080_CMD(0xE0); NV3030B_MCU8_8080_DAT(0x05);//pkp0[4:0] V3 NV3030B_MCU8_8080_DAT(0x05);//pkp0[4:0] V3 NV3030B_MCU8_8080_DAT(0x10);//pkp1[4:0] V7 NV3030B_MCU8_8080_DAT(0x0E);//pkp2[4:0] V21 NV3030B_MCU8_8080_DAT(0x10);//pkp3[4:0] V29 // NV3030B_MCU8_8080_DAT(0x0F);//pkp4[4:0] V37 NV3030B_MCU8_8080_DAT(0x13);//pkp5[4:0] V45 NV3030B_MCU8_8080_DAT(0x18);//pkp6[4:0] V56 NV3030B_MCU8_8080_CMD(0xE3); NV3030B_MCU8_8080_DAT(0x18);//pkn0[4:0] V60 NV3030B_MCU8_8080_DAT(0x13);//pkn1[4:0] V56 NV3030B_MCU8_8080_DAT(0x0F);//pkn2[4:0] V45 NV3030B_MCU8_8080_DAT(0x0F);//pkn3[4:0] V37 NV3030B_MCU8_8080_DAT(0x10);//pkn4[4:0] V29 // NV3030B_MCU8_8080_DAT(0x09);//pkn5[4:0] V21 NV3030B_MCU8_8080_DAT(0x07);//pkn6[4:0] V7 NV3030B_MCU8_8080_DAT(0x05);//pkn7[4:0] V3 NV3030B_MCU8_8080_CMD(0xE1); NV3030B_MCU8_8080_DAT(0x25);//prp0[6:0] V15 NV3030B_MCU8_8080_DAT(0x6B);//prp1[6:0] V51 NV3030B_MCU8_8080_CMD(0xE4); NV3030B_MCU8_8080_DAT(0x6C);//prn0[6:0] V51 NV3030B_MCU8_8080_DAT(0x25);//prn1[6:0] V15 NV3030B_MCU8_8080_CMD(0xE2); NV3030B_MCU8_8080_DAT(0x23);//vrp0[5:0] V0 NV3030B_MCU8_8080_DAT(0x1D);//vrp1[5:0] V1 NV3030B_MCU8_8080_DAT(0x1E);//vrp2[5:0] V2 NV3030B_MCU8_8080_DAT(0x2F);//vrp3[5:0] V61 NV3030B_MCU8_8080_DAT(0x30);//vrp4[5:0] V62 NV3030B_MCU8_8080_DAT(0x3F);//vrp5[5:0] V63 NV3030B_MCU8_8080_CMD(0xE5); NV3030B_MCU8_8080_DAT(0x3f);//vrn0[5:0] V63 NV3030B_MCU8_8080_DAT(0x30);//vrn1[5:0] V62 NV3030B_MCU8_8080_DAT(0x2F);//vrn2[5:0] V61 NV3030B_MCU8_8080_DAT(0x1E);//vrn3[5:0] V2 NV3030B_MCU8_8080_DAT(0x23);//vrn4[5:0] V1 NV3030B_MCU8_8080_DAT(0x22);//vrn5[5:0] V0 //GAMMA---------------------------------///////////// //source NV3030B_MCU8_8080_CMD(0xE6); NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_DAT(0xff);//SC_EN_START[7:0] f0 NV3030B_MCU8_8080_CMD(0xE7); NV3030B_MCU8_8080_DAT(0x01);//CS_START[3:0] 01 NV3030B_MCU8_8080_DAT(0x04);//scdt_inv_sel cs_vp_en NV3030B_MCU8_8080_DAT(0x03);//CS1_WIDTH[7:0] 12 NV3030B_MCU8_8080_DAT(0x03);//CS2_WIDTH[7:0] 12 NV3030B_MCU8_8080_DAT(0x00);//PREC_START[7:0] 06 NV3030B_MCU8_8080_DAT(0x12);//PREC_WIDTH[7:0] 12 NV3030B_MCU8_8080_CMD(0xE8); //source NV3030B_MCU8_8080_DAT(0x00); //VCMP_OUT_EN 81-vcmp/vref_output pad NV3030B_MCU8_8080_DAT(0x70); //chopper_sel[6:4] NV3030B_MCU8_8080_DAT(0x00); //gchopper_sel[6:4] 60 ////gate NV3030B_MCU8_8080_CMD(0xEc); NV3030B_MCU8_8080_DAT(0x52);//47 43 NV3030B_MCU8_8080_CMD(0xF1); NV3030B_MCU8_8080_DAT(0x01);//te_pol tem_extend NV3030B_MCU8_8080_DAT(0x01); NV3030B_MCU8_8080_DAT(0x02); NV3030B_MCU8_8080_CMD(0xF6); NV3030B_MCU8_8080_DAT(0x01); NV3030B_MCU8_8080_DAT(0x30); NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_CMD(0xfd); NV3030B_MCU8_8080_DAT(0xfa); NV3030B_MCU8_8080_DAT(0xfc); NV3030B_MCU8_8080_CMD(0x3a); NV3030B_MCU8_8080_DAT(0x05);//SH 0x66 NV3030B_MCU8_8080_CMD(0x35); NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_CMD(0x36);//bgr_[3] NV3030B_MCU8_8080_DAT(0x00);//c0 NV3030B_MCU8_8080_CMD(0x11); Delayms(200); NV3030B_MCU8_8080_CMD(0x21); NV3030B_MCU8_8080_CMD(0x29); Delayms(20); } /*====================================================*/ void address(void) { NV3030B_MCU8_8080_CMD(0x2A); //Column Address Set NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_DAT(0xEF); /* 240 */ NV3030B_MCU8_8080_CMD(0x2B); //Row Address Set NV3030B_MCU8_8080_DAT(0x00); NV3030B_MCU8_8080_DAT(0x0C); /* 12 */ NV3030B_MCU8_8080_DAT(0x01); NV3030B_MCU8_8080_DAT(0x33); /* 307 */ NV3030B_MCU8_8080_CMD(0x2C); } /**********SLEEP IN***************/ void EnterSleep(void) { NV3030B_MCU8_8080_CMD(0x28); NV3030B_MCU8_8080_CMD(0x10); Delayms(120); } /**********SLEEP OUT***************/ void ExitSleep(void) { NV3030B_MCU8_8080_CMD(0x11); Delayms(120); NV3030B_MCU8_8080_CMD(0x29); Delayms(10); }