Skip to main content
Unfortunately, portal is currently in readonly mode. You cannot post answers or questions.

DT022BTFT

Ilitek ILI9341 Initialization Code

Note that you'll need to configure the IM pins for 8-bit interface:

//************* Reset LCD Driver ****************// LCD_nRESET = 1; delayms(1); // Delay 1ms LCD_nRESET = 0; delayms(10); // Delay 10ms // This delay time is necessary LCD_nRESET = 1; delayms(120); // Delay 120 ms //Start initial Sequence write_cmd(0x01); //software reset delay(5); write_cmd(0x28); // display off //------------power control------------------------------ write_cmd(0xc0); //power control write_data16(0x00,0x26); write_cmd(0xc1); //power control write_data16(0x00,0x11); write_cmd(0xc5); //vcom control write_data16(0x00,0x5c);//35 write_data16(0x00,0x4c);//3E write_cmd(0xc7); //vcom control write_data16(0x00,0x94); //------------memory access control------------------------ write_cmd(0x36); // memory access control write_data16(0x00,0x48); //0048 my,mx,mv,ml,BGR,mh,0.0 write_cmd(0x3a); // pixel format set write_data16(0x00,0x55);//16bit /pixel //----------------- frame rate------------------------------ write_cmd(0xb1); // frame rate... (More)

What is the difference between the DT022BTFT and DT022CTFT?

Our DT022CTFT uses the same LCD glass (240x320 resolution, same active area, etc.) but uses a specially slim designed backlight that fits in a 1U rack.

Is the driver IC ILI9341V built into the modules?
Yes, the ILI9341V is a COG IC connected to the display.

Is the backlight built into DT022BTFT and DT022CTFT?
Yes, the backlight is built into the display module. It is directly behind the LCD glass.

How to activate the RGB mode for DT022BTFT

You can activate the 16-bit RGB Mode with 8-bit serial communication by tying the IM[3:0] pins to VDD.

You'll use DB[17:3], DB[11:1] for your 5-6-5 data (D[17:13] Red, D[11:6] Green, D[5:1] Blue). The unused D0 & D12 pins must be tied to ground.

The remaining bits required to set up the RGB interface (DPI, RCM) can be accessed via SPI  through the following connections to your microcontroller:

           Display                       Microcontroller

           SDO                            SDI (MISO)

           SDI (SDA)                   SDO (MOSI)

           RS/SCL                       SCK

           D/CX                           D/CX

           DE                               GPIO (or VDD/VSS if not used)

The unused RD pin should be fixed to VDD or VSS.