English
Language : 

SED1354 Datasheet, PDF (195/472 Pages) Epson Company – Color Graphics LCD/CRT Controller
Epson Research and Development
Vancouver Design Center
Page 55
if (ChipId != ID_SED1354F0A)
{
printf("ERROR: Did not detect SED1354.\n");
exit(1);
}
if (seSetInit(Device) != ERR_OK)
{
printf("ERROR: Could not initialize device.\n");
exit(1);
}
/***************************************************************************
* Fill 2M bytes of memory with 0xffffffff (white)
* Note that 0x200000 == 2 M bytes. Divide by 4 for number of Dwords to fill
***************************************************************************/
seWriteDisplayDwords(Device, 0, 0xffffffff, 0x200000/4);
exit(0);
}
9.1.2 Sample code without using 1354HAL API
/*
**===========================================================================
** INIT1354.C - sample code demonstrating the initialization of the SED1354.
**
Beta release 2.0 98-10-22
**
** The code in this example will perform initialization to the following
** specification:
**
** - 320 x 240 single 8-bit color passive panel.
** - 75 Hz frame rate.
** - 8 BPP (256 colors).
** - 33 MHz input clock.
** - 2 MB of 60 ns FPM memory.
**
**
*** This is sample code only! ***
** This means:
** 1) Generic C is used. I assume that pointers can access the
**
relevant memory addresses (this is not always the case).
**
i.e. using the 1354B0B card on an Intel 16 bit platform will require
**
changes to use a DOS extender to access memory and registers.
** 2) Register setup is done with discreet writes rather than being
**
table driven. This allows for clearer commenting. A real program
**
would probably store the register settings in an array and loop
**
through the array writing each element to a control register.
Programming Notes and Examples
Issue Date: 98/10/28
SED1354
X19A-G-002-06