Epson S1D13505 Technical Manual page 246

Embedded ramdac lcd/crt controller
Table of Contents

Advertisement

Page 92
/*
** Register 19: Clock Configuration - In this case we must divide
**
**
*/
*(pRegs + 0x19) = 0x01;
/*
** Register 1A: Power Save Configuration - enable LCD power, CBR refresh,
**
*/
*(pRegs + 0x1A) = 0x00;
/*
** Register 1C-1D: MD Configuration Readback - these registers are
**
**
*/
*(pRegs + 0x1C) = 0x00;
*(pRegs + 0x1D) = 0x00;
/*
** Register 1E-1F: General I/O Pins Configuration
*/
*(pRegs + 0x1E) = 0x00;
*(pRegs + 0x1F) = 0x00;
/*
** Register 20-21: General I/O Pins Control
*/
*(pRegs + 0x20) = 0x00;
*(pRegs + 0x21) = 0x00;
/*
** Registers 24-26: LUT control.
**
**
** Setup the pointer to the LUT data and reset the LUT index register.
** Then, loop writing each of the RGB LUT data elements.
*/
pLUT = LUT8;
*(pRegs + 0x24) = 0;
for (idx = 0; idx < 256; idx++)
{
for (rgb = 0; rgb < 3; rgb++)
{
*(pRegs + 0x26) = *pLUT;
pLUT++;
}
}
/*
** Register 27: Ink/Cursor Control - disable ink/cursor
*/
*(pRegs + 0x27) = 0x00;
S1D13505
X23A-G-003-07
PCLK by 2 to arrive at the best frequency to set
our desired panel frame rate.
not suspended.
read only, but it's OK to write a 0 to keep
the register configuration logic simpler.
For this example do a typical 8 BPP LUT setup.
/* 0000 0001 */
/* 0000 0000 */
/* 0000 0000 */
/* 0000 0000 */
/* 0000 0000 */
/* 0000 0000 */
/* 0000 0000 */
/* 0000 0000 */
/* 0000 0000 */
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/05

Advertisement

Table of Contents
loading

Table of Contents