sanath rai
New member
Hello,
I Interfaced CFAF128128B10145T with my MSP432p401R microcntroller to display characters and images with SPI interface between display and controller.
Now for our application we had to change the display to bit bigger size so we chose CFAF2403200x020T dsiplay which has SPI interface as earlier one.
We have initialized the LCD with required commands but still the LCD is not responding.
Below is the commands and data sent to LCD for initialization
What might be the issue?
Regards,
Sanath Rai
I Interfaced CFAF128128B10145T with my MSP432p401R microcntroller to display characters and images with SPI interface between display and controller.
Now for our application we had to change the display to bit bigger size so we chose CFAF2403200x020T dsiplay which has SPI interface as earlier one.
We have initialized the LCD with required commands but still the LCD is not responding.
Below is the commands and data sent to LCD for initialization
Code:
HAL_LCD_writeCommand(0x11); // Sleep Out
// delay 120ms
HAL_LCD_writeCommand(0x38); // AICI E ADAUGAT DE MINE // IDLE MODE OFF
HAL_LCD_writeCommand(0x36); // Memory Data Access Controls
HAL_LCD_writeData(0x00);
HAL_LCD_writeCommand(0x3A); // Interface Pixel Format
HAL_LCD_writeData(0x06); //setare noua
HAL_LCD_writeCommand(0xB2); //: Porch Setting
HAL_LCD_writeData(0x0C);
HAL_LCD_writeData(0x0C);
HAL_LCD_writeData(0x00);
HAL_LCD_writeData(0x33);
HAL_LCD_writeData(0x33);
HAL_LCD_writeCommand(0xB7); //Gate Control
HAL_LCD_writeData(0x35);
HAL_LCD_writeCommand(0xBB); //VCOM Setting
HAL_LCD_writeData(0x1A);
HAL_LCD_writeCommand(0xC0); // LCM Control
HAL_LCD_writeData(0x2C);
HAL_LCD_writeCommand(0xC2); // VDV and VRH Command Enable
HAL_LCD_writeData(0x01);
HAL_LCD_writeCommand(0xC3); // VRH Set
HAL_LCD_writeData(0x0B);
HAL_LCD_writeCommand(0xC4); // VDV Set
HAL_LCD_writeData(0x20);
HAL_LCD_writeCommand(0xC6); //Frame Rate Control in Normal Mode
HAL_LCD_writeData(0x0F);
HAL_LCD_writeCommand(0xD0); // Power Control 1
HAL_LCD_writeData(0xA4);
HAL_LCD_writeData(0xA1);
HAL_LCD_writeCommand(0x21); //Display Inversion On
HAL_LCD_writeCommand(0xE0); //Positive Voltage Gamma Control
HAL_LCD_writeData(0x00);
HAL_LCD_writeData(0x19);
HAL_LCD_writeData(0x1E);
HAL_LCD_writeData(0x0A);
HAL_LCD_writeData(0x09);
HAL_LCD_writeData(0x15);
HAL_LCD_writeData(0x3D);
HAL_LCD_writeData(0x44);
HAL_LCD_writeData(0x51);
HAL_LCD_writeData(0x12);
HAL_LCD_writeData(0x03);
HAL_LCD_writeData(0x00);
HAL_LCD_writeData(0x3F);
HAL_LCD_writeData(0x3F);
HAL_LCD_writeCommand(0x29);
Regards,
Sanath Rai
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.
Last edited by a moderator: