Epson S1D13704 Technical Manual page 164

Embedded memory color lcd controller
Table of Contents

Advertisement

Page 68
**
**
**
*/
SET_REG(0x13, 0xFF);
SET_REG(0x14, 0x03);
/*
** Look-Up Table
** In this example the LUT will be programmed in the register sequence.
** In practice the LUT would probably be done after the other registers.
*/
/*
** Register 15h - Look-Up Table Address
**
*/
SET_REG(0x15, 0x00);
/*
** Register 16h - Look-Up Table Bank Select
**
**
**
*/
SET_REG(0x16, 0x00);
/*
** Register 17h - Look-Up Table Data
**
**
*/
pLUT = Color_4BPP;
for (LUTcount = 0; LUTcount < 16; LUTcount++)
{
for (RGBcount = 0; RGBcount < 3; RGBcount++)
{
}
}
/*
** Register 18h - GPIO Configuration - set to 0
**
*/
SET_REG(0x18, 0x00);
/*
** Register 19h - GPIO Status - set to 0
**
S1D13704
X26A-G-002-03
- Set to maximum (i.e. 0x3FF). This register is used
for split screen operation and should be set to 0
during initialization.
- Set to 0 to start RGB sequencing at the first LUT entry.
- Set all the banks to 0.
- At 4BPP this makes no difference however it will affect
appearance at other color depths.
- Write 16 RGB triplets to setup the LUT for 4BPP operation.
- The LUT is 16 elements deep, 4BPP uses all the idices.
SET_REG(0x17, *pLUT);
pLUT++;
- '0' configures the GPIO pins for input (power on default)
- This step has no reason other than it programs the GPIO
*
Epson Research and Development
Vancouver Design Center
Programming Notes and Examples
Issue Date: 01/02/12

Advertisement

Table of Contents
loading

Table of Contents