Epson Research and Development
Page 57
Vancouver Design Center
Programming Notes and Examples
S1D13503
Issue Date: 01/01/30
X18A-G-002-06
7 PROGRAMMING THE S1D13503
The purpose of this section is to show how to program the S1D13503 exercising the specific capabilities of this chip. A
series of functions written in ‘C’ will be presented, each illustrating a basic feature of the S1D13503. These functions are
written for the S5U13503B00C evaluation board, and are combined under a menu-driven program called
13503DEMO.EXE.
Note
The sample code will not run on a display larger than 320 x 240, and will use either 256 colors or 16
gray shades in most of the examples.
This program accepts the following command line options:
13503DEMO t=n x=n y=n d=n i=n p=n [f=n] [/?]
For example, if there is a 320 x 240 color single panel LCD, 8 bit interface, format 2, with a port address of 310h, type
13503DEMO t=SINGLE x=320 y=240 d=COLOR i=8 p=310 f=2
When 13503DEMO is started, output will be sent to the standard output device. This output will present a menu of
numbered options:
Figure 20: Display For 13503DEMO.EXE
where:
t = SINGLE | DUAL
x = horizontal panel size in pixels from 1 to 320 (decimal)
y = vertical panel size in pixels from 1 to 240 (decimal)
d = COLOR | MONO
i = 4 | 8 (4 bit or 8 bit interface to panel)
p = 300 | 310...360 | 370 (port address in hex) (indexed I/O addressing selected by default)
f = 1 | 2 (format for color 8 bit panel interface)
/? = show this help screen
S1D13503/S5U13503B00C DEMO PROGRAM
Press 1 to read registers
Press 2 to show color/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
electronic components distributor