Hint: this post is also available in Chinese.
The screen of one of my classmates' MP4 player cracks. I bought a new one online, and I also picked up this one simply because it is cheap ($0.7). Unfortunately there was no documentation for this screen. Luckily enough, I found a datasheet of a similar screen, and it turns out that they share the same pinout. So, here is the result.
Pinout
- VSS
- VDD
- NC
- NC
- CS0
- A0
- RD
- WR
- RST
- DB0
- NC
- DB1
- NC
- DB2
- NC
- DB3
- NC
- DB4
- NC
- DB5
- NC
- DB6
- NC
- DB7
- NC
- LEDK
- LEDA
Initialization
void LCD_Init()
{
LCD_RST = 0;
Delay(20);
LCD_RST = 1;
Delay(100);
LCD_WriteCmd(0xE2); //system reset
Delay(100);
LCD_WriteCmd(0xEB); //set bias=1/11
LCD_WriteCmd(0x81); //set vop
LCD_WriteCmd(0x65); //set vop=15v
LCD_WriteCmd(0x2f); //set pump control
LCD_WriteCmd(0x2b); //set panel loading
LCD_WriteCmd(0x24); // set TC=-0.05%
LCD_WriteCmd(0xa2); // set line rate
LCD_WriteCmd(0x89); //set color pattern
LCD_WriteCmd(0xd1); //set color pattern
LCD_WriteCmd(0xd6); //set color mode 64k
LCD_WriteCmd(0xC8); //set n-line inversion
LCD_WriteCmd(0x18);
LCD_WriteCmd(0xc2); //set color pattern
LCD_WriteCmd(0x84); //set n-line inversion
LCD_WriteCmd(0xde); //set com scan function
LCD_WriteCmd(0xaf); //set display enable
}