Page 10
Epson Research and Development
Vancouver Design Center
S1D13503
Programming Notes and Examples
X18A-G-002-06
Issue Date: 01/01/30
2 INITIALIZING THE S1D13503
This section presents two examples to show how to initialize the S1D13503 registers and write a pixel to the display. Code
to initialize the S1D13503 is provided in Section 7.2, “Initialization Code” on page 60.
The following examples describe values written to registers.
•
A “panel specific” value is one required for the given type of panel. Such a value must never change after initializa-
tion of all registers.
•
An “implementation specific” value is one required for the hardware implementation of the S1D13503. Such a value
must never change after initialization of all registers. Refer to the S1D13503 Hardware Functional Specification and
S5U13503B00C Evaluation Board User’s Manual for more information on hardware implementation issues.
•
An “application specific” value is one that can be changed by the program after initialization of all registers.
Example 1:
Initialize the registers for a 256 color 320 x 240 single panel LCD with 128k of display
memory. Afterwards write one pixel to the top left corner of the display.
Program S1D13503 Registers in the following order with the data supplied:
AUX
Register
Data
(in Binary)
Notes
See Also
AUX[00h]
0000 0000
•
bits 7 and 6 must be zero
AUX[01h]
0010 1001
•
b7 = display off (application specific; the recommended
procedure is to turn this bit off during register initialization and
afterwards turn this bit on)
•
b6 = single panel (panel specific)
•
b5 = XSCL is masked (panel specific)
•
b4 = LCDE = LCDENB pin = set to disable specific power
supply design (for S5U13503B00C, set bit to 0 to disable power
supply) (application specific; the recommended procedure is to
disable the power supply during register initialization and
afterwards enable the power supply)
•
b3 = N/A for 256 colors (application specific)
•
b2 = 4 bit LCD data width when combined with AUX[03] bit 3
(panel specific)
•
b1 = 16 bit Memory Interface (implementation specific)
•
b0 = RAMS ignored (implementation specific)
AUX[02h]
1001 1111
•
bits 7-0 = bits 7-0 of Line Byte Count
•
bit 8 of Line Byte Count is bit 0 of AUX[03h]
see Note A at end of
Table for calculation
AUX[03h]
0000 0110
•
bits 7-6 = Power Save Mode 0 (application specific - for normal
operation set to 00b)
•
bit 5 = LCD interface signals forced low during Power Save
(implementation and panel specific)
•
bit 4 = no LUT bypass (application specific)
•
bit 3 = 4 bit LCD data width when combined with AUX[01] bit 2
(panel specific)
•
bit 2 = 256 color mode (application specific)
•
bit 1 = color panel attached (panel specific)
•
bit 0 = bit 8 of Line Byte Count (panel specific, see AUX[02h])
see Section 5.6, “Power
Saving” on page 54
AUX[04h]
1110 1111
•
bits 7-0 = bits 7-0 of Total Display Line Count
•
bits 9-8 of Total Display Line Count in bits 1-0 of AUX[05h]
see Note B and C at end
of Table for calculation
electronic components distributor