Look Here First

Curious why I created this blog? The following two posts explain it all. Click on the titles below to read more.

What this Blog is about.

Project Description.

Saturday, March 26, 2011

Changes to LCD Driver Initialization

While trying to discover which direction the pixels fill in while writing to an area, the student noticed some odd behavior.

The order in which the rows were written out was off.  The LPC driver I was building off from had a setting that when initialized was causing the problem.

Old Code:

LCDCommand(DATCTL);   // data control(EPSON)
LCDData(0x03); //correct for normal sin7
LCDData(0x00);   // normal RGB arrangement
LCDData(0x02); // 16-bit Grayscale Type A

New Code:
LCDCommand(DATCTL);   // data control(EPSON)
LCDData(0x00); // This is the column write direction 
LCDData(0x00);   // normal RGB arrangement
LCDData(0x02); // 16-bit Grayscale Type A

Changing the column write direction fixed the problems with filling an area for this system.


The Student found that the contrast  could be tweaked to display colors more clearly as seen belo

Old Code:
LCDCommand(VOLCTR);   // electronic volume, this is the contrast/brightness(EPSON)
LCDData(0x24);   // volume (contrast) setting - fine tuning, original
LCDData(0x03);   // internal resistor ratio - coarse adjustment

 New Code:
LCDCommand(VOLCTR);   // electronic volume, this is the contrast/brightness(EPSON)
LCDData(0x22);   // volume (contrast) setting - fine tuning, original
// This setting acts like a cross between contrast and brightness on a television
LCDData(0x03);   // internal resistor ratio - coarse adjustment

Just a small adjustment was needed to improve the picture.


No comments:

Post a Comment