I'm using CFAG320240C-FMI-T with ADuC842, In text screen everything is fine but I have problems on graphics screen. Graphics appear shifted and I couldn't manage to display any graphics right. Here's my initialization code:
And I'm using code below for the Graphics:
Pixels don't appear on the left-top (0,0) location. I think I have problems on defining SCROLL. Any help greatly appriciated. Epson Data sheet is quite complicated and badly written.
PS for CF Techs: Any application note for this display would be good!!!
Code:
writeControl(0x40); // SYSTEM SET
writeData(0x30);
writeData(0x87); // FX
writeData(0x07); // FY
writeData(0x27); // C/R
writeData(0x42); // TC/R
writeData(0xEF); // LF
writeData(0x28); // APL
writeData(0x00); // APH
writeControl(0x44); // SCROLL
writeData(0x00);
writeData(0x00);
writeData(0xEF); // 240 - 1
writeData(0xB0);
writeData(0x04);
writeData(0xEF); // 240 - 1
writeData(0x00);
writeData(0x00);
writeData(0x00);
writeData(0x00);
writeControl(0x5A); // HDOT_SCR
writeData(0x00);
writeControl(0x5B); // OVLAY
writeData(0x00);
writeControl(0x58); // DISP OFF
writeData(0x00);
writeControl(0x5D); // CSR FORM
writeData(0x04);
writeData(0x86);
writeControl(0x4C); // CSRDIR RIGHT
writeControl(0x59); // DISP ON
writeData(0x16);
Code:
writeControl(0x46); // CSRW
writeData(0xB0);
writeData(0x04);
writeControl(0x42); // MWRITE
writeData(First_EightPixels);
writeData(2nd_EightPixels);
writeData(3rd_EightPixels);
writeData(4th_EightPixels);
...
...
PS for CF Techs: Any application note for this display would be good!!!
Looking for additional LCD resources? Check out our LCD blog for the latest developments in LCD technology.