搜档网
当前位置:搜档网 › ILI9132AN_V03

ILI9132AN_V03

ILI9132

a-Si TFT LCD Single Chip Driver with 132RGBx132 Resolution and 262K color

Preliminary

Application Note

Version: Preliminary V0.3

Date: August. 24th, 2006 ILI TECHNOLOGY CORP.

4F, No. 2, Tech. 5th Rd., Hsinchu Science Park,

Taiwan 300, R.O.C.

Tel.886-3-5670095; Fax.886-3-5670096

https://www.sodocs.net/doc/3b5911128.html,

1. Application FPC Circuit and ILI9132 Bonding

2. ILI9132 and CPT1.5” Panel FPC Circuit

3. CPT 1.5” Panel Application Note

The source driver S396 ~ S13 are used in CPT 1.5” panel and the S1 ~ S12 are unused. The SS bit of register R01h shall be set as ‘1’ to let the GRAM map to the correct display location. The register R10h shall be set as “00”

(132 x 132 resolution) to enable the source driver S385 ~ S396.

………………………………

………………………………

The GS bit of register R01h shall always be set as ‘0’. If users need to reverse the vertical display direction, please set the I/D[1:0] and AM bits of register R05h to rotate the display direction as the following.

Register R05h

R/W RS D15 D14 D13 D12 D11

D10

D9 D8

D7

D6

D5

D4 D3 D2 D1

D0

W 1 0 0 0 BGR 0 0 HWM 0 0 0 I/D1

I/D0 AM LG2 LG1

LG0

I/D[1:0] Control the address counter (AC) to automatically increase or decrease by 1 when update one pixel

display data. Refer to the following figure for the details.

AM Control the GRAM update direction. When AM = “0”, the address is updated in horizontal writing direction.

When AM = “1”, the address is updated in vertical writing direction. When a window area is set by registers R16h and R17h, only the addressed GRAM area is updated based on I/D[1:0] and AM bits setting.

Before writing the GRAM data, user shall set the updated GRAM window by register R16h and R17h and register R21h shall also set to correct start address based on the I/D[1:0] and AM settings.

AM I/D[1:0]Register R21h

00 (end_y, end_x) 01 (end_y, start_x)

10 (start_y, end_x) 0/1

11 (start_y, start_x)

Example:

Void LCD_Block_Write( uint8 start_x, uint8 end_x, uint8 start_y, uint8 end_y, uint8 width, uint8 height, uint16 *pbuffer)

{

LCD_CMD_Write(0x0016); // Horizontal GRAM Address Position LCD_Data_Write( (end_x << 8 ) + start_x);

LCD_CMD_Write(0x0017); // Vertical GRAM Address Position

LCD_Data_Write( (end_y << 8 ) + start_y);

// I/D[1:0]=”00” horizontal/vertical reverse display

//LCD_CMD_Write(0x0021); // GRAM Start Address position

//LCD_Data_Write( (end_y << 8 ) + end_x);

// I/D[1:0]=”01” vertical reverse display

//LCD_CMD_Write(0x0021); // GRAM Start Address position

//LCD_Data_Write( (end_y << 8 ) + start_x);

// I/D[1:0]=”10” horizontal reverse display

//LCD_CMD_Write(0x0021); // GRAM Start Address position

//LCD_Data_Write( (start_y << 8 ) + end_x);

// I/D[1:0]=”11” normal display

LCD_CMD_Write(0x0021); // GRAM Start Address position

LCD_Data_Write( (start_y << 8 ) + start_x);

LCD_CMD_Write(0x0022); // Set Index as GRAM

for ( uint8 i=0; i

for ( uint8 j=0; j

LCD_Data_Write(*pbuffer);

}

4. Initialization Code for CPT 1.5” Panel

//************** Initialization Code to light on the ILI9132 **************************************//

nRESET = 0; // Pull the reset pin low to reset ILI9132

ms

10

Delay

Delay_ms(10);

//

nRESET = 1; // Pull the reset pin high to release the ILI9132 from the reset status

/* Please follow this sequence to enable the charge-pump*/

LCDREG_Write(0x03, 0x0210); // enable charge-pump1 and VGH/VGL voltage

ms

50

Delay_ms(50);

//

Delay

LCDREG_Write(0x09, 0x0004); // enable PON and set the driving capability of source driver

50

ms

Delay

Delay_ms(50);

//

LCDREG_Write(0x0D, 0x0014); // set voltage VGAM1OUT=VCI*1.75

ms

50

Delay_ms(50);

Delay

//

LCDREG_Write(0x0E, 0x311D); // set VCOMH and VCOM amplitude voltage

LCDREG_Write(0x0000, 0x0001); // Start internal OSC.

LCDREG_Write(0x0001, 0x010F); // set the display line number and display direction

LCDREG_Write(0x0002, 0x0700); // set 1 line inversion

LCDREG_Write(0x0005, 0x1030); // set GRAM write direction and BGR=1

LCDREG_Write(0x0008, 0x0305); // set the back/front porch number

LCDREG_Write(0x000A, 0x0000); // set the transfer interface and transfer number

LCDREG_Write(0x000B, 0xFC00); // set the equalized and delay period to save power LCDREG_Write(0x000C, 0x0000); // set internal reference voltage REGP=VCI=2.8V

LCDREG_Write(0x000F, 0x0000); // Set Gate scan start address

LCDREG_Write(0x0010, 0x0000); // Set the resolution as 132x132 for CPT panel

LCDREG_Write(0x0011, 0x0000); // The vertical scrolling function for the CPT panel

LCDREG_Write(0x0014, 0x7F00); // Set the partial display 1 area

LCDREG_Write(0x0015, 0x7F00); // Set the partial display 2 area

LCDREG_Write(0x0016, 0x7F00); // Set the horizontal GRAM Address

LCDREG_Write(0x0017, 0x7F00); // Set the Vertical GRAM Address

LCDREG_Write(0x0021, 0x0000); // set the writing start address of AC counter

// ---------- Adjust the Gamma 2.2 Curve -------------------

LCDREG_Write(0x0030, 0x0000);

LCDREG_Write(0x0031, 0x0606);

LCDREG_Write(0x0032, 0x0405);

LCDREG_Write(0x0033, 0x0007);

LCDREG_Write(0x0034, 0x0003);

LCDREG_Write(0x0035, 0x0000);

LCDREG_Write(0x0036, 0x0002);

LCDREG_Write(0x0037, 0x0500);

LCDREG_Write(0x003A, 0x1B07);

LCDREG_Write(0x003B, 0x180B);

// Write the display data into GRAM here

// set the index register as 0x22

for ( i=0; i<128; i++)

for ( j=0; j<128; j++)

LCDDATA_Write(0xdata); // write display data

LCDREG_Write(0x0007, 0x0037); // 262K color and display ON

5. Standby and Sleep Mode

ILI9132 can enter sleep or standby mode to reduce power consumption and the following subroutines are used to switch the display modes. User only needs to set the R03 register to switch the display mode and the other registers setting are not necessary.

//************** Display mode switch between Normal/Sleep/Standby modes ******************//

void LCD_SleepMode(void)

{

LCDREG_Write(0x03, 0x0412); // LCD driver enters into sleep mode

}

void LCD_StandbyMode(void)

{

LCDREG_Write(0x03, 0x0411); // LCD driver enters into standby mode

}

void LCD_NormalMode(void)

{

LCDREG_Write(0x03, 0x0410); // LCD driver enter normal mode

6. Oscillator

ILI9132 generates oscillation with the ILI9132’s internal RC oscillators by placing an external resistor between the OSC1 and OSC2 pins. The oscillation frequency varies with resistance value of external resistor, wiring distance, and operating supply voltage. For example, placing a Rosc resistor of larger resistance value or lower the supply voltage level will generate a lower oscillation frequency. See the “Notes to Electrical Characteristics” section for the relationship between resistance value of Rosc resistor and oscillation frequency.

Figure1 Oscillation Connection

Rosc. Resistor Frame Rate*

50KΩ352 Hz

75KΩ226 Hz

82KΩ206 Hz

100KΩ174 Hz

120KΩ147 Hz

150KΩ121 Hz

180KΩ103 Hz

210KΩ 90 Hz

240KΩ 79 Hz

270KΩ 66 Hz

300KΩ 57 Hz

330KΩ 51 Hz

470KΩ47 Hz

Note: The tolerance of frame rate is ±10%

7. Revision History

Version No. Date Page Description

Created

V0.1 2006/07/25New

V0.2 2006/08/09Add the Frame rate vs Resistor table.

V0.3 2006/08/24Add theCPT1.5” panel application note

相关主题