Epson SED1352 Technical Manual page 159

Graphics lcd controller
Table of Contents

Advertisement

Epson Research and Development
Vancouver Design Center
//-------------------------------------------------------------------------
void PowerSaving(void)
{
static unsigned int val;
printf("Starting Power Saving\n");
val = ReadRegister(3);
val &= 0x3f;
val |= 0x80;
WriteRegister(3, val);
printf("Press any key to cancel power saving\n");
getch();
val &= 0x38;
WriteRegister(3, val);
}
//-------------------------------------------------------------------------
//
// FUNCTION: PowerSaving()
//
// DESCRIPTION: Starts power saving mode 2.
//
// INPUTS: None.
// RETURN VALUE: None.
//
//This is an optional method of power saving.
//
//-------------------------------------------------------------------------
void PowerSaving(void)
{
static unsigned int val;
printf("Starting Power Saving\n");
//
// The following are the steps to enter a power save mode.
//
//
// Step 1: Turn off display
//
val = ReadRegister(1);
val &= 0x7f;
WriteRegister(1, val);
//
// Step 2: Disable LCDE (turn off LCD power supply).
//
For the SDU1353B0C, set LCDE bit to 0.
//
val = ReadRegister(1);
val &= 0xef;
WriteRegister(1, val);
//
Programming Notes and Examples
Issue Date: 98/10/08
// Set power saving mode 2
// Cancel power saving mode 2
Page 63
SED1352
X16-BG-007-04

Advertisement

Table of Contents
loading

Table of Contents