You are on page 1of 35

GC9312C

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C
Application Notes

Version:03
Date:March 05, 2015
GALAXYCORE CORP.
11F, Building2 No.560 Shengxia Road,
Pudong New Area,shanghai,P.R.China
Tel:86-21-51083755 ,Fax:86-21-58968522
http://www.gcoreinc.com

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

contents
1. HSD3.2/2.8/2.4 PANAL .............................................................. 2
1.1 HSD3.2/2.8/2.4FPC Application Circuit ............................................... 2
1.2 HSD3.2Init Code ................................................................................. 3
1.3 HSD2.8Init Code ................................................................................. 9
1.4 HSD2.4Init Code ............................................................................... 14
2. CMO2.4 PANAL ....................................................................... 20
2.1 CMO2.4FPC Application Circuit ........................................................ 20
2.2 CMO2.4Init Code .............................................................................. 21
3. IVO2.4 PANAL ........................................................................... 27
3.1 IVO2.4FPC Application Circuit........................................................... 27
3.2 IVO2.4 Init Code ............................................................................... 28
4. Revision History ......................................................................... 34

PAGE 1 OF 34

FMARK
K6
K5
K4
K3
K2
K1
A
GND
VCC
IOVCC
NC
GND
D15
D14
D13
D12
D11
D10
D9
D8
D7
D6
D5
D4
D3
D2
D1
D0
CS
RS
WR
RD
RESET
VCC
YD
XL
YU
XR

39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
CS
RS
WR
RD
RESET
VCC

GND
D15
D14
D13
D12
D11
D10
D9
D8

FMARK
K6
K5
K4
K3
K2
K1
A
GND
VCC
IOVCC

134
133
132
131
130
VCOM
129
128
127
126
125
VCOM
124
1uf 0402 10V C1C22P 123
C22M122
1uf 0402 10V C2C21P 121
C21M120
1uf 0603 25V C3VGH 119
118
1uf 0603 25V
C4VGL 117
116
115
GND
1uf 0402 10V C5AVDD114
113
1uf 0402 10V C6C12P 112
111
110
C12M 109
108
107
106
105
104
103
102
101
100
GND
99
98
1uf 0402 10V
C7VCC
GND
97
96
95
94
93
GND
92
91
90
89
88
87
86
85
84
83
82
81
80
IOVCC
79
IOVCC
78
GND
77
76
IOVCC
RESET
75
CS
74
RS
73
WR
72
RD
71
70
69
68
67
GND
66
65
64
63
62
61
60
GND
59
58
57
56
D8
55
D9
54
53
D10
D11
52
51
D12
50
D13
49
D14
48
D15
47
FMARK
46
45
44
43
IOVCC
42
41
40
39
38
37
36
IOVCC
35
34
1uf 0402 10V
33
C8VCORE 32
GND
31
30
29
28
27
26
25
1uf 0402 10V
24
C9VCL
23
GND
22
21
20
19
18
17
16
15
14
13
12
11
10
9
VCOM
8
7
6
5
4
3
VCOM
2
1
DUMMY
NULL
VCOM
VCOM
VCOM
FPC R_IN
FPC R_OUT
TG
VCOM
VCOM
VCOM
C22P
C22M
C21P
C21M
VGH
VGH
VGL
VGL
AVDD
AVDD
AVDD
C12P
C12P
C12P
C12M
C12M
C12M
C11P
C11P
C11P
C11M
C11M
C11M
VCI1
VCI1
VCI1
VCI
VCI
VCI
VCI
VSS3
VSS3
VSS
VSS
VSS
VSSC
VSSC
VSSC
VSSA
VSSA
VSSA
VSSA
VGS
EXTC
IM3
IM2
IM1
IM0
RESX
CSX
DCX
WRX
RDX
VSYNC
HSYNC
ENABLE
DOTCLK
SDA
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
DB8
DB9
DB10
DB11
DB12
DB13
DB14
DB15
DB16
DB17
TE
SDO
BC
BC_CTRL
VDD3_P
DB18
DB19
DB20
DB21
DB22
DB23
VDD3
VDD3
VDD3
VDD3
VDD
VDD
VDD
VDD
VDD
VDD
GVDD
GVDD
GVDD
VCL
VCL
VCL
VCL
C31P
C31P
C31P
C31M
C31M
C31M
DUMMYR1
DUMMYR2
VCOM
VCOM
VCOM
TG
FPC R_IN
FPC R_OUT
VCOM
VCOM
VCOM
NULL
DUMMY

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

LCM
CON39

IM3
IM2
IM1
IM0
MCU-Interface Mode
DB in use

0
0
0
0
8080 MCU 8-bit bus interface I
D[7:0]

8080 MCU 16-bit bus interface I

D[15:0]

8080 MCU 9-bit bus interface I

D[8:0]

8080 MCU 18-bit bus interface I

D[17:0]

3-wire 9-bit data serial interface I

SDAin/out

4-wire 8-bit data serial interface I

SDAin/out

8080 MCU 16-bit bus interface

D[17:10],D[8:1]

8080 MCU 8-bit bus interface

D[17:10]

8080 MCU 18-bit bus interface

D[17:0]

8080 MCU 9-bit bus interface

D[17:9]

3-wire 9-bit data serial interface

SDAin

4-wire 8-bit data serial interface

SDAin SDOout

PAGE 2 OF 34

SDOout

GC9312C

1. HSD3.2/2.8/2.4 PANAL
1.1 HSD3.2/2.8/2.4FPC Application Circuit

9312_hsd3.2/2.8/2.4

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

1.2 HSD3.2Init Code


void Init_LCD(void)
{
//--------------------------- -Reset

Sequence-----------------------------------------//

LCD_nRESET = 1;
delayms(10);
LCD_nRESET = 0;
delayms(100);
LCD_nRESET = 1;
delayms(120); // Delay 120ms
//--------------------------------end

Reset

Sequence-----------------------------//

//------------------------------display control setting----------------------------//


LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x20);
LCD_ GC9312_CMD(0x36);
LCD_ GC9312_DATA(0x48);
LCD_ GC9312_CMD(0x3a);
LCD_ GC9312_DATA(0x05);
PAGE 3 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_CMD(0xa3); //frame rate


LCD_ GC9312_DATA(0x08);
//------------------------end display control setting--------------------------//
//-----------------------Power Control Registers Initial----------------------//
LCD_ GC9312_CMD(0xa4);
LCD_ GC9312_DATA(0x13);
LCD_ GC9312_CMD(0xfd);

//vcm[5:0]

LCD_ GC9312_DATA(0x12);
LCD_ GC9312_CMD(0xff);
LCD_ GC9312_DATA(0x15);
//-------------------end Power

Control Registers Initial-------------------//

//------------------------display window 240X320-------------------------------//


LCD_ GC9312_CMD(0x2a);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0xef);
LCD_ GC9312_CMD(0x2b);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x01);
PAGE 4 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_DATA(0x3f);
LCD_ GC9312_CMD(0x2c);
//------------------------------end display window -------------------------------//
//------------------------------------gamma setting----------------------------------//
LCD_ GC9312_CMD(0xf0);
LCD_ GC9312_DATA(0x60);//kp1 kp0
LCD_ GC9312_CMD(0xf1);
LCD_ GC9312_DATA(0x57);//kp3 kp2
LCD_ GC9312_CMD(0xf2);
LCD_ GC9312_DATA(0x03);//kp5 kp4
LCD_ GC9312_CMD(0xf3);
LCD_ GC9312_DATA(0x70);//rp1 rp0
LCD_ GC9312_CMD(0xf4);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_CMD(0xf5);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_CMD(0xf7);
LCD_ GC9312_DATA(0x07); //kn1 kn0
LCD_ GC9312_CMD(0xf8);
LCD_ GC9312_DATA(0x32); //kn3 kn2
LCD_ GC9312_CMD(0xf9);
PAGE 5 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_DATA(0x77); //kn5 kn4


LCD_ GC9312_CMD(0xfa);
LCD_ GC9312_DATA(0x07);
LCD_ GC9312_CMD(0xfb);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_CMD(0xfc);
LCD_ GC9312_DATA(0x00);
//----------------------------------end gamma setting----------------------------------//
LCD_ GC9312_CMD(0x11);
delayms(120);
LCD_ GC9312_CMD(0x29);
delayms(50);
LCD_ GC9312_CMD(0x2c);
}
void LCD_Enter Sleep(void)
{
LCD_ GC9312_CMD(0x28);
delayms(200);
LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);

PAGE 6 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x28);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2c);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2e);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2f);
delayms(20);
LCD_ GC9312_CMD(0x10);
delayms(120);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x20);

}
void LCD_Exit Sleep(void)
{

PAGE 7 OF 34

GC9312C

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);

LCD_ GC9312_CMD(0x11);
delayms(120);
LCD_ GC9312_CMD(0x29);
}

PAGE 8 OF 34

GC9312C

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

1.3 HSD2.8Init Code


void Init_LCD(void)
{
//--------------------------- -Reset

Sequence-----------------------------------------//

LCD_nRESET = 1;
delayms(10);
LCD_nRESET = 0;
delayms(100);
LCD_nRESET = 1;
delayms(120); // Delay 120ms
//--------------------------------end

Reset

Sequence-----------------------------//

//------------------------------display control setting----------------------------//


LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x20);
LCD_ GC9312_CMD(0x36);
LCD_ GC9312_DATA(0x48);
LCD_ GC9312_CMD(0x3a);
LCD_ GC9312_DATA(0x05);
PAGE 9 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_CMD(0xa3); //frame rate


LCD_ GC9312_DATA(0x08);
//------------------------end display control setting--------------------------//
//-----------------------Power Control Registers Initial----------------------//
LCD_ GC9312_CMD(0xa4);
LCD_ GC9312_DATA(0x15);
LCD_ GC9312_CMD(0xff);

//vdv[4:0]

LCD_ GC9312_DATA(0x15);
LCD_ GC9312_CMD(0xfd);
LCD_ GC9312_DATA(0x0b);
//-------------------end Power

Control Registers Initial-------------------//

//------------------------display window 240X320-------------------------------//


LCD_ GC9312_CMD(0x2a);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0xef);
LCD_ GC9312_CMD(0x2b);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x01);
PAGE 10 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_DATA(0x3f);
LCD_ GC9312_CMD(0x2c);
//------------------------------end display window -------------------------------//
//------------------------------------gamma setting----------------------------------//
LCD_ GC9312_CMD(0xF0);
LCD_ GC9312_DATA(0x0);
LCD_ GC9312_CMD(0xF1);
LCD_ GC9312_DATA(0x15);
LCD_ GC9312_CMD(0xF2);
LCD_ GC9312_DATA(0x0);
LCD_ GC9312_CMD(0xF3);
LCD_ GC9312_DATA(0x67);
LCD_ GC9312_CMD(0xF4);
LCD_ GC9312_DATA(0x0);
LCD_ GC9312_CMD(0xF5);
LCD_ GC9312_DATA(0x0);
LCD_ GC9312_CMD(0xF7);
LCD_ GC9312_DATA(0x37);
LCD_ GC9312_CMD(0xF8);
LCD_ GC9312_DATA(0x11);
LCD_ GC9312_CMD(0xF9);
PAGE 11 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_DATA(0x77);
LCD_ GC9312_CMD(0xFA);
LCD_ GC9312_DATA(0x13);
LCD_ GC9312_CMD(0xFB);
LCD_ GC9312_DATA(0x0);
LCD_ GC9312_CMD(0xFC);
LCD_ GC9312_DATA(0x0);
//----------------------------------end gamma setting----------------------------------//
LCD_ GC9312_CMD(0x11);
delayms(120);
LCD_ GC9312_CMD(0x29);
delayms(50);
LCD_ GC9312_CMD(0x2c);
}
void LCD_Enter Sleep(void)
{
LCD_ GC9312_CMD(0x28);
delayms(200);
LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);

PAGE 12 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x28);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2c);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2e);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2f);
delayms(20);
LCD_ GC9312_CMD(0x10);
delayms(120);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x20);

}
void LCD_Exit Sleep(void)
{

PAGE 13 OF 34

GC9312C

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);

LCD_ GC9312_CMD(0x11);
delayms(120);
LCD_ GC9312_CMD(0x29);
}

1.4 HSD2.4Init Code


void Init_LCD(void)
{
//--------------------------- -Reset

Sequence-----------------------------------------//

LCD_nRESET = 1;
delayms(10);
LCD_nRESET = 0;
delayms(100);
LCD_nRESET = 1;
delayms(120); // Delay 120ms
//--------------------------------end

Reset

Sequence-----------------------------//

//------------------------------display control setting----------------------------//


PAGE 14 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x20);
LCD_ GC9312_CMD(0x36);
LCD_ GC9312_DATA(0x48);
LCD_ GC9312_CMD(0x3a);
LCD_ GC9312_DATA(0x05);
LCD_ GC9312_CMD(0xa3); //frame rate
LCD_ GC9312_DATA(0x08);
//------------------------end display control setting--------------------------//
//-----------------------Power Control Registers Initial----------------------//
LCD_ GC9312_CMD(0xa4);
LCD_ GC9312_DATA(0x14);
LCD_ GC9312_CMD(0xff);

//vdv[4:0]

LCD_ GC9312_DATA(0x15);
LCD_ GC9312_CMD(0xfd);
LCD_ GC9312_DATA(0x14);
//-------------------end Power

Control Registers Initial-------------------//

//------------------------display window 240X320-------------------------------//


LCD_ GC9312_CMD(0x2a);
PAGE 15 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0xef);
LCD_ GC9312_CMD(0x2b);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x01);
LCD_ GC9312_DATA(0x3f);
LCD_ GC9312_CMD(0x2c);
//------------------------------end display window -------------------------------//
//------------------------------------gamma setting-----------------------------------//
LCD_ GC9312_CMD(0xF0);
LCD_ GC9312_DATA(0x0);
LCD_ GC9312_CMD(0xF1);
LCD_ GC9312_DATA(0x47);
LCD_ GC9312_CMD(0xF2);
LCD_ GC9312_DATA(0x0);
LCD_ GC9312_CMD(0xF3);
LCD_ GC9312_DATA(0x70);
LCD_ GC9312_CMD(0xF4);
PAGE 16 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_DATA(0x0);
LCD_ GC9312_CMD(0xF5);
LCD_ GC9312_DATA(0x0);
LCD_ GC9312_CMD(0xF7);
LCD_ GC9312_DATA(0x36);
LCD_ GC9312_CMD(0xF8);
LCD_ GC9312_DATA(0x2);
LCD_ GC9312_CMD(0xF9);
LCD_ GC9312_DATA(0x77);
LCD_ GC9312_CMD(0xFA);
LCD_ GC9312_DATA(0x0);
LCD_ GC9312_CMD(0xFB);
LCD_ GC9312_DATA(0x0);
LCD_ GC9312_CMD(0xFC);
LCD_ GC9312_DATA(0x0);
//-------------------------------end gamma setting----------------------------------//
LCD_ GC9312_CMD(0x11);
delayms(120);
LCD_ GC9312_CMD(0x29);
delayms(50);
LCD_ GC9312_CMD(0x2c);
PAGE 17 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

}
void LCD_Enter Sleep(void)
{
LCD_ GC9312_CMD(0x28);
delayms(200);
LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x28);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2c);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2e);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2f);
delayms(20);
LCD_ GC9312_CMD(0x10);
PAGE 18 OF 34

GC9312C

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

delayms(120);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x20);

}
void LCD_Exit Sleep(void)
{

LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);

LCD_ GC9312_CMD(0x11);
delayms(120);
LCD_ GC9312_CMD(0x29);
}

PAGE 19 OF 34

GC9312C

R3

R1
0
0

PAGE 20 OF 34
DB6
DB7
DB8

0
VDD

IOVCC1.8

J1

IM3
IM2
IM1
IM0
MCU-Interface Mode
DB in use

0
0
0
0
8080 MCU 8-bit bus interface I
D[7:0]

8080 MCU 16-bit bus interface I

D[15:0]

8080 MCU 9-bit bus interface I

D[8:0]

8080 MCU 18-bit bus interface I

D[17:0]

3-wire 9-bit data serial interface I

SDAin/out

4-wire 8-bit data serial interface I

SDAin/out

8080 MCU 16-bit bus interface

D[17:10],D[8:1]

8080 MCU 8-bit bus interface

D[17:10]

8080 MCU 18-bit bus interface

D[17:0]

8080 MCU 9-bit bus interface

D[17:9]

3-wire 9-bit data serial interface

SDAin

4-wire 8-bit data serial interface

SDAin SDOout

SDOout

IOVCC

DB10
DB11
DB12
DB13
DB14
DB15
DB16
DB17

DB1
DB2
DB3
DB4
DB5
DB6
DB7
DB8

IM0
RESET
CS
RS
WR
RD

C8
0402,1uF,10v

IM0
R2

VDD

0402,1uF,10v

0402,1uF,10v
IOVCC1.8
0402,1uF,10v

IOVCC1.8

C7

DB5
DB10
DB11
DB12
DB13
DB14
DB15
DB16
DB17
RESET

C5 C6
VDD

C4

VDD
CS
RS
WR
RD
VDD
XR
YD
XL
YU
A
K1
K2
K3
K4

C3

0402,1uF,10v
DB1
DB2
DB3
DB4

C2

0603,1uF,25v

0603,1uF,25v
0402,1uF,10v

0402,1uF,10v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

C1

DB0
DB1
DB2
DB3
GND
VCC
/CS
RS
/WR
/RD
IM0
X+
Y+
XYLED-A
LED-1
LED-2
LED-3
LED-4
IM3
DB4
DB10
DB11
DB12
DB13
DB14
DB15
DB16
DB17
/RESET
VCC
VCC
GND
DB5
DB6
DB7

VCOM

C9
VCOM

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96

U1

DUMMY
VCOM
VCOM
C22P
C22N
C21P
C21M
VGH
VGH
DUMMY
VGL
VGL
DUMMY
AVDD
AVDD
C12P
C12P
C12M
C12M
C11P
C11P
C11M
C11M
VPP-OTP(GND)
VCI
VCI
VSSD
VSSD
VSSD
VSSA
VSSA
DUMMY
VGS
EXTC
IM3
IM2
IM1
IM0
RESET
CS
RS
WR
RD
VSYNC
HSYNC
DEN
PCLK
SDA
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
DB8
DB9
DB10
DB11
DB12
DB13
DB14
DB15
DB16
DB17
DUMMY
TE
SDO
LEDPWM
LEDON
LEDVDDI
TEST4
TEST5
TEST6
TEST7
TEST8
TEST9
IOVCC
IOVCC
VDDD
VDDD
GVDD
VCL
VCL
C31P
C31P
C31N
C31N
DUMMY
DUMMY
VCOML
VCOMH
VCOM
VCOM
DUMMY

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

2. CMO2.4 PANAL

2.1 CMO2.4FPC Application Circuit

CMO2.4_9312

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

2.2 CMO2.4Init Code


void Init_LCD(void)
{
//--------------------------- -Reset

Sequence-----------------------------------------//

LCD_nRESET = 1;
delayms(10);
LCD_nRESET = 0;
delayms(100);
LCD_nRESET = 1;
delayms(120); // Delay 120ms
//--------------------------------end

Reset

Sequence-----------------------------//

//------------------------------display control setting----------------------------//


LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x20);
LCD_ GC9312_CMD(0x36);
LCD_ GC9312_DATA(0x48);
LCD_ GC9312_CMD(0x3a);
LCD_ GC9312_DATA(0x05);
PAGE 21 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_CMD(0xa3); //frame rate


LCD_ GC9312_DATA(0x08);
//------------------------end display control setting--------------------------//
//-----------------------Power Control Registers Initial----------------------//
LCD_ GC9312_CMD(0xa4);
LCD_ GC9312_DATA(0x12);
LCD_ GC9312_CMD(0xff);

//vdv[4:0]

LCD_ GC9312_DATA(0x15);
LCD_ GC9312_CMD(0xfd);
LCD_ GC9312_DATA(0xd);
//-------------------end Power

Control Registers Initial-------------------//

//------------------------display window 240X320-------------------------------//


LCD_ GC9312_CMD(0x2a);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0xef);
LCD_ GC9312_CMD(0x2b);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x01);
PAGE 22 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_DATA(0x3f);
LCD_ GC9312_CMD(0x2c);
//------------------------------end display window -------------------------------//
//------------------------------------gamma setting----------------------------------//
LCD_ GC9312_CMD(0xf0);

//kp1[]

kp0 00

LCD_ GC9312_DATA(0x71);
LCD_ GC9312_CMD(0xf1);

//kp3 kp2 35

LCD_ GC9312_DATA(0x37);
LCD_ GC9312_CMD(0xf2); //kp5 kp4
LCD_ GC9312_DATA(0x03);
LCD_ GC9312_CMD(0xf3);

//rp1 rp0

LCD_ GC9312_DATA(0x52);
LCD_ GC9312_CMD(0xf4);
LCD_ GC9312_DATA(0x00); //00
LCD_ GC9312_CMD(0xf5);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_CMD(0xf7);

//kn1 kn0

LCD_ GC9312_DATA(0x47);
LCD_ GC9312_CMD(0xf8);

//kn3 kn2

LCD_ GC9312_DATA(0x44);
LCD_ GC9312_CMD(0xf9);

//kn5 kn4
PAGE 23 OF 34

ok

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_DATA(0x77);
LCD_ GC9312_CMD(0xfa);

//rn1 rn0 ok

LCD_ GC9312_DATA(0x25);
LCD_ GC9312_CMD(0xfb);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_CMD(0xfc);
LCD_ GC9312_DATA(0x00);
//-------------------------------end gamma setting----------------------------------//
LCD_ GC9312_CMD(0x11);
delayms(120);
LCD_ GC9312_CMD(0x29);
delayms(50);
LCD_ GC9312_CMD(0x2c);
}
void LCD_Enter Sleep(void)
{
LCD_ GC9312_CMD(0x28);
delayms(200);
LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);

PAGE 24 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x28);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2c);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2e);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2f);
delayms(20);
LCD_ GC9312_CMD(0x10);
delayms(120);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x20);

}
void LCD_Exit Sleep(void)
{

PAGE 25 OF 34

GC9312C

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);

LCD_ GC9312_CMD(0x11);
delayms(120);
LCD_ GC9312_CMD(0x29);
}

PAGE 26 OF 34

GC9312C

R3

R1
0
0

PAGE 27 OF 34
DB6
DB7
DB8

0
VDD

IOVCC1.8

J1

IM3
IM2
IM1
IM0
MCU-Interface Mode
DB in use

0
0
0
0
8080 MCU 8-bit bus interface I
D[7:0]

0
0
0
1
8080 MCU 16-bit bus interface I
D[15:0]

0
0
1
0
8080 MCU 9-bit bus interface I
D[8:0]

0
0
1
1
8080 MCU 18-bit bus interface I
D[17:0]

3-wire 9-bit data serial interface I

SDAin/out

4-wire 8-bit data serial interface I

SDAin/out

8080 MCU 16-bit bus interface

D[17:10],D[8:1]

8080 MCU 8-bit bus interface

D[17:10]

8080 MCU 18-bit bus interface

D[17:0]

8080 MCU 9-bit bus interface

D[17:9]

3-wire 9-bit data serial interface

SDAin

4-wire 8-bit data serial interface

SDAin SDOout

SDOout

IOVCC

DB10
DB11
DB12
DB13
DB14
DB15
DB16
DB17

DB1
DB2
DB3
DB4
DB5
DB6
DB7
DB8

IM0
RESET
CS
RS
WR
RD

C8
0402,1uF,10v

IM0
R2

VDD

0402,1uF,10v

0402,1uF,10v
IOVCC1.8
0402,1uF,10v

IOVCC1.8

C7

DB5
DB10
DB11
DB12
DB13
DB14
DB15
DB16
DB17
RESET

C5 C6
VDD

C4

VDD
CS
RS
WR
RD
VDD
XR
YD
XL
YU
A
K1
K2
K3
K4

C3

0402,1uF,10v
DB1
DB2
DB3
DB4

C2

0603,1uF,25v

0603,1uF,25v
0402,1uF,10v

0402,1uF,10v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37

C1

DB0
DB1
DB2
DB3
GND
VCC
/CS
RS
/WR
/RD
IM0
X+
Y+
XYLED-A
LED-1
LED-2
LED-3
LED-4
IM3
DB4
DB10
DB11
DB12
DB13
DB14
DB15
DB16
DB17
/RESET
VCC
VCC
GND
DB5
DB6
DB7

VCOM

C9
VCOM

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96

U1

DUMMY
VCOM
VCOM
C22P
C22N
C21P
C21M
VGH
VGH
DUMMY
VGL
VGL
DUMMY
AVDD
AVDD
C12P
C12P
C12M
C12M
C11P
C11P
C11M
C11M
VPP-OTP(GND)
VCI
VCI
VSSD
VSSD
VSSD
VSSA
VSSA
DUMMY
VGS
EXTC
IM3
IM2
IM1
IM0
RESET
CS
RS
WR
RD
VSYNC
HSYNC
DEN
PCLK
SDA
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
DB8
DB9
DB10
DB11
DB12
DB13
DB14
DB15
DB16
DB17
DUMMY
TE
SDO
LEDPWM
LEDON
LEDVDDI
TEST4
TEST5
TEST6
TEST7
TEST8
TEST9
IOVCC
IOVCC
VDDD
VDDD
GVDD
VCL
VCL
C31P
C31P
C31N
C31N
DUMMY
DUMMY
VCOML
VCOMH
VCOM
VCOM
DUMMY

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

3. IVO2.4 PANAL
3.1 IVO2.4FPC Application Circuit

CMO2.4_9312

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

3.2 IVO2.4 Init Code


void Init_LCD(void)
{
//--------------------------- -Reset

Sequence-----------------------------------------//

LCD_nRESET = 1;
delayms(10);
LCD_nRESET = 0;
delayms(100);
LCD_nRESET = 1;
delayms(120); // Delay 120ms
//--------------------------------end

Reset

Sequence-----------------------------//

//------------------------------display control setting----------------------------//


LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x20);
LCD_ GC9312_CMD(0x36);
LCD_ GC9312_DATA(0x48);
LCD_ GC9312_CMD(0x3a);
LCD_ GC9312_DATA(0x05);
PAGE 28 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_CMD(0xa3); //frame rate


LCD_ GC9312_DATA(0x08);
//------------------------end display control setting--------------------------//
//-----------------------Power Control Registers Initial----------------------//
LCD_ GC9312_CMD(0xa4);
LCD_ GC9312_DATA(0x12);
LCD_ GC9312_CMD(0xff);
LCD_ GC9312_DATA(0x13);
LCD_ GC9312_CMD(0xfd);
LCD_ GC9312_DATA(0x1c);
//-------------------end Power

Control Registers Initial-------------------//

//------------------------display window 240X320-------------------------------//


LCD_ GC9312_CMD(0x2a);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0xef);
LCD_ GC9312_CMD(0x2b);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x00);
LCD_ GC9312_DATA(0x01);
PAGE 29 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_DATA(0x3f);
LCD_ GC9312_CMD(0x2c);
//------------------------------end display window -------------------------------//
//------------------------------------gamma setting----------------------------------//
LCD_ GC9312_CMD(0xf0);

//kp1 kp0

LCD_ GC9312_DATA(0x61);
LCD_ GC9312_CMD(0xf1);//kp3 kp2
LCD_ GC9312_DATA(0x36);
LCD_ GC9312_CMD(0xf2);//kp5 kp4
LCD_ GC9312_DATA(0x05);
LCD_ GC9312_CMD(0xf3);//rp1 rp0
LCD_ GC9312_DATA(0x44);
LCD_ GC9312_CMD(0xf4);
LCD_ GC9312_DATA(0x04);
LCD_ GC9312_CMD(0xf5);
LCD_ GC9312_DATA(0x06);
LCD_ GC9312_CMD(0xf7);//kn1 kn0
LCD_ GC9312_DATA(0x27);
LCD_ GC9312_CMD(0xf8);//kn3 kn2
LCD_ GC9312_DATA(0x22);
LCD_ GC9312_CMD(0xf9);//kn5 kn4
PAGE 30 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

LCD_ GC9312_DATA(0x77);
LCD_ GC9312_CMD(0xfa);
LCD_ GC9312_DATA(0x44);
LCD_ GC9312_CMD(0xfb);
LCD_ GC9312_DATA(0x03);
LCD_ GC9312_CMD(0xfc);
LCD_ GC9312_DATA(0x08);
//-------------------------------end gamma setting----------------------------------//
LCD_ GC9312_CMD(0x11);
delayms(120);
LCD_ GC9312_CMD(0x29);
delayms(50);
LCD_ GC9312_CMD(0x2c);
}
void LCD_Enter Sleep(void)
{
LCD_ GC9312_CMD(0x28);
delayms(200);
LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);

PAGE 31 OF 34

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x28);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2c);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2e);
delayms(20);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x2f);
delayms(20);
LCD_ GC9312_CMD(0x10);
delayms(120);
LCD_ GC9312_CMD(0xe9);
LCD_ GC9312_DATA(0x20);

}
void LCD_Exit Sleep(void)
{

PAGE 32 OF 34

GC9312C

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

LCD_ GC9312_CMD(0xfe);
LCD_ GC9312_CMD(0xef);

LCD_ GC9312_CMD(0x11);
delayms(120);
LCD_ GC9312_CMD(0x29);
}

PAGE 33 OF 34

GC9312C

a-Si TFT LCD Single Chip Driver


240RGBx320 Resolution and 262K color

GC9312C

4. Revision History
Version No.

Date

Page Description

V01
V02
V03

2013/07/05
2014/03/24
2015/03/05

All
All
All

New version
Add IVO2.4 init code
Modify all init code for 9312C

PAGE 34 OF 34

You might also like