
Page 46
Epson Research and Development
Vancouver Design Center
SED1352
Programming Notes and Examples
X16-BG-007-04
Issue Date: 98/10/08
6 PROGRAMMING THE SED1352
The purpose of this section is to show how to program the SED1352 exercising the specific capabilities of this chip. A series
of functions written in ‘C’ will be presented, each illustrating a basic feature of the SED1352. These functions are written
for the SDU1352B0x evaluation board, and are combined under a menu-driven program called DEMO.EXE.
Note
The sample code will not run on a display larger than 320x240, and will use 16 gray shades in most of
the examples.
This program accepts the following command line options:
DEMO type x=n y=n p=n
For example, if there is a 320x240 single panel LCD with a port address of 310h, type
DEMO SINGLE x=320 y=240 p=310
When DEMO is started, output will be sent to the standard output device. This output will present a menu of numbered
options:
Figure 15: Display for DEMO.EXE
where:
type = SINGLE | DUAL
x = horizontal panel size in pixels from 1 to 320 (decimal)
y = vertical panel size in pixels from 1 to 240 (decimal)
p = 300 | 310...360 | 370 (port address in hex) (I/O indexed addressing selected by default)
SDU1352B0x DEMO PROGRAM
Press 1 to read registers
Press 2 to show gray shade bar
Press 3 to show split screen
Press 4 to show panning and scrolling
Press 5 to start power saving
Press ESC to quit