-P.51-
Himax Confidential
This information contained herein is the exclusive property of Himax and shall not be distributed, reproduced, or disclosed
in whole or in part without prior written permission of Himax.
Ma
y
,
200
8
HX8347-A
240RGB x 320 dot, 262K color, TFT Mobile Single Chip Driver
APPLICATION NOTE V02
7.6.2 The reference setting of normal display for register-content interface mode
7.6.2.1 The reference setting of CMO 3.2” panel
void HX8347A_Init_CMO32(void)
{
RESET();
DelayX1ms(150); // After Inter-MicroP Program (load OTP)
// Gamma for CMO 3.2”
Set_LCD_8B_REG(0x0046,0x00A4);
Set_LCD_8B_REG(0x0047,0x0053);
Set_LCD_8B_REG(0x0048,0x0000);
Set_LCD_8B_REG(0x0049,0x0044);
Set_LCD_8B_REG(0x004A,0x0004);
Set_LCD_8B_REG(0x004B,0x0067);
Set_LCD_8B_REG(0x004C,0x0033);
Set_LCD_8B_REG(0x004D,0x0077);
Set_LCD_8B_REG(0x004E,0x0012);
Set_LCD_8B_REG(0x004F,0x004C);
Set_LCD_8B_REG(0x0050,0x0046);
Set_LCD_8B_REG(0x0051,0x0044);
//240x320 window setting
Set_LCD_8B_REG(0x0002,0x0000); // Column address start2
Set_LCD_8B_REG(0x0003,0x0000); // Column address start1
Set_LCD_8B_REG(0x0004,0x0000); // Column address end2
Set_LCD_8B_REG(0x0005,0x00EF); // Column address end1
Set_LCD_8B_REG(0x0006,0x0000); // Row address start2
Set_LCD_8B_REG(0x0007,0x0000); // Row address start1
Set_LCD_8B_REG(0x0008,0x0001); // Row address end2
Set_LCD_8B_REG(0x0009,0x003F); // Row address end1
// Display Setting
Set_LCD_8B_REG(0x0001,0x0006); // IDMON=0, INVON=1, NORON=1, PTLON=0
Set_LCD_8B_REG(0x0016,0x0048); // MY=0, MX=0, MV=0, ML=1, BGR=0, TEON=0
Set_LCD_8B_REG(0x38,0x00); // RGB_EN=0, use MPU Interface
Set_LCD_8B_REG(0x0023,0x0095); // N_DC=1001 0101
Set_LCD_8B_REG(0x0024,0x0095); // PI_DC=1001 0101
Set_LCD_8B_REG(0x0025,0x00FF); // I_DC=1111 1111
Set_LCD_8B_REG(0x0027,0x0002); // N_BP=0000 0010
Set_LCD_8B_REG(0x0028,0x0002); // N_FP=0000 0010
Set_LCD_8B_REG(0x0029,0x0002); // PI_BP=0000 0010
Set_LCD_8B_REG(0x002A,0x0002); // PI_FP=0000 0010
Set_LCD_8B_REG(0x002C,0x0002); // I_BP=0000 0010
Set_LCD_8B_REG(0x002D,0x0002); // I_FP=0000 0010
Set_LCD_8B_REG(0x003A,0x0001); // N_RTN=0000, N_NW=001
Set_LCD_8B_REG(0x003B,0x0000); // PI_RTN=0000, PI_NW=000