SED1352 [EPSON]

Document Number: X16B-Q-001-06; 文件编号: X16B -Q- 001-06
SED1352
型号: SED1352
厂家: EPSON COMPANY    EPSON COMPANY
描述:

Document Number: X16B-Q-001-06
文件编号: X16B -Q- 001-06

文件: 总242页 (文件大小:1084K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
SED1352 Graphics LCD Controller  
SED1352  
TECHNICAL MANUAL  
Document Number: X16B-Q-001-06  
Copyright © 1997, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your ownuse in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
Page ii  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page iii  
CUSTOMER SUPPORT INFORMATION  
Comprehensive Support Tools  
Seiko Epson Corp. provides to the system designer and computer OEM manufacturer a complete set of resources and tools  
for the development of imbedded graphics systems.  
Evaluation / Demonstration Board  
Assembled and fully tested graphics evaluation board with installation guide and schematics  
To borrow an evaluation board, please contact your local Seiko Epson Corp. sales representative  
Chip Documentation  
Technical manual includes Data Sheet, Application Notes, and Programmer’s Reference  
Software  
OEM Utilities  
User Utilities  
Evaluation Software  
To obtain these programs, contact Application Engineering Support  
Application Engineering Support  
Engineering and Sales Support is provided by:  
Japan  
North America  
Taiwan, R.O.C.  
Epson Taiwan Technology  
& Trading Ltd.  
Seiko Epson Corporation  
Electronic Devices Marketing Division  
421-8, Hino, Hino-shi  
Tokyo 191-8501, Japan  
Tel: 042-587-5812  
Epson Electronics America, Inc.  
150 River Oaks Parkway  
San Jose, CA 95134, USA  
Tel: (408) 922-0200  
Fax: (408) 922-0238  
http://www.erd.epson.com  
10F, No. 287  
Nanking East Road  
Sec. 3, Taipei, Taiwan, R.O.C.  
Tel: 02-2717-7360  
Fax: 02-2712-9164  
Fax: 042-587-5564  
http://www.epson.co.jp  
Singapore  
Europe  
Hong Kong  
Epson Singapore Pte., Ltd.  
No. 1  
Temasek Avenue #36-00  
Millenia Tower  
Singapore, 039192  
Tel: 337-7911  
Fax: 334-2716  
Epson Europe Electronics GmbH  
Riesstrasse 15  
80992 Munich, Germany  
Tel: 089-14005-0  
Epson Hong Kong Ltd.  
20/F., Harbour Centre  
25 Harbour Road  
Wanchai, Hong Kong  
Tel: 2585-4600  
Fax: 089-14005-110  
Fax: 2827-4346  
Issue Date: 98/10/08  
SED1352  
Page iv  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page v  
TABLE OF CONTENTS  
INTRODUCTION  
SED1352 Graphics LCD Controller Data Sheet  
SPECIFICATION  
SED1352 Hardware Functional Specification  
PROGRAMMER’S REFERENCE  
SED1352 Programming Notes and Examples  
UTILITIES  
1352SHOW.EXE Display Utility  
VIRTUAL.EXE Display Utility  
BIOS1352.COM Utility  
1352GRAY.EXE Display Utility  
1352PD.EXE Power Down Utility  
1352READ.EXE Diagnostic Utility  
EVALUATION  
SDU1352B0C Rev 1.0 Evaluation Board User Manual  
APPLICATION NOTES  
Power Consumption  
ISA Bus Interface Considerations  
MC68340 Interface Considerations  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  
SED1352  
Page vi  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
Issue Date: 98/10/08  
GRAPHICS  
SED1352  
October 1998  
SED1352 GRAPHICS LCD CONTROLLER  
DESCRIPTION  
The SED1352 is a graphics display LCD controller capable of displaying a maximum of 16 levels of gray on single and dual  
scan Liquid Crystal Displays. A 16x4 lookup table is provided to allow remapping of the 16 possible gray shades displayed on  
the LCD panel. The SED1352 can interface to the MC68000 microprocessor and 8/16 bit MPUs with READY (WAIT#) signal  
with minimum external “glue” logic. This chip can directly control up to 128 Kbytes of static SRAM.  
Optimized for cost and power savings, the SED1352 can operate from 2.7 volts to 5.5 volts and up to 25MHz.  
FEATURES  
16-bit 16 MHz MC68000 MPU interface  
8/16-bit MPU interface controlled by a READY (or  
WAIT#) signal  
display memory interface:  
one 1 Mbit SRAM(64Kx16)  
one or two 32Kbyte SRAM(s)  
one or two 8Kbyte SRAM(s)  
one 8Kbyte and one 32Kbyte SRAM  
option to use built-in index register or direct-mapping to  
access one of fifteen internal registers  
LCD panel configurations:  
2-terminal crystal input for internal or external  
crystal oscillator  
single-panel, single-drive display  
dual-panel, dual-drive display  
8/16-bit SRAM interface configurations  
two software power-save modes  
low power consumption  
maximum number of vertical lines:  
1,024 lines (single-panel, single-drive display)  
2,048 lines (dual-panel, dual-drive display)  
display modes:  
split screen display support at single-panel mode  
2 bit/pixel, 4-level gray-scale display  
4 bit/pixel, 16-level gray-scale display  
package:  
QFP5-100-S2 package (F0B)  
or QFP15-100-STD package (F1B)  
virtual display support  
SYSTEM BLOCK DIAGRAM  
CLOCK  
DATA  
CONTROL  
ADDRESS  
LCD PANEL  
MPU  
SED1352  
SRAM  
80xx  
Z80  
68xxx  
1
X16B-C-001-06  
 
GRAPHICS  
SED1352  
INTERFACE OPTIONS  
Interface with 16-Bit MC68xxx MPU and 16Kbytes SRAM (2 of 8K x 8)  
MC68xxx  
SED1352  
A20 to A23  
FC0 to FC1  
MEMCS#  
Decoder  
Decoder  
A16.. A14  
VD8-15  
VD0-7  
VWE#  
IOCS#  
A10 to A19  
A1 to A19  
D0 to D15  
AB1 to AB19  
DB0 to DB15  
READY  
WE#  
WE#  
64 Kbit  
CS#  
64 Kbit  
CS#  
DTACK#  
UDS#  
AB0  
LDS#  
BHE#  
VCS0#  
VCS1#  
VA0-12  
AS#  
R/W#  
IOR#  
IOW#  
Note: Example implementation, actual may vary.  
Interface with 8-Bit Z80 MPU and 16Kbytes SRAM (2 of 8K x 8)  
Z80  
Decoder  
SED1352  
MEMCS#  
MREQ#  
MI#  
A10 to A15  
VD0-7  
VWE#  
Decoder  
IOCS#  
IORQ#  
A0 to A15  
D0 to D7  
WAIT#  
WE#  
WE#  
AB0 to AB15  
DB0 to DB7  
READY  
64 Kbit  
CS#  
64 Kbit  
CS#  
MEMW#  
MEMR#  
WR#  
RD#  
VCS0#  
VCS1#  
VA0-12  
IOR#  
IOW#  
RESET#  
RESET  
Note: Example implementation, actual may vary.  
X16B-C-001-06  
2
GRAPHICS  
SED1352  
Interface with 16-Bit 8086 MPU and 64Kbytes SRAM (2 of 32K x 8)  
8086  
(Maximum mode)  
8288  
SED1352  
CLK  
CLK  
MEMR#  
MRDC#  
CLK  
READY  
RESET#  
S2#  
S2#  
S1#  
S0#  
VD0-7  
VWE#  
MEMW#  
IOR#  
AMWC#  
IORC#  
READY  
RESET#  
S1#  
S0#  
RDY  
IOW#  
AIOWC#  
DEN  
WE#  
8284A  
DT/R  
ALE  
256 Kbit  
CS#  
A16 to A19  
AB16 to AB19  
Decoder  
VCS0#  
VA0-14  
M/IO#  
AB0 to AB15  
BHE#  
BHE#  
BHE#  
A16  
AD0 to AD15  
MEMCS#  
IOCS#  
A0 to A16  
STB  
WE#  
256 Kbit  
CS#  
D0 to D15  
DB0 to DB15  
T
OE  
VCS1#  
RESET  
VD8-15  
READY  
Note: Example implementation, actual may vary.  
Interface with 8-Bit ISA Bus and 40Kbytes SRAM (1 of 8K x 8 and 1 of 32K x 8)  
8-Bit ISA Bus  
SED1352  
REFRESH  
VD0-7  
VWE#  
SA16.. SA13  
MEMCS#  
MEMW#  
MEMR#  
Decoder  
SMEMW#  
SMEMR#  
WE#  
READY  
IOCHRDY  
SD0 to SD7  
SA0 to SA19  
64 Kbit  
CS#  
DB0 to DB7  
AB0 to AB19  
VCS0#  
VA0-14  
SA(1 or 4) to SA9  
SA10 to SA15  
Decoder  
IOCS#  
AEN  
IOW#  
IOW#  
IOR#  
RESET  
IOR#  
WE#  
RESET#  
256 Kbit  
CS#  
optional  
Decoder  
0WS#  
VCS1#  
Note: Example implementation, actual may vary.  
X16B-C-001-06  
3
GRAPHICS  
SED1352  
Interface with 16-Bit ISA Bus and 128Kbytes SRAM (1 of 128K x 8)  
16-bit ISA Bus  
SED1352  
REFRESH  
SA16.. SA14  
MEMCS#  
MEMW#  
MEMR#  
READY  
Decoder  
SMEMW#  
SMEMR#  
VWE#  
WE#  
IOCHRDY  
SD0 to SD15  
SA0 to SA19  
DB0 to DB15  
AB0 to AB19  
1 Mbit  
SA(1 or 4) to SA9  
SA10 to SA15  
VCS0#  
LB#  
UB#  
Decoder  
IOCS#  
IOW#  
AEN  
VCS1#  
IOW#  
IOR#  
IOR#  
SBHE#  
BHE#  
RESET  
VA0-15  
A0-15  
RESET#  
VD0-7  
I/O 1-8  
IOCS16#  
Decoder  
VD8-15  
I/O 9-16  
LA17 to LA23  
MEMCS16#  
Decoder  
Note: Example implementation, actual may vary.  
SUPPORTED RESOLUTIONS  
Example Display Size  
Display  
SRAM  
Type  
CPU  
Interface  
SRAM  
Interface  
4 Grays  
16 Grays  
RAM  
X
Y
X
Y
8 Kbytes  
256 x 128  
128 x 128  
1 of 8Kx8  
2 of 8Kx8  
1 of 32Kx8  
8-bit  
8-bit  
8-bit  
8-bit/16-bit  
16-bit  
16 Kbytes  
32 Kbytes  
40 Kbytes  
320 x 200  
512 x 256  
512 x 320  
200 x 160  
256 x 256  
320 x 256  
16-bit  
8-bit  
8-bit  
1 of 8Kx8 and  
1 of 32Kx8  
8-bit  
8-bit  
8-bit  
16-bit  
16-bit  
8-bit/16-bit  
16-bit  
64 Kbytes  
512 x 512  
512 x 256  
512 x 512  
2 of 32Kx8  
128 Kbytes  
1024 x 512  
1 of 64Kx16  
16-bit  
X16B-C-001-06  
4
GRAPHICS  
SED1352  
BLOCK DIAGRAM  
Control Registers  
IOR#, IOW#, IOCS#,  
MEMCS#, MEMR#,  
MEMW#, BHE#,  
AB[19:0]  
Port  
Bus  
Sequence  
Controller  
Decoder  
Signal  
Translation  
LCDENB  
UD[3:0]  
LD[3:0]  
LP, YD,  
WF,  
Memory  
Decoder  
Look-Up  
Table  
LCD  
Panel  
Interface  
READY  
XSCL  
Data Bus  
Conversion  
Address  
Generator  
DB[15:0]  
Display  
Data  
Formatter  
CPU/CRT  
Selector  
Timing Generator  
Power Save  
Oscillator  
SRAM Interface  
5
X16B-C-001-06  
GRAPHICS  
SED1352  
FUNCTIONAL BLOCK DESCRIPTIONS  
Bus Signal Translation  
Data Bus Conversion  
According to configuration setting VD2, Bus Signal Trans-  
lation translates MC68000 type CPU signals, or READY  
type MPU signals, to internal bus interface signals.  
According to configuration setting VD0, the Data Bus  
Conversion maps the external data bus, either 8-bit or 16-  
bit, into the internal odd and even data bus.  
Control Registers  
Address Generator  
The fifteen internal Control and Configuration Registers  
are accessed by direct-mapping or by using the built-in  
internal index register.  
The Address Generator generates display refresh addresses  
used to access display memory.  
CPU / CRT Selector  
Sequence Controller  
The CPU / CRT Selector accesses the display memory  
from the CPU or the display refresh circuitry.  
The Sequence Controller generates horizontal and vertical  
display timings according to the configuration registers  
settings.  
Display Data Formatter  
The Display Data Formatter reads the display data from the  
display memory and outputs the correct format for all  
supported LCD panel types and gray-scale selections.  
LCD Panel Interface  
The LCD Interface performs frame rate modulation for  
passive monochrome LCD panels.  
Clock Inputs / Timing  
Look-Up Table  
Clock Inputs / Timing generates the internal master clock  
according to the gray-level selected and display memory  
interface.The master clock (MCLK) can be:  
MCLK = input clock  
The Look-Up Table contains sixteen 4-bit wide palettes  
that can be configured as one 16x4 palette or four 4x4  
palettes used for the re-mapping of gray-scale outputs.  
MCLK = 1/2 input clock  
MCLK = 1/4 input clock  
Port Decoder  
According to configuration settings VD1, VD12 - VD4,  
IOCS# and address lines AB9-1, the Port Decoder  
validates a given I/O cycle.  
Pixel clock = input clock.  
SRAM Interface  
The SRAM Interface generates the necessary signals to  
interface to the Display memory (SRAM).  
Memory Decoder  
According to configuration settings VD15 - VD13,  
MEMCS# and address lines AB19-17, the Memory  
Decoder validates a given memory cycle.  
6
X16B-C-001-06  
GRAPHICS  
SED1352  
DC SPECIFICATIONS  
Absolute Maximum Ratings  
Symbol  
VDD  
Parameter  
Rating  
Units  
VSS - 0.3 to + 6.5  
V
V
Supply Voltage  
VIN  
VSS - 0.3 to VDD + 0.3  
VSS - 0.3 to VDD + 0.3  
-65 to 150  
Input Voltage  
VOUT  
TSTG  
TSOL  
V
Output Voltage  
° C  
° C  
Storage Temperature  
Solder Temperature/Time  
260 for 10 sec. max at lead  
Recommended Operating Conditions  
Symbol  
VDD  
Parameter  
Supply Voltage  
Condition  
Min  
2.7  
Typ  
Max  
5.5  
Units  
V
VSS = 0V  
3.0/3.3/5.0  
--  
VIN  
VSS  
VDD  
V
Input Voltage  
f
OSC = 6 MHz,  
16 grays  
IOPR  
TOPR  
PTYP  
3.0/3.5/7.0  
mA  
° C  
Operating Current  
-40  
25  
85  
Operating Temperature  
Typical Active Power Consumption  
fOSC = 6 MHz,  
16 grays  
9.0/11.55/  
35.0  
mW  
Input Specifications  
Symbol  
Parameter  
Condition  
Min  
Typ  
Max  
Units  
VDD = 4.5V  
VDD = 3.0V  
VDD = 2.7V  
0.8  
0.6  
0.5  
VIL  
VIH  
VT+  
VT-  
V
V
V
V
Low Level Input Voltage  
VDD = 5.5V  
VDD = 3.6V  
VDD = 3.3V  
2.0  
2.5  
2.3  
High Level Input Voltage  
Positive-going Threshold  
Negative-going Threshold  
VDD = 5.0  
VDD = 3.3  
VDD = 3.0  
2.4  
2.4  
2.3  
VDD = 5.0  
VDD = 3.3  
VDD = 3.0  
0.6  
0.6  
0.5  
VDD = 5.0  
VDD = 3.3  
VDD = 3.0  
0.1  
0.1  
0.1  
VH  
IIZ  
V
Hysteresis Voltage  
--  
-1  
1
µA  
Input Leakage Current  
7
X16B-C-001-06  
GRAPHICS  
SED1352  
Output Specifications  
Symbol  
Parameter  
Condition  
Min  
Typ  
Max  
Units  
Low Level Output Voltage  
IOL = 6 mA  
IOL = 12 mA  
IOL = 24 mA  
Type 2 - TS2, CO2, TS2D2  
Type 3 - TS3  
Type 4 - TS4, CO4  
VOL (5.0V)  
VOL (3.3V)  
VOL (3.0V)  
VOH (5.0V)  
VOH (3.3V)  
VOH (3.0V)  
VSS + 0.4  
V
Low Level Output Voltage  
IOL = 3mA  
IOL = 6mA  
IOL = 12mA  
Type 2 - TS2, CO2, TS2D2  
Type 3 - TS3  
Type 4 - TS4, CO4  
VSS + 0.3  
VSS + 0.3  
V
V
V
V
V
Low Level Output Voltage  
IOL = 3mA  
IOL = 5 mA  
IOL = 10mA  
Type 2 - TS2, CO2, TS2D2  
Type 3 - TS3  
Type 4 - TS4, CO4  
High Level Output Voltage  
IOH = -2 mA  
IOH = -4 mA  
IOH = -8 mA  
Type 2 - TS2, CO2, TS2D2  
Type 3 - TS3  
Type 4 - TS4, CO4  
VDD-0.4  
VDD-0.3  
Low Level Output Voltage  
IOL = -1 mA  
IOL = -2 mA  
IOL = -4 mA  
Type 2 - TS2, CO2, TS2D2  
Type 3 - TS3  
Type 4 - TS4, CO4  
High Level Output Voltage  
IOH = -1 mA  
IOH = -1.8 mA  
IOH = -3.5 mA  
Type 2- TS2, CO2, TS2D2  
Type 3- TS3  
Type 4- TS4, CO4  
VDD-0.3  
-1  
IOZ  
1
µA  
pF  
pF  
Output Leakage Current  
Output Pin Capacitance  
Bidirectional Pin Capacitance  
COUT  
CBID  
6
10  
X16B-C-001-06  
8
GRAPHICS  
SED1352  
SED1352 PIN OUTS  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
50  
49  
48  
47  
46  
45  
44  
43  
42  
41  
40  
39  
38  
37  
36  
35  
XSCL  
LCDENB  
VOE#  
IOCS#  
IOW#  
IOR#  
MEMCS#  
MEMW#  
MEMR#  
READY  
BHE#  
OSC1  
OSC2  
DB0  
DB1  
DB2  
VD6  
VD5  
VD4  
VD3  
VD2  
VD1  
VD0  
VA10  
VA 9  
VA 8  
VA 7  
VA 6  
VA 5  
VA 4  
VA 3  
VA 2  
SED1352F0B  
97  
98  
99  
100  
34  
33  
32  
31  
DB3  
DB4  
DB5  
DB6  
VA 1  
VA 0  
RESET  
AB19  
9
X16B-C-001-06  
GRAPHICS  
SED1352  
76  
50  
49  
48  
47  
46  
45  
44  
43  
42  
41  
40  
39  
38  
37  
36  
35  
34  
33  
32  
31  
LP  
WF  
V
V
DD  
SS  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
XSCL  
LCDENB  
VOE#  
IOCS#  
IOW#  
IOR#  
MEMCS#  
MEMW#  
MEMR#  
READY  
BHE#  
OSC1  
OSC2  
DB0  
DB1  
DB2  
DB3  
DB4  
DB5  
DB6  
DB7  
VSS  
VD7  
VD6  
VD5  
VD4  
VD3  
VD2  
VD1  
VD0  
VA 10  
VA9  
VA8  
VA7  
VA6  
VA5  
VA4  
VA3  
VA2  
VA1  
SED1352F1B  
30  
29  
28  
27  
VA0  
RESET  
AB19  
AB18  
AB17  
26  
V
DD  
X16B-C-001-06  
10  
GRAPHICS  
SED1352  
Dummy Pad  
70  
60  
50  
V
V
DD  
SS  
LP  
WF  
VD7  
VD6  
VD5  
VD4  
VD3  
VD2  
VD1  
VD0  
VA10  
VA9  
XSCL  
LCDENB  
VOE#  
IOCS#  
IOW#  
IOR#  
80  
MEMCS#  
MEMW#  
MEMR#  
READY  
BHE#  
OSC1  
OSC2  
DB0  
40  
SED1352D0B  
VA8  
VA7  
VA6  
VA5  
90  
VA4  
DB1  
VA3  
VA2  
VA1  
VA0  
DB2  
DB3  
DB4  
30  
DB5  
RESET  
AB19  
AB18  
DB6  
DB7  
V
SS  
V
100  
DD  
1
10  
20  
AB17  
Dummy Pad  
=
=
=
Chip Size  
Chip Thickness  
Pad Size  
4.400 mm x 4.400 mm  
0.400 mm  
0.090 mm x 0.090 mm  
Pad Pitch  
= 0.140 mm (Min.)  
11  
X16B-C-001-06  
GRAPHICS  
SED1352  
PAD Coordinates  
Pad Center  
Coordinate  
Pad Center  
Coordinate  
Pad  
No.  
Pin  
Name  
Pad  
No.  
Pin  
Name  
X
Y
X
Y
1
DB8  
DB9  
-1.850  
-1.670  
-1.496  
-1.330  
-1.168  
-1.012  
-0.860  
-0.712  
-0.566  
-0.423  
-0.281  
-0.140  
0.000  
0.140  
0.281  
0.423  
0.566  
0.712  
0.860  
1.012  
1.168  
1.330  
1.496  
1.670  
1.850  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.021  
-1.670  
-1.496  
-1.330  
-1.168  
-1.012  
-0.860  
-0.712  
-0.566  
-0.423  
-0.281  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
VA7  
VA8  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
1.850  
1.670  
1.496  
1.330  
1.168  
1.012  
0.860  
0.712  
0.566  
0.423  
0.281  
0.140  
0.000  
-0.140  
-0.281  
-0.423  
-0.566  
-0.712  
-0.860  
-1.012  
-1.168  
-1.330  
-0.140  
0.000  
0.140  
0.281  
0.423  
0.566  
0.712  
0.860  
1.012  
1.168  
1.330  
1.496  
1.670  
1.850  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2
3
DB10  
DB11  
DB12  
DB13  
DB14  
DB15  
AB0  
VA9  
4
VA10  
VD0  
5
6
VD1  
7
VD2  
8
VD3  
9
VD4  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
AB1  
VD5  
AB2  
VD6  
AB3  
VD7  
AB4  
VSS  
AB5  
VDD  
AB6  
VD8  
AB7  
VD9  
AB8  
VD10  
VD11  
VD12  
VD13  
VD14  
VD15  
VA11  
VA12  
VA13  
VA14  
VA15  
VWE#  
VCS0#  
VCS1#  
UD3  
AB9  
AB10  
AB11  
AB12  
AB13  
AB14  
AB15  
AB16  
AB17  
AB18  
AB19  
RESET  
VA0  
VA1  
VA2  
UD2  
VA3  
UD1  
VA4  
UD0  
VA5  
LD3  
VA6  
LD2  
X16B-C-001-06  
12  
GRAPHICS  
SED1352  
Pad Center  
Coordinate  
Pad Center  
Coordinate  
Pad  
No.  
Pin  
Name  
Pad  
No.  
Pin  
Name  
X
Y
X
Y
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
LD1  
LD0  
-1.496  
-1.670  
-2.021  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
2.071  
2.071  
2.071  
1.850  
1.670  
1.496  
1.330  
1.168  
1.012  
0.860  
0.712  
0.566  
0.423  
0.281  
0.140  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
BHE#  
OSC1  
OSC2  
DB0  
DB1  
DB2  
DB3  
DB4  
DB5  
DB6  
DB7  
VSS  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
2.071  
0.000  
-0.140  
-0.281  
-0.423  
-0.566  
-0.712  
-0.860  
-1.012  
-1.168  
-1.330  
-1.496  
-1.670  
-1.850  
2.071  
YD  
LP  
WF  
XSCL  
LCDENB  
VOE#  
IOCS#  
IOW#  
IOR#  
MEMCS#  
MEMW#  
MEMR#  
READY  
VDD  
101 Dummy Pad  
102 Dummy Pad -2.071  
-2.071  
13  
X16B-C-001-06  
GRAPHICS  
SED1352  
PIN DESCRIPTION  
Key  
A
I
= Analog  
= Input  
O
= Output  
I/O = Bidirectional  
= Power  
P
Bus Interface  
F1B Pin #  
Pin Name Type F0B Pin # D0B Pad Description  
#
94 - 100, 1, 91 - 98,  
These pins are connected to the system data bus. In 8-bit bus mode, DB8-DB15  
must be tied to VDD  
DB0-DB15 I/O  
4 -11  
12  
1 - 8  
9
.
In MC68000 MPU interface, this pin is connected to the Upper Data Strobe  
(UDS#) pin of MC68000. In other bus interfaces, this pin is connected to the  
system address bus.  
AB0  
I
AB1-AB19 I  
13 - 31  
91  
10 - 28  
88  
These pins are connected to the system address bus.  
In MC68000 MPU interface, this pin is connected to the Lower Data Strobe  
(LDS#) pin of MC68000. In other bus interfaces, this pin is the Bus High Enable  
input for use with 16-bit system. In 8-bit bus mode, tie BHE# input to VDD  
BHE#  
I
I
.
IOCS#  
84  
81  
Active low input to select one of fifteen internal registers.  
In MC68000 MPU interface, this pin is connected to the R/W# pin of MC68000.  
This input pin will define whether the data transfer is a read (active high) or write  
(active low) cycle. In other bus interfaces, this is the active low input to write data  
into an internal register.  
IOW#  
I
85  
82  
In MC68000 MPU interface, this pin is connected to the AS# pin of MC68000.  
This input pin will indicate a valid address is available on the address bus. In other  
bus interfaces, this is the active low input to read data from an internal register.  
IOR#  
I
86  
83  
MEMCS#  
MEMW#  
I
I
87  
88  
84  
85  
Active low input to indicate the attempt to access the display memory.  
Active low input to write data to the display memory. This pin should be tied to  
VDD in an MC68000 MPU interface.  
Active low input to read data from the display memory. This pin should be tied to  
VDD in an MC68000 MPU interface.  
MEMR#  
I
89  
86  
For MC68000 MPU interface, this pin is connected to the DTACK# pin of  
MC68000 and will be driven low when ever a data transfer is complete. In other  
bus interfaces, this output is driven low to force the system to insert wait states  
when needed.  
READY  
RESET  
O
I
90  
32  
87  
29  
READY is placed in a high-impedance (Hi-Z) state after the transfer is completed.  
Active high input to force all signals to their inactive states.  
X16B-C-001-06  
14  
GRAPHICS  
SED1352  
Display Memory Interface  
F1B Pin #  
Pin Name Type F0B Pin # D0B Pad Description  
#
These pins are connected to the display memory data bus. For 16-bit interface,  
VD0-VD7 are connected to the display memory data bus of even byte addresses  
and VD8-VD15 are connected to the display memory data bus of odd byte  
addresses. The output drivers of these pins are tri-stated when RESET is high.  
44 - 51,  
54 - 61  
41 - 48,  
51 - 58  
VD0-VD15 I/O  
VA0-VA15 O  
On the falling edge of RESET the values of VD0-VD15 are latched into the chip to  
configure various hardware options.  
VD0-VD15 each have an internal pull-down resistor  
33 - 43,  
62 - 66  
30 - 40  
59, 63  
These pins are connected to the display memory address bus.  
VCS1#  
VCS0#  
O
O
69  
68  
66  
65  
Active low chip-select output to the second or odd byte address SRAM.  
Active low chip-select output to the first or even byte address SRAM.  
Active low output used for writing data to the display memory. This pin is  
connected to the WE# input of the SRAMs.  
VWE#  
VOE#  
O
O
67  
83  
64  
80  
Active low output to enable reading of data from the display memory. This pin is  
connected to the OE# input of the SRAMs.  
LCD Interface  
FPDI-1TM  
F1B Pin #  
Description  
D0B Pad #  
Pin Name  
Type F0B Pin #  
Pin Namea  
Upper panel display data for dual panel mode. For single panel  
mode, these bits are the most significant 4 bits of the 8 bits output  
data to the panel (PD[4:7]). For 4-bit single panel mode, these bits  
are the 4 bits of output data to the panel.  
UD3-UD0 UD3-UD0  
LD3-LD0 LD3-LD0  
O
O
70 - 73  
74 - 77  
67 - 70  
Lower panel display data for dual panel mode. For 8-bit single panel  
mode, these bits are the least significant 4 bits of the 8 bits output  
data to the panel (PD[0:3]). For 4-bit single panels, these bits are  
71 - 74  
driven 0 (low state).  
Display data shift clock. Data is shifted into the LCD X-drivers on  
the falling edge of this signal.  
XSCL  
LP  
FPSHIFT  
FPLINE  
MOD  
O
O
O
81  
79  
80  
78  
82  
78  
Display data latch clock. The falling edge of this signal is used to  
latch a row of display data in the LCD X-drivers and to turn on the  
row driver (Y driver).  
76  
77  
75  
79  
LCD backplane BIAS signal. This output toggles once every n LP  
periods, as programmed in AUX[5]  
WF  
Vertical scanning start pulse. A logic ‘1’ on this signal, sampled by  
the LCD module on the falling edge of LP, is used by the panel row  
driver (Y driver) to indicate the start of the vertical frame.  
YD  
FPFRAME O  
O
LCD enable signal output. It can be used externally to turn off the  
panel supply voltage and backlight.  
LCDENB  
a
TM  
VESA Flat Panel Display Interface Standard (FPDI-1  
)
15  
X16B-C-001-06  
GRAPHICS  
SED1352  
Clock Inputs  
F1B Pin #  
Pin Name Type F0B Pin # D0B Pad Description  
#
This pin, along with OSC2 is the 2-terminal crystal interface when using a  
OSC1  
OSC2  
I
92  
93  
89  
90  
2-terminal crystal as the clock input. If an external oscillator is used as a clock  
source, then this pin is the clock input.  
This pin, along with OSC1 is the 2-terminal crystal interface when using a  
2-terminal crystal as the clock input. If an external oscillator is used as a clock  
source, then this pin should be left unconnected.  
O
Power Supply  
Pin Name Type F0B Pin #  
F1B Pin #  
D0B Pad #  
Description  
VDD  
VSS  
P
P
3, 53  
2, 52  
50, 100  
49, 99  
Voltage supply.  
Voltage ground.  
SUMMARY OF CONFIGURATION OPTIONS  
Pin Name  
value on this pin at falling edge of RESET is used to configure:  
(1/0)  
1
0
VD0  
VD1  
16-bit host bus interface  
8-bit host bus interface  
Use direct-mapping for I/O accesses  
Use internal index register for I/O accesses  
MPU / Bus interface with memory accesses  
controlled by a READY (WAIT#) signal  
VD2  
VD3  
MC68000 MPU interface  
Swap of high and low data bytes in 16-bit bus No byte swap of high and low data bytes in  
interface  
16-bit bus interface  
Select I/O mapping address bits [1:9].  
These nine bits are latched on power-up and are compared to the MPU address bits [1-9]. A  
valid I/O cycle combined with a valid address will enable the internal I/O decoder. Therefore,  
both types of I/O mapping are limited to even address boundaries to determine either the  
absolute or indexed I/O address of the first register. Note that a “valid I/O cycle” includes  
IOCS# being toggled low.  
VD4-VD12  
In direct mapping, the base I/O address is selected by VD7-VD12. In indexing, the base I/O  
address is selected by VD4-VD12.  
Select memory mapping address bits [1:3].  
These three bits are latched on power-up and are compared to the MPU address bits [17-19]. A  
valid memory cycle combined with a valid address will enable the internal memory decoder.  
As only the three most significant bits of the address are compared, the maximum amount of  
memory supported is 128K bytes. Note that a “valid memory cycle” includes MEMCS# being  
toggled low.  
VD13-VD15  
If 128K byte memory is used, it must be mapped at an even address so all 128K bytes is  
available without a change in state on A17, as this would invalidate the internal compare logic.  
X16B-C-001-06  
16  
GRAPHICS  
SED1352  
Example: If an ISA bus (no byte swap) with memory segment “A” and I/O location 300h are used, the corresponding settings  
of VD15-VD0 would be:  
8-Bit ISA Bus  
16-Bit ISA Bus  
Index  
Register  
Index  
Register  
Pin Name  
Direct Mapping  
Direct Mapping  
VD0  
VD1  
0
0
1
1
0
1
0
1
VD2  
0
0
0
0
VD3  
0
0
0
0
VD12-VD4  
VD15-VD13  
11 0000 000  
101  
11 0000 xxx  
101  
11 0000 000  
101  
11 0000 xxx  
101  
Where x = don’t care; 1 = connected to pull-up resistor; 0 = no pull-up resistor.  
17  
X16B-C-001-06  
GRAPHICS  
SED1352  
Illustrated below is the display data which is output from the UD0 to UD3 signal pins and the  
corresponding display on various panels:  
UD3 UD2 UD1 UD0  
UD3 UD2 UD1 UD0 LD3 LD2 LD1 LD0  
Dual Panel - Top  
8-bit Single Panel  
LD3 LD2 LD1 LD0  
Dual Panel - Bottom  
UD3 UD2 UD1 UD0  
4-bit Single Panel  
LCD PANEL PIXELS  
640 DOTS  
1-639  
2-639  
1-640  
2-640  
1 - 1  
2 - 1  
1 - 2  
2 - 2  
240 LINES  
UPPER LCD PANEL  
240 - 639 240 - 640  
241 - 639 241 - 640  
2 4 0- 1  
24 0 - 2  
2 4 1 - 2  
2 4 1 - 1  
(TOP VIEW)  
240 LINES  
LOW ER LCD PANEL  
480 - 639 480 - 640  
480-2  
480-1  
X16B-C-001-06  
18  
GRAPHICS  
SED1352  
MONOCHROME PASSIVE STN LCD PANEL INTERFACE  
4-BIT SINGLE PANEL  
LP : 240 PULSES  
LP: 4 PULSES  
YD  
LP  
WF  
LINE 1  
LINE 2  
LINE 3  
LINE  
4
LINE 239  
LINE 240  
LINE 1  
LINE 2  
UD[3:0]  
LP  
WF  
X S C L : 8 0 C L O C K P E R I O D S  
XSCL  
1-317  
1-318  
1-319  
1-320  
1-1  
1-2  
1-3  
1-4  
1-5  
1-6  
UD3  
UD2  
UD1  
UD0  
1-7  
1-8  
Example Timing for a 320x240 single panel  
19  
X16B-C-001-06  
GRAPHICS  
SED1352  
MONOCHROME PASSIVE STN LCD PANEL INTERFACE  
8-BIT SINGLE PANEL  
LP: 4 PULSES  
LP : 480 PULSES  
YD  
LP  
WF  
L I N E 1  
L I N E 2  
L I N E 3  
L I N E 4  
L I N E 4 7 9  
L I N E 4 8 0  
L I N E 1  
L I N E 2  
UD[3:0], LD[3:0]  
LP  
WF  
X S C L : 8 0 C L O C K P E R I O D S  
XSCL  
1-633  
1-634  
1-635  
1-636  
1-637  
1-638  
1-639  
1-640  
1-1  
1-2  
1-3  
1-4  
1-5  
1-9  
UD3  
UD2  
UD1  
UD0  
LD3  
LD2  
LD1  
LD0  
1-10  
1-11  
1-12  
1-13  
1-6  
1-7  
1-8  
1-14  
1-15  
1-16  
Example timing for a 640x480 panel  
X16B-C-001-06  
20  
GRAPHICS  
SED1352  
MONOCHROME PASSIVE STN LCD PANEL INTERFACE  
8-BIT DUAL PANEL  
LP: 2 PULSES  
LP : 240 PULSES  
YD  
LP  
WF  
LINE 1/241  
LINE 2/242  
LINE 3/243  
LINE 4/244  
LINE 239/479 LINE 240/480  
LINE 1/241  
LINE 2/242  
UD[3:0], LD[3:0]  
LP  
WF  
X S C L : 1 6 0 C L O C K P E R I O D S  
XSCL  
1-637  
1-638  
1-1  
1-2  
1-3  
1-4  
1-5  
UD3  
UD2  
UD1  
UD0  
LD3  
LD2  
LD1  
LD0  
1-6  
1-639  
1-7  
1-8  
1-640  
241-1 241-5  
241-2 241-6  
241-637  
241-638  
241-639  
241-640  
241-3  
241-4  
241-7  
241-8  
Example timing for a 640x480 panel  
21  
X16B-C-001-06  
GRAPHICS  
SED1352  
PACKAGE DIMENSIONS  
QFP5-100PIN-S2  
(SED1352)  
Unit: mm  
23.2± 0.04  
20.0± 0.1  
80  
51  
81  
50  
Index  
100  
31  
0.65± 0.1  
0.30± 0.1  
1
30  
0~12°  
0.8± 0.1  
1.6  
Actual Size  
X16B-C-001-06  
22  
GRAPHICS  
SED1352  
QFP15-100PIN-STD  
(SED1352F1B)  
Unit: mm  
16.0 ± 0.4  
14.0 ± 0.1  
75  
51  
76  
50  
Index  
100  
26  
1
25  
0.5  
0.168± 0.1  
0~10°  
0.5 ± 0.2  
1
Actual Size  
23  
X16B-C-001-06  
GRAPHICS  
SED1352  
COMPREHENSIVE SUPPORT TOOLS  
Seiko Epson provides the designer and manufacturer a complete set of resources and tools for the development of  
LCD Graphics Systems.  
Documentation  
Technical manuals  
Evaluation/Demonstration board manual  
Evaluation/Demonstration Board  
Assembled and fully tested Graphics Evaluation/Demonstration board  
Schematic of Evaluation/Demonstration board  
Parts List  
Installation Guide  
CPU Independent Software Utilities  
Evaluation Software  
Application Engineering Support  
Seiko Epson offers the following services through their Sales and Marketing Network:  
Sales Technical Support  
Customer Training  
Design Assistance  
CONTACT YOUR SALES REPRESENTATIVE FOR THESE  
COMPREHENSIVE DESIGN TOOLS:  
• SED1352 Technical Manual  
• SDU1352 Evaluation Boards  
• CPU Independent Software Utilities  
Japan  
North America  
Taiwan, R.O.C.  
Epson Taiwan Technology  
& Trading Ltd.  
Seiko Epson Corporation  
Electronic Devices Marketing Division  
421-8, Hino, Hino-shi  
Tokyo 191-8501, Japan  
Tel: 042-587-5812  
Epson Electronics America, Inc.  
150 River Oaks Parkway  
San Jose, CA 95134, USA  
Tel: (408) 922-0200  
Fax: (408) 922-0238  
http://www.eea.epson.com  
10F, No. 287  
Nanking East Road  
Sec. 3, Taipei, Taiwan, R.O.C.  
Tel: 02-2717-7360  
Fax: 02-2712-9164  
Fax: 042-587-5564  
http://www.epson.co.jp  
Singapore  
Europe  
Hong Kong  
Epson Singapore Pte., Ltd.  
No. 1  
Temasek Avenue #36-00  
Millenia Tower  
Singapore, 039192  
Tel: 337-7911  
Fax: 334-2716  
Epson Europe Electronics GmbH  
Riesstrasse 15  
80992 Munich, Germany  
Tel: 089-14005-0  
Epson Hong Kong Ltd.  
20/F., Harbour Centre  
25 Harbour Road  
Wanchai, Hong Kong  
Tel: 2585-4600  
Fax: 089-14005-110  
Fax: 2827-4346  
Copyright ©1997, 1998 Epson Research and Development, Inc. All rights reserved.  
VDC  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Ep-  
son/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document  
are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. Microsoft and Windows are registered trademarks of Microsoft Corporation.  
X16B-C-001-06  
24  
SED1352 Dot Matrix Graphics LCD Controller  
Hardware Functional Specification  
Document Number: X16-SP-001-16  
Copyright © 1995, 1999 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 3  
Table of Contents  
1
2
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9  
1.1 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9  
1.2 Overview Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9  
FEATURES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10  
2.1 Technology . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10  
2.2 System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10  
2.3 Display Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10  
2.4 Display Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11  
2.5 Power Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11  
3
TYPICAL SYSTEM BLOCK DIAGRAMS . . . . . . . . . . . . . . . . . . . . . . 12  
3.1 16-Bit MC68000 MPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12  
3.1.1 MPU with READY (or WAIT#) signal . . . . . . . . . . . . . . . . . . . . . . . . . . . 13  
3.1.2 ISA Bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14  
3.2 Internal Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  
3.3 Functional Block Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . 15  
3.3.1 Bus Signal Translation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  
3.3.2 Control Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  
3.3.3 Sequence Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  
3.3.4 LCD Panel Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  
3.3.5 Look-Up Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
3.3.6 Port Decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
3.3.7 Memory Decoder . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
3.3.8 Data Bus Conversion . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
3.3.9 Address Generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
3.3.10 CPU / CRT Selector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
3.3.11 Display Data Formatter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
3.3.12 Clock Inputs / Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
3.3.13 SRAM Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
4
5
PINOUT DIAGRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17  
PINOUT DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22  
5.1 Summary of Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . 25  
6
7
D.C. CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26  
A.C. CHARACTERISTICS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  
7.1 Bus Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  
7.1.1 MC68000 Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  
7.1.2 Non-68000, MPU/Bus With READY (or WAIT#) Signal . . . . . . . . . . . . . . . . . 32  
7.2 Clock Input Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . 36  
7.2.1 Recommended Clock Input . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 4  
Epson Research and Development  
Vancouver Design Center  
7.3 Display Memory Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . 37  
7.3.1 Write Data to Display Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37  
7.3.2 Read Data From Display Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38  
7.4 LCD Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39  
7.4.1 4-Bit Single LCD Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40  
7.4.2 8-Bit LCD Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41  
8
HARDWARE REGISTER INTERFACE . . . . . . . . . . . . . . . . . . . . . . . .46  
8.1 Register Descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46  
8.2 Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . 54  
8.2.1 4-Level Gray Shade Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54  
8.2.2 16-Level Gray Shade Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55  
8.3 Power Save Modes (PSM 1) . . . . . . . . . . . . . . . . . . . . . . . . . . 55  
8.3.1 Power Save Mode 1 (PSM1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55  
8.3.2 Power Save Mode 2 (PSM2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56  
8.3.3 Power Save Mode Function Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56  
8.3.4 Pin States in Power Save Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56  
9
DISPLAY MEMORY INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . .57  
9.1 SRAM Configurations Supported . . . . . . . . . . . . . . . . . . . . . . . . 57  
9.1.1 8-Bit Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57  
9.1.2 16-Bit Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59  
9.2 SRAM Access Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61  
9.2.1 8-Bit Display Memory Interface: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61  
9.2.2 16-Bit Display Memory Interface: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61  
9.3 Frame Rate Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61  
9.3.1 For Single Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61  
9.3.2 For Dual Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61  
9.4 Memory Size Calculation . . . . . . . . . . . . . . . . . . . . . . . . . . . 61  
9.5 Memory Size Requirement . . . . . . . . . . . . . . . . . . . . . . . . . . . 62  
10 MECHANICAL DATA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .64  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 5  
List of Tables  
Table 4-1: SED1352D0A Pad Coordinates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20  
Table 5-1: Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22  
Table 5-2: Display Memory Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23  
Table 5-3: LCD Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24  
Table 5-4: Clock Inputs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24  
Table 5-5: Power Supply . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24  
Table 5-6: Summary of Power On / Reset Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25  
Table 5-7: I/O and Memory Addressing Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25  
Table 6-1: Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26  
Table 6-2: Recommended Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26  
Table 6-3: Input Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26  
Table 6-4: Output Specifications . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27  
Table 7-1: IOW# Timing (68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  
Table 7-2: IOR# Timing (68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29  
Table 7-3: MEMW# Timing (68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30  
Table 7-4: MEMR# Timing (68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31  
Table 7-5: IOW# Timing (Non-68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  
Table 7-6: IOR# Timing (Non-68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  
Table 7-7: MEMW# Timing (Non-68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34  
Table 7-8: MEMR# Timing (Non-68000). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  
Table 7-9: Clock Input Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36  
Table 7-10: Write Data to Display Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37  
Table 7-11: Read Data From Display Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38  
Table 7-12: 4-Bit Single LCD Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40  
Table 7-13: 8-Bit LCD Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41  
Table 8-1: Maximum Value of Line Byte Count Register - 8-Bit Display Memory Interface . . . . . . . . . . . 48  
Table 8-2: Maximum Value of Line Byte Count Register - 16-Bit Display Memory Interface . . . . . . . . . . 48  
Table 8-3: Power Save Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49  
Table 8-4: ID Bit Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53  
Table 8-5: Power Save Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55  
Table 8-6: Power Save Mode Function Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56  
Table 8-7: Pin States in Power Save Modes. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56  
Table 9-1: 8-Bit Display Memory Interface SRAM Access Time . . . . . . . . . . . . . . . . . . . . . . . . . 61  
Table 9-2: 16-Bit Display Memory Interface SRAM Access Time. . . . . . . . . . . . . . . . . . . . . . . . . 61  
Table 9-3: Memory Size Requirement: Number of Horizontal Pixels = 640 . . . . . . . . . . . . . . . . . . . . 62  
Table 9-4: Memory Size Requirement: Number of Horizontal Pixels = 480 . . . . . . . . . . . . . . . . . . . . 63  
Table 9-5: Memory Size Requirement: Number of Horizontal Pixels = 320 . . . . . . . . . . . . . . . . . . . . 63  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 6  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 7  
List of Figures  
Figure 1:  
Figure 2:  
Figure 3:  
Figure 4:  
Figure 5:  
Figure 6:  
Figure 7:  
Figure 8:  
Figure 9:  
16-Bit 68000 Series . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12  
8-Bit Mode, Example: Z80 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13  
16-Bit Mode, Example: i8086 (maximum mode) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13  
8-Bit Mode (ISA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14  
16-Bit Mode (ISA). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14  
Internal Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  
SED1352F0B Pinout Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17  
SED1352F1B Pinout Diagram. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18  
SED1352D0B Pad Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19  
Figure 10: IOW# Timing (68000). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  
Figure 11: IOR# Timing (68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29  
Figure 12: MEMW# Timing (68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30  
Figure 13: MEMR# Timing (68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31  
Figure 14: IOW# Timing (Non-68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  
Figure 15: IOR# Timing (Non-68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33  
Figure 16: MEMW# Timing (Non-68000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34  
Figure 17: MEMR# Timing (Non-68000). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  
Figure 18: Clock Input Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36  
Figure 19: Recommended Clock Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36  
Figure 20: Write Data to Display Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37  
Figure 21: Read Data From Display Memory. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38  
Figure 22: LCD Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39  
Figure 23: LCD Interface Pixel/Data Position . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42  
Figure 24: 4-Bit Single Monochrome Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43  
Figure 25: 8-Bit Single Monochrome Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44  
Figure 26: 8-Bit Dual Monochrome Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45  
Figure 27: 4-Level Gray-Shade Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . . 54  
Figure 28: 16-Level Gray-Shade Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . 55  
Figure 29: 8-Bit Mode - 8K bytes SRAM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57  
Figure 30: 8-Bit Mode - 16K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57  
Figure 31: 8-Bit Mode - 32K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58  
Figure 32: 8-Bit Mode - 40K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58  
Figure 33: 8-Bit Mode - 64K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59  
Figure 34: 16-Bit Mode - 16K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59  
Figure 35: 16-Bit Mode - 64K bytes SRAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60  
Figure 36: 16-Bit Mode - 128K bytes SRAM. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60  
Figure 37: Mechanical Drawing QFP5-100pin-S2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64  
Figure 38: Mechanical Drawing QFP15-100pin . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 8  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 9  
1 INTRODUCTION  
1.1 Scope  
This is the Functional Specification for the SED1352 Dot Matrix Graphic Display LCD Controller Chip. Included in this  
document are timing diagrams, AC and DC characteristics, register descriptions, and power management descriptions. This  
document is intended for two audiences; Graphics Subsystem Designers and Software Developers.  
1.2 Overview Description  
This device is designed for products where low cost, low power consumption, and low component count are the major  
design considerations. This chip operates from 2.7 Volts to 5.5 Volts and up to 25MHz to suit different power consumption,  
speed and cost requirements. The SED1352 offers a flexible microprocessor interface.  
The SED1352 is capable of displaying a maximum of 16 levels of gray. A 16x4 Look-Up Table is provided to allow  
remapping of the 16 possible gray shades displayed on the LCD panel. The SED1352 can interface to an MC68000 family  
microprocessor or an 8/16-bit MPU/Bus with minimum external “glue” logic. This device can directly control up to 128K  
bytes of static RAM with a 16-bit data path, or up to 64K bytes with an 8-bit data path.  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 10  
Epson Research and Development  
Vancouver Design Center  
2 FEATURES  
2.1 Technology  
low power CMOS  
2.7 to 5.5 volt operation  
QFP5-100pin-S2 and QFP15-100 surface mount package  
2.2 System  
maximum 25MHz input clock (or pixel clock)  
2-terminal crystal input for internal oscillator or direct connection to external clock source  
maximum 16MHz, 16-bit MC68000 MPU interface  
8-bit or 16-bit MPU/Bus interface with memory accesses controlled by a READY (or WAIT#) signal  
option to use built-in index register or direct-mapping to access one of fifteen internal registers  
8-bit or 16-bit SRAM data bus interface configurations  
display memory configurations:  
128K bytes using one 64Kx16 SRAM  
128K bytes using two 64Kx8 SRAMs  
64K bytes using two 32Kx8 SRAMs  
40K bytes using one 8Kx8 and one 32Kx8 SRAM  
32K bytes using one 32Kx8 SRAM  
16K bytes using two 8Kx8 SRAMs  
8K bytes using one 8Kx8 SRAM  
2.3 Display Modes  
2/4 bits-per-pixel, 4/16 level gray shade display modes  
one 16x4 Look-Up Table provided for gray shade display modes  
maximum 16 shades of gray  
split screen display mode (see AUX[0Ah])  
virtual display mode (see AUX[0Dh])  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 11  
2.4 Display Support  
example resolutions:  
640x480 with 4 grays  
640x400 with 16 grays  
passive monochrome LCD panels:  
4-bit single (4-bit data transfer)  
8-bit single (8-bit data transfer)  
8-bit dual (4-bit data transfer for each half panel)  
2.5 Power Management  
two software power-save modes  
low power consumption  
panel power control switch (see AUX[01h] bit 4)  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 12  
Epson Research and Development  
Vancouver Design Center  
3 TYPICAL SYSTEM BLOCK DIAGRAMS  
The following figures show typical system implementations of the SED1352. All of the following block diagrams are  
shown without SRAM or LCD display. Refer to interface specific Application Notes for complete details  
(X16-AN-xxx-xx).  
3.1 16-Bit MC68000 MPU  
MC68000  
SED1352  
A20 to A23  
FC0 to FC1  
MEMCS#  
Decoder  
A16. A14  
IOCS#  
Decoder  
A10 to A19  
A1 to A19  
D0 to D15  
AB1 to AB19  
DB0 to DB15  
DTACK#  
UDS#  
READY  
AB0  
LDS#  
BHE#  
AS#  
IOR#  
R/W#  
IOW#  
Figure 1: 16-Bit 68000 Series  
(example implementation only - actual may vary)  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 13  
3.1.1 MPU with READY (or WAIT#) signal  
Z80  
Decoder  
Decoder  
SED1352  
MEMCS#  
MREQ#  
A10 to A15  
IOCS#  
MI#  
IORQ#  
A0 to A15  
D0 to D7  
WAIT#  
AB0 to AB15  
DB0 to DB7  
READY  
MEMW#  
MEMR#  
WR#  
RD#  
IOR#  
IOW#  
RESET#  
RESET  
Figure 2: 8-Bit Mode, Example: Z80  
(example implementation only - actual may vary)  
8086  
8288  
(Maximum mode)  
SED1352  
CLK  
CLK  
MEMR#  
MEMW#  
IOR#  
MRDC#  
AMWC#  
IORC#  
CLK  
READY  
RESET#  
S2#  
S2#  
S1#  
S0#  
READY  
RESET#  
S1#  
S0#  
RDY  
AIOWC#  
IOW#  
DEN  
8284A  
DT/R  
ALE  
A16 to A19  
AB16 to AB19  
Decoder  
A16  
M/IO#  
AB0 to AB15  
BHE#  
BHE#  
BHE#  
AD0 to AD15  
MEMCS#  
IOCS#  
A0 to A16  
STB  
D0 to D15  
DB0 to DB15  
T
OE  
Transceiver  
RESET  
READY  
Figure 3: 16-Bit Mode, Example: i8086 (maximum mode)  
(example implementation only - actual may vary)  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 14  
Epson Research and Development  
Vancouver Design Center  
3.1.2 ISA Bus  
8-Bit ISA Bus  
SED1352  
MEMCS#  
MEMW#  
MEMR#  
REFRESH  
SA16 to SA13  
Decoder  
SMEMW#  
SMEMR#  
READY  
IOCHRDY  
DB0 to DB7  
SD0 to SD7  
AB0 to AB19  
SA0 to SA19  
SA10 to SA15  
Decoder  
IOCS#  
IOW#  
AEN  
IOW#  
IOR#  
IOR#  
RESET  
RESET#  
optional  
SA(1 or 4) through SA9  
Decoder  
0WS#  
Figure 4: 8-Bit Mode (ISA)  
(example implementation only - actual may vary  
)
16-bit ISA Bus  
SED1352  
REFRESH  
SA16 to SA14  
MEMCS#  
MEMW#  
MEMR#  
READY  
Decoder  
SMEMW#  
SMEMR#  
IOCHRDY  
SD0 to SD15  
SA0 to SA19  
DB0 to DB15  
AB0 to AB19  
SA10 to SA15  
Decoder  
IOCS#  
IOW#  
AEN  
IOW#  
IOR#  
IOR#  
SBHE#  
BHE#  
RESET  
RESET#  
IOCS16#  
Decoder  
LA17 to LA23  
MEMCS16#  
SA(1 or 4) through SA9  
Decoder  
Figure 5: 16-Bit Mode (ISA)  
(example implementation only - actual may vary)  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 15  
3.2 Internal Block Diagram  
Control Registers  
IOR#, IOW#, IOCS#,  
MEMCS#, MEMR#,  
MEMW#, BHE#,  
AB[19:0]  
Port  
Bus  
Decoder  
Sequence  
Controller  
Signal  
Translation  
LCDENB  
UD[3:0]  
LD[3:0]  
LP, YD,  
WF,  
Memory  
Decoder  
Look-Up  
Table  
LCD  
Panel  
Interface  
READY  
XSCL  
Data Bus  
Conversion  
Address  
Generator  
DB[15:0]  
Display  
Data  
Formatter  
CPU/CRT  
Selector  
Timing Generator  
Power Save  
Oscillator  
SRAM Interface  
Figure 6: Internal Block Diagram  
3.3 Functional Block Descriptions  
3.3.1 Bus Signal Translation  
According to configuration setting VD2, Bus Signal Translation translates MC68000 type CPU signals or READY type  
MPU signals to internal bus interface signals.  
3.3.2 Control Registers  
The fifteen internal Control and Configuration Registers are accessed by direct-mapping or by using the built-in internal  
index register.  
3.3.3 Sequence Controller  
The Sequence Controller generates horizontal and vertical display timings according to the configuration registers  
settings.  
3.3.4 LCD Panel Interface  
The LCD Interface performs frame rate modulation for passive monochrome LCD panels.  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 16  
Epson Research and Development  
Vancouver Design Center  
3.3.5 Look-Up Table  
The Look-Up Table contains sixteen 4-bit wide palettes that can be configured as one 16x4 palette, or four 4x4 palettes  
used for the re-mapping of gray-scale outputs. See “Look-Up Table Architecture” on page 54.  
3.3.6 Port Decoder  
According to configuration settings VD1, VD12 - VD4, IOCS# and address lines AB9-1, the Port Decoder validates a given  
I/O cycle.  
3.3.7 Memory Decoder  
According to configuration settings VD15 - VD13, MEMCS# and address lines AB19-17, the Memory Decoder validates  
a given memory cycle.  
3.3.8 Data Bus Conversion  
According to configuration setting VD0, the Data Bus Conversion maps the external data bus, either 8-bit or 16-bit, into  
the internal odd and even data bus.  
3.3.9 Address Generator  
The Address Generator generates display refresh addresses used to access display memory.  
3.3.10 CPU / CRT Selector  
The CPU / CRT Selector accesses the display memory from the CPU or the display refresh circuitry.  
3.3.11 Display Data Formatter  
The Display Data Formatter reads the display data from the display memory and outputs the correct format for all supported  
LCD panel types and gray scale selections.  
3.3.12 Clock Inputs / Timing  
Clock Inputs / Timing generates the internal master clock according to the gray-level selected and display memory  
interface. The master clock (MCLK) can be:  
- MCLK = input clock  
- MCLK = 1/2 input clock  
- MCLK = 1/4 input clock  
Refer to section 9.2 SRAM Access Time for further details  
Pixel clock = input clock.  
3.3.13 SRAM Interface  
The SRAM Interface generates the necessary signals to interface to the Display memory (SRAM).  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 17  
4 PINOUT DIAGRAM  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
50  
49  
48  
47  
46  
45  
44  
43  
42  
41  
40  
39  
38  
37  
36  
35  
34  
33  
32  
31  
XSCL  
LCDENB  
VOE#  
IOCS#  
IOW#  
IOR#  
MEMCS#  
MEMW#  
MEMR#  
READY  
BHE#  
OSC1  
OSC2  
DB0  
DB1  
DB2  
VD6  
VD5  
VD4  
VD3  
VD2  
VD1  
VD0  
VA10  
VA9  
VA8  
VA7  
VA6  
VA5  
VA4  
VA3  
VA2  
VA1  
VA0  
RESET  
AB19  
SED1352F0B  
97  
98  
99  
100  
DB3  
DB4  
DB5  
DB6  
Figure 7: SED1352F0B Pinout Diagram  
Note  
Package type: surface mount QFP5-100pin-S2.  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 18  
Epson Research and Development  
Vancouver Design Center  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
50  
LP  
WF  
V
V
DD  
SS  
49  
48  
47  
46  
45  
44  
43  
42  
41  
40  
39  
38  
37  
36  
35  
34  
33  
32  
31  
XSCL  
LCDENB  
VOE#  
IOCS#  
IOW#  
IOR#  
MEMCS#  
MEMW#  
MEMR#  
READY  
BHE#  
OSC1  
OSC2  
DB0  
DB1  
DB2  
DB3  
DB4  
DB5  
DB6  
DB7  
VSS  
VD7  
VD6  
VD5  
VD4  
VD3  
VD2  
VD1  
VD0  
VA10  
VA9  
VA8  
VA7  
VA6  
VA5  
VA4  
VA3  
VA2  
VA1  
SED1352F1B  
30  
29  
28  
27  
26  
VA0  
RESET  
AB19  
AB18  
AB17  
V
DD  
Figure 8: SED1352F1B Pinout Diagram  
Note  
Package type: surface mount QFP15-100pin.  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 19  
Dummy Pad  
70  
60  
50  
V
V
DD  
SS  
LP  
WF  
VD7  
VD6  
VD5  
VD4  
VD3  
VD2  
VD1  
VD0  
VA10  
VA9  
VA8  
VA7  
VA6  
VA5  
VA4  
VA3  
VA2  
VA1  
VA0  
RESET  
AB19  
AB18  
XSCL  
LCDENB  
VOE#  
IOCS#  
IOW#  
IOR#  
80  
MEMCS#  
MEMW#  
MEMR#  
READY  
BHE#  
OSC1  
OSC2  
DB0  
40  
90  
DB1  
DB2  
DB3  
DB4  
30  
DB5  
DB6  
DB7  
V
SS  
V
100  
DD  
1
10  
20  
AB17  
Dummy Pad  
=
=
Chip Size  
Chip Thickness  
4.00 mm x 4.00 mm  
0.400 mm  
Pad Size  
Pad Patch  
= 0.090 mm x 90 mm  
= 0.140 mm (Min.)  
Figure 9: SED1352D0B Pad Diagram  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 20  
Epson Research and Development  
Vancouver Design Center  
Table 4-1: SED1352D0A Pad Coordinates  
Pad Center  
Coordinate  
Pad Center  
Coordinate  
Pad  
No.  
Pin  
Name  
Pad  
No.  
Pin  
Name  
X
Y
X
Y
1
DB8  
DB9  
-1.850  
-1.670  
-1.496  
-1.330  
-1.168  
-1.012  
-0.860  
-0.712  
-0.566  
-0.423  
-0.281  
-0.140  
0.000  
0.140  
0.281  
0.423  
0.566  
0.712  
0.860  
1.012  
1.168  
1.330  
1.496  
1.670  
1.850  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.021  
-1.670  
-1.496  
-1.330  
-1.168  
-1.012  
-0.860  
-0.712  
-0.566  
-0.423  
-0.281  
37  
38  
39  
40  
41  
42  
43  
44  
45  
46  
47  
48  
49  
50  
51  
52  
53  
54  
55  
56  
57  
58  
59  
60  
61  
62  
63  
64  
65  
66  
67  
68  
69  
70  
71  
72  
VA7  
VA8  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
1.850  
1.670  
1.496  
1.330  
1.168  
1.012  
0.860  
0.712  
0.566  
0.423  
0.281  
0.140  
0.000  
-0.140  
-0.281  
-0.423  
-0.566  
-0.712  
-0.860  
-1.012  
-1.168  
-1.330  
-0.140  
0.000  
0.140  
0.281  
0.423  
0.566  
0.712  
0.860  
1.012  
1.168  
1.330  
1.496  
1.670  
1.850  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2.071  
2
3
DB10  
DB11  
DB12  
DB13  
DB14  
DB15  
AB0  
VA9  
4
VA10  
VD0  
5
6
VD1  
7
VD2  
8
VD3  
9
VD4  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
33  
34  
35  
36  
AB1  
VD5  
AB2  
VD6  
AB3  
VD7  
AB4  
VSS  
AB5  
VDD  
AB6  
VD8  
AB7  
VD9  
AB8  
VD10  
VD11  
VD12  
VD13  
VD14  
VD15  
VA11  
VA12  
VA13  
VA14  
VA15  
VWE#  
VCS0#  
VCS1#  
UD3  
AB9  
AB10  
AB11  
AB12  
AB13  
AB14  
AB15  
AB16  
AB17  
AB18  
AB19  
RESET  
VA0  
VA1  
VA2  
UD2  
VA3  
UD1  
VA4  
UD0  
VA5  
LD3  
VA6  
LD2  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 21  
Table 4-1: SED1352D0A Pad Coordinates (Continued)  
Pad Center  
Coordinate  
Pad Center  
Coordinate  
Pad  
No.  
Pin  
Name  
Pad  
No.  
Pin  
Name  
X
Y
X
Y
73  
74  
75  
76  
77  
78  
79  
80  
81  
82  
83  
84  
85  
86  
87  
LD1  
LD0  
-1.496  
-1.670  
-2.021  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
2.071  
2.071  
2.071  
1.850  
1.670  
1.496  
1.330  
1.168  
1.012  
0.860  
0.712  
0.566  
0.423  
0.281  
0.140  
88  
89  
90  
91  
92  
93  
94  
95  
96  
97  
98  
99  
100  
BHE#  
OSC1  
OSC2  
DB0  
DB1  
DB2  
DB3  
DB4  
DB5  
DB6  
DB7  
VSS  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
-2.071  
2.071  
0.000  
-0.140  
-0.281  
-0.423  
-0.566  
-0.712  
-0.860  
-1.012  
-1.168  
-1.330  
-1.496  
-1.670  
-1.850  
2.071  
YD  
LP  
WF  
XSCL  
LCDENB  
VOE#  
IOCS#  
IOW#  
IOR#  
MEMCS#  
MEMW#  
MEMR#  
READY  
VDD  
101 Dummy Pad  
102 Dummy Pad -2.071  
-2.071  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 22  
Epson Research and Development  
Vancouver Design Center  
5 PINOUT DESCRIPTION  
Key:  
I
=
=
=
=
=
=
Input  
O
Output  
I/O  
P
Bidirectional (Input/Output)  
Power pin  
COx  
TSx  
CMOS level output driver, x denotes driver type (see Table 6-4, “Output Specifications,” on page 27)  
Tri-state CMOS level output driver, x denotes driver type (see Table 6-4, “Output Specifications,” on  
page 27)  
TSxD2  
TTL  
=
=
=
Tri-state CMOS level output driver with pull down resistor (typical values of 100KΩ/200ΚΩ at 5V/3.0V  
respectively), x denotes driver type (see Table 6-4, “Output Specifications,” on page 27)  
TTL level input (for VDD = 5.0V, (see Table 6-3, “Input Specifications,” on page 26 for VDD = 3.0V and  
3.3V)  
TTLS  
TTL level input with hysteresis  
Table 5-1: Bus Interface  
F1B/D0B  
Pin/Pad #  
Pin Name Type F0B Pin #  
Driver  
Description  
94 - 100, 1, 91 - 98,  
These pins are connected to the system data bus. In 8-bit bus  
mode, DB8-DB15 must be tied to VDD.  
DB0-DB15 I/O  
TS2  
4 -11  
1 - 8  
In MC68000 MPU interface, this pin is connected to the Upper  
Data Strobe (UDS#) pin of MC68000. In other bus interfaces, this  
pin is connected to the system address bus.  
AB0  
I
12  
9
TTL  
TTL  
AB1-AB19 I  
13 - 31  
10 - 28  
These pins are connected to the system address bus.  
In MC68000 MPU interface, this pin is connected to the Lower  
Data Strobe (LDS#) pin of MC68000. In other bus interfaces, this  
pin is the Bus High Enable input for use with 16-bit system. In 8-  
BHE#  
I
I
91  
84  
88  
81  
TTLS  
TTLS  
bit bus mode, tie BHE# input to VDD  
.
IOCS#  
Active low input to select one of fifteen internal registers.  
In MC68000 MPU interface, this pin is connected to the R/W# pin  
of MC68000. This input pin defines whether the data transfer is a  
read (active high) or write (active low) cycle. In other bus  
interfaces, this is the active low input to write data into an internal  
register.  
IOW#  
IOR#  
I
I
85  
86  
82  
83  
TTLS  
TTLS  
In MC68000 MPU interface, this pin is connected to the AS# pin  
of MC68000. This input pin indicates a valid address is available  
on the address bus. In other bus interfaces, this is the active low  
input to read data from an internal register.  
Active low input to indicate the attempt to access the display  
memory.  
MEMCS#  
MEMW#  
I
I
87  
88  
84  
85  
TTLS  
TTLS  
Active low input to write data to the display memory. This pin  
should be tied to VDD in an MC68000 MPU interface.  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 23  
Table 5-1: Bus Interface (Continued)  
F1B/D0B  
Pin/Pad #  
Pin Name Type F0B Pin #  
Driver  
Description  
Active low input to read data from the display memory. This pin  
should be tied to VDD in an MC68000 MPU interface.  
MEMR#  
I
89  
86  
TTLS  
For MC68000 MPU interface, this pin is connected to the  
DTACK# pin of MC68000 and is driven low when ever a data  
transfer is complete. In other bus interfaces, this output is driven  
low to force the system to insert wait states when needed.  
READY  
RESET  
O
I
90  
32  
87  
29  
TS3  
READY is placed in a high impedance (Hi-Z) state after the  
transfer is completed.  
TTLS  
Active high input to force all signals to their inactive states.  
Table 5-2: Display Memory Interface  
F1B/D0B  
Pin/Pad #  
Pin Name Type F0B Pin #  
Driver  
Description  
These pins are connected to the display memory data bus. For 16-  
bit interface, VD0-VD7 are connected to the display memory data  
bus of even byte addresses and VD8-VD15 are connected to the  
display memory data bus of odd byte addresses. The output drivers  
of these pins are placed in a high impedance state when RESET is  
high.  
44 - 51,  
VD0-VD15 I/O  
54 - 61  
41 - 48,  
51 - 58  
TS2D2  
On the falling edge of RESET the values of VD0-VD15 are latched  
into the chip to configure various hardware options.  
VD0-VD15 each have an internal pull-down resistor (see section  
Table 5-6: on page 25).  
33 - 43,  
VA0-VA15 O  
30 - 40  
59, 63  
CO2  
CO2  
CO2  
CO2  
CO2  
These pins are connected to the display memory address bus.  
62 - 66  
Active low chip-select output to the second or odd byte address  
SRAM. See Display Memory Interface section for details.  
VCS1#  
VCS0#  
VWE#  
VOE#  
O
O
O
O
69  
68  
67  
83  
66  
65  
64  
80  
Active low chip-select output to the first or even byte address  
SRAM. See Display Memory Interface section for details.  
Active low output used for writing data to the display memory.  
This pin is connected to the WE# input of the SRAMs.  
Active low output to enable reading of data from the display  
memory. This pin is connected to the OE# input of the SRAMs.  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 24  
Epson Research and Development  
Vancouver Design Center  
Table 5-3: LCD Interface  
F1B/D0B  
Pin/Pad #  
FPDI-1TM  
Pin Namea  
Pin Name  
Type F0B Pin #  
Driver Description  
Upper panel display data for dual panel mode. For  
single panel mode, these bits are the most significant 4  
bits of the 8-bit output data to the panel (PD[4:7]). For  
4-bit single panel mode, these bits are the 4 bits of  
output data to the panel.  
UD3-UD0 UD3-UD0  
LD3-LD0 LD3-LD0  
O
O
70 - 73  
74 - 77  
67 - 70  
CO4  
CO4  
Lower panel display data for dual panel mode. For 8-bit  
single panel mode, these bits are the least significant 4  
bits of the 8-bit output data to the panel (PD[0:3]). For  
4-bit single panels, these bits are driven 0 (low state).  
71 - 74  
Display data shift clock. Data is shifted into the LCD  
X-drivers on the falling edge of this signal.  
XSCL  
LP  
FPSHIFT  
FPLINE  
MOD  
O
O
O
81  
79  
80  
78  
76  
77  
CO4  
CO4  
CO4  
Display data latch clock. The falling edge of this signal  
is used to latch a row of display data in the LCD X-  
drivers and to turn on the row driver (Y driver).  
LCD backplane BIAS signal. This output toggles  
according to the value programmed in AUX[05h].  
WF  
Vertical scanning start pulse. A logic ‘1’ on this signal,  
sampled by the LCD module on the falling edge of LP,  
is used by the panel row driver (Y driver) to indicate  
the start of the vertical frame.  
YD  
FPFRAME O  
78  
75  
CO4  
LCD enable signal output. It can be used externally to  
turn off the panel supply voltage and backlight.  
LCDENB  
O
82  
79  
CO2  
a
TM  
VESA Flat Panel Display Interface Standard (FPDI-1  
)
Table 5-4: Clock Inputs  
F1B/D0B  
Pin/Pad #  
Pin Name Type  
F0B Pin #  
Driver  
Description  
This pin, along with OSC2, is the 2-terminal crystal interface  
OSC1  
OSC2  
I
92  
89  
*
*
when using a 2-terminal crystal as the clock input. If an external  
oscillator is used as a clock source, then this pin is the clock input.  
This pin, along with OSC1, is the 2-terminal crystal interface  
when using a 2-terminal crystal as the clock input. If an external  
oscillator is used as a clock source this pin should be left  
unconnected.  
O
93  
90  
Table 5-5: Power Supply  
F1B/D0B  
Pin/Pad #  
Pin Name Type  
F0B Pin #  
Driver  
Description  
VDD  
VSS  
P
P
3, 53  
2, 52  
50, 100  
49, 99  
P
P
Voltage supply.  
Voltage ground.  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 25  
5.1 Summary of Configuration Options  
The SED1352 requires some configuration information on power-up. This information is provided through the SRAM data  
lines VD[0...15]. The state of these pins are read on the falling edge of RESET and used to configure the following options:  
Table 5-6: Summary of Power On / Reset Options  
Pin Name  
value on this pin at falling edge of RESET is used to configure:  
(1/0)  
1
0
VD0  
VD1  
16-bit host bus interface  
8-bit host bus interface  
Use direct-mapping for I/O accesses  
Use internal index register for I/O accesses  
MPU / Bus interface with memory accesses  
controlled by a READY (WAIT#) signal  
VD2  
VD3  
MC68000 MPU interface  
Swap of high and low data bytes in 16-bit bus No byte swap of high and low data bytes in  
interface  
16-bit bus interface  
Select I/O mapping address bits [1:9].  
These nine bits are latched on power-up and are compared to the MPU address bits [1-9]. A  
valid I/O cycle combined with a valid address will enable the internal I/O decoder. Therefore,  
both types of I/O mapping are limited to even address boundaries to determine either the  
absolute or indexed I/O address of the first register. Note that a “valid I/O cycle” includes  
IOCS# being toggled low.  
VD4-VD12  
In direct mapping, the base I/O address is selected by VD7-VD12. In indexing, the base I/O  
address is selected by VD4-VD12.  
Select memory mapping address bits [1:3].  
These three bits are latched on power-up and are compared to the MPU address bits [17-19]. A  
valid memory cycle combined with a valid address will enable the internal memory decoder.  
As only the three most significant bits of the address are compared, the maximum amount of  
memory supported is 128K bytes. Note that a “valid memory cycle” includes MEMCS# being  
toggled low.  
VD13-VD15  
If 128K byte memory is used, it must be mapped at an even address so all 128K bytes is  
available without a change in state on A17, as this would invalidate the internal compare logic.  
Note  
The SED1352 has internal pulldown resistors on these pins and therefore will be pulled down  
and read on a logic “0” after RESET. If pullup resistors are required refer to Table 6-3, “Input  
Specifications,” on page 26 for pulldown resistor values.  
Example: If an ISA bus (no byte swap) with memory segment A000h and I/O location 300h are used, the corresponding  
settings of VD15-VD0 would be:  
Table 5-7: I/O and Memory Addressing Example  
8-Bit ISA Bus  
16-Bit ISA Bus  
Index  
Register  
Index  
Register  
Pin Name  
Direct Mapping  
Direct Mapping  
VD0  
VD1  
0
0
0
1
1
0
1
1
VD2  
0
0
0
0
VD3  
0
0
0
0
VD12-VD4  
VD15-VD13  
11 0000 000  
101  
11 0000 xxx  
101  
11 0000 000  
101  
11 0000 xxx  
101  
Where x = don’t care; 1 = connected to pull-up resistor; 0 = no pull-up resistor.  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
 
Page 26  
Epson Research and Development  
Vancouver Design Center  
6 D.C. CHARACTERISTICS  
Table 6-1: Absolute Maximum Ratings  
Symbol  
VDD  
Parameter  
Supply Voltage  
Rating  
Units  
V
VSS - 0.3 to + 6.5  
SS - 0.3 to VDD + 0.3  
SS - 0.3 to VDD + 0.3  
-65 to 150  
VIN  
V
V
V
Input Voltage  
VOUT  
TSTG  
TSOL  
V
Output Voltage  
° C  
° C  
Storage Temperature  
Solder Temperature/Time  
260 for 10 sec. max at lead  
Table 6-2: Recommended Operating Conditions  
Symbol  
Parameter  
Supply Voltage  
Condition  
SS = 0V  
Min  
2.7  
Typ  
3.0/3.3/5.0  
--  
Max  
5.5  
Units  
V
VDD  
VIN  
V
VSS  
VDD  
V
Input Voltage  
f
f
OSC = 6 MHz,  
16 grays  
IOPR  
TOPR  
PTYP  
3.0/3.5/7.0  
25  
mA  
° C  
Operating Current  
-40  
85  
Operating Temperature  
Typical Active Power Consumption  
OSC = 6 MHz,  
16 grays  
9.0/11.55/35.0  
mW  
Table 6-3: Input Specifications  
Symbol  
Parameter  
Condition  
Min  
Typ  
Max  
Units  
VDD = 4.5V  
VDD = 3.0V  
VDD = 2.7V  
0.8  
0.6  
0.5  
VIL  
VIH  
VT+  
VT-  
V
Low Level Input Voltage  
VDD = 5.5V  
VDD = 3.6V  
VDD = 3.3V  
2.0  
2.5  
2.3  
V
V
V
High Level Input Voltage  
Positive-going Threshold  
Negative-going Threshold  
VDD = 5.0  
VDD = 3.3  
VDD = 3.0  
2.4  
2.4  
2.3  
VDD = 5.0  
VDD = 3.3  
VDD = 3.0  
0.6  
0.6  
0.5  
VDD = 5.0  
VDD = 3.3  
VDD = 3.0  
0.1  
0.1  
0.1  
VH  
IIZ  
V
Hysteresis Voltage  
--  
-1  
1
µA  
Input Leakage Current  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 27  
Table 6-3: Input Specifications  
Symbol  
Parameter  
Condition  
Min  
Typ  
Max  
Units  
CIN  
4
pF  
Input Pin Capacitance  
VDD = 5.0V  
VI = VDD  
RPD  
RPD  
RPD  
50  
90  
200  
360  
400  
kΩ  
kΩ  
kΩ  
Pull Down Resistance  
Pull Down Resistance  
Pull Down Resistance  
VDD = 3.3V  
VI = VDD  
VDD = 3.0V  
VI = VDD  
100  
Table 6-4: Output Specifications  
Symbol  
Parameter  
Condition  
Min  
Typ  
Max  
Units  
Low Level Output Voltage  
IOL = 6 mA  
IOL = 12 mA  
IOL = 24 mA  
Type 2 - TS2, CO2, TS2D2  
Type 3 - TS3  
Type 4 - TS4, CO4  
VOL (5.0V)  
VSS + 0.4  
V
Low Level Output Voltage  
IOL = 3mA  
IOL = 6mA  
IOL = 12mA  
Type 2 - TS2, CO2, TS2D2  
Type 3 - TS3  
Type 4 - TS4, CO4  
VOL (3.3V)  
VOL (3.0V)  
VOH (5.0V)  
VOH (3.3V)  
VOH (3.0V)  
VSS + 0.3  
VSS + 0.3  
V
V
V
V
V
Low Level Output Voltage  
IOL = 3mA  
IOL = 5 mA  
IOL = 10mA  
Type 2 - TS2, CO2, TS2D2  
Type 3 - TS3  
Type 4 - TS4, CO4  
High Level Output Voltage  
IOH = -2 mA  
IOH = -4 mA  
IOH = -8 mA  
Type 2 - TS2, CO2, TS2D2  
Type 3 - TS3  
Type 4 - TS4, CO4  
VDD-0.4  
VDD-0.3  
Low Level Output Voltage  
IOL = -1 mA  
IOL = -2 mA  
IOL = -4 mA  
Type 2 - TS2, CO2, TS2D2  
Type 3 - TS3  
Type 4 - TS4, CO4  
High Level Output Voltage  
IOH = -1 mA  
IOH = -1.8 mA  
IOH = -3.5 mA  
Type 2- TS2, CO2, TS2D2  
Type 3- TS3  
Type 4- TS4, CO4  
VDD-0.3  
-1  
IOZ  
1
µA  
pF  
pF  
Output Leakage Current  
Output Pin Capacitance  
Bidirectional Pin Capacitance  
COUT  
CBID  
6
10  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 28  
Epson Research and Development  
Vancouver Design Center  
7 A.C. CHARACTERISTICS  
Conditions: VDD = 3.0V ± 10%, 3.3V ± 10% or VDD = 5.0V ± 10%  
TA = -40 °C to 85 °C  
Trise and Tfall for all inputs must be < 5 nsec (10% ~ 90%)  
CL = 80pF (Bus/MPU Interface)  
CL = 100pF (LCD Panel Interface)  
CL = 20pF (Display Memory Interface)  
7.1 Bus Interface Timing  
7.1.1 MC68000 Interface Timing  
Note  
All input timing parameters are based on a maximum 16MHz bus clock.  
IOW# Timing  
AB[9:1]  
VALID  
t2  
IOCS#  
AS#  
t3  
t1  
R/W  
t4  
UDS#/LDS#  
DTACK#  
INVALID  
t6  
Hi-Z  
Hi-Z  
t5  
t8  
t7  
Hi-Z  
Hi-Z  
DB[15:0]  
VALID  
Figure 10: IOW# Timing (68000)  
Table 7-1: IOW# Timing (68000)  
3V/3.3V  
5V  
Symbol  
Parameter  
Min Typ Max Min Typ Max Units  
t1  
t2  
t3  
t4  
t5  
t6  
t7  
t8  
10  
20  
0
0
10  
0
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
AB[9:1] valid before AS# falling edge  
AB[9:1] hold from AS# rising edge  
IOCS# hold from AS# rising edge  
30  
20  
UDS#/LDS# valid before AS# rising edge  
UDS#/LDS# falling edge to DTACK# falling edge  
AS# rising edge to DTACK# hi-z delay  
DB[15:0] setup to AS# rising edge  
40  
45  
25  
25  
20  
20  
10  
10  
DB[15:0] hold from AS# rising edge  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 29  
IOR# Timing  
AB[9:1]  
VALID  
t2b  
IOCS#  
t2a  
t1  
AS#  
UDS#/LDS#  
INVALID  
R/W#  
t3  
t4  
Hi-Z  
Hi-Z  
DTACK#  
t6  
t5  
Hi-Z  
Hi-Z  
DB[15:0]  
VALID  
t7  
Figure 11: IOR# Timing (68000)  
Table 7-2: IOR# Timing (68000)  
3V/3.3V  
5V  
Symbol  
Parameter  
Min Typ Max Min Typ Max Units  
t1  
t2a  
t2b  
t3  
10  
20  
0
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
AB[9:1] and IOCS# valid before AS# falling edge  
AB[9:1] hold from AS# rising edge  
10  
0
0
IOCS# hold from AS# rising edge  
35  
45  
80  
25  
35  
25  
25  
60  
20  
30  
AS# falling edge to DTACK# falling edge  
AS# rising edge to DTACK# hi-z delay  
AS# falling edge to DB[15:0] valid  
t4  
t5  
t6  
DB[15:0] hold from AS# rising edge  
AS# rising edge to DB[15:0] hi-z delay  
t7  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 30  
Epson Research and Development  
Vancouver Design Center  
MEMW# Timing  
AB[19:1]  
MEMCS#  
VALID  
t2  
t1  
AS#  
UDS#/LDS#  
INVALID  
R/W#  
t4  
Hi-Z  
Hi-Z  
Hi-Z  
DTACK#  
DB[15:0]  
t3  
t6  
t5  
Hi-Z  
VALID  
Figure 12: MEMW# Timing (68000)  
Table 7-3: MEMW# Timing (68000)  
3V/3.3V  
Min Typ Max  
5V  
Symbol  
Parameter  
Min Typ Max Units  
t1  
t2  
0
0
0
0
ns  
ns  
AB[19:1] and MEMCS# valid before AS# falling edge  
AB[19:1] and MEMCS# hold from AS# rising edge  
3.5 *  
MCLK  
+ 20  
3.5 *  
MCLK ns  
+ 10  
t3  
AS# falling edge to DTACK# falling edge  
t4  
t5  
t6  
45  
22  
ns  
ns  
ns  
AS# rising edge to DTACK hi-z delay  
AS# falling edge to DB[15:0] valid  
DB[15:0] hold from AS# rising edge  
120  
140  
0
0
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which mode the chip is in. (see section 9.2 and 9.3).  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 31  
MEMR# Timing  
AB[19:1]  
MEMCS#  
VALID  
t1  
t2  
AS#  
UDS#/LDS#  
INVALID  
R/W#  
t4  
Hi-Z  
Hi-Z  
DTACK#  
t3  
t6  
t5  
Hi-Z  
Hi-Z  
DB[15:0]  
VALID  
t7  
Figure 13: MEMR# Timing (68000)  
Table 7-4: MEMR# Timing (68000)  
3V/3.3V  
5V  
Symbol  
Parameter  
Min Typ Max Min Typ Max  
Units  
ns  
t1  
t2  
0
0
0
0
AB[19:1] and MEMCS# valid before AS# falling edge  
AB[19:1] and MEMCS# hold from AS# rising edge  
ns  
3.5 *  
MCLK  
+ 20  
3.5 *  
MCLK  
+ 10  
t3  
ns  
AS# falling edge to DTACK# falling edge  
t4  
t5  
t6  
t7  
42  
20  
54  
60  
20  
20  
28  
30  
ns  
ns  
ns  
ns  
AS# rising edge to DTACK# hi-z delay  
DTACK# falling edge to DB[15:0] valid  
DB[15:0] hold from AS# rising edge  
AS# rising edge to DB[15:0] hi-z delay  
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which mode the chip is in. (see section 9.2 and 9.3).  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 32  
Epson Research and Development  
Vancouver Design Center  
7.1.2 Non-68000, MPU/Bus With READY (or WAIT#) Signal  
IOW# Timing  
AB[9:0]  
VALID  
BHE#  
IOCS#  
t1  
t5  
t2  
IOW#  
t3  
VALID  
t4  
Hi-Z  
Hi-Z  
DB[15:0]  
Figure 14: IOW# Timing (Non-68000)  
Table 7-5: IOW# Timing (Non-68000)  
3V/3.3V  
5V  
Symbol  
Parameter  
Min Typ Max Min Typ Max Units  
AB[9:0], BHE# and IOCS# valid before IOW# falling  
edge  
t1  
10  
0
ns  
t2  
t3  
t4  
t5  
20  
20  
20  
30  
10  
10  
10  
20  
ns  
ns  
ns  
AB[9:0], BHE# and IOCS# hold from IOW# rising edge  
DB[15:0] setup to IOW# rising edge  
DB[15:0] hold from IOW# rising edge  
Pulse width of IOW#  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 33  
IOR# Timing  
AB[9:0]  
BHE#  
VALID  
IOCS#  
t1  
t2  
IOR#  
t3  
t4  
Hi-Z  
Hi-Z  
DB[15:0]  
VALID  
t5  
Figure 15: IOR# Timing (Non-68000)  
Table 7-6: IOR# Timing (Non-68000)  
3V/3.3V  
5V  
Symbol  
Parameter  
Min Typ Max Min Typ Max Units  
AB[9:0], BHE# and IOCS# valid before IOR# falling  
edge  
t1  
10  
20  
0
ns  
t2  
t3  
t4  
t5  
10  
ns  
ns  
ns  
ns  
AB[9:0], BHE# and IOCS# hold from IOR# rising edge  
IOR# falling edge to DB[15:0] valid  
80  
25  
30  
60  
20  
30  
DB[15:0] hold from IOR# rising edge  
IOR# rising edge to DB[15:0] hi-z delay  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 34  
Epson Research and Development  
Vancouver Design Center  
MEMW# Timing  
AB[19:0]  
BHE#  
VALID  
t1  
MEMCS#  
MEMW#  
READY  
t2  
t3  
t6  
Hi-Z  
Hi-Z  
t5  
Hi-Z  
Hi-Z  
DB[15:0]  
VALID  
t4  
Figure 16: MEMW# Timing (Non-68000)  
Table 7-7: MEMW# Timing (Non-68000)  
3V/3.3V  
5V  
Unit  
s
Symbol  
Parameter  
Min Typ Max Min Typ Max  
AB[19:0], BHE# and MEMCS# valid before MEMW#  
falling edge  
t1  
t2  
0
0
0
0
ns  
ns  
AB[19:0], BHE# and MEMCS# hold from MEMW#  
rising edge  
t3  
t4  
t5  
30  
20  
ns  
ns  
ns  
MEMW# falling edge to READY falling edge  
MEMW# falling edge to DB[15:0] valid  
DB[15:0] hold from MEMW# rising edge  
120  
140  
0
0
3.5*  
MCLK  
+ 20  
3.5*  
MCLK ns  
+ 10  
t6  
READY negated pulse width  
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which mode the chip is in. (see section 9.2 and 9.3).  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 35  
MEMR# Timing  
AB[19:0]  
BHE#  
VALID  
t2  
t1  
MEMCS#  
MEMR#  
t3  
t7  
Hi-Z  
Hi-Z  
t4  
READY  
t6  
t5  
Hi-Z  
Hi-Z  
DB[15:0]  
VALID  
Figure 17: MEMR# Timing (Non-68000)  
Table 7-8: MEMR# Timing (Non-68000)  
3V/3.3V  
5V  
Symbol  
Parameter  
Min Typ Max Min Typ Max  
Units  
AB[19:0], BHE# and MEMCS# valid before MEMR#  
falling edge  
t1  
0
0
0
0
ns  
AB[19:0], BHE# and MEMCS# hold from MEMR# rising  
edge  
t2  
ns  
t3  
t4  
t5  
t6  
30  
15  
30  
30  
20  
10  
28  
30  
ns  
ns  
ns  
ns  
MEMR# falling edge to READY falling edge  
READY rising edge to DB[15:0] valid  
DB[15:0] hold from MEMR# rising edge  
MEMR# rising edge to DB[15:0] hi-z delay  
3.5*  
MCLK  
+ 30  
3.5*  
MCLK  
+ 10  
t7  
ns  
READY negated pulse width  
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which mode the chip is in. (see section 9.2 and 9.3)  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 36  
Epson Research and Development  
Vancouver Design Center  
7.2 Clock Input Requirements  
Clock Input Waveform  
tPWH  
tPWL  
90%  
V
IH  
V
IL  
10%  
tf  
tr  
TOSC  
Figure 18: Clock Input Requirements  
Table 7-9: Clock Input Requirements  
Symbol  
TOSC  
tPWH  
tPWL  
tf  
Parameter  
Min  
40  
Typ  
Max  
Units  
ns  
Input Clock Period (CLKI)  
40  
60  
60  
TOSC  
TOSC  
ns  
Input Clock Pulse Width High (CLKI)  
Input Clock Pulse Width Low (CLKI)  
Input Clock Fall Time (10% - 90%)  
Input Clock Rise Time (10% - 90%)  
40  
5
5
tr  
ns  
7.2.1 Recommended Clock Input  
The nominal frequency must be calculated based on the formulas found in Frame Rate Calculation on page 61.  
The crystal oscillator must be “fundamental mode” and have the following recommended RC load values:  
RL = 2M± 5%  
CL = 6.8 pF  
The figure below demonstrates both a crystal interface and an oscillator interface to the SED1352.  
.
Crystal Interface  
Oscillator Interface  
VCC  
92  
92  
VCC  
NC  
OUT  
CL  
X1  
RL  
X1  
GND  
SED1352  
SED1352  
93  
93  
CL  
Figure 19: Recommended Clock Interface  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 37  
7.3 Display Memory Interface Timing  
7.3.1 Write Data to Display Memory  
VA[15:0]  
VSC0#, VSC1#  
VALID  
t1  
VWE#  
t2  
t3  
t4  
VOE#  
t6  
t5  
Hi-Z  
Hi-Z  
Hi-Z  
Hi-Z  
VD[15:0]  
OUTPUT  
INPUT  
INPUT  
Figure 20: Write Data to Display Memory  
Table 7-10: Write Data to Display Memory  
3V/3.3V  
5V  
Symbol  
Parameter  
Min  
Typ Max  
Min  
Typ Max Units  
MCLK -  
10  
t1  
t2  
t3  
t4  
MCLK - 10  
ns  
Address cycle time  
MCLK/2 -  
20  
MCLK/2 -  
10  
VA[15:0], VCS0# and VCS1# valid before  
VWE# falling edge  
ns  
ns  
ns  
VA[15:0], VCS0# and VCS1# hold from  
VWE# rising edge  
0
0
MCLK/2 -  
5
MCLK/2 - 5  
Pulse width of VWE#  
MCLK/2 -  
20  
MCLK/2 -  
20  
t5  
t6  
ns  
ns  
VD[15:0] setup to VWE# rising edge  
VD[15:0] hold from VWE# rising edge  
0
0
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which mode the chip is in. (see section 9.2 and 9.3).  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 38  
Epson Research and Development  
Vancouver Design Center  
7.3.2 Read Data From Display Memory  
VA[15:0]  
VSC0#, VSC1#  
VALID  
t1  
t3  
t2  
INPUT  
INPUT  
VD[15:0]  
INPUT  
Figure 21: Read Data From Display Memory  
Table 7-11: Read Data From Display Memory  
3V/3.3V  
5V  
Symbol  
Parameter  
Address cycle time  
Min  
Typ  
Max  
Min  
Typ  
Max  
MCLK -  
10  
MCLK -  
10  
t1  
MCLK -  
50  
MCLK -  
30  
t2  
t3  
VA[15:0], VCS0# and VCS1# access time  
VD[15:0] hold time  
0
0
Where MCLK period = 1/fOSC, or 2/fOSC, or 4/fOSC depending on which mode the chip is in. (See sections 9.2 and 9.3.)  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 39  
7.4 LCD Interface Timing  
SED1352 outputs  
t2  
YD  
t3  
t1  
LP  
t4  
WF  
SED1352 outputs  
(AUX[01h] bit 5 = 0)  
LP  
t8  
t5  
t6  
t7a  
t11  
t9  
t10  
XSCL  
t12  
UD[3:0]  
LD[3:0]  
1
2
SED1352 outputs  
(AUX[01h] bit 5 = 1)  
LP  
t7b  
t8  
t6b, t6c  
t9  
t10  
t13  
XSCL  
t11  
t12  
UD[3:0]  
80  
1
2
LD[3:0]  
Figure 22: LCD Interface Timing  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 40  
Epson Research and Development  
Vancouver Design Center  
7.4.1 4-Bit Single LCD Interface Timing  
Table 7-12: 4-Bit Single LCD Interface Timing  
Symbol  
t1  
Parameter  
Min  
Typ  
Max  
Units  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
HT - 24  
LP period  
t2a  
t2b  
t3a  
t3b  
t4  
8tOSC - 24  
13tOSC - 24  
6tOSC - 24  
5tOSC - 24  
0
YD hold from LP negated (R1 bit 5 = 0)  
YD hold from LP negated (R1 bit 5 = 1)  
LP pulse width (R1 bit 5 = 0)  
LP pulse width (R1 bit 5 = 1)  
20  
WF delay from LP falling edge  
t5  
2tOSC - 24  
2tOSC - 24  
13tOSC - 24  
2tOSC - 24  
7tOSC - 24  
4tOSC - 24  
2tOSC - 24  
2tOSC - 24  
2tOSC - 24  
2tOSC - 24  
0
LP setup to XSCL falling edge (R1 bit 5 = 0)  
LP hold from XSCL falling edge (R1 bit 5 = 0)  
XSCL falling edge to LP falling edge (R1 bit 5 = 1 only)  
LP negated to XSCL falling edge (R1 bit 5 = 0)  
LP negated to XSCL falling edge (R1 bit 5 = 1)  
XSCL period  
t6a  
t6b  
t7a  
t7b  
t8  
t9  
XSCL high width  
t10  
t11  
t12  
t13a  
t13b  
XSCL low width  
UD[3:0] setup to XSCL falling edge  
UD[3:0] hold from XSCL falling edge  
LP negated to XSCL rising edge (R1 bit 5 = 0)  
LP negated to XSCL rising edge (R1 bit 5 = 1)  
5tOSC - 24  
Where HT = (number of horizontal panel pixels + 16 ) * tOSC , where tOSC = 1/fOSC  
.
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 41  
7.4.2 8-Bit LCD Interface Timing  
Table 7-13: 8-Bit LCD Interface Timing  
Symbol  
t1a  
Parameter  
Min  
Typ  
Max  
Units  
ns  
HT - 24  
2*HT - 24  
LP period (single panel mode)  
t1b  
t2a  
ns  
LP period (dual panel mode)  
8tOSC - 24  
13tOSC - 24  
6tOSC - 24  
5tOSC - 24  
0
ns  
YD hold from LP negated (R1 bit 5 = 0)  
YD hold from LP negated (R1 bit 5 = 1)  
LP pulse width (R1 bit 5 = 0)  
t2b  
t3a  
ns  
ns  
t3b  
t4  
ns  
LP pulse width (R1 bit 5 = 1)  
20  
ns  
WF delay from LP falling edge  
t5  
2tOSC - 24  
4tOSC - 24  
ns  
LP setup to XSCL falling edge (R1 bit 5 = 0)  
LP hold from XSCL falling edge (R1 bit 5 = 0)  
t6a  
ns  
XSCL falling edge to LP falling edge - single panel  
mode (R1 bit 5 = 1 only)  
t6b  
t6c  
15tOSC - 24  
31tOSC - 24  
ns  
ns  
XSCL falling edge to LP falling edge - dual panel mode  
(R1 bit 5 = 1 only)  
t7a  
t7b  
t8  
4tOSC - 24  
9tOSC - 24  
8tOSC - 24  
4tOSC - 24  
4tOSC - 24  
4tOSC - 24  
4tOSC - 24  
0
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
ns  
LP negated to XSCL falling edge (R1 bit 5 = 0)  
LP negated to XSCL falling edge (R1 bit 5 = 1)  
XSCL period  
t9  
XSCL high width  
t10  
t11  
t12  
t13a  
t13b  
XSCL low width  
UD[3:0], LD[3:0] setup to XSCL falling edge  
UD[3:0], LD[3:0] hold from XSCL falling edge  
LP negated to XSCL rising edge (R1 bit 5 = 0)  
LP negated to XSCL rising edge (R1 bit 5 = 1)  
5tOSC - 24  
Where HT = (number of horizontal panel pixels + 16 ) * tOSC , where tOSC = 1/fOSC  
.
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 42  
Epson Research and Development  
Vancouver Design Center  
LCD Interface Pixel/Data Position  
UD3 UD2 UD1 UD0  
UD3 UD2 UD1 UD0 LD3 LD2 LD1 LD0  
Dual Panel - Top  
8-bit Single Panel  
LD3 LD2 LD1 LD0  
Dual Panel - Bottom  
UD3 UD2 UD1 UD0  
4-bit Single Panel  
Figure 23: LCD Interface Pixel/Data Position  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 43  
LP : 240 P ULS ES  
LP: 4 PULSES  
YD  
LP  
WF  
LINE  
1
LINE  
2
LINE  
3
LINE  
4
LINE 239  
LINE 240  
LINE  
1
LINE 2  
UD[3:0]  
LP  
WF  
X S C L : 8 0 C L O C K P E R I O D S  
XS CL  
1 -317  
1 -318  
1 -319  
1-320  
1-1  
1 -2  
1-3  
1 -4  
1-5  
1-6  
UD3  
UD2  
UD1  
UD0  
1-7  
1 -8  
Example Timing for a 320x240 single panel  
Figure 24: 4-Bit Single Monochrome Panel Timing  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 44  
Epson Research and Development  
Vancouver Design Center  
LP: 4 PULSES  
LP : 480 P ULS E S  
YD  
LP  
WF  
L I N E 1  
L I N E 2  
L I N E 3  
L I N E 4  
L I N E 4 7 9  
L I N E 4 8 0  
L I N E 1  
L I N E 2  
UD[3:0], LD[3:0]  
LP  
WF  
X S C L : 8 0 C L O C K P E R I O D S  
XS CL  
1 -633  
1-634  
1-63 5  
1-636  
1-63 7  
1-63 8  
1-63 9  
1-64 0  
1-1  
1-2  
1-3  
1-4  
1-5  
1-9  
UD3  
UD2  
UD1  
UD0  
LD3  
LD2  
LD1  
LD0  
1-10  
1-11  
1-12  
1-13  
1-6  
1-7  
1-8  
1-14  
1-15  
1-16  
Example timing for a 640x480 panel  
Figure 25: 8-Bit Single Monochrome Panel Timing  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 45  
LP: 2 PULSES  
LP : 240 P ULS ES  
YD  
LP  
WF  
LINE 1/241  
LINE 2/242  
LINE 3/243  
LINE 4/244  
LINE 239/479 LINE 240/480  
LINE 1/241  
LINE 2/242  
UD[3:0], LD[3:0]  
LP  
WF  
X S C L : 1 6 0 C L O C K P E R I O D S  
XS CL  
1-637  
1-638  
1 -1  
1 -2  
1-3  
1-4  
1 -5  
UD3  
UD2  
UD1  
UD0  
LD3  
LD2  
LD1  
LD0  
1-6  
1-639  
1-7  
1-8  
1-640  
241-1 241 -5  
241-2 241-6  
241-637  
241-638  
241-639  
241-640  
2 4 1 -3  
2 4 1 -4  
2 4 1-7  
2 4 1-8  
Example timing for a 640x480 panel  
Figure 26: 8-Bit Dual Monochrome Panel Timing  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 46  
Epson Research and Development  
Vancouver Design Center  
8 HARDWARE REGISTER INTERFACE  
The SED1352 is configured and controlled via 15 internal 8-bit registers. There are two ways to map these registers into  
the system I/O space.  
1. Direct-mapping: Absolute I/O address = system address lines AB[3:0] + base I/O mapped address  
(where base I/O address is selected by VD7-VD12, see Table 5-6)  
This scheme requires 16 sequential I/O addresses starting from the I/O mapped base address selected by VD7-VD12  
(see Table 5-6).  
To perform an I/O access:  
write data IOW {absolute I/O address}, {data}  
read data  
IOR {absolute I/O address}  
2. Indexing: I/O address = internal index register bits [3:0]  
This scheme requires 2 sequential I/O addresses starting from the base address selected by VD4-VD12  
(see Table 5-6).  
To perform an 8-bit I/O access:  
write index IOW {I/O mapped address}, {index}  
then  
write data IOW {I/O mapped address +1}, {data}  
; write the index of the register to be accessed  
; write data to the indexed register  
; read the indexed register  
or  
read data  
IOR {I/O mapped address +1}  
To perform a 16-bit I/O access:  
write data IOW {I/O mapped address}, {index, data}; write the index and data of the register to be accessed  
read data  
IOW {I/O mapped address}, {index}  
IOR {I/O mapped address +1}  
; write to the indexed register  
; read the indexed register  
Note  
Bits marked “n/o” should be set to 0 in the following registers.  
8.1 Register Descriptions  
AUX[00h] Test Register  
I/O address = 0000b, Read/Write  
Test Mode  
Enable  
Test Input  
Test Input  
Test Input  
Test Output Test Output Test Output  
Reserved  
Select Bit 2 Select Bit 1 Select Bit 0 Select Bit 2 Select Bit 1 Select Bit 0  
bit 7  
Test Mode Enable  
When this bit = 0 normal operation is enabled. When this bit = 1 the chip is placed in a special test mode.  
The test input bits and test output bits (bits 6:0) are used to select various internal test functions.  
bit 6  
Reserved  
During normal operation this bit must = 0.  
bits 5-0  
Test Mode Input Bits [2:0] and Output Bits [2:0]  
When bit 7 = 1 these are the Test Input Select Input and Output bits. When bits 6 and 7 = 0 (normal opera-  
tion) these bits may be used as read/write scratch registers.  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 47  
AUX[01h] Mode Register  
I/O address = 0001b, Read/Write.  
Mask  
XSCL  
LCD Data  
Width  
Memory  
Interface  
DISP  
bit 7  
Panel  
LCDE  
Gray Scale  
RAMS  
DISP  
This bit selects display on or off. When this bit = 0, Display OFF is selected (LD0-3 and UD0-3 are forced  
to 0). When this bit = 1, Display ON is selected. This bit goes low on RESET.  
bit 6  
bit 5  
bit 4  
Panel  
This bit selects the LCD panel configuration (single or dual). When this bit = 0, Single LCD panel drive is  
selected. When this bit = 1 Dual LCD panel drive is selected. This bit goes low on RESET.  
Mask XSCL  
When this bit = 0 XSCL is not masked off during the horizontal non-display period. When this bit = 1  
XSCL is masked off during the horizontal non-display period. This bit goes low on RESET.  
LCDE  
The state of this pin determines the state of output pin 82, LCDENB, and is intended for control of an  
external LCDBIAS power supply. However, this pin can be used as a General I/O pin if desired. When  
LCDE = 0, LCDENB is forced low. When LCDE = 1, LCDENB is forced high. This bit goes low on  
RESET.  
bit 3  
bit 2  
Gray Scale  
Selects between 16-level or 4-level gray scale display. When this bit = 1, 16 gray shades are displayed (4  
bits/pixel). When this bit = 0, 4 gray shades are displayed (2 bits/pixel). This bit goes low on RESET.  
LCD Data Width  
Selects between 4-bit and 8-bit display data widths for single LCD mode. When this bit = 1, 8-bit data  
transfer width is enabled. When this bit = 0, 4-bit data transfer width is enabled. In dual panel mode the  
data transfer width is forced to 4 bits per panel. This bit goes low on RESET.  
bit 1  
bit 0  
Memory Interface  
This bit selects between the 8-bit or 16-bit memory interface. When this bit = 0, the 16-bit memory inter-  
face is selected. When this bit = 1, the 8-bit memory interface is selected. If 16-bit bus interface is selected  
(VD0 = 1 on RESET), the Memory Interface bit is forced to 0 internally (16-bit). This bit goes low on  
RESET.  
RAMS  
This bit configures the display memory address lines for an 8-bit memory interface system. When this bit  
= 0, addressing for 8Kx8 SRAM on an 8-bit display memory data bus interface is selected. When this bit =  
1, addressing for 32Kx8 SRAM on an 8-bit display memory data bus interface is selected. This bit goes  
low on RESET. This bit is ignored for a 16-bit memory interface.  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 48  
Epson Research and Development  
Vancouver Design Center  
AUX[02h] Line Byte Count Register (LSB)  
I/O address = 0010b, Read/Write.  
Line Byte  
Line Byte  
Line Byte  
Line Byte  
Line Byte  
Line Byte  
Line Byte  
Line Byte  
Count Bit 7 Count Bit 6 Count Bit 5 Count Bit 4 Count Bit 3 Count Bit 2 Count Bit 1 Count Bit 0  
bits 7-0  
Line Byte Count Bits [7:0]  
These are the 8 LSB of the 9 bit Total Display Line Count and represent the number of scan lines -1, to  
a maximum value of 3FFh or 1024 scan lines. Line Byte Count Bit 8 is located in register AUX[05h] and  
is ignored in the 16-bit memory interface. To calculate the Line Byte Count use the following formula:  
BitsPerPixel  
LineByteCount = -------------------------------------------------------------- × HorizontalResolution 1  
MemoryInterfaceWidth  
Example:  
To calculate the Line Byte Count for 640 horizontal pixels with 16 gray shades (4 bits-per-pixel) and 16-bit  
memory interface:  
4BitsPerPixel  
LineByteCount = ------------------------------------- × 640 1= 159  
16Bits  
The following two tables summarize the maximum value of the Line Byte Count Register for different dis-  
play modes and display memory interface.  
Table 8-1: Maximum Value of Line Byte Count Register - 8-Bit Display Memory Interface  
Corresponding Maximum  
Maximum Value of  
Line Byte Count Register  
Display Mode  
Number of Pixels in One  
Display Line  
4-level gray shades  
16-level gray shades  
0FFh  
1FFh  
256 x 4 = 1024  
512 x 2 = 1024  
Table 8-2: Maximum Value of Line Byte Count Register - 16-Bit Display Memory Interface  
Corresponding Maximum  
Maximum Value of  
Line Byte Count Register  
Display Mode  
Number of Pixels in One  
Display Line  
4-level gray shades  
16-level gray shades  
0FFh  
0FFh  
256 x 8 = 2048  
256 x 4 = 1024  
AUX[03h] Line Byte Count Power Save Register (MSB)  
I/O address = 0011b, Read/Write  
PS  
Bit 1  
PS  
Bit 0  
LCD Signal LUT  
State Bypass  
Line Byte  
Count Bit 8  
n/a  
n/a  
n/a  
bits 7-6  
PS Bits [1:0]  
Selects the Power Save Modes as shown in the following table. The PS bits [1:0] go low on RESET.  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 49  
Table 8-3: Power Save Mode Selection  
PS1 PS0  
Mode Activated  
Normal Operation  
Power Save Mode 1  
Power Save Mode 2  
Reserved  
0
0
1
1
0
1
0
1
Refer to Power Save Modes (PSM 1) on page 55 for a complete Power Save Mode description.  
LCD Signal State  
When this bit = 0, all LCD interface signals are forced low during Power Save modes. When this bit = 1,  
all LCD interface signals are forced to a high impedance (Hi-Z) state during Power Save modes. This bit  
goes low on RESET.  
bit 5  
bit 4  
bit 0  
LUT Bypass  
When the LUT Bypass bit = 0 the Look-Up Table is used for display data output. When this bit = 1, the  
Look-Up Table is bypassed for display data output (for power save purposes). The LUT Bypass bit goes  
low on RESET.  
Line Byte Count Bit 8  
This is the MSB of the number of bytes to be fetched per display line minus 1 (see AUX[02h]). This bit  
only has effect when in 16 gray shades with 8-bit memory interface. This bit is ignored in the 16-bit mem-  
ory interface.  
.
AUX[04h] Total Display Line Count Register (LSB) (Vertical Total)  
I/O address = 0100b, Read/Write.  
Total  
Total  
Total  
Total  
Total  
Total  
Total  
Total  
Display  
Display  
Display  
Display  
Display  
Display  
Display  
Display  
Line Count Line Count Line Count Line Count Line Count Line Count Line Count Line Count  
Bit 7  
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
Bit 1  
Bit 0  
bits 7-0  
Total Display Line Count Bits [7:0]  
These are the 8 LSB of the 10 bit Total Display Line Count and represent the number of scan lines -1, to a  
maximum value of 3FFh or 1024 scan lines.  
In single panel mode:  
TotalDisplayLineCount = NumberOfDisplayLines 1  
In dual panel mode:  
NumberOfDisplayLines  
TotalDisplayLineCount = --------------------------------------------------------------- 1  
2
Note  
Note that the value programmed partially determines the frame period, and hence af-  
fects display duty cycle. Bits 8 and 9 are located in the following register  
(AUX[05h]).  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 50  
Epson Research and Development  
Vancouver Design Center  
AUX[05h] Total Display Line Count Register (MSB) and WF Count Register  
I/O address = 0101b, Read/Write  
Total  
Total  
WF Count  
Bit 5  
WF Count  
Bit 4  
WF Count  
Bit 3  
WF Count  
Bit 2  
WF Count  
Bit 1  
WF Count  
Bit 0  
Display  
Line Count Line Count  
Bit 9 Bit 8  
Display  
bits 7-2  
WF Count Bits [5:0]  
These bits are used to adjust the WF output signal period. The binary value stored in these bits represents  
the number of LP pulses -1 between toggles of the WF output. The power up reset value of these bits is 0,  
which causes the WF output to toggle every frame. When values of 01h to 3Fh are programmed into these  
bits, the results are WF toggling every 1+n LP pulses, where n is the value programmed.  
bits 1-0  
Total Display Line Count Bits [9:8]  
These are the two MSB of the Total Display Line Count Register, AUX[04h].  
AUX[06h] Screen 1 Display Start Address Register (LSB)  
I/O address = 0110b, Read/Write.  
Screen 1  
Display  
Start Addr  
Bit 7  
Screen 1  
Display  
Start Addr  
Bit 6  
Screen 1  
Display  
Start Addr  
Bit 5  
Screen 1  
Display  
Start Addr  
Bit 4  
Screen 1  
Display  
Start Addr  
Bit 3  
Screen 1  
Display  
Start Addr  
Bit 2  
Screen 1  
Display  
Start Addr  
Bit 1  
Screen 1  
Display  
Start Addr  
Bit 0  
AUX[07h] Screen 1 Display Start Address Register (MSB)  
I/O address = 0111b, Read/Write.  
Screen 1  
Display  
Start Addr  
Bit 15  
Screen 1  
Display  
Start Addr  
Bit 14  
Screen 1  
Display  
Start Addr  
Bit 13  
Screen 1  
Display  
Start Addr  
Bit 12  
Screen 1  
Display  
Start Addr  
Bit 11  
Screen 1  
Display  
Start Addr  
Bit 10  
Screen 1  
Display  
Start Addr  
Bit 9  
Screen 1  
Display  
Start Addr  
Bit 8  
AUX[06h] bits 7-0 Screen 1 Display Start Address Bits [15:0]  
AUX[07h] bits 7-0 These 16 bits determine the Screen 1 Display Start Address. In an 8-bit memory configuration these bits  
set the 16-bit start address (i.e., byte access). In a 16-bit memory configuration these are the 16 most sig-  
nificant bits of a 17-bit start address (i.e., word access).  
The Screen 1 Display Start Address is the memory address corresponding to the first displayed pixel (top  
left corner). In a dual panel configuration, screen 1 refers to the upper half of the display. While in a single  
panel configuration, screen 1 refers to the first screen of the Split Screen Display feature where two differ-  
ent images (screen 1 and screen 2) can be displayed at the same time on one display.  
Note  
The absolute address into display memory is determined by the Memory Mapping  
Address which is set by VD13 - VD15 (see Table 5-6, “Summary of Power On / Re-  
set Options,” on page 25).  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 51  
AUX[08h] Screen 2 Display Start Address Register (LSB)  
I/O address = 1000b, Read/Write.  
Screen 2  
Display  
Start Addr  
Bit 7  
Screen 2  
Display  
Start Addr  
Bit 6  
Screen 2  
Display  
Start Addr  
Bit 5  
Screen 2  
Display  
Start Addr  
Bit 4  
Screen 2  
Display  
Start Addr  
Bit 3  
Screen 2  
Display  
Start Addr  
Bit 2  
Screen 2  
Display  
Start Addr  
Bit 1  
Screen 2  
Display  
Start Addr  
Bit 0  
AUX[09h] Screen 2 Display Start Address Register (MSB)  
I/O address = 1001b, Read/Write.  
Screen 2  
Display  
Start Addr  
Bit 15  
Screen 2  
Display  
Start Addr  
Bit 14  
Screen 2  
Display  
Start Addr  
Bit 13  
Screen 2  
Display  
Start Addr  
Bit 12  
Screen 2  
Display  
Start Addr  
Bit 11  
Screen 2  
Display  
Start Addr  
Bit 10  
Screen 2  
Display  
Start Addr  
Bit 9  
Screen 2  
Display  
Start Addr  
Bit 8  
AUX[08h] bits 7-0 Screen 2 Display Start Address Bits [15:0]  
AUX[09h] bits 7-0 These 16 bits determine the Screen 2 Display Start Address. In an 8-bit memory configuration these bits  
set the 16-bit start address (i.e., byte access). In a 16-bit memory configuration these are the 16 most sig-  
nificant bits of a 17-bit start address (i.e., word access).  
In a dual panel configuration, screen 2 refers to the lower half of the display. The Screen 2 Display Start  
Address is the memory address corresponding to first displayed pixel in the first line of the lower half of  
the display. If screen 2 is started right after screen 1, the Screen 2 Display Start Address is calculated with  
the following formula.  
Screen2DisplayStartAddress(hex) =  
(ImageHorizontalResolution) × (ImageVerticalResolution) × (BytesPerPixel)  
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Screen1DisplayStartAddress  
MemoryInterfaceWidth  
2 × ----------------------------------------------------------------  
8
In a single panel configuration, screen 2 refers to the second screen of the Split Screen Display Feature  
where two different images (screen 1 and screen 2) can be displayed at the same time on one display. The  
Screen 2 Display Start Address is the memory address corresponding to the first pixel of the second image  
stored in display memory. To display screen 2 refer to AUX[0Ah] Screen 1 Display Line Count Register  
(LSB) below.  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 52  
Epson Research and Development  
Vancouver Design Center  
AUX[0Ah] Screen 1 Display Line Count Register (LSB)  
I/O address = 1010b, Read/Write.  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Line Count Line Count Line Count Line Count Line Count Line Count Line Count Line Count  
Bit 7  
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
Bit 1  
Bit 0  
AUX[0Bh] Screen 1 Display Line Count Register (MSB)  
I/O address = 1011b, Read/Write.  
Screen 1  
Display  
Line Count Line Count  
Bit 9 Bit 8  
Screen 1  
Display  
n/a  
n/a  
n/a  
n/a  
n/a  
n/a  
AUX[0Ah] bits 7-0Screen 1 Display Line Count Bits [9:0]  
AUX[0Bh] bits 1-0 These bits are the eight LSB of a 10-bit value used to determine the number of lines displayed for screen 1.  
The remaining lines will automatically display from the Screen 2 Display Start Address. The 10-bit value  
programmed is the number of display lines -1.  
This register is used to enable the split screen display feature (single panel only) where two different  
images can be displayed at the same time on one display.  
For example; AUX[0Ah] = 20h for a 320x240 display system. The display will display 20h+1 = 33 lines  
on the upper part of the screen as dictated by the Screen 1 Display Start Address Registers (AUX[06h] and  
AUX[07h]), and 240 - 33 = 207 lines will be displayed on the lower part of the screen as dictated by the  
Screen 2 Display Start Address Registers (AUX[08h] and AUX[09h]).  
Two different images can be displayed when using a dual panel configuration by changing the Screen 2  
Display Start Address. However, by using this method screen 2 is limited to the lower half of the display.  
This register is ignored in dual panel mode.  
AUX[0Dh] Address Pitch Adjustment Register  
I/O address = 1101b, Read/Write.  
Addr Pitch  
Addr Pitch Addr Pitch Addr Pitch Addr Pitch Addr Pitch Addr Pitch Addr Pitch  
Adjustment Adjustment Adjustment Adjustment Adjustment Adjustment Adjustment Adjustment  
Bit 7  
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
Bit 1  
Bit 0  
bits 7-0  
Addr Pitch Adjustment Bits [7:0]  
These bits set the numerical difference between the last address of a display line, and the first address in  
the following line.  
If the Address Pitch Adjustment is not equal to zero, then a virtual screen is formed. The size of the virtual  
screen is only limited by the available display memory. The actual display output is a window that is part  
of the whole image stored in the display memory. For example, with 128K of display memory, a 640x400  
16-gray image can be stored. If the output display size is 320x240, then the whole image can be seen by  
changing display starting addresses through AUX[06h] and [07h], and AUX[08h] and [09h]. Note that a  
virtual screen can be produced on either a single or dual panel.  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 53  
In 8-bit memory interface, if the Address Pitch Adjustment is not equal to zero, then a virtual screen with a  
line length of (Line Byte Count +AUX[0Dh]+1) bytes is created, with the display reflecting the contents of  
a window (Line Byte Count+1) bytes wide. The position of the window on the virtual screen is determined  
by AUX[06h] and [07h], and AUX[08h] and [09h].  
In 16-bit memory interface, if the Address Pitch Adjustment is not equal to zero, then a virtual screen with  
a line length of 2(Line Byte Count +AUX[0Dh]+1) bytes is created, with the display reflecting the con-  
tents of a window 2(Line Byte Count+1) bytes wide. The position of the window on the virtual screen is  
determined by AUX[06h] and [07h], and AUX[08h] and [09h].  
.
AUX[0Eh] Look-Up Table Address Register  
I/O address = 1110b, Read/Write  
Palette  
Address  
Bit 3  
Palette  
Address  
Bit 2  
Palette  
Address  
Bit 1  
Palette  
Address  
Bit 0  
Bank  
Bit 1  
Bank  
Bit 0  
ID Bit  
ID Bit  
(Read Only) (Read Only)  
The SED1352 has one internal 16 position, 4-bit wide Look-Up Table (palette). The 4-bit value programmed into each table  
position determines the output gray shade/weighting of display data.  
The Look-Up Table can be arranged in two different configurations. Refer to Table 27, “4-Level Gray-Shade Mode Look-  
Up Table Architecture,” on page 54 for formats.  
bits 7-6  
Bank Bits [1:0]  
In 4-level gray mode (2-bits/pixel), the 16 position palette is arranged into four, 4 position “banks”. These  
two bits control which bank is currently selected. These bits have no effect in 16-level gray mode (4-  
bits/pixel).  
bits 5-4  
ID Bits  
After power on or hardware reset, these bits can be read to identify the current revision of the SED1352.  
These same bits are used to identify the pin compatible SED1352F0x and would only be used in system  
implementations where common software is utilized. As these bits are R/W they must be read before being  
written in order to be used as ID bits.  
Table 8-4: ID Bit Usage  
Aux[0Eh]  
Chip  
bit 5  
bit 4  
SED1353  
F352  
0
0
1
1
0
1
0
1
Power On  
or  
RESET  
SED1352F0B/F1B/D0B  
SED1352F0A  
bits 3-0  
Palette Address Bits [3:0]  
These 4 bits provide a pointer into the 16 position Look-Up Table currently selected for CPU R/W access.  
Note  
The Look-Up Table configuration (e.g. 1/2 banks) does not affect the R/W access  
from the CPU as all 16 positions can be accessed sequentially.  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 54  
Epson Research and Development  
Vancouver Design Center  
AUX[0Fh] Look-Up Table Data Register  
I/O address = 1111b, Read/Write.  
Palette Data Palette Data Palette Data Palette Data  
Bit 3 Bit 2 Bit 1 Bit 0  
n/a  
n/a  
n/a  
n/a  
bits 3-0  
Palette Data Bits [3:0]  
These 4-bits are the gray shade values used for display data output. They are programmed into the 4-bit  
Look-Up Table (palettes) positions pointed to by Palette Address bits [3:0].  
For example: in a 16-level gray shade display mode, a data value of 0001b (4-bits / pixel) will point to  
Look-Up Table position one and display the 4-bit gray shade corresponding to the value programmed into  
that location.  
8.2 Look-Up Table Architecture  
8.2.1 4-Level Gray Shade Mode  
Look-Up Table  
Bank 0  
0
1
2
3
2 bit pixel data  
Bank 1  
0
1
2
3
Bank  
Select  
Logic  
4-bit display data output  
Bank 2  
0
1
2
3
Bank 3  
0
1
2
3
Bank Select bits [1:0]  
(Aux[0Eh] bits [7:6])  
Note: the above depiction is intended to show the display data output path only. The CPU R/W access to the individual  
Look-Up Tables is not affected by the various ‘banking’ configurations.  
Figure 27: 4-Level Gray-Shade Mode Look-Up Table Architecture  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 55  
8.2.2 16-Level Gray Shade Mode  
Look-Up Table 16x4  
0
1
2
3
4 bit pixel data  
4 bit Look-Up Table data output  
( P3, P2, P1, P0 )  
C
D
E
F
msb  
lsb  
Figure 28: 16-Level Gray-Shade Mode Look-Up Table Architecture  
8.3 Power Save Modes (PSM 1)  
Two software-controlled Power Save Modes have been incorporated into the SED1352 to accommodate the important need  
for power reduction in the hand-held devices market. These modes can be enabled by setting the 2 Power Save bits  
(AUX[03h] bits 7-6).  
The various settings are:  
Table 8-5: Power Save Mode Selection  
Bit 7 Bit 6  
Mode Activated  
Normal Operation  
Power Save Mode 1  
Power Save Mode 2  
Reserved  
0
0
1
1
0
1
0
1
8.3.1 Power Save Mode 1 (PSM1)  
Power Save Mode 1 has two states. Initially when set, the SED1352 enters State 1. If no valid memory cycle is detected  
within 1, 2, or 4 clocks (input clock frequency dependent), the chip will enter State 2. The number of clocks of inactivity  
before entering State 2 is dependent on the display memory interface and the number of gray shades.  
State 1  
I/O read/write of all registers allowed  
Memory read/write allowed  
LCD outputs are either forced low (AUX[03h] bit 5=0), or high impedance (AUX[03h] bit 5=1)  
State 2  
The same as State 1 as well as:  
Master clock for display memory access is disabled  
Once a valid memory read/write cycle is detected, the SED1352 returns to State 1 where the MPU access is serviced. The  
transition from going from State 2 to State 1 requires 1, 2, or 4 clocks (as described above).  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 56  
Epson Research and Development  
Vancouver Design Center  
8.3.2 Power Save Mode 2 (PSM2)  
I/O read/write of all registers allowed  
Memory read/write is disabled  
Master clock for display memory access is disabled  
LCD outputs are either forced low (AUX[03h] bit 5=0), or high impedance (AUX[03h] bit 5=1)  
Internal oscillator is disabled.  
8.3.3 Power Save Mode Function Summary  
Table 8-6: Power Save Mode Function Summary  
Power Save Mode (PSM)  
PSM1  
Function  
Normal  
(Active)  
PSM2  
State 1  
No  
State 2  
No  
Display Active?  
Yes  
Yes  
Yes  
Yes  
No  
No  
Yes  
No  
I/O Access Possible?  
Yes  
Yes  
No  
Yes  
No  
Memory Access Possible?  
Sequence Controller Running?  
Internal Oscillator Disabled?  
No  
No  
No  
No  
Yes  
8.3.4 Pin States in Power Save Modes  
Table 8-7: Pin States in Power Save Modes  
Pin State  
Pin  
PSM1  
Normal  
(Active)  
PSM2  
High  
State 1  
State 2  
UD[3:0], LD[3:0],  
LP, XSCL, YD, WF  
(Note 1)  
High  
High  
Active  
Active  
Impedance Impedance Impedance  
UD[3:0], LD[3:0],  
LP, XSCL, YD, WF  
(Note 2)  
Forced Low Forced Low Forced Low  
AB[19:0], DB[15:0]  
IOR#, IOW#  
Active  
Active  
Active  
Active  
Active  
Active  
Active  
Active  
Active  
Active  
Active  
Active  
Active  
Active  
Active  
Active  
MEMR#, MEMW#  
RESET  
Note  
Internal Register AUX[03h], bit 5 = 1.  
Internal Register AUX[03h], bit 5 = 0.  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 57  
9 DISPLAY MEMORY INTERFACE  
9.1 SRAM Configurations Supported  
9.1.1 8-Bit Mode  
VD0-7  
VWE#  
WE#  
8Kx8  
CS#  
SED1352  
VCS0#  
VCS1#  
VA0-12  
n/c  
Figure 29: 8-Bit Mode - 8K bytes SRAM  
VD0-7  
VWE#  
WE#  
WE#  
8Kx8  
CS#  
8Kx8  
CS#  
SED1352  
VCS0#  
VCS1#  
VA0-12  
Figure 30: 8-Bit Mode - 16K bytes SRAM  
(Requires AUX[01h] bit 0 = 0)  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 58  
Epson Research and Development  
Vancouver Design Center  
VD0-7  
VWE#  
WE#  
32Kx8  
CS#  
SED1352  
VCS0#  
VCS1#  
VA0-14  
n/c  
Figure 31: 8-Bit Mode - 32K bytes SRAM  
(Requires AUX[01h] bit 0 = 1)  
VD0-7  
VWE#  
WE#  
WE#  
8K/32Kx8  
CS#  
32K/8Kx8  
CS#  
SED1352  
VCS0#  
VCS1#  
VA0-14  
Figure 32: 8-Bit Mode - 40K bytes SRAM  
[either (8Kx8 + 32Kx8) requiring AUX[01h] bit 0 = 0 or (32Kx8 + 8Kx8) requiring AUX[01h] bit 0 = 1]  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 59  
VD0-7  
VWE#  
WE#  
WE#  
32Kx8  
CS#  
32Kx8  
CS#  
SED1352  
VCS0#  
VCS1#  
VA0-14  
Figure 33: 8-Bit Mode - 64K bytes SRAM  
(Requires AUX[01h] bit 0 = 1)  
9.1.2 16-Bit Mode  
VD0-7  
VWE#  
WE#  
8Kx8  
CS#  
SED1352  
VCS0#  
VA0-12  
VCS1#  
CS#  
8Kx8  
WE#  
VD8-15  
Figure 34: 16-Bit Mode - 16K bytes SRAM  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 60  
Epson Research and Development  
Vancouver Design Center  
VD0-7  
VWE#  
WE#  
32Kx8  
CS#  
SED1352  
VCS0#  
VA0-14  
VCS1#  
CS#  
32Kx8  
WE#  
VD8-15  
Figure 35: 16-Bit Mode - 64K bytes SRAM  
VWE#  
WE#  
SED1352  
64Kx16  
VCS0#  
VCS1#  
LB#  
UB#  
VA0-15  
A0-15  
VD0-7  
I/O 1-8  
VD8-15  
I/O 9-16  
Figure 36: 16-Bit Mode - 128K bytes SRAM  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 61  
9.2 SRAM Access Time  
9.2.1 8-Bit Display Memory Interface:  
Table 9-1: 8-Bit Display Memory Interface SRAM Access Time  
Display Mode  
16-level gray shades  
4-level gray shades  
3V/3.3V  
5V  
Access time < 1 / fOSC - 50ns Access time < 1 / fOSC - 30ns  
Access time < 2 / fOSC - 50ns Access time < 2 / fOSC - 30ns  
9.2.2 16-Bit Display Memory Interface:  
Table 9-2: 16-Bit Display Memory Interface SRAM Access Time  
Display Mode  
16-level gray shades  
4-level gray shades  
3V/3.3V  
5V  
Access time < 2 / fOSC - 50ns Access time < 2 / fOSC - 30ns  
Access time < 4 / fOSC - 50ns Access time < 4 / fOSC - 30ns  
9.3 Frame Rate Calculation  
9.3.1 For Single Panel  
:
f
osc  
FrameRate = ---------------------------------------------------------------------------------------------------------------------------------------  
(HorizontalPixels + DHNDP) × (VerticalLines + 4)  
9.3.2 For Dual Panel  
:
f
osc  
FrameRate = -------------------------------------------------------------------------------------------------------------------------------------------------  
VerticalLines  
(HorizontalPixels + DHNDP) × 2 × ------------------------------------ + 2  
2
Where DHNDP is Default Horizontal Non-Display Period in term of pixels:  
DHNDP = 16 pixels per panel.  
9.4 Memory Size Calculation  
(HorizontalPixels) × (VerticalLines) × (BitsPerPixel)  
Memory Size (bytes) = -----------------------------------------------------------------------------------------------------------------------------------------------  
8
Example: For a 640x480, 4 gray shades (2 bits-per-pixel) system:  
(640) × (480) × (2)  
----------------------------------------------- = 76800bytes = 75Kbyte  
Memory Size (bytes) =  
8
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 62  
Epson Research and Development  
Vancouver Design Center  
9.5 Memory Size Requirement  
The following tables summarize the preceding information (formulae).  
Input clock (fOSC) is limited by SRAM access time depending on the display mode and display memory interface that is  
being used. As a result, different resolutions will have different input clock and memory requirements for a particular frame  
rate. Tables 9-3 through 9-5 summarize the minimum memory size and access time requirements for various resolutions at  
a particular input clock along with the corresponding frame rates.  
Table 9-3: Memory Size Requirement: Number of Horizontal Pixels = 640  
Number of Horizontal Pixels = 640  
4 Grays  
(2 bits-per-pixel)  
16 Grays  
(4 bits-per-pixel)  
Example  
Input Clock  
Display  
Memory  
Interface  
Access Time  
Access Time  
Size  
(KB)  
Size  
(KB)  
Frame Rate  
(fOSC)  
3V/3.3V  
5V  
3V/3.3V  
5V  
8-bit  
16-bit  
(2)  
115 ns  
(2)  
135 ns  
480  
400  
320  
256  
240  
200  
75  
62.5  
50  
150  
125  
100  
80  
(1)  
(1)  
24 MHz  
20 MHz  
16 MHz  
12 MHz  
12 MHz  
10 MHz  
76 Hz  
75 Hz  
75 Hz  
70 Hz  
75 Hz  
75 Hz  
8-bit  
16-bit  
50 ns  
150 ns  
70 ns  
170 ns  
(2)  
50 ns  
(2)  
70 ns  
8-bit  
16-bit  
75 ns  
200 ns  
95 ns  
220 ns  
(2)  
75 ns  
(2)  
95 ns  
8-bit  
16-bit  
115 ns  
280 ns  
135 ns  
300 ns  
(2)  
115 ns  
(2)  
135 ns  
40  
8-bit  
16-bit  
115 ns  
280 ns  
135 ns  
300 ns  
(2)  
115 ns  
(2)  
135 ns  
37.5  
32  
75  
8-bit  
16-bit  
150 ns  
350 ns  
170 ns  
370 ns  
50 ns  
150 ns  
70 ns  
170 ns  
62.5  
(1) Memory more than 128KB cannot be supported by SED1352.  
(2) Memory more than 64KB can only be supported through 16-bit display memory interface.  
* KB = K byte = 1024 bytes  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 63  
Table 9-4: Memory Size Requirement: Number of Horizontal Pixels = 480  
Number of Horizontal Pixels = 480  
4 Grays  
(2 bits-per-pixel)  
16 Grays  
(4 bits-per-pixel)  
Example  
Display  
Memory  
Interface  
Access Time  
Access Time  
Size  
(KB)  
Size  
(KB)  
Input Clock  
Frame Rate  
(fOSC)  
3V/3.3V  
5V  
3V/3.3V  
5V  
8-bit  
16-bit  
60 ns  
170 ns  
80 ns  
190 ns  
(2)  
60 ns  
(2)  
80 ns  
480  
400  
320  
256  
240  
200  
57  
47  
113  
94  
75  
60  
57  
47  
18 MHz  
14 MHz  
12 MHz  
10 MHz  
8 MHz  
75 Hz  
70 Hz  
75 Hz  
77 Hz  
66 Hz  
73 Hz  
8-bit  
16-bit  
90 ns  
230 ns  
110 ns  
250 ns  
(2)  
90 ns  
(2)  
110 ns  
8-bit  
16-bit  
115 ns  
280 ns  
135 ns  
300 ns  
(2)  
115 ns  
(2)  
135 ns  
37.5  
30  
8-bit  
16-bit  
150 ns  
350 ns  
170 ns  
370 ns  
50 ns  
150 ns  
70 ns  
170 ns  
8-bit  
16-bit  
200 ns  
450 ns  
220 ns  
470 ns  
75 ns  
200 ns  
95 ns  
220 ns  
29  
8-bit  
16-bit  
200 ns  
450 ns  
220 ns  
470 ns  
75 ns  
200 ns  
95 ns  
220 ns  
23.5  
8 MHz  
Table 9-5: Memory Size Requirement: Number of Horizontal Pixels = 320  
Number of Horizontal Pixels = 320  
4 Grays  
(2 bits-per-pixel)  
16 Grays  
(4 bits-per-pixel)  
Example  
Display  
Memory  
Interface  
Access Time  
Access Time  
Size  
(KB)  
Size  
(KB)  
Input Clock  
Frame Rate  
(fOSC)  
3V/3.3V  
5V  
3V/3.3V  
5V  
8-bit  
16-bit  
115 ns  
280 ns  
135 ns  
300 ns  
(2)  
115 ns  
(2)  
135 ns  
480  
400  
320  
256  
240  
200  
37.5  
32  
75  
62.5  
50  
12 MHz  
10 MHz  
8 MHz  
6 MHz  
6 MHz  
5 MHz  
74 Hz  
74 Hz  
73 Hz  
69 Hz  
73 Hz  
73 Hz  
8-bit  
16-bit  
150 ns  
350 ns  
170 ns  
370 ns  
50 ns  
150 ns  
70 ns  
170 ns  
8-bit  
16-bit  
200 ns  
450 ns  
220 ns  
470 ns  
75 ns  
200 ns  
95 ns  
220 ns  
25  
8-bit  
16-bit  
280 ns  
615 ns  
300 ns  
630 ns  
115 ns  
280 ns  
135 ns  
300 ns  
20  
40  
8-bit  
16-bit  
280 ns  
615 ns  
300 ns  
635 ns  
115 ns  
280 ns  
135 ns  
300 ns  
19  
37.5  
32  
8-bit  
16-bit  
350 ns  
750 ns  
370 ns  
770 ns  
150 ns  
350 ns  
170 ns  
370 ns  
16  
(1) Memory more than 128KB cannot be supported by SED1352.  
(2) Memory more than 64KB can only be supported through 16-bit display memory interface.  
* KB = K byte = 1024 bytes  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 64  
Epson Research and Development  
Vancouver Design Center  
10 MECHANICAL DATA  
23.2± 0.04  
20.0± 0.1  
80  
51  
81  
50  
Index  
100  
31  
0.65± 0.1  
0.30± 0.1  
1
30  
0~12°  
0.8± 0.1  
1.6  
All dimensions in mm  
Figure 37: Mechanical Drawing QFP5-100pin-S2  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
Epson Research and Development  
Vancouver Design Center  
Page 65  
16.0 ± 0.4  
14.0 ± 0.1  
75  
51  
76  
50  
Index  
100  
26  
1
25  
0.5  
0.168± 0.1  
0~10°  
0.5 ± 0.2  
1
All dimensions in mm  
Figure 38: Mechanical Drawing QFP15-100pin  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352  
X16-SP-001-16  
Page 66  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-SP-001-16  
Hardware Functional Specification  
Issue Date: 99/07/28  
SED1352 Dot Matrix Graphics LCD Controller  
Programming Notes and Examples  
Document Number: X16-BG-007-04  
Copyright © 1996, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 3  
Table of Contents  
1
2
3
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  
INITIALIZING THE SED1352 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8  
GRAY SHADES AND LOOK-UP TABLES . . . . . . . . . . . . . . . . . . . . . 15  
3.1 Pixels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  
3.1.1 Two Bit Pixels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  
3.1.2 Four Bit Pixels . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  
3.2 Look-Up Table (LUT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
3.2.1 LUT Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
3.2.2 Look-Up Table Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17  
3.2.3 Four Gray Shades (Two Bits/Pixel) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19  
3.2.4 Sixteen Gray Shades (Four Bits/Pixel) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21  
4
5
DISPLAY MEMORY MODELS . . . . . . . . . . . . . . . . . . . . . . . . . . . 22  
4.1 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22  
4.2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24  
4.2.1 SDU1352B0x Evaluation Board Display Memory . . . . . . . . . . . . . . . . . . . . . . 24  
4.2.2 Display Start Address Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25  
4.3 Common Display Memory Requirements for LCD Panel Sizes . . . . . . . . . . . . . 27  
ADVANCED TECHNIQUES . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  
5.1 Virtual Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  
5.1.1 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28  
5.1.2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29  
5.2 Bitmaps and Text Displays . . . . . . . . . . . . . . . . . . . . . . . . . . . 30  
5.3 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  
5.3.1 Indexed Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  
5.3.2 Direct Addressing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32  
5.4 Split Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34  
5.4.1 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34  
5.4.2 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  
5.4.3 Single Panel LCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  
5.4.4 Dual Panel LCD . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38  
5.5 Panning and Scrolling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42  
5.5.1 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42  
5.5.2 Panning Right and Left . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42  
5.5.3 Scrolling Up and Down . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42  
5.6 Power Saving . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44  
5.6.1 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44  
5.6.2 Power Save Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 4  
Epson Research and Development  
Vancouver Design Center  
6
PROGRAMMING THE SED1352 . . . . . . . . . . . . . . . . . . . . . . . . . . .46  
6.1 Main Loop Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47  
6.2 Initialization Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48  
6.3 Advanced Functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52  
7
GLOSSARY . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .65  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 5  
List of Tables  
Table 3-1: SED1352F0B Black-To-White Look-Up Table for 16 Gray Shades . . . . . . . . . . . . . . . .17  
Table 3-2: SED1352F0B Inverted Look-Up Table (White-To-Black) . . . . . . . . . . . . . . . . . . . . .18  
Table 3-3: SED1352F0B Black-To-White Look-Up Table for 4 Gray Shades . . . . . . . . . . . . . . . . .19  
Table 4-1: Memory Size Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27  
Table 5-1: Smallest Number of Pixels for Panning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .42  
Table 5-2: Power Save Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44  
Table 5-3: Power Save Mode Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44  
Table 5-4: Power Save Mode Function Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45  
List of Figures  
Figure 1: Pixel Storage for 2 Bits (4 Gray Shades) In One Byte of Display Memory . . . . . . . . . . . . 15  
Figure 2: Pixel Storage for 4 Bits (16 gray shades) in One Byte of Display Memory . . . . . . . . . . . . 15  
Figure 3: 4-Level Gray Shade Mode Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . 20  
Figure 4: 16-Level Gray Shade Mode Look-Up Table Architecture. . . . . . . . . . . . . . . . . . . . . 21  
Figure 5: Memory Map for 320 x 240 LCD Panel with 16 Gray Shades . . . . . . . . . . . . . . . . . . 25  
Figure 6: Memory Map Example for 320 x 240 LCD Panel with 4 Gray Shades . . . . . . . . . . . . . . 27  
Figure 7: Memory Map Example for 640 x 200 LCD Panel with 16 Gray Shades . . . . . . . . . . . . . 27  
Figure 8: 640 x 480 Virtual Display . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29  
Figure 9: Font for the Message “TEXT” . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30  
Figure 10: Display Memory Contents for Message “TEXT” . . . . . . . . . . . . . . . . . . . . . . . . . 31  
Figure 11: Memory Map for Split Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35  
Figure 12: 320 x 240 Single Panel for Split Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37  
Figure 13: 640 x 480 Dual Panel for Split Screen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39  
Figure 14: Memory Map for a Dual Panel showing a Single Image . . . . . . . . . . . . . . . . . . . . . 40  
Figure 15: Display for DEMO.EXE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 6  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 7  
1 INTRODUCTION  
The purpose of this guide is to demonstrate how to program the SED1352 LCD controller, with reference made to the  
SDU1352B0x evaluation board. The first half of this guide presents the basic concepts of LCD controllers, which describe  
the following:  
Initializing the SED1352  
Gray Shades and Look-Up Tables  
Display Memory Models  
Virtual Displays  
Bitmaps and Text Displays  
Registers  
Split Screen  
Panning and Scrolling  
Power Saving  
The second half of this guide presents programming examples for the following:  
Initialization  
Read Registers  
Gray Shades and Look-Up Tables  
Text  
Split Screen  
Panning and Scrolling  
Power Saving  
These programming examples are combined in a simple menu-driven program. Most of the program is written in the ‘C’  
programming language, with some parts written in 8086 assembly.  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 8  
Epson Research and Development  
Vancouver Design Center  
2 INITIALIZING THE SED1352  
This section presents two examples to show how to initialize the SED1352 registers and write a pixel to the display. Code  
to initialize the SED1352 is provided in Section 6.2, “Initialization Code” on page 48.  
The following examples describe values written to registers.  
A “normal” value is one which must not change after initialization of all 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 SED1352. Such a value  
must never change after initialization of all registers. Refer to the SED1352F0x Hardware Functional Specification  
and SDU1352B0x 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 16 gray shade 320x240 single panel LCD with 64k of display  
memory. Afterwards write one pixel to the top left corner of the display.  
Program SED1352 Registers 00h-0Dh:  
AUX  
Register  
Data  
Notes  
See Also  
(in Binary)  
must be zero  
AUX[00h] 0000 0000  
b7 = display on (normal)  
b6 = single panel (panel specific)  
b5 = XSCL not masked (panel specific)  
b4 = LCDE LCDENB pin = 0 (implementation specific; the  
recommended procedure is to turn this bit off during register  
initialization and afterwards turn this bit on)  
AUX[01h] 1000 1000  
b3 = 16 grays (application specific)  
b2 = 4 bit LCD data width (panel specific)  
b1 = 16 bit Memory Interface (implementation specific)  
b0 = RAMS ignored (implementation specific)  
bits 7-0 = bits 7-0 of Line Byte Count (panel specific)  
see Note A at end of  
AUX[02h] 0100 1111  
AUX[03h] 0000 0110  
bit 8 of Line Byte Count in bit 0 of AUX[03h] (panel specific) Table for calculation  
bits 7-6 = Power Save Mode 0 (application specific)  
bit 5 = LCD interface signals forced to 0 during Power Save  
(implementation specific)  
see Section 5.6, “Power  
Saving” on page 44  
bit 4 = no LUT bypass (application specific)  
bits 3-1 = not used  
bit 0 = bit 8 of Line Byte Count (panel specific, see AUX[02h])  
bits 7-0 = bits 7-0 of Total Display Line Count (panel specific)  
see Note B and C at end  
of Table for calculation  
AUX[04h] 1110 1111  
AUX[05h] 0000 0000  
bits 9-8 of Total Display Line Count in bits 1-0 of AUX[05h]  
(panel specific)  
bits 7-2 = WF not required (panel specific)  
bits 1-0 = bits 9-8 of Total Display Line Count (panel specific,  
see AUX[04h])  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
 
Epson Research and Development  
Vancouver Design Center  
Page 9  
AUX  
Register  
Data  
Notes  
See Also  
(in Binary)  
bits 7-0 = bits 7-0 of Screen 1 Display Start Address (application  
specific)  
see Section 4.2.1,  
“SDU1352B0x  
Evaluation Board  
Display Memory” on  
page 24 and Section 4.1,  
“Registers” on page 22  
bits 15-8 of Screen 1 Display Start Address in AUX[07h]  
(application specific)  
AUX[06h] 0000 0000  
AUX[07h] 1000 0000  
Screen 1 Display Start Address points to D000:0000h  
when 0000h, Screen 1 Display Start Address is located at  
D000:0000h, bank 0, on the SDU1353B0C  
bits 7-0 = bits 15-8 of Screen 1 Display Start Address  
(application specific, see AUX[06h])  
bits 7-0 = bits 7-0 of Screen 2 Display Start Address (application  
specific)  
see Section 4.2.1,  
“SDU1352B0x  
Evaluation Board  
Display Memory” on  
page 24 and Section 4.1,  
“Registers” on page 22  
bits 15-8 of Screen 2 Display Start Address in AUX[09h]  
(application specific)  
AUX[08h] 0000 0000  
AUX[09h] 1000 0000  
Screen 2 Display Start Address points to D000:0000h  
bits 7-0 = bits 15-8 of Screen 2 Display Start Address  
(application specific, see AUX[08h])  
bits 7-0 = bits 7-0 of Screen 1 Display Line Count (application  
specific)  
bits 9-8 of Screen 1 Display Line Count in bits 1-0 of AUX[0Bh]  
(application specific)  
see Section 5.4, “Split  
Screen” on page 34  
AUX[0Ah] 1110 1111  
Screen 1 Display Line Count is typically the same as Total  
Display Line Count  
(AUX[0Ah] = AUX[04h], bits 1-0 of AUX[0Bh] = bits 1-0 of  
AUX[05h])  
bits 7-2 = not used  
AUX[0Bh] 1111 1100  
AUX[0Dh] 0000 0000  
bits 1-0 = bits 9-8 of Screen 1 Display Line Count (application  
specific, see AUX[0Ah])  
bits 7-0 = no address pitch adjustment  
see Section 5.1, “Virtual  
Displays” on page 28  
select palette address  
bits 7-6 = bank 0 (application specific)  
AUX[0Eh] 0000 0000  
bits 5-4 = ID bits (read only; application specific)  
bits 3-0 = palette address (application specific)  
write monochrome LUT data  
AUX[0Fh] 0000 0000  
bits 7-4 = N/A  
bits 3-0 = palette data (application specific)  
AUX[0Eh] 0000 0001  
AUX[0Fh] 0000 0001  
AUX[0Eh] 0000 0010  
AUX[0Fh] 0000 0010  
AUX[0Eh] 0000 0011  
AUX[0Fh] 0000 0011  
AUX[0Eh] 0000 0100  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 10  
Epson Research and Development  
Vancouver Design Center  
AUX  
Register  
Data  
Notes  
See Also  
(in Binary)  
AUX[0Fh] 0000 0100  
AUX[0Eh] 0000 0101  
AUX[0Fh] 0000 0101  
AUX[0Eh] 0000 0110  
AUX[0Fh] 0000 0110  
AUX[0Eh] 0000 0111  
AUX[0Fh] 0000 0111  
AUX[0Eh] 0000 1000  
AUX[0Fh] 0000 1000  
AUX[0Eh] 0000 1001  
AUX[0Fh] 0000 1001  
AUX[0Eh] 0000 1010  
AUX[0Fh] 0000 1010  
AUX[0Eh] 0000 1100  
AUX[0Fh] 0000 1100  
AUX[0Eh] 0000 1101  
AUX[0Fh] 0000 1101  
AUX[0Eh] 0000 1110  
AUX[0Fh] 0000 1110  
AUX[0Eh] 0000 1111  
AUX[0Fh] 0000 1111  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
Program Mode Register bit DISP to 1, and set LCDE to enable  
power supply.  
1001 0000b ‘OR’ {original value for AUX[01h]}  
AUX[01h] 1001 1000  
b7 = display on (application specific)  
b4 = LCDE = LCDENB pin = set to enable specific power supply  
design (for SDU1353B0C, set bit to 1 to enable power supply)  
(application specific)  
Write one pixel to the top left corner of display memory.  
If the SDU1352B0x evaluation board is used, video memory begins at D000:0000h; in this case write 0F0h to location  
D000:0000h.  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 11  
Note  
A
Panel Width in Pixels  
Memory Interface Width (8 or 16 bits)  
-------------------------------------------------------------------------------------------- × [  
Line Byte Count =  
=
bits per pixel (2 or 4 bits) – 1  
]
320  
-------- ×  
4 – 1 = 79 = 4Fh  
16  
B
C
Single Panel  
Dual Panel  
Total Display Line Count = number of display lines – 1 = 240 – 1 = 239 = 0EFh  
number of display lines  
Total Display Line Count = ------------------------------------------------------- – 1  
2
Example 2: Initialize the registers for a 4 gray shade 640x480 dual panel LCD with 128k of display  
memory. Afterwards write one pixel to the top left corner of the display.  
Program SED1352 Registers 00h-0Dh:  
AUX  
Register  
Data  
Notes  
See Also  
(in Binary)  
must be zero  
AUX[00h] 0000 0000  
b7 = display on (normal)  
b6 = dual panel (panel specific)  
b5 = XSCL not masked (panel specific)  
b4 = LCDE LCDENB pin = 0 (implementation specific; the  
recommended procedure is to turn this bit off during register  
initialization and afterwards turn this bit on)  
AUX[01h] 1100 1000  
b3 = 16 grays (application specific)  
b2 = 4 bit LCD data width (panel specific)  
b1 = 16 bit Memory Interface (implementation specific)  
b0 = RAMS ignored (implementation specific)  
bits 7-0 = bits 7-0 of Line Byte Count (panel specific)  
see Note A at end of  
AUX[02h] 0100 1111  
AUX[03h] 0000 0110  
bit 8 of Line Byte Count in bit 0 of AUX[03h] (panel specific) Table for calculation  
bits 7-6 = Power Save Mode 0 (application specific)  
bit 5 = LCD interface signals forced to 0 during Power Save  
(implementation specific)  
see Section 5.6, “Power  
Saving” on page 44  
bit 4 = no LUT bypass (application specific)  
bits 3-1 = not used  
bit 0 = bit 8 of Line Byte Count (panel specific, see AUX[02h])  
bits 7-0 = bits 7-0 of Total Display Line Count (panel specific)  
see Note B and C at end  
of Table for calculation  
AUX[04h] 1110 1111  
AUX[05h] 0000 0000  
bits 9-8 of Total Display Line Count in bits 1-0 of AUX[05h]  
(panel specific)  
bits 7-2 = WF not required (panel specific)  
bits 1-0 = bits 9-8 of Total Display Line Count (panel specific,  
see AUX[04h])  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 12  
Epson Research and Development  
Vancouver Design Center  
AUX  
Register  
Data  
Notes  
See Also  
(in Binary)  
bits 7-0 = bits 7-0 of Screen 1 Display Start Address (application  
specific)  
see Section 4.2.1,  
“SDU1352B0x  
Evaluation Board  
Display Memory” on  
page 24 and Section 4.1,  
“Registers” on page 22  
bits 15-8 of Screen 1 Display Start Address in AUX[07h]  
(application specific)  
AUX[06h] 0000 0000  
AUX[07h] 0000 0000  
Screen 1 Display Start Address points to C000:0000h  
when 0000h, Screen 1 Display Start Address is located at  
D000:0000h, bank 0, on the SDU1353B0C  
bits 7-0 = bits 15-8 of Screen 1 Display Start Address  
(application specific, see AUX[06h])  
bits 7-0 = bits 7-0 of Screen 2 Display Start Address (application  
specific)  
see Section 4.2.1,  
“SDU1352B0x  
Evaluation Board  
Display Memory” on  
page 24 and Section 4.1,  
“Registers” on page 22  
bits 15-8 of Screen 2 Display Start Address in AUX[09h]  
(application specific)  
AUX[08h] 0000 0000  
AUX[09h] 0100 1011  
Screen 2 Display Start Address points to C000:9600h  
bits 7-0 = bits 15-8 of Screen 2 Display Start Address  
(application specific, see AUX[08h])  
bits 7-0 = bits 7-0 of Screen 1 Display Line Count (application  
specific)  
bits 9-8 of Screen 1 Display Line Count in bits 1-0 of AUX[0Bh]  
(application specific)  
see Section 5.4, “Split  
Screen” on page 34  
AUX[0Ah] 1110 1111  
Screen 1 Display Line Count is typically the same as Total  
Display Line Count  
(AUX[0Ah] = AUX[04h], bits 1-0 of AUX[0Bh] = bits 1-0 of  
AUX[05h])  
bits 7-2 = not used  
AUX[0Bh] 1111 1100  
AUX[0Dh] 0000 0000  
bits 1-0 = bits 9-8 of Screen 1 Display Line Count (application  
specific, see AUX[0Ah])  
bits 7-0 = no address pitch adjustment  
see Section 5.1, “Virtual  
Displays” on page 28  
select palette address  
bits 7-6 = bank 0 (application specific)  
AUX[0Eh] 0000 0000  
AUX[0Fh] 0000 0000  
bits 5-4 = ID bits (read only; application specific)  
bits 3-0 = palette address (application specific)  
write monochrome LUT data  
bits 7-4 = N/A  
bits 5-4 = bank 0 (application specific)  
bits 3-0 = palette data (application specific)  
AUX[0Eh] 0000 0001  
AUX[0Fh] 0000 0101  
AUX[0Eh] 0000 0010  
AUX[0Fh] 0000 1010  
AUX[0Eh] 0000 0011  
AUX[0Fh] 0000 1111  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 13  
AUX  
Register  
Data  
Notes  
See Also  
(in Binary)  
AUX[0Eh] 0000 0100  
AUX[0Fh] 0000 0000  
AUX[0Eh] 0000 0101  
AUX[0Fh] 0000 0101  
AUX[0Eh] 0000 0110  
AUX[0Fh] 0000 1010  
AUX[0Eh] 0000 0111  
AUX[0Fh] 0000 1111  
AUX[0Eh] 0000 1000  
AUX[0Fh] 0000 0000  
AUX[0Eh] 0000 1001  
AUX[0Fh] 0000 0101  
AUX[0Eh] 0000 1010  
AUX[0Fh] 0000 1010  
AUX[0Eh] 0000 1011  
AUX[0Eh] 0000 1111  
AUX[0Fh] 0000 1100  
AUX[0Fh] 0000 0000  
AUX[0Eh] 0000 1101  
AUX[0Fh] 0000 0101  
AUX[0Eh] 0000 1110  
AUX[0Fh] 0000 1010  
AUX[0Eh] 0000 1111  
AUX[0Fh] 0000 1111  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
increment palette address  
write monochrome LUT data  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
increment palette address  
write monochrome LUT data  
select palette address  
write monochrome LUT data  
Program Mode Register bit DISP to 1, and set LCDE to enable  
power supply.  
1001 0000b ‘OR’ {original value for AUX[01h]}  
AUX[01h] 1001 1000  
b7 = display on (application specific)  
b4 = LCDE = LCDENB pin = set to enable specific power supply  
design (for SDU1353B0C, set bit to 1 to enable power supply)  
(application specific)  
Write one pixel to the top left corner of display memory.  
If the SDU1352B0x evaluation board is used, the first panel’s memory addresses begin at C000:0000h (see Section 5.4.4.1,  
“Displaying a Single Image on a Dual Panel” on page 40). Consequently write 0C0h to location C000:0000h for the  
SDU1352B0x.  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 14  
Epson Research and Development  
Vancouver Design Center  
Note  
A
Panel Width in Pixels  
-------------------------------------------------------------------------------------------- × [  
Memory Interface Width (8 or 16 bits)  
Line Byte Count =  
=
bits per pixel (2 or 4 bits) – 1  
]
640  
-------- ×  
2 – 1 = 79 = 4Fh  
16  
B
C
Single Panel  
Total Display Line Count = number of display lines – 1  
Dual Panel  
number of display lines  
480  
2
Total Display Line Count = ------------------------------------------------------- – 1 = -------- – 1 = 239 = 0EFh  
2
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 15  
3 GRAY SHADES AND LOOK-UP TABLES  
This section discusses memory formats and Look-Up Table formats for the SED1352.  
3.1 Pixels  
A pixel is physically stored in display memory as a series of bits. The more bits, the more gray shades the pixel can show.  
With only one bit, the pixel can only show two different combinations of gray shades (0 or 1). With two bits, the pixel can  
show four different combinations of gray shades (00b, 01b, 10b, or 11b). Similarly, four bits allow 16 different combina-  
tions of gray shades (0000b, 0001b, 0010b, ... 1111b).  
The SED1352 can be programmed to use either two bit or four bit pixels. The following sections show how these pixels  
are stored in display memory.  
3.1.1 Two Bit Pixels  
To store two bit pixels, four pixels are grouped into one byte of display memory as shown below:  
Bit 7  
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
Bit 1  
Bit 0  
Pixel 0  
Bit 1  
Pixel 0  
Bit 0  
Pixel 1  
Bit 1  
Pixel 1  
Bit 0  
Pixel 2  
Bit 1  
Pixel 2  
Bit 0  
Pixel 3  
Bit 1  
Pixel 3  
Bit 0  
Figure 1: Pixel Storage for 2 Bits (4 Gray Shades) In One Byte of Display Memory  
When these pixels are shown, Pixel 0 is seen to be left of Pixel 1, Pixel 1 is seen to be left of Pixel 2, and so on.  
3.1.2 Four Bit Pixels  
To store four bit pixels, two pixels are grouped into one byte of display memory as shown below:  
Bit 7  
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
Bit 1  
Bit 0  
Pixel 0  
Bit 3  
Pixel 0  
Bit 2  
Pixel 0  
Bit 1  
Pixel 0  
Bit 0  
Pixel 1  
Bit 3  
Pixel 1  
Bit 2  
Pixel 1  
Bit 1  
Pixel 1  
Bit 0  
Figure 2: Pixel Storage for 4 Bits (16 gray shades) in One Byte of Display Memory  
When these pixels are shown, Pixel 0 is seen to be left of Pixel 1.  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 16  
Epson Research and Development  
Vancouver Design Center  
3.2 Look-Up Table (LUT)  
This section provides a concise description of the LUT registers, followed by a description of a LUT. Next is a series of  
examples which show how to initialize a LUT, create an inverted LUT, and how to select one of four banks in the 4 gray  
shade mode.  
3.2.1 LUT Registers  
Note  
Register bits discussed in this section are highlighted.  
AUX[0E] Look-Up Table Address Register  
I/O address = 1110b, Read/Write  
Palette  
Address  
Bit 3  
Palette  
Address  
Bit 2  
Palette  
Address  
Bit 1  
Palette  
Address  
Bit 0  
Bank  
Bit 1  
Bank  
Bit 0  
ID Bit  
ID Bit  
(Read Only) (Read Only)  
The SED1352 has one internal 16 position, 4-bit wide Look-Up Table (palette). The 4-bit value programmed into each table  
position determines the output gray shade of display data.  
For example, in 16-level gray shade mode, a data value of 0001h (4 bits per pixel) will point to Look-Up Table positions  
one and display the 4-bit gray shade that was previously programmed into that location.  
bits 7-6  
Bank Bits [1:0]  
In 4-level gray mode (2-bits/pixel), the 16 position palette is arranged into four, 4 position “banks”. These  
two bits control which bank is currently selected. These bits have no effect in 16-level gray mode (4-  
bits/pixel).  
bits 3-0  
Palette Address Bits [3:0]  
These 4 bits provide a pointer into the 16 position Look-Up Table currently selected for CPU R/W access.  
Note  
The Look-Up Table configuration (e.g. 1/2/4 banks) does not affect the R/W access  
from the CPU as all 16 positions can be accessed sequentially.  
AUX[0F] Look-Up Table Data Register  
I/O address = 1111b, Read/Write.  
Palette Data Palette Data Palette Data Palette Data  
Bit 3 Bit 2 Bit 1 Bit 0  
n/a  
n/a  
n/a  
n/a  
bits 3-0  
Palette Data Bits [3:0]  
These 4-bits are the gray shade values used for display data output. They are programmed into the 4-bit  
Look-Up Table (palettes) positions pointed to by Palette Address bits [3:0].  
For example; in a 16-level gray shade display mode, a data value of 0001b (4-bits / pixel) will point to  
Look-Up Table position one and display the 4-bit gray shade corresponding to the value programmed into  
that location.  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 17  
3.2.2 Look-Up Table Description  
The Look-Up Table (LUT, or palette) treats the value of a pixel as an index of an array of gray shades. For example, a pixel  
value of zero would point to the first LUT entry; a pixel value of 7 would point to the eighth LUT entry.  
Because LUT entries represent the actual gray shades shown on the LCD panel, pixel values indirectly select which gray  
shade displays.  
The SED1352 supports two different data formats; 4 bits-per-pixel (16 gray shades) and 2 bits-per-pixel (4 gray shades).  
In 4 bits-per-pixel mode the SED1352 provides a 16 position, 4 bit wide LUT. In 2 bits-per-pixel mode, the SED1352  
provides 4 “banks” of 4 position, 4 bit wide LUTs.  
The value inside each LUT entry represents the gray shade. This value ranges between 0 and 15.  
The SED1352FOB Look-Up Table is linear; increasing the LUT entry number results in a lighter gray shade. For example,  
a LUT entry of 0Fh into a look-up entry will always result in a bright white output. An entry of 00h into a look-up entry  
will always result in a black output.  
Example 3: Initialize the Look-Up Table  
The following describes how to initialize the Look-Up Table for 16 gray shades. Table 3-1 shows a LUT with gray shades  
starting from black (index 0) and finishing in white (index 15, or 0Fh).  
1. Write LUT index to Look-Up Table Address Register AUX[0Eh].  
2. Write LUT entry value to Look-Up Table Data Register AUX[0Fh].  
3. Repeat steps 1 and 2 until all 16 LUT entries have been written.  
Table 3-1: SED1352F0B Black-To-White Look-Up Table for 16 Gray Shades  
Look-Up  
Table  
Look-Up  
Index  
(hex)  
Index  
(hex)  
Table  
(hex)  
8
(hex)  
0
1
2
3
4
5
6
7
0
8
9
1
9
2
A
B
C
D
E
F
A
3
B
4
C
5
D
6
E
7
F
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
 
 
Page 18  
Epson Research and Development  
Vancouver Design Center  
Example 4: Initialize an Inverted Look-Up Table  
This example shows how to invert an image by changing only the LUT. Inverting means that pixels formally shown as light  
gray shades are now shown as dark gray shades, and vise versa. It does not matter whether the SED1352 is in 4 gray shade  
or 16 gray shade mode.  
1. Read LUT entry:  
Write LUT index to Look-Up Table Address Register AUX[0Eh]  
Read “Old LUT Entry” from Look-Up Table Data Register AUX[0Fh]  
2. Calculate “New LUT Entry” according to the following formula:  
New LUT Entry = 15 – Old LUT Entry  
3. Write LUT entry back:  
Write LUT index to Look-Up Table Address Register AUX[0Eh]  
Write “New LUT Entry” to Look-Up Table Data Register AUX[0Fh]  
4. Repeat steps 1 to 3 until all 16 LUT entries have been changed.  
If Table 3-1 was previously programmed into the SED1352, the new inverted LUT would be the following:  
Table 3-2: SED1352F0B Inverted Look-Up Table (White-To-Black)  
Look-Up  
Look-Up  
Table  
Index  
(hex)  
Index  
(hex)  
Table  
(hex)  
F
(hex)  
0
1
2
3
4
5
6
7
8
9
7
E
6
D
A
B
C
D
E
F
5
C
4
B
3
A
2
9
1
8
0
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 19  
3.2.3 Four Gray Shades (Two Bits/Pixel)  
When the SED1352 is configured for two bit pixels, each pixel can index one of four LUT entries. In this 4 gray shade  
mode, the SED1352 treats the 16 entries in the LUT as four separate look-up tables or banks, each having four entries (see  
Figure 3). The following examples show how to program and select these banks.  
Example 5: In 4 gray shade mode, program bank 2 LUT entries and select for use.  
1. Determine location of bank 2 in LUT.  
The first four entries in the 16 entry LUT represent the first bank (bank 0). The following four entries in the LUT rep-  
resent the second bank (bank 1), etc. Consequently bank 2 starts at LUT index 8 as shown below:  
start of bank index = bank number × 4  
start of bank 2 = 2 × 4 = 8  
Bank 2 is shown in Figure 3, palette 2.  
2. Write LUT index to Look-Up Table Address Register AUX[0Eh].  
For bank 2, the index will one of the following values: 08h, 09h, 0Ah, or 0Bh  
3. Write LUT entry value to Look-Up Table Data Register AUX[0Fh].  
For a linear LUT, use the look-up table entries in Table 3-1, “SED1352F0B Black-To-White Look-Up Table for 16  
Gray Shades,” on page 17.  
4. Repeat steps 2 and 3 until all 4 LUT entries have been written.  
5. To display data using Bank 2 write 10b to AUX[0E] bits 7,6.  
Table 3-3: SED1352F0B Black-To-White Look-Up Table for 4 Gray Shades  
Look-Up  
Index  
Table  
(hex)  
(hex)  
0
1
2
3
0
5
A
F
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 20  
Epson Research and Development  
Vancouver Design Center  
4 LUTs of 4 Entries x 4 Bits  
LUT  
Index  
0
b3 b2 b1 b0  
0
1
2
3
0
1
2
3
0
1
2
3
0
1
2
3
1
I1I0  
Palette 0  
2
3
4
Bank Bits  
B1, B0  
5
I1I0  
Palette 1  
Palette 2  
6
Display Data  
(2 Bits/Pixel)  
00  
01  
10  
11  
7
Output Value to  
Gray Scale Engine  
I I  
1 0  
8
9
I1I0  
A
B
C
D
E
F
I1I0  
Palette 3  
Figure 3: 4-Level Gray Shade Mode Look-Up Table Architecture  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 21  
3.2.4 Sixteen Gray Shades (Four Bits/Pixel)  
When the SED1352 has 4 bit pixels, each pixel can index into one of 16 LUT entries. The LUT bank bits are ignored in  
this mode.  
1 LUT of 16 Entries x 4 Bits  
b3 b2 b1 b0  
0
1
2
3
4
5
Display Data  
(4 Bits/Pixel)  
6
Output Value to  
Gray Scale Engine  
I I I I  
7
3 2 1 0  
8
9
A
B
C
D
E
F
Figure 4: 16-Level Gray Shade Mode Look-Up Table Architecture  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 22  
Epson Research and Development  
Vancouver Design Center  
4 DISPLAY MEMORY MODELS  
This section introduces display memory models. A concise description of the Display Start Address Registers is provided,  
followed by a description of display memory. Afterwards examples are provided, illustrating how to calculate the display  
memory model for a given display resolution and gray level mode. Once this model is calculated, examples on  
programming the Display Start Address Registers are provided.  
4.1 Registers  
Register bits discussed in this section are highlighted.  
AUX[01] Mode Register  
I/O address = 0001b, Read/Write.  
Mask  
XSCL  
LCD Data  
Width  
Memory  
Interface  
DISP  
bit 1  
Panel  
LCDE  
Gray Scale  
RAMS  
Memory Interface  
This bit selects between the 8-bit or 16-bit memory interface. When this bit = 0, the 16-bit memory inter-  
face is selected. When this bit = 1, the 8-bit memory interface is selected. If 16-bit bus interface is selected  
(VD0 = 1 on RESET), the Memory Interface bit is forced to 0 internally (16-bit). This bit goes low on  
RESET.  
AUX[06] Screen 1 Display Start Address Register (LSB)  
I/O address = 0110b, Read/Write.  
Screen 1  
Display  
Start Addr  
Bit 7  
Screen 1  
Display  
Start Addr  
Bit 6  
Screen 1  
Display  
Start Addr  
Bit 5  
Screen 1  
Display  
Start Addr  
Bit 4  
Screen 1  
Display  
Start Addr  
Bit 3  
Screen 1  
Display  
Start Addr  
Bit 2  
Screen 1  
Display  
Start Addr  
Bit 1  
Screen 1  
Display  
Start Addr  
Bit 0  
AUX[07] Screen 1 Display Start Address Register (MSB)  
I/O address = 0111b, Read/Write.  
Screen 1  
Display  
Start Addr  
Bit 15  
Screen 1  
Display  
Start Addr  
Bit 14  
Screen 1  
Display  
Start Addr  
Bit 13  
Screen 1  
Display  
Start Addr  
Bit 12  
Screen 1  
Display  
Start Addr  
Bit 11  
Screen 1  
Display  
Start Addr  
Bit 10  
Screen 1  
Display  
Start Addr  
Bit 9  
Screen 1  
Display  
Start Addr  
Bit 8  
AUX[06] bits 7-0 Screen 1 Display Start Address Bits [15:0]  
AUX[07] bits 7-0 These 16 bits determine the Screen 1 Display Start Address. In an 8-bit memory configuration these bits  
set the 16-bit start address (i.e., byte access). In a 16-bit memory configuration these are the 16 most sig-  
nificant bits of a 17-bit start address (i.e., word access).  
The Screen 1 Display Start Address is the memory address corresponding to the first displayed pixel (top  
left corner). In a dual panel configuration, screen 1 refers to the upper half of the display. While in a single  
panel configuration, screen 1 refers to the first screen of the Split Screen Display feature where two differ-  
ent images (screen 1 and screen 2) can be displayed at the same time on one display.  
Note  
The absolute address into display memory is determined by the Memory Mapping  
Address which is set by VD13 - VD15.  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 23  
AUX[08] Screen 2 Display Start Address Register (LSB)  
I/O address = 1000b, Read/Write.  
Screen 2  
Display  
Start Addr  
Bit 7  
Screen 2  
Display  
Start Addr  
Bit 6  
Screen 2  
Display  
Start Addr  
Bit 5  
Screen 2  
Display  
Start Addr  
Bit 4  
Screen 2  
Display  
Start Addr  
Bit 3  
Screen 2  
Display  
Start Addr  
Bit 2  
Screen 2  
Display  
Start Addr  
Bit 1  
Screen 2  
Display  
Start Addr  
Bit 0  
AUX[09] Screen 2 Display Start Address Register (MSB)  
I/O address = 1001b, Read/Write.  
Screen 2  
Display  
Start Addr  
Bit 15  
Screen 2  
Display  
Start Addr  
Bit 14  
Screen 2  
Display  
Start Addr  
Bit 13  
Screen 2  
Display  
Start Addr  
Bit 12  
Screen 2  
Display  
Start Addr  
Bit 11  
Screen 2  
Display  
Start Addr  
Bit 10  
Screen 2  
Display  
Start Addr  
Bit 9  
Screen 2  
Display  
Start Addr  
Bit 8  
AUX[08] bits 7-0 Screen 2 Display Start Address Bits [15:0]  
AUX[09] bits 7-0 These 16 bits determine the Screen 2 Display Start Address. In an 8-bit memory configuration these bits  
set the 16-bit start address (i.e., byte access). In a 16-bit memory configuration these are the 16 most sig-  
nificant bits of a 17-bit start address (i.e., word access).  
In a dual panel configuration, screen 2 refers to the lower half of the display. The Screen 2 Display Start  
Address is the memory address corresponding to first displayed pixel in the first line of the lower half of  
the display. If Screen 2 is started right after Screen 1, the Screen 2 Display Start Address is calculated with  
the following formula.  
Screen2DisplayStartAddress(hex) =  
(ImageHorizontalResolution) × (ImageVerticalResolution) × (BytesPerPixel)  
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- + Screen1DisplayStartAddress  
MemoryInterfaceWidth  
2 × ----------------------------------------------------------------  
8
In a single panel configuration, screen 2 refers to the second screen of the Split Screen Display Feature  
where two different images (screen 1 and screen 2) can be displayed at the same time on one display. The  
Screen 2 Display Start Address is the memory address corresponding to the first pixel of the second image  
stored in display memory. To display screen 2 refer to AUX[0A] Screen 1 Display Line Count Register  
(LSB) below.  
.
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 24  
Epson Research and Development  
Vancouver Design Center  
4.2 Description  
When displaying an image, the SED1352 must read pixel data from display memory. This memory is organized to match  
the display resolution of the given LCD panel. To organize display memory, the following registers must be programmed:  
1. Screen 1 Display Start Address Registers.  
2. Screen 2 Display Start Address Registers.  
3. Address Pitch Adjustment Register.  
For the first example, the Address Pitch Adjustment Register is programmed to zero. This means that no virtual display is  
available; for information on virtual displays see Section 5.1, “Virtual Displays” on page 28.  
4.2.1 SDU1352B0x Evaluation Board Display Memory  
There are several issues to consider when programming the Screen Display Start Address Registers for the SDU1352B0x  
evaluation board:  
When the SDU1352B0x is set for 64k of display memory, display memory exists from address D000:0000h to  
address D000:FFFFh. When the SDU1352B0x is set for 128k of display memory, display memory exists from  
address C000:0000h to address D000:FFFFh.  
For the SDU1352B0x, the Screen Display Start Address Registers are always in reference to the display memory  
address C000:0000h. Writing 0 to a Display Start Address Register will always refer to C000:0000h, even if display  
memory only exists from D000:0000h to D000:FFFFh. Consequently if only 64k of display memory is present, 64k  
must be added to the display address in order to point to D000:0000h. This is a limitation of the evaluation board  
only.  
Although the SED1352 can set the Memory Interface to 8 or 16 bits, the SDU1352B0x evaluation board should be set  
up for 16 bits. As a result, the Display Start Address Registers are word pointers, not byte pointers. To illustrate how  
to use a word pointer, refer to Example 6. In general, any system which uses more than 64k of display memory must  
always have the Memory Interface set to 16 bits.  
Example 6: For the SDU1352B0x, calculate the required start address register value which refers to  
location D000:0000h.  
Since a value of 0 refers to location C000:0000h, the start address register must be programmed with an offset address of  
1000:0000h = 10000h bytes, or 8000h words.  
START ADDRESS[LSB] = 00h  
START ADDRESS[MSB] = 80h  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
 
 
Epson Research and Development  
Vancouver Design Center  
Page 25  
4.2.2 Display Start Address Registers  
This section illustrates how to properly calculate the values for the Screen Start Address Registers for a given LCD panel  
resolution. However, this section is limited to single panel displays; refer to Section 5.4.4, “Dual Panel LCD” on page 38  
to program the Screen Start Address Registers for a dual panel display.  
In the following example, the Display Start Address Registers are programmed for a 16 gray shade 320 x 240 single  
monochrome display. The technique shown, however, can also be used to calculate the memory map of other resolutions.  
In addition, reference is made to the SDU1352B0x evaluation board; other hardware implementations of the SED1352 may  
assign different display and port addresses from those of the SDU1352B0x. Refer to the SDU1352B0x Evaluation Board  
User’s Manual for more information on these hardware issues.  
Example 7: Program the Display Start Address Registers for a 16 gray shade 320 x 240 single mono-  
chrome LCD panel; the display is attached to the SDU1352B0x evaluation board with 64k  
of display memory.  
1. Calculate the number of bytes per scan line.  
16 gray shades => 4 bits per pixel  
4 bits per pixel => 2 pixels per byte  
pixels per scan line  
number of bytes per scan line = --------------------------------------------- = -------- = 160 bytes per scan line = 00A0h bytes per scan line  
pixels per byte  
320  
2
2. Calculate the total number of bytes required for display memory.  
(bytes per scan line) × (number of scan lines) = 160 × 240 = 38400 bytes = 9600h bytes  
3. Create the memory map.  
Each scan line is 00A0h bytes long, there are 240 scan lines, and the last memory address is 9600h - 1.  
Offset  
(hex)  
Offset  
(hex)  
0000  
Scan Line 0  
Scan Line 1  
009F  
013F  
00A0  
94C0 Scan Line 238 955F  
9560 Scan Line 239 95FF  
Figure 5: Memory Map for 320 x 240 LCD Panel with 16 Gray Shades  
4. Program the Screen 1 Display Start Address Registers.  
Assume that the image starts at the beginning of display memory, which for 64k is D000:0000h. As shown in  
Example 6, the Screen 1 Display Start Address Registers must be programmed to 8000h words.  
AUX[06h] = 00h  
AUX[07h] = 80h  
5. Program the Screen 2 Display Start Address Registers.  
Under normal programming conditions, the Screen 2 Display Start Address should be set to the same value as the  
Screen 1 Display Start Address. In the event that a split screen is required, refer to Section 5.4, “Split Screen” on  
page 34.  
AUX[08h] = 00h  
AUX[09h] = 80h  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
 
Page 26  
Epson Research and Development  
Vancouver Design Center  
Example 8: Program the Display Start Address Registers for a dual panel LCD.  
Refer to Section 5.4.4.1, “Displaying a Single Image on a Dual Panel” on page 40.  
Example 9: Determine if the SED1352 implementation can support a 640x480 LCD with 4 gray  
shades.  
1. Calculate the number of bytes per scan line:  
pixels per scan line  
--------------------------------------------- = -------- = 160 bytes per scan line  
pixels per byte  
640  
4
2. Calculate the total number of bytes required for display memory:  
(160 bytes per scan line)(480 scan lines) = 76800 bytes  
3. Compare the required number of bytes with the amount of memory available to the SED1352.  
If the SED1352 has 128k available, there is 131,072 bytes available, which is greater than the 76,800 bytes re-  
quired for 640 x 480 with 4 gray shades.  
If the SED1352 has 64k available, there is 65,536 bytes available, which is less than the 76,800 bytes required  
for 640 x 480 with 4 gray shades.  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 27  
4.3 Common Display Memory Requirements for LCD Panel Sizes  
The following is a list of memory requirements and memory maps for common LCD resolutions. Note that the memory  
required for 640x480 with 16 gray shades exceeds 128k and is therefore not supported on the SED1352.  
Table 4-1: Memory Size Requirements  
Pixel Storage  
Memory Requirements  
Display  
Resolution  
Bits/Pixel Gray Shades  
Bytes  
19,200  
38,400  
32,000  
64,000  
76,800  
N/A  
Hex  
2
4
2
4
2
4
4
16  
4
0000 4B00  
0000 9600  
0000 7D00  
0000 FA00  
0001 2C00  
N/A  
320x240  
640x200  
640x480  
16  
4
16  
Offset  
(hex)  
Offset  
(hex)  
004F  
009F  
0000  
0050  
Scan Line 0  
Scan Line 1  
4A60 Scan Line 238 4AAF  
4AB0 Scan Line 239 4AFF  
Figure 6: Memory Map Example for 320 x 240 LCD Panel with 4 Gray Shades  
Offset  
(hex)  
Offset  
(hex)  
0000  
0140  
Scan Line 0  
Scan Line 1  
013F  
027F  
F780  
Scan Line 198 F8BF  
F8C0 Scan Line 199 F9FF  
Figure 7: Memory Map Example for 640 x 200 LCD Panel with 16 Gray Shades  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 28  
Epson Research and Development  
Vancouver Design Center  
5 ADVANCED TECHNIQUES  
This section presents information on the following:  
virtual displays  
bitmaps and text displays  
reading and writing to the SED1352 registers  
split screen displays  
panning and scrolling.  
power saving.  
5.1 Virtual Displays  
This section presents a detailed description of the Address Pitch Adjustment Register, followed by a description of a virtual  
display. Afterwards an example is given, showing how to create a virtual display.  
5.1.1 Registers  
Note  
Register bits discussed in this section are highlighted.  
AUX[0D] Address Pitch Adjustment Register  
I/O address = 1101b, Read/Write.  
Addr Pitch  
Addr Pitch Addr Pitch Addr Pitch Addr Pitch Addr Pitch Addr Pitch Addr Pitch  
Adjustment Adjustment Adjustment Adjustment Adjustment Adjustment Adjustment Adjustment  
Bit 7  
Bit 6  
Bit 5  
Bit 4  
Bit 3  
Bit 2  
Bit 1  
Bit 0  
bits 7-0  
Addr Pitch Adjustment Bits [7:0]  
These bits set the numerical difference between the last address of a display line, and the first address in  
the following line.  
If the Address Pitch Adjustment is not equal to zero, then a virtual screen is formed. The size of the virtual  
screen is only limited by the available display memory. The actual display output is a window that is part  
of the whole image stored in the display memory. For example, with 128K of display memory, a 640x400  
16-gray image can be stored. If the output display size is 320x240, then the whole image can be seen by  
changing display starting addresses through AUX[06] and [07], and AUX[08] and [09]. Note that a virtual  
screen can be produced on either a single or dual panel.  
In 8-bit memory interface, if the Address Pitch Adjustment is not equal to zero, then a virtual screen with a  
line length of (Line Byte Count +AUX[0D]) bytes is created, with the display reflecting the contents of a  
window (Line Byte Count+1) bytes wide. The position of the window on the virtual screen is determined  
by AUX[06] and [07], and AUX[08] and [09].  
In 16-bit memory interface, if the Address Pitch Adjustment is not equal to zero, then a virtual screen with  
a line length of 2*(Line Byte Count +AUX[0D]) bytes is created, with the display reflecting the contents  
of a window 2*(Line Byte Count+1) bytes wide. The position of the window on the virtual screen is deter-  
mined by AUX[06] and [07], and AUX[08] and [09].  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
 
Epson Research and Development  
Vancouver Design Center  
Page 29  
5.1.2 Description  
The SED1352 can be programmed to use memory offsets in such a way that the physical display behaves as a viewport into  
a much larger “virtual” memory space. This viewport can be panned and/or scrolled to display this larger memory space.  
Referring to the figure below, a virtual image of 640x480 can be viewed by navigating the 320x240 viewport around the  
image by panning and scrolling  
.
320x240  
Viewport  
640x480  
“Virtual” Display  
Figure 8: 640 x 480 Virtual Display  
To create a virtual display, the Address Pitch Adjustment Register must be programmed to indicate the horizontal size of  
the larger, “virtual” image stored in display memory. The Address Pitch Adjustment Register tells the SED1352 how many  
bytes or words of display memory are part of the nonvisible region of display memory (see Example 10).  
Example 10: Program the Address Pitch Adjustment Register to support a 16 gray shade 640x480  
virtual display on a 320x240 LCD panel; the Memory Interface is 16 bits.  
1. Initialize the SED1352 registers for a 320x240 panel.  
2. Determine whether the Address Pitch Adjustment Register refers to bytes or words.  
Since the Memory Interface is set to 16 bits, the Address Pitch Adjustment Register refers to words.  
3. Determine the number of pixels per unit referred to by the Address Pitch Adjustment Register.  
The Address Pitch Adjustment Register refers to units of words, so find the number of pixels per word.  
16 gray shades => 4 bits per pixel  
4 bits per pixel => 2 pixels per byte  
pixels per word = (pixels per byte) × 2 = 2 × 2 = 4 pixels per word  
4. Calculate the number of pixels on a horizontal scan line not visible.  
(virtual display width in pixels) (panel width in pixels) = 640 – 320 = 320 hidden pixels  
Consequently on a screen update the SED1352 will show the first 320 of 640 pixels, and then ignore the remaining  
320 pixels in order to reach the next scan line.  
5. Program the Address Pitch Adjustment Register:  
number of hidden horizontal pixels  
----------------------------------------------------------------------------------- = -------- = 80 words = 50h words  
pixels per word  
320  
4
Therefore AUX[0Dh] = 50h  
6. To view the rest of the image refer to Section 5.5, “Panning and Scrolling” on page 42, keeping in mind that the hor-  
izontal width is 640 pixels, not 320.  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
 
Page 30  
Epson Research and Development  
Vancouver Design Center  
5.2 Bitmaps and Text Displays  
For the scope of this guide, a bitmap is a data structure which represents the image shown on the LCD. The bitmap includes  
the dimensions of the image, and the gray shade palette used to program the look-up table. Text is shown by creating a font,  
which in this example is a series of bitmaps, one bitmap per alphanumeric character.  
Example 11: Display the word “TEXT” on a 16 gray shade 320x240 LCD panel; the Memory Interface is  
16 bits.  
1. Define the font for the letters ‘T’, ‘E’, and ‘X’.  
Each character is 8x8 pixels, with at least one horizontal and vertical side left blank for spacing.  
Figure 9: Font for the Message “TEXT”  
2. Program the Look-up Table.  
See Example 3, “Initialize the Look-Up Table,” on page 17.  
3. Calculate the display memory map.  
See Figure 5, “Memory Map for 320 x 240 LCD Panel with 16 Gray Shades,” on page 25.  
4. Write font to display memory.  
In a general purpose program the entire bitmapped font would be placed in an array. As characters are to be dis-  
played, the program would choose the appropriate bitmap, select the proper position on the screen, and write to dis-  
play memory. For this example assume that the program has already selected the proper bitmaps and the correct  
positions in display memory (there is a detailed programming example later in this guide; see Section 6.3, “Advanced  
Functions” on page 52).  
Each highlighted pixel in the text bitmap will be shown at maximum intensity, which is pixel value 15. The text, for  
simplicity, will be shown in the upper left corner of the screen. When the program has completed writing the pixels  
for the word “TEXT,” the display memory will have the data shown in Figure 10. In this figure the bytes are grouped  
within vertical lines.  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 31  
Offset  
(hex)  
Offset  
(hex)  
000F  
00AF  
014F  
01EF  
028F  
032F  
03CF  
046F  
0000  
00A0  
0140  
01E0  
0280  
0320  
03C0  
0460  
F F F F F F 0 0 F F F F F F F 0 F F 0 0 0 F F 0 F F F F F F 0 0  
F 0 F F 0 F 0 0 0 F F 0 0 0 F 0 F F 0 0 0 F F 0 F 0 F F 0 F 0 0  
0 0 F F 0 0 0 0 0 F F 0 F 0 0 0 0 F F 0 F F 0 0 0 0 F F 0 0 0 0  
0 0 F F 0 0 0 0 0 F F F F 0 0 0 0 0 F F F 0 0 0 0 0 F F 0 0 0 0  
0 0 F F 0 0 0 0 0 F F 0 F 0 0 0 0 0 F F F 0 0 0 0 0 F F 0 0 0 0  
0 0 F F 0 0 0 0 0 F F 0 0 0 F 0 0 F F 0 F F 0 0 0 0 F F 0 0 0 0  
0 F F F F 0 0 0 F F F F F F F 0 F F 0 0 0 F F 0 0 F F F F 0 0 0  
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0  
Figure 10: Display Memory Contents for Message “TEXT”  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 32  
Epson Research and Development  
Vancouver Design Center  
5.3 Registers  
The SED1352 has an internal set of sixteen 8-bit read/write registers which configure it for various modes of operation.  
The registers can be accessed in two ways: Indexed Addressing and Direct Addressing.  
Note  
Refer to the SED1352 Hardware Functional Specification and SDU1352B0x Evaluation Board User’s  
Manual for more information on the SED1352 registers.  
5.3.1 Indexed Addressing  
This method requires only two sequential I/O address locations starting from the base I/O address. The base I/O address is  
determined by the power-on state of the SRAM data lines VD[4-12]. See Table 5-6 in the SED1352 Hardware Functional  
Specification, X16-SP-001-xx.  
The two sequential I/O addresses are defined as Index Address and Data. To access registers using this method, an Index  
Address must be written to the first I/O address location allowing data to be written/read to/from the second I/O address.  
Example 12: Write 12h to register 08h on the SDU1352B0x evaluation board; the base port address is  
310h, and indexed port mapping is used.  
1. Write 08h to the index register.  
The index register is at base port address + 0 = 310h.  
MOV DX,310h  
MOV AL,08h  
OUT DX,AL  
2. Write 12h to the data register.  
The data register is at base port address + 1 = 311h.  
MOV DX,311h  
MOV AL,12h  
OUT DX,AL  
5.3.2 Direct Addressing  
This method of addressing requires 16 sequential I/O addresses starting from the base I/O address. The base I/O address is  
determined by the power-on state of the SRAM data lines VD[7-12]. See Table 5-6 in the SED1352 Hardware Functional  
Specification, X16-SP-001-xx.  
To access the internal 16 registers of the SED1352, simply perform I/O read/write functions to the absolute address as  
defined in the previous paragraph.  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 33  
Example 13: Write 12h to register 08h on the SDU1352B0x evaluation board; the base port address is  
310h, and direct port mapping is used.  
1. Calculate the port address for register 08h.  
port address = 310h + 8h = 318h  
2. Write the value 12h to port address 318h.  
MOV DX,318h  
MOV AL,12h  
OUT DX,AL  
Note  
The SDU1352B0x is normally configured for register indexing, not direct mapping. Refer to the  
SDU1352B0x Evaluation Board User’s Manual for more information configuring the SDU1352B0x  
board for register indexing or register direct mapping.  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 34  
Epson Research and Development  
Vancouver Design Center  
5.4 Split Screen  
This section describes how to create a split screen for both single and dual LCD panels. For single panel displays, the  
Screen 1 Display Line Count Registers are used. For dual panel displays, the Screen 2 Display Start Address Registers are  
used.  
5.4.1 Registers  
AUX[0A] Screen 1 Display Line Count Register (LSB)  
I/O address = 1010b, Read/Write.  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Screen 1  
Display  
Line Count Line Count Line Count Line Count Line Count Line Count Line Count Line Count  
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0  
This register is used to enable the split screen display feature (single panel only) where two different images can be  
displayed at the same time on one display. This register has no effect when using a dual panel configuration.  
bits 7-0  
Screen 1 Display Line Count Bits [7:0]  
These bits are the seven LSB of a 9-bit value used to determine the number of lines displayed for screen 1.  
The remaining lines will automatically display from the screen 2 display start address. The 9-bit value pro-  
grammed is the number of display lines -1.  
For example, if AUX[0A] = 20h for a 320x240 display system. The display will show 20h+1 = 33 lines on  
the upper part of the screen according to display starting address AUX[06] and AUX[07] and 240 - 33 =  
207 lines on the lower part of the screen according to display starting address AUX[08] and AUX[09].  
Two different images can be displayed when using a dual panel configuration by changing the screen 2 dis-  
play start address. However, by using this method screen 2 is limited to the lower half of the display.  
AUX[0B] Screen 1 Display Line Count Register (MSB)  
I/O address = 1011b, Read/Write.  
Screen 1  
Display  
Line Count Line Count  
Screen 1  
Display  
n/a  
n/a  
n/a  
n/a  
n/a  
n/a  
Bit 9  
Bit 8  
bits 1-0  
Screen 1 Display Line Count Bits [9:8]  
These are the two MSB of the Screen 1 Display Line Count Register.  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 35  
5.4.2 Description  
A split screen is generally considered as the presentation of two different images on the screen. Image 1 is shown on the  
top half and image 2 is shown on the bottom half of the screen. Due to the design the SED1352, the system is always in  
split screen mode. If only one image is to be shown, either image 2 is hidden or image 2 appears as part of image 1; this  
depends on whether a single or dual panel LCD is in use.  
5.4.3 Single Panel LCD  
The following is the procedure to show a split screen image on a 16 gray shade 320 x 240 single panel LCD. For this  
example the SDU1352B0x is used; the Memory Interface is set to 16 bits, and 128k of display memory is available. In  
addition, the two images shown on the split screen are each 320x240; only a portion of each image is shown.  
1. Determine whether the Display Start Address Registers refer to bytes or words.  
Since the Memory Interface is set to 16 bits, the Display Start Address Registers refer to words. Note that when ad-  
dresses refer to words, the image must be aligned in memory such that the beginning is found on a word boundary  
(the least significant bit of the memory address must be 0).  
2. Calculate the number of bytes per scan line.  
16 gray shades => 4 bits per pixel  
4 bits per pixel => 2 pixels per byte  
pixels per scan line  
pixels per byte  
320  
2
number of bytes per scan line = --------------------------------------------- = -------- = 160 bytes per scan line = 00A0h bytes per scan line  
3. Determine the display memory location for image 1.  
For simplicity, assign the beginning of display memory as the starting address of image 1 (see Figure 11). For the  
SDU1352B0x, this address is C000:0000h.  
Display Memory  
Screen 1 Display Start Address  
C000:0000h  
Image 1  
Screen 2 Display Start Address  
C000:9600h  
(for this example)  
Image 2  
Figure 11: Memory Map for Split Screen  
4. Program the Screen 1 Display Start Address Register to point to the beginning of image 1.  
Since image 1 is at the beginning of display memory for a 128k system, program the Screen 1 Display Start Address  
Register to 0000h.  
AUX[06h] = 00h  
AUX[07h] = 00h  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
 
Page 36  
Epson Research and Development  
Vancouver Design Center  
5. Calculate the total number of bytes required for image 1.  
(bytes per scan line) × (number of scan lines for image 1) = 160 × 240 = 38400 bytes = 9600h bytes  
6. Determine the display memory location for image 2.  
Place image 2 immediately after image 1 (see Figure 11). Assign the starting address for image 2 as follows:  
image 2 address = (base display memory address) + (size of image 1)  
= C000:0000h + 0000:9600h  
= C000:9600h  
7. Program the Screen 2 Display Start Address Register to point to the beginning of image 2.  
Image 2 is placed right after image 1, as shown below:  
size of image 1 in bytes  
Screen 2 Display Start Address = Screen 1 Display Start Address + --------------------------------------------------------  
2 bytes per word  
9600h  
= 0000h + -------------- = 4B00h  
2
AUX[08h] = 00h  
AUX[09h] = 4Bh  
8. Program the Screen 1 Display Line Count Register.  
The Display Line Count Register indicates how many lines of the first screen should be shown minus 1. By changing  
the line count, image 2 appears to move up or down the display.  
If the line count is set to the maximum number of visible scan lines - 1, only image 1 is shown.  
visible scan lines – 1 = 240 – 1 = 239 = 00EFh  
AUX[0Ah] = LSB of (visible scan lines - 1) = 0EFh  
AUX[0Bh] = MSB of (visible scan lines - 1) = 00h  
If the line count is set to 0, then the first scan line of image 1 is shown followed by the first part of image 2.  
AUX[0Ah] = 00h  
AUX[0Bh] = 00h  
It is not possible to show only image 2 by changing the line count. If only image 2 needs to be shown, reprogram  
the Screen 1 Display Start Address Registers to point to the beginning of image 2, and set the line count to the  
maximum number of visible scan lines - 1.  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 37  
If the line count is set to 99, then the first 100 scan lines of image 1 are shown, following by the first part of im-  
age 2 (see Figure 12).  
AUX[0Ah] = 63h (99 decimal)  
AUX[0Bh] = 00h  
Scan Line 0  
...  
Image 1  
Image 2  
Scan Line 99  
Scan Line 100  
...  
Scan Line 239  
Screen 1 Display Line Count Register = 99 lines  
Figure 12: 320 x 240 Single Panel for Split Screen  
9. Write both image 1 and image 2 to their respective locations in display memory.  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
 
Page 38  
Epson Research and Development  
Vancouver Design Center  
5.4.4 Dual Panel LCD  
The following is the procedure to show a split screen image on a 4 gray shade 640x480 dual panel LCD. For this example  
the SDU1352B0x is used; the Memory Interface is set to 16 bits, and 128k of display memory is available. In addition, the  
two images shown on the split screen are each 640x240.  
1. Determine whether the Display Start Address Registers refer to bytes or words.  
Since the Memory Interface is set to 16 bits, the Display Start Address Registers refer to words. Note that when ad-  
dresses refer to words, the image must be aligned in memory such that the beginning is found on a word boundary  
(the least significant bit of the memory address must be 0).  
2. Calculate the number of bytes per scan line.  
4 gray shades => 2 bits per pixel  
2 bits per pixel => 4 pixels per byte  
pixels per scan line  
pixels per byte  
640  
4
number of bytes per scan line = --------------------------------------------- = -------- = 160 bytes per scan line = 00A0h bytes per scan line  
3. Determine the display memory location for image 1.  
For simplicity, assign the beginning of display memory as the starting address of image 1 (see Figure 11). For the  
SDU1352B0x, this address is C000:0000h.  
4. Program the Screen 1 Display Start Address Register to point to the beginning of image 1.  
Since image 1 is at the beginning of display memory for a 128k system, program the Screen 1 Display Start Address  
Register to 0000h.  
AUX[06h] = 00h  
AUX[07h] = 00h  
5. Calculate the total number of bytes required for image 1.  
(bytes per scan line) × (number of scan lines for image 1) = 160 × 240 = 38400 bytes = 9600h bytes  
6. Determine the display memory location for image 2.  
Place image 2 immediately after image 1 (see Figure 11). Assign the starting address for image 2 as follows:  
image 2 address = (base display memory address) + (size of image 1)  
= C000:0000h + 0000:9600h  
= C000:9600h  
7. Program the Screen 2 Display Start Address Register to point to the beginning of image 2.  
Image 2 is placed right after image 1, as shown below:  
size of image 1 in bytes  
Screen 2 Display Start Address = Screen 1 Display Start Address + --------------------------------------------------------  
2 bytes per word  
9600h  
= 0000h + -------------- = 4B00h  
2
AUX[08h] = 00h  
AUX[09h] = 4Bh  
8. Write both image 1 and image 2 to their respective locations in display memory.  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 39  
Notes  
When using a dual panel, the Screen 1 Display Line Count Register is ignored by the SED1352. Once the two Display Start  
Address Registers are programmed, the top panel will show the beginning of image 1, and the bottom panel will show the  
beginning of image 2 (see Figure 13).  
Scan Line 0  
...  
Image 1  
Image 2  
Scan Line 239  
Scan Line 240  
...  
Scan Line 479  
Screen 1 Display Line Count is ignored;  
Image 1 always has half the total number of  
scan lines (240 in this example).  
Figure 13: 640 x 480 Dual Panel for Split Screen  
Each image can be scrolled or panned by appropriate programming of the respective Display Start Address Registers. The  
following are some examples:  
To scroll image 1 up, the Screen 1 Start Address Register must point to the following scan line.  
number of bytes per scan line  
Screen 1 Display Start Address = Screen 1 Display Start Address + ----------------------------------------------------------------------  
2 bytes per word  
AUX[06h] = LSB of Screen 1 Display Start Address  
AUX[07h] = MSB of Screen 1 Display Start Address  
To scroll image 2 down, the Screen 2 Start Address Register must point to the previous scan line.  
number of bytes per scan line  
Screen 2 Display Start Address = Screen 2 Display Start Address – ----------------------------------------------------------------------  
2 bytes per word  
AUX[08h] = LSB of Screen 2 Display Start Address  
AUX[09h] = MSB of Screen 2 Display Start Address  
To pan image 1 to the right by a group of pixels, the Screen 1 Start Address Register must be increased by 1.  
Screen 1 Display Start Address = Screen 1 Display Start Address + 1  
AUX[06h] = LSB of Screen 1 Display Start Address  
AUX[07h] = MSB of Screen 1 Display Start Address  
See Section 5.5.2, “Panning Right and Left” on page 42 for more information.  
To pan image 2 to the left by a group of pixels, the Screen 2 Start Address Register must be decreased by 1.  
Screen 2 Display Start Address = Screen 2 Display Start Address – 1  
AUX[08h] = LSB of Screen 2 Display Start Address  
AUX[09h] = MSB of Screen 2 Display Start Address  
See Section 5.5.2, “Panning Right and Left” on page 42 for more information.  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
 
Page 40  
Epson Research and Development  
Vancouver Design Center  
5.4.4.1 Displaying a Single Image on a Dual Panel  
The following is the procedure to show a single image on a dual panel LCD. In this procedure the single image is broken  
into two smaller images; image 1 is placed on the top panel and image 2 is placed on the bottom panel. For this example  
the SDU1352B0x is used with a 4 gray shade 640x480 dual panel LCD; the Memory Interface is set to 16 bits, and 128k  
of display memory is available.  
1. Determine whether the Display Start Address Registers refer to bytes or words.  
Since the Memory Interface is set to 16 bits, the Display Start Address Registers refer to words. Note that when ad-  
dresses refer to words, the image must be aligned in memory such that the beginning is found on a word boundary  
(the least significant bit of the memory address must be 0).  
2. Calculate the number of bytes per scan line.  
4 gray shades => 2 bits per pixel  
2 bits per pixel => 4 pixels per byte  
pixels per scan line  
pixels per byte  
640  
4
number of bytes per scan line = --------------------------------------------- = -------- = 160 bytes per scan line = 00A0h bytes per scan line  
3. Determine the display memory location for image 1.  
For simplicity, assign the beginning of display memory as the starting address of image 1 (see Figure 14). For the  
SDU1352B0x, this address is C000:0000h.  
Display Memory  
Screen 1 Display Start Address  
First half of Image  
Screen 2 Display Start Address  
Second half of Image  
Figure 14: Memory Map for a Dual Panel showing a Single Image  
4. Program the Screen 1 Display Start Address Register to point to the beginning of image 1.  
Since image 1 is at the beginning of display memory for a 128k system, program the Screen 1 Display Start Address  
Register to 0000h.  
AUX[06h] = 00h  
AUX[07h] = 00h  
5. Determine the size of image 1.  
number of scan lines in display  
480  
2
vertical size of image 1 = vertical size of panel 1 = -------------------------------------------------------------------------- = -------- = 240 scan lines  
2
display width in pixels  
----------------------------------------------------- × (  
pixels per byte  
640  
-------- ×  
4
size =  
number of scan lines in image 1 =  
)
240 = 38400 bytes = 9600h bytes  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
 
 
Epson Research and Development  
Vancouver Design Center  
Page 41  
6. Determine the display memory location for image 2.  
Place image 2 immediately after image 1 (see Figure 14). Assign the starting address for image 2 as follows:  
image 2 address = (base display memory address) + (size of image 1)  
= C000:0000h + 0000:9600h  
= C000:9600h  
7. Program the Screen 2 Display Start Address Register to point to the beginning of image 2.  
Image 2 is placed right after image 1, as shown below:  
size of image 1 in bytes  
Screen 2 Display Start Address Register = Screen 1 Display Start Address Register + --------------------------------------------------------  
2 bytes per word  
9600h  
= 0000h + -------------- = 4B00h  
2
AUX[08h] = 00h  
AUX[09h] = 4Bh  
8. Write both image 1 and image 2 to their respective locations in display memory.  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 42  
Epson Research and Development  
Vancouver Design Center  
5.5 Panning and Scrolling  
Panning and scrolling are typically used to show an image which is too large to be shown completely on an LCD panel.  
Although the image is stored entirely in display memory, only a small portion is actually visible on the LCD panel. This  
visible portion is called the viewport; the user moves this viewport over different portions of the image by panning and  
scrolling. Panning moves the viewport right or left. Scrolling moves the viewport up or down.  
5.5.1 Initialization  
To pan and scroll over a large image, the SED1352 registers must first be initialized and the image written to display  
memory. To do so, initialize the registers as described in Section 2, “INITIALIZING THE SED1352” on page 8, but with  
the following exception: the Address Pitch Adjustment Register in the SED1352 must be set to create a virtual display; see  
Section 5.1, “Virtual Displays” on page 28 for more information.  
5.5.2 Panning Right and Left  
To pan to the right, increase the value in the Screen 1 Display Start Address Register. To pan to the left, decrease the value  
in the Screen 1 Display Start Address Register.  
Note that the SED1352 can pan right or left by either 2, 4, or 8 pixels. This is because the Screen 1 Display Start Address  
Register refers to either bytes or words (see Section 4.2.1, “SDU1352B0x Evaluation Board Display Memory” on page  
24), and a byte can represent either 2 or 4 pixels, and so a word can represent 4 or 8 pixels; see Table 5-1 below:  
Table 5-1: Smallest Number of Pixels for Panning  
Memory  
Interface  
Smallest Number of Pixels  
for Panning  
Gray Levels Pixels per Byte  
4
16  
4
4
2
4
2
4
2
8
4
8 bits  
16 bits  
16  
5.5.3 Scrolling Up and Down  
To scroll up, increase the value in the Screen 1 Display Start Address Register by the number of bytes in one virtual scan  
line. To scroll down, decrease the value in the Screen 1 Display Start Address Register by the number of bytes in one virtual  
scan line.  
A virtual scan line is in reference to a virtual display, in which an image larger than the physical size of the LCD is stored.  
The number of bytes in a virtual scan line is the number of bytes required to store one horizontal line of pixels in the virtual  
image.  
Example 14: Scroll down one line for a 16 gray shade 640x200 virtual image using a 320x240 single  
panel LCD. The Memory Interface is 16 bits, and 64k of display memory is available. Also  
describe how to scroll in a dual panel LCD.  
1. Calculate the number of bytes in a virtual scan line.  
number of horizontal pixels in virtual image  
--------------------------------------------------------------------------------------------------------- = -------------------------------------------------------- = 3 2 0 b y t e s p e r s c a n l i n e  
number of pixels per word 2 pixels per byte  
640 pixels per scan line  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
 
Epson Research and Development  
Vancouver Design Center  
Page 43  
2. Add the number of words in a virtual scan line to the Screen 1 Display Start Address Register.  
In this example the Screen 1 Display Start Address points to the beginning of the image.  
number of bytes in a virtual scan line  
Screen 1 Display Start Address = Screen 1 Display Start Address + ----------------------------------------------------------------------------------------  
2 bytes per word  
320  
= 8000h + --------  
2
= 80A0h  
3. Program the Screen 1 Display Start Address.  
AUX[06h] = A0h  
AUX[07h] = 80h  
4. FOR DUAL PANELS ONLY  
Add the number of words in a virtual scan line to the Screen 2 Display Start Address Register.  
In this example the Screen 2 Display Start Address has previously been initialized as described in Section 5.4.4.1,  
“Displaying a Single Image on a Dual Panel” on page 40.  
number of bytes in a virtual scan line  
Screen 2 Display Start Address = Screen 2 Display Start Address + ----------------------------------------------------------------------------------------  
2 bytes per word  
5. FOR DUAL PANELS ONLY  
Program the Screen 2 Display Start Address.  
AUX[08h] = least significant byte of “Screen 2 Display Start Address”  
AUX[09h] = most significant byte of “Screen 2 Display Start Address”  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 44  
Epson Research and Development  
Vancouver Design Center  
5.6 Power Saving  
The following section introduces the power saving capabilities of the SED1352. A detailed description of the Power Save  
Register is provided, followed by a description of the power save modes.  
5.6.1 Registers  
Note  
Register bits discussed in this section are highlighted.  
AUX[03] Line Byte Count (MSB [bit 8] for 16-level gray scale mode only) / Power Save Register  
I/O address = 0011b, Read/Write  
PS  
Bit 1  
PS  
Bit 0  
LCD Signal LUT  
State Bypass  
Line Byte  
Count Bit 8  
n/a  
n/a  
n/a  
bits 7-6  
PS Bits [1:0]  
Selects the Power Save Modes as shown in the following table. The PS bits [1:0] go to 0 on RESET.  
Table 5-2: Power Save Mode Selection  
PS1 PS0  
Mode Activated  
Normal Operation  
Power Save Mode 1  
Power Save Mode 2  
Reserved  
0
0
1
1
0
1
0
1
Refer to Section 5.6.2, “Power Save Modes” on page 44 for a complete Power Save Mode description.  
5.6.2 Power Save Modes  
Two software-controlled Power Save Modes have been incorporated into the SED1352 to accommodate the important need  
for power reduction in hand-held devices market. These modes can be enabled by setting the 2 Power Save bits (AUX[03h]  
bits 7-6).  
The various settings are:  
Table 5-3: Power Save Mode Selection  
Bit 7 Bit 6  
Mode Activated  
Normal Operation  
Power Save Mode 1  
Power Save Mode 2  
Reserved  
0
0
1
1
0
1
0
1
5.6.2.1 Power Save Mode 1  
Power Save Mode 1 would typically be used when power savings are required and memory accesses may occur. The disad-  
vantage is that since the oscillator is running, this mode consumes more power that Power Save Mode 2.  
5.6.2.2 Power Save Mode 2  
Power Save Mode 2 is typically used when memory accesses would not occur.  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
 
Epson Research and Development  
Vancouver Design Center  
Page 45  
5.6.2.3 Power Save Mode Function Summary  
Table 5-4: Power Save Mode Function Summary  
Power Save Mode (PSM)  
Function  
Normal  
(Active)  
PSM1  
PSM2  
State 1  
No  
State 2  
No  
Display Active?  
Yes  
Yes  
Yes  
Yes  
No  
No  
Yes  
No  
I/O Access Possible?  
Yes  
Yes  
No  
Yes  
No  
Memory Access Possible?  
Sequence Controller Running?  
Internal Oscillator Disabled?  
No  
No  
No  
No  
Yes  
Note  
1. When programming the PS bits do a read/modify/write operation so as not to destroy any other data  
in the register.  
2. Refer to the programming example in Advanced Functions on page 52.  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 46  
Epson Research and Development  
Vancouver Design Center  
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  
type  
where:  
= SINGLE | DUAL  
x
y
p
= horizontal panel size in pixels from 1 to 320 (decimal)  
= vertical panel size in pixels from 1 to 240 (decimal)  
= 300 | 310...360 | 370 (port address in hex) (I/O indexed addressing selected by default)  
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:  
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  
Figure 15: Display for DEMO.EXE  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 47  
6.1 Main Loop Code  
//-------------------------------------------------------------------------  
//  
// FUNCTION: main()  
//  
// DESCRIPTION: Start of demo program.  
//  
// INPUTS: Command line arguments.  
// RETURN VALUE: None.  
//  
//-------------------------------------------------------------------------  
void main(char argc, char **argv)  
{
int ch;  
CheckArguments(argc, argv);  
printf("Initializing\n");  
Initialize();  
ClearLCDScreen();  
ShowMenu();  
while ((ch = getch()) != ESC)  
{
switch (ch)  
{
case '1':  
ShowRegisters();  
break;  
case '2':  
GrayShadeBars();  
break;  
case '3':  
SplitScreen();  
break;  
case '4':  
PanScroll();  
break;  
case '5':  
PowerSaving();  
break;  
case ESC:  
exit(0);  
}
}
}
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 48  
Epson Research and Development  
Vancouver Design Center  
6.2 Initialization Code  
//-------------------------------------------------------------------------  
//  
// FUNCTION: Initialize()  
//  
// DESCRIPTION: Intialize SED1352 registers.  
//  
// INPUTS: This function looks at the followingl global variables to  
//  
//  
//  
determine the appropriate register settings:  
PanelX, PanelY, PanelType  
// OUTPUTS: The following global variables are changed:  
//  
//  
PanelGrayLevel, BytesPerScanLine  
//-------------------------------------------------------------------------  
void Initialize(void)  
{
static unsigned int val;  
static unsigned int x;  
PanelGrayLevel = 16;  
//--------------------------------------  
//  
// Mode Register:  
//  
//  
//  
//  
//  
//  
//  
//  
//  
Display = ON  
Panel = SINGLE  
Mask XSCL = NOT MASKED  
LCDE = NOT ENABLED  
Gray Scale = 16 Gray Shades (4 bits/pixel)  
LCD Data Width = 8 bit data transfer  
Memory Interface = 16 bits  
RAMS = Addressing for 8Kx8 SRAM  
val = 0x8C;  
if (PanelType == TYPE_DUAL)  
{
val |= 0x40;  
// Set panel type to DUAL  
val &= ~0x04; // Set LCD Data Width to 4 bit data transfer  
}
WriteRegister(1, val);  
// Write to Mode Register  
//--------------------------------------  
//  
// Line Byte/Word Count Register  
//  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 49  
// Bits 0-7 are in AUX[2], Bit 8 is in AUX[3].  
//  
// Because the Memory Interface is set to 16 bits, the  
// Line Byte/Word Count Register counts in words. In addition,  
// there are 2 pixels/byte since there are 16 gray levels.  
// To calculate the number of words in a scan line, use the following  
// formula:  
//  
//  
//  
//  
//  
number of pixels per scan line  
-------------------------------- - 1  
(2 pixels/byte) * (2 bytes/word)  
val = (PanelX / 4) - 1;  
// For 16 gray shades only  
WriteRegister(2, val & 0xff);  
// Line Byte/Word Count Register  
WriteRegister(3, (val >> 8) & 0x01); // Line Byte/Word Count/Power Save Reg  
//  
// BytesPerScanLine is a global variable  
//  
BytesPerScanLine = (PanelX / 2);  
// For 16 gray shades only  
//--------------------------------------  
//  
// Total Display Line Count Register  
// Screen 1 Display Line Count Register  
//  
// To show a full image on Screen 1, copy the Total Display Line Count  
// into the Screen 1 Display Line Count.  
//  
//  
// Assume that all panels smaller than 400 lines are in 4 bit mode  
//  
if (PanelY < 400)  
{
val = ReadRegister(1);  
val &= ~0x04;  
WriteRegister(1, val); // Write to Mode Register; LCD Data Width = 4 bits  
}
val = PanelY;  
//  
// A dual panel LCD will, of course, have two panels. Each panel will  
// show either the top or bottom half of the image, which is half of the  
// vertical resolution.  
//  
if (PanelType == TYPE_DUAL)  
val /= 2;  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 50  
Epson Research and Development  
Vancouver Design Center  
--val;  
WriteRegister(4, val & 0xff);  
// Write to Total Display Line Count Reg  
WriteRegister(0x0a, val & 0xff); // Write to Screen 1 Display Line Count Reg  
WriteRegister(5, (val >> 8) & 0x03); // Total Disp Line Cnt (MSB)/WF Count Reg  
WriteRegister(0x0b, (val >> 8) & 0x03); // Scrn 1 Disp Line Count Reg (MSB)  
//--------------------------------------  
//  
// Set Screen 1 Display Start Address to beginning of video memory  
//  
WriteRegister(6, 0); // Write to Screen 1 Display Start Address Register  
WriteRegister(7, 0);  
//--------------------------------------  
//  
// Screen 2 Display Start Address Register  
//  
// If using a dual panel, the Screen 2 Display Start Address must point  
// to the second half of the image in video memory.  
//  
if (PanelType == TYPE_DUAL)  
{
val = (unsigned int) ((ReadRegister(3) & 0x01) << 8) | ReadRegister(2);  
++val;  
val *= (PanelY / 2);  
WriteRegister(8, val & 0xff);  
WriteRegister(9, val >> 8);  
}
else  
{
//  
// On a single panel, Screen 1 was programmed to show all of its  
// lines. Consequently Screen 2 will not be seen, and so the  
// Screen 2 Display Start Address will have no observable effect.  
// For convenience, set the screen 2 address to 0.  
//  
WriteRegister(8, 0);  
WriteRegister(9, 0);  
}
//--------------------------------------  
//  
// When the SDU1352B0x is set to 64k, video memory exists from  
// D000:0000 to D000:FFFF. When the SDU1352B0x is set to 128k, video  
// memory exists from C000:0000 to D000:FFFF. As far as the SED1352  
// is concerned, video memory ALWAYS begins at C000:0000, even if  
// there is no physical memory present.  
//  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 51  
// Since this demo program uses only 64k, the Display Start Address  
// Registers must be adjusted to point to the D000 segment. To do so,  
// note that these registers refer to words of data, not bytes,  
// since the Memory Interface is set to 16 bits. Consequently adding  
// the value 8000h (words) to the address registers will effectively  
// add 10000h (bytes) to the address. Adding 10000h to C000:0000 will  
// point to D000:0000, which is why this address correction works.  
//  
WriteRegister(7, 0x80); // MSB of Screen 1 Display Start Address  
val = ReadRegister(9); // MSB of Screen 2 Display Start Address  
val += 0x80;  
WriteRegister(9, val);  
//--------------------------------------  
//  
// Set Address Pitch Adjustment to 0  
//  
WriteRegister(0x0d, 0); // Write to Address Pitch Adjustment Register  
//--------------------------------------  
//  
// Update Look-Up Table for 16 gray shades  
//  
for (x = 0; x < 16; ++x)  
{
WriteRegister(0x0e, x);  
WriteRegister(0x0f, x);  
}
//--------------------------------------  
//  
// Now that system is initialized, enable LCDE  
//  
val = ReadRegister(1);  
val |= 0x10;  
// LCDE enabled  
WriteRegister(1, val);  
}
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 52  
Epson Research and Development  
Vancouver Design Center  
6.3 Advanced Functions  
#define VIRTUAL_X  
#define VIRTUAL_Y  
(360)  
(360)  
//-------------------------------------------------------------------------  
//  
// FUNCTION: ShowRegisters()  
//  
// DESCRIPTION: Shows the contents of the SED1352 registers.  
//  
// INPUTS: None.  
// RETURN VALUE: None.  
//  
//-------------------------------------------------------------------------  
void ShowRegisters(void)  
{
static unsigned char x;  
printf("SED1352 Registers: ");  
for (x = 0; x < 16; ++x)  
printf("%02X ", ReadRegister(x));  
printf("\nSED1352 Look-Up Table: ");  
for (x = 0; x < 16; ++x)  
{
WriteRegister(0x0e, x);  
printf("%02X ", ReadRegister(0x0f));  
}
ShowMenu();  
}
//-------------------------------------------------------------------------  
//  
// FUNCTION: GrayShadeBars()  
//  
// DESCRIPTION: Displays one set of vertical bars, each with a  
//  
different gray shade.  
//  
// INPUTS: None.  
//  
// RETURN VALUE: None.  
//  
//-------------------------------------------------------------------------  
void GrayShadeBars(void)  
{
static unsigned int val, x;  
static unsigned char _far *pVideo;  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 53  
Initialize();  
ClearLCDScreen();  
//  
// For 64k only  
//  
FP_SEG(pVideo) = 0xd000;  
FP_OFF(pVideo) = 0x0000;  
//  
// Update Look-Up Table for 16 gray shades  
//  
for (x = 0; x < 16; ++x)  
{
WriteRegister(0x0e, x);  
WriteRegister(0x0f, x);  
}
//  
// Change Mode Register for 16 gray shades  
//  
val = ReadRegister(1);  
val |= 0x08;  
WriteRegister(1, val);  
//  
// Update Line Byte Count register for 16 gray shades  
//  
// Since 16 gray shades corresponds to 2 pixels per byte, there  
// are ((x horizontal pixels)/2) bytes per scan line. This means that  
// there are ((x horizontal pixels)/4) words per scan line.  
//  
// Since the Memory Interface is set to 16 bits, the Line Byte/Word Count  
// refers to words.  
//  
val = (PanelX / 4) - 1;  
BytesPerScanLine = (PanelX / 2);  
WriteRegister(2, val & 0xff);  
// Line Byte Count Register  
WriteRegister(3, (val >> 8) & 0x01); // Line Byte Count/Power Save Reg  
PanelGrayLevel = 16;  
ShowVerticalBars(pVideo);  
//  
// Show text. The lightest gray shade is set to PanelGrayLevel-1.  
//  
ShowText(pVideo, "VERTICAL BARS AT SIXTEEN GRAY SHADES", PanelGrayLevel-1);  
}
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 54  
Epson Research and Development  
Vancouver Design Center  
//-------------------------------------------------------------------------  
//  
// FUNCTION: ShowVerticalBars()  
//  
// DESCRIPTION: Displays a series of vertical bars, each with a  
//  
//  
//  
//  
different gray shade. For 4 gray levels, each  
vertical bar is 40 pixels wide. For 16 gray levels,  
each vertical bar is 20 pixels wide.  
// INPUTS: Video address which points to beginning of vertical bars.  
//  
//  
This address must be at the leftmost column of the display.  
// RETURN VALUE: None.  
//  
//-------------------------------------------------------------------------  
void ShowVerticalBars(unsigned char _far *pVideo)  
{
static unsigned int y;  
static unsigned int Bar, BarWidth, val;  
static unsigned char _far *pVideoStart;  
//  
// To display vertical bars, this routine assumes that pVideo points  
// to the beginning of a scan line. In addition, this routine assumes that  
// the Address Pitch Adjustment Register is 0 (no virtual display).  
// To write one vertical line, first write one pixel to the first byte  
// pointed to by pVideo. Write the next pixel to the byte on the next scan  
// line pointed to by pVideo+BytesPerScanLine (this only works if the  
// Address Pitch Adjustment Register is 0). Continue writing pixels by  
// going down each scan line.  
//  
pVideoStart = pVideo;  
for (y = 0; y < PanelY; ++y)  
{
for (Bar = 0; Bar < PanelGrayLevel; ++Bar)  
{
for (BarWidth = 0; BarWidth < 10; ++BarWidth)  
{
if (PanelGrayLevel == 4)  
{
//  
// In the 4 gray level mode, each pixel is stored as two bits.  
// Since a byte holds 8 bits, there are 4 pixels per byte.  
// The variable "val" represents the pixel value.  
//  
val = Bar % 4;  
*pVideo++ = (unsigned char) ((val << 6) | (val << 4) |  
(val << 2) | val);  
}
else  
{
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 55  
//  
// In the 16 gray level mode, each pixel is stored as four bits.  
// Since a byte holds 8 bits, there are 2 pixels per byte.  
// The variable "val" represents the pixel value.  
//  
val = Bar % 16;  
*pVideo++ = (unsigned char) ((val << 4) | val);  
}
}
}
//  
// Point to the beginning of the next scan line  
//  
pVideoStart += BytesPerScanLine;  
pVideo = pVideoStart;  
}
}
//-------------------------------------------------------------------------  
//  
// ShowText()  
//  
// DESCRIPTION: Writes text to the LCD panel. Text must only contain  
//  
//  
//  
the letters A-Z, and the space character. All other  
characters are replaced by spaces.  
// NOTES: It is assumed that a pixel set to a value of 0 represents the  
//  
//  
//  
background color (black).  
The character "!" is translated to a block character.  
//-------------------------------------------------------------------------  
void ShowText(unsigned char _far *pdisplayStart, char *str, int color)  
{
static const unsigned char *pFont;  
static unsigned char _far *pdisplayFirstColumn;  
static unsigned char _far *pDisplay;  
static unsigned char ch;  
static unsigned int y, val, Display;  
//  
// Each letter in the font is 8 x 8 bits  
//  
static const unsigned char font[28][8] =  
{ { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 },  
{ 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF },  
{ 0x30, 0x78, 0xCC, 0xCC, 0xFC, 0xCC, 0xCC, 0x00 },  
{ 0xFC, 0x66, 0x66, 0x7C, 0x66, 0x66, 0xFC, 0x00 },  
{ 0x3C, 0x66, 0xC0, 0xC0, 0xC0, 0x66, 0x3C, 0x00 },  
// blank  
// block char  
// A  
// B  
// C  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 56  
Epson Research and Development  
Vancouver Design Center  
{ 0xF8, 0x6C, 0x66, 0x66, 0x66, 0x6C, 0xF8, 0x00 },  
// D  
// E  
// F  
// G  
// H  
// I  
// J  
// K  
// L  
// M  
// N  
// O  
// P  
// Q  
// R  
// S  
// T  
// U  
// V  
// W  
// X  
// Y  
{ 0xFE, 0x62, 0x68, 0x78, 0x68, 0x62, 0xFE, 0x00 },  
{ 0xFE, 0x62, 0x68, 0x78, 0x68, 0x60, 0xF0, 0x00 },  
{ 0x3C, 0x66, 0xC0, 0xC0, 0xCE, 0x66, 0x3E, 0x00 },  
{ 0xCC, 0xCC, 0xCC, 0xFC, 0xCC, 0xCC, 0xCC, 0x00 },  
{ 0x78, 0x30, 0x30, 0x30, 0x30, 0x30, 0x78, 0x00 },  
{ 0x1E, 0x0C, 0x0C, 0x0C, 0xCC, 0xCC, 0x78, 0x00 },  
{ 0xE6, 0x66, 0x6C, 0x78, 0x6C, 0x66, 0xE6, 0x00 },  
{ 0xF0, 0x60, 0x60, 0x60, 0x62, 0x66, 0xFE, 0x00 },  
{ 0xC6, 0xEE, 0xFE, 0xFE, 0xD6, 0xC6, 0xC6, 0x00 },  
{ 0xC6, 0xE6, 0xF6, 0xDE, 0xCE, 0xC6, 0xC6, 0x00 },  
{ 0x38, 0x6C, 0xC6, 0xC6, 0xC6, 0x6C, 0x38, 0x00 },  
{ 0xFC, 0x66, 0x66, 0x7C, 0x60, 0x60, 0xF0, 0x00 },  
{ 0x78, 0xCC, 0xCC, 0xCC, 0xDC, 0x78, 0x1C, 0x00 },  
{ 0xFC, 0x66, 0x66, 0x7C, 0x6C, 0x66, 0xE6, 0x00 },  
{ 0x78, 0xCC, 0xE0, 0x70, 0x1C, 0xCC, 0x78, 0x00 },  
{ 0xFC, 0xB4, 0x30, 0x30, 0x30, 0x30, 0x78, 0x00 },  
{ 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xFC, 0x00 },  
{ 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0x78, 0x30, 0x00 },  
{ 0xC6, 0xC6, 0xC6, 0xD6, 0xFE, 0xEE, 0xC6, 0x00 },  
{ 0xC6, 0xC6, 0x6C, 0x38, 0x38, 0x6C, 0xC6, 0x00 },  
{ 0xCC, 0xCC, 0xCC, 0x78, 0x30, 0x30, 0x78, 0x00 },  
{ 0xFE, 0xC6, 0x8C, 0x18, 0x32, 0x66, 0xFE, 0x00 } }; // Z  
pdisplayFirstColumn = pdisplayStart;  
pDisplay = pdisplayFirstColumn;  
//  
// If there are 4 gray levels, there are 4 pixels/byte  
//  
if (PanelGrayLevel == 4)  
{
color &= 0x03;  
while (*str != 0)  
{
ch = *str++;  
if (ch == '!')  
pFont = &font[1][0];  
else if ((ch < 'A') || (ch > 'Z'))  
pFont = &font[0][0]; // blank character  
else  
// "Block" character  
pFont = &font[ch - 'A' + 2][0];  
for (y = 0; y < 8; ++y)  
{
pDisplay = pdisplayFirstColumn;  
val = *pFont++;  
//  
// Since there are 4 gray shades, each bit in the font will be  
// represented in display memory as a two bit gray shade.  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 57  
//  
if (val & 0x80)  
Display = color << 6;  
else  
Display = 0;  
if (val & 0x40)  
Display |= (color << 4);  
if (val & 0x20)  
Display |= (color << 2);  
if (val & 0x10)  
Display |= color;  
*pDisplay++ = (unsigned char) Display;  
if (val & 0x08)  
Display = color << 6;  
else  
Display = 0;  
if (val & 0x04)  
Display |= (color << 4);  
if (val & 0x02)  
Display |= (color << 2);  
if (val & 0x01)  
Display |= color;  
*pDisplay++ = (unsigned char) Display;  
pdisplayFirstColumn += BytesPerScanLine;  
}
pdisplayStart += 2;  
// Point to next character  
pdisplayFirstColumn = pdisplayStart;  
}
}
else // 16 Gray Shades  
{
color &= 0x0f;  
while (*str != 0)  
{
ch = *str++;  
if (ch == '!') // "Block" character  
pFont = &font[1][0];  
else if ((ch < 'A') || (ch > 'Z'))  
pFont = &font[0][0];  
else  
pFont = &font[ch - 'A' + 2][0];  
for (y = 0; y < 8; ++y)  
{
pDisplay = pdisplayFirstColumn;  
val = *pFont++;  
//  
// Since there are 16 gray shades, each bit in the font will be  
// represented in display memory as a four bit gray shade.  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 58  
Epson Research and Development  
Vancouver Design Center  
//  
if (val & 0x80)  
Display = color << 4;  
else  
Display = 0;  
if (val & 0x40)  
Display |= color;  
*pDisplay++ = (unsigned char) Display;  
if (val & 0x20)  
Display = color << 4;  
else  
Display = 0;  
if (val & 0x10)  
Display |= color;  
*pDisplay++ = (unsigned char) Display;  
if (val & 0x08)  
Display = color << 4;  
else  
Display = 0;  
if (val & 0x04)  
Display |= color;  
*pDisplay++ = (unsigned char) Display;  
if (val & 0x02)  
Display = color << 4;  
else  
Display = 0;  
if (val & 0x01)  
Display |= color;  
*pDisplay++ = (unsigned char) Display;  
pdisplayFirstColumn += BytesPerScanLine;  
}
pdisplayStart += 4; // Point to next character  
pdisplayFirstColumn = pdisplayStart;  
}
}
}
//-------------------------------------------------------------------------  
//  
// FUNCTION: SplitScreen()  
//  
// DESCRIPTION: Show split screen.  
//  
// INPUTS: None.  
// RETURN VALUE: None.  
//  
//-------------------------------------------------------------------------  
void SplitScreen(void)  
{
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 59  
static unsigned char _far *pVideoImage1;  
static unsigned char _far *pVideoImage2;  
static unsigned long ImageSize;  
static unsigned int OriginalLineCount;  
static unsigned int val;  
static unsigned int MinLineCount;  
static unsigned int MaxVirtualScanLines;  
Initialize();  
ClearLCDScreen();  
//  
// For 64k only  
//  
FP_SEG(pVideoImage1) = 0xd000;  
FP_OFF(pVideoImage1) = 0x0000;  
//  
// Calculate starting video memory location for image 2 by finding the  
// last location of image 1  
//  
ImageSize = BytesPerScanLine * PanelY;  
//  
// Because the image size is limited to a maximum of 320 x 240, and there  
// is 64k of video memory, there is enough memory available.  
//  
FP_SEG(pVideoImage2) = 0xd000;  
FP_OFF(pVideoImage2) = (unsigned int) ImageSize;  
ShowVerticalBars(pVideoImage1);  
ShowHorizontalBars(pVideoImage2);  
//  
// Show text. The lightest gray shade is set to PanelGrayLevel-1.  
//  
ShowText(pVideoImage1, "SPLIT SCREEN IMAGE ONE", PanelGrayLevel-1);  
ShowText(pVideoImage2, "SPLIT SCREEN IMAGE TWO", PanelGrayLevel-1);  
//  
// Set Screen 2 Display Start Address register to point to Image 2  
//  
// Adjust ImageSize to represent the size in words, not bytes.  
// This is because the Memory Interface is set to 16 bits.  
//  
val = (unsigned int) ImageSize / 2;  
val += 0x8000;  
// Point to D000 segment instead of C000 segment  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 60  
Epson Research and Development  
Vancouver Design Center  
WriteRegister(8, (unsigned int) val & 0xff);  
WriteRegister(9, (unsigned int) val >> 8);  
//  
// If this is a dual panel, then the split screen has just been shown.  
// Otherwise, set up the Screen 1 Display Line Count register for single  
// panels.  
//  
if (PanelType == TYPE_SINGLE)  
{
OriginalLineCount =  
(unsigned int) ((ReadRegister(0x0b) & 0x03) << 8) | ReadRegister(0x0a);  
// Only for 64k of memory  
MaxVirtualScanLines = (unsigned int)  
((unsigned long) 0x10000 / BytesPerScanLine);  
MinLineCount = OriginalLineCount -  
(MaxVirtualScanLines - OriginalLineCount) + 1;  
Delay(0, 5);  
//  
// Scroll image 2 down  
//  
for (val = MinLineCount; val < OriginalLineCount; val += 1)  
{
WriteRegister(0x0a, val & 0xff);  
// Total Display Line Count  
WriteRegister(0x0b, (val >> 8) & 0x03); // Total Disp Line Cnt/WF Count  
Delay(0, 1);  
}
//  
// Scroll image 2 up  
//  
for (val = OriginalLineCount; val > MinLineCount; val -= 1)  
{
WriteRegister(0x0a, val & 0xff);  
// Total Display Line Count  
WriteRegister(0x0b, (val >> 8) & 0x03); // Total Disp Line Cnt/WF Count  
Delay(0, 1);  
}
val = MinLineCount;  
WriteRegister(0x0a, val & 0xff);  
WriteRegister(0x0b, (val >> 8) & 0x03);  
// Total Display Line Count Reg  
// Total Disp Line Cnt/WF Count  
Delay(0, 5);  
}
}
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 61  
void SetStartAddress(int x, int y)  
{
int addr;  
//  
// Assume 16 gray shades  
//  
addr = 0x8000 + (x/2 + (VIRTUAL_X/2) * y)/2;  
WriteRegister(6, addr & 0xff);  
WriteRegister(7, addr >> 8);  
}
void PanScroll(void)  
{
static unsigned int x, y;  
static unsigned int MaxX, MaxY;  
static unsigned int val, pitch;  
static unsigned char _far *pVideo;  
printf("Showing Panning and Scrolling\n");  
Initialize();  
ClearLCDScreen();  
//  
// This pitch is calculated for 16 gray shades  
//  
pitch = ((VIRTUAL_X / 2) - BytesPerScanLine) / 2;  
WriteRegister(0x0d, pitch);  
BytesPerScanLine = (VIRTUAL_X / 2);  
//  
// For 64k only  
//  
FP_SEG(pVideo) = 0xd000;  
FP_OFF(pVideo) = 0x0000;  
//  
// Display random blocks of data. To do so, a text character will be used.  
// This character sets all pixels in a character region, so a block is  
// shown at the specified gray shade.  
//  
// Seed the random number generator with current time  
srand((unsigned) time(NULL));  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 62  
Epson Research and Development  
Vancouver Design Center  
for (x = 0; x < 300; ++x)  
{
FP_OFF(pVideo) = (unsigned int) ((rand() * 0xffffL) / RAND_MAX);  
val = rand() % 50;  
ShowText(pVideo, "!", rand() % 16);  
}
ShowBorders();  
//  
// Move virtual display from (0, 0) to (MaxX, 0)  
//  
MaxX = VIRTUAL_X - PanelX;  
MaxY = VIRTUAL_Y - PanelY;  
for (x = 0; x <= MaxX; ++x)  
{
SetStartAddress(x, 0);  
Delay(0, 1);  
}
for (y = 0; y <= MaxY; ++y)  
{
SetStartAddress(MaxX, y);  
Delay(0, 1);  
}
for (x = MaxX; x > 0; --x)  
{
SetStartAddress(x, MaxY);  
Delay(0, 1);  
}
for (y = MaxY; y > 0; --y)  
{
SetStartAddress(0, y);  
Delay(0, 1);  
}
SetStartAddress(0, 0);  
}
//-------------------------------------------------------------------------  
//  
// FUNCTION: PowerSaving()  
//  
// DESCRIPTION: Starts power saving mode 2.  
//  
// INPUTS: None.  
// RETURN VALUE: None.  
//  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 63  
//-------------------------------------------------------------------------  
void PowerSaving(void)  
{
static unsigned int val;  
printf("Starting Power Saving\n");  
val = ReadRegister(3);  
val &= 0x3f;  
val |= 0x80;  
WriteRegister(3, val); // Set power saving mode 2  
printf("Press any key to cancel power saving\n");  
getch();  
val &= 0x38;  
WriteRegister(3, val); // Cancel power saving mode 2  
}
//-------------------------------------------------------------------------  
//  
// 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  
SED1352  
X16-BG-007-04  
Page 64  
Epson Research and Development  
Vancouver Design Center  
// Step 2: Wait for LCD power supply to drop to zero volts  
//  
For the SDU1353B0C, wait about a half second.  
//  
Delay(500);  
//  
// Step 3: Enter Power Save Mode  
//  
val = ReadRegister(3);  
val &= 0x3f;  
val |= 0x80;  
WriteRegister(3, val); // Set power saving mode 2  
printf("Press any key to cancel power saving\n");  
getch();  
//  
// The following are the steps to exit a power save mode.  
//  
//  
// Step 1: Exit Power Save Mode  
//  
val = ReadRegister(3);  
val &= 0x3f;  
WriteRegister(3, val); // Cancel power saving mode 2  
//  
// Step 2: Enable LCDE (turn on LCD power supply).  
//  
//  
For the SDU1353B0C, set LCDE bit to 1.  
val = ReadRegister(1);  
val |= 0x10;  
WriteRegister(1, val);  
//  
// Step 3: Turn on display.  
//  
val = ReadRegister(1);  
val |= 0x80;  
WriteRegister(1, val);  
ShowMenu();  
}
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 65  
7 GLOSSARY  
1352  
The SED1352 LCD controller chip.  
display memory Memory in which an image is stored for display by the SED1352.  
gray shade  
A specific combination of white and black colors. For example, a lighter gray shade has more  
white than black.  
LCD  
Liquid Crystal Display. The display device used by the SED1352.  
The device used to control the LCD display. The SED1352 is an LCD controller.  
LCD controller  
LUT  
Look-Up Table, or palette. The LUT treats the value of a pixel as an index into an array of  
gray shades.  
panel  
The circuitry and viewable area of an LCD display which supports a single image. LCD  
displays may have one or two panels.  
panning  
pixel  
The right or left movement of the viewport in a virtual display.  
Picture Element. A pixel is seen as a dot on the display, and can be shown using one of  
several different gray shades. Combining pixels in a group creates an image.  
power saving  
register  
A means of reducing the power consumption of the SED1352.  
A memory storage location to control a peripheral, such as the SED1352.  
The up and down movement of the viewport in a virtual display.  
The 1352 chip.  
scrolling  
SED1352  
SDU1352B0x  
The evaluation board for the SED1352. The SDU1352B0x is an ISA board for a PC-  
compatible computer.  
viewport  
The visible portion of a virtual display.  
virtual display  
An image stored in display memory that is larger than what the LCD display can show. A  
virtual display supports panning and scrolling.  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352  
X16-BG-007-04  
Page 66  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-BG-007-04  
Programming Notes and Examples  
Issue Date: 98/10/08  
SED1352 Dot Matrix Graphics LCD Controller  
1352SHOW.EXE Display Utility  
Document Number: X16-UI-001-08  
Copyright © 1995, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-UI-001-08  
1352SHOW.EXE Display Utility  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 3  
1352SHOW.EXE DISPLAY UTILITY  
1352SHOW is an OEM demonstration utility used to load and display GIF images. It can also be used to demonstrate the  
split screen capabilities of the SED1352 by loading two images and vertically scrolling one image.  
Program Requirements  
Video Controller  
Display Type  
: SED1352  
: Up to 640x480 LCD  
BIOS  
: Seiko Epson BIOS1352 version 1.11 or later  
DOS Program  
: Yes  
DOS Version  
: 3.0 or greater  
: No  
Windows Program  
Windows DOS Box  
Windows DOS Full Screen  
OS/2 DOS Full Screen  
: Yes  
: Yes  
: Yes  
Installation  
Copy the file 1352show.exe to a directory that is in the DOS path on your hard drive.  
Usage  
1352SHOW is invoked from the DOS command line as follows.  
1352show [image1] [image2] [/i] [/?]  
Where:  
image1  
image2  
/i  
is the first screen image to be displayed.  
is the second screen image to be displayed.  
will invert all displayed images (show as negative).  
produces the usage message.  
/?  
Examples:  
1352show  
with no arguments will run the program in split screen mode. This  
will display two predefined images, with screen one displaying  
horizontal bars and screen two displaying vertical bars. Screen  
two may be scrolled up and down using the arrow, page up, page  
down, home and end keys.  
1352show picture1.gif  
displays the named GIF image.  
1352show dog.gif cat.gif  
displays the two named GIF images in a split screen. Screen two  
may be scrolled up and down using the arrow, page up, page  
down, home and end keys.  
Pressing the ESC key will terminate the program.  
1352SHOW.EXE Display Utility  
Issue Date: 98/10/08  
SED1352  
X16-UI-001-08  
Page 4  
Epson Research and Development  
Vancouver Design Center  
Comments  
1352SHOW requires BIOS1352.COM to be loaded prior to running.  
Split screen viewing is only allowed on single panels.  
The size of screen two is determined by available memory and number of gray shades. If there is insufficient memory  
for screen two 1352SHOW will not accept the two image files and will generate an error message.  
When loading two GIF images, it may take several seconds of apparent inactivity to load the second image into  
memory.  
The GIF format must be 16 color, non-interlaced GIF89a format.  
1352SHOW will clear the screen when the Esc key is pressed.  
Program Messages  
ERROR: Split screen available for single panel only.  
Split screen viewing is only allowed on single panels.  
ERROR: This program requires BIOS1352 to be loaded!  
The program BIOS1352.COM must be run before 1352SHOW. Load BIOS1352.COM and re-run 1352SHOW.EXE.  
File "filename" not found or cannot be opened for reading.  
The GIF file you are trying to display is not in your DOS path or not on your system.  
File is not GIF89a format.  
The GIF file contains an invalid format. 1352SHOW only supports GIF89a format.  
Insufficient video memory for second image.  
There is not enough video memory available to store both images.  
Invalid format in the GIF file.  
Use non-interlaced GIF89a format.  
SED1352  
X16-UI-001-08  
1352SHOW.EXE Display Utility  
Issue Date: 98/10/08  
SED1352 Dot Matrix Graphics LCD Controller  
VIRTUAL.EXE Display Utility  
Document Number: X16-UI-002-08  
Copyright © 1995, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-UI-002-08  
VIRTUAL.EXE Display Utility  
Issue Date: 08/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 3  
VIRTUAL.EXE DISPLAY UTILITY  
VIRTUAL.EXE demonstrates the virtual panning capabilities of the SED1352. An image larger than the display resolution  
is loaded in display memory. VIRTUAL.EXE will then display a portion of the complete image while providing panning  
capabilities using the arrow keys for navigation.  
Program Requirements  
Video Controller  
Display Type  
: SED1352  
: Up to 640x480 LCD  
BIOS  
: Seiko Epson BIOS1352 version 1.11 or later  
DOS Program  
: Yes  
DOS Version  
: 3.0 or greater  
: No  
Windows Program  
Windows DOS Box  
Windows DOS Full Screen  
OS/2 DOS Full Screen  
: Yes  
: Yes  
: Yes  
Installation  
Copy the file virtual.exe to a directory that is in the DOS path on your hard drive.  
Usage  
VIRTUAL is invoked from the DOS command line as follows.  
virtual [x=n] [y=n] [/?]  
Where:  
x
is the horizontal resolution (in multiples of 8).  
is the vertical resolution.  
y
/?  
produces a usage message.  
If the user does not provide the virtual size, the program will automatically select the size based on memory and panel size.  
The user can then navigate throughout the image using the arrow keys to pan and scroll the screen. Pressing the ESC key  
terminates the program.  
Comments  
VIRTUAL requires BIOS1352.COM to be loaded prior to running.  
VIRTUAL forces four gray shade mode regardless of original BIOS1352 settings. The original BIOS1352 settings  
are restored on exiting VIRTUAL.  
VIRTUAL.EXE Display Utility  
Issue Date: 08/10/08  
SED1352  
X16-UI-002-08  
Page 4  
Epson Research and Development  
Vancouver Design Center  
Program Messages  
ERROR: This program requires BIOS1352 to be loaded!  
The program BIOS1352.COM must be run before VIRTUAL.EXE. Load BIOS1352.COM and then re-run  
VIRTUAL.EXE.  
ERROR: Insufficient memory for virtual display.  
The virtual display is too large to fit in memory. Choose a smaller x or y value.  
ERROR: Horizontal resolution must be a multiple of 8.  
Panning moves in multiples of pixels. Choose a horizontal resolution which is a multiple of 8, so panning will not suffer  
from screen wrap-around.  
ERROR: Specified horizontal resolution is smaller than panel resolution.  
The virtual display must always be larger than the panel size.  
ERROR: Specified vertical resolution is smaller than panel resolution.  
The virtual display must always be larger than the panel size.  
SED1352  
X16-UI-002-08  
VIRTUAL.EXE Display Utility  
Issue Date: 08/10/08  
SED1352 Dot Matrix Graphics LCD Controller  
BIOS1352.COM Utility  
Document Number: X16-UI-003-08  
Copyright © 1995, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-UI-003-08  
BIOS1352.COM Utility  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 3  
BIOS1352.COM UTILITY  
BIOS1352 is a DOS Terminate and Stay Resident (TSR) program which replaces and/or supplements the PC video  
interrupt INT 10h. This program provides text, scroll, and cursor functionality when no VGA BIOS is present. Although  
the SED1352 is not a VGA or EGA compatible controller, this program is supplied to give the user a familiar prompt.  
Within limits BIOS1352 simulates a VGA BIOS and will allow standard output functions to work. DOS programs such as  
Edlin, Format, Debug, and internal commands such as Copy, Ren, Mkdir, etc., should work; however, complex programs  
such as Edit, Qbasic, and Scandisk will not work. The standard output functions are handled by the VGA BIOS, if present.  
Program Requirements  
Video Controller  
Display Type  
: SED1352  
: Up to 640x480 LCD  
: None or any VGA  
: Yes  
BIOS  
DOS Program  
DOS Version  
: 3.0 or greater  
: No  
Windows Program  
Windows DOS Box  
Windows DOS Full Screen  
OS/2 DOS Full Screen  
: Yes  
: Yes  
: Yes  
Installation  
Copy the file bios1352.com to a directory that is in the DOS path on your hard drive.  
Usage  
BIOS1352.COM is run from the DOS command line as follows:  
bios1352 type x=n y=n g=n p=n m=n [/?]  
Where:  
type is the panel type: single for single panel or dual for dual panel  
x
y
g
p
m
/?  
is the horizontal panel size in pixels (decimal)  
is the vertical panel size in lines (decimal)  
is the number of gray shades: 4 or 16  
is the port address in hex: 300|310...360|370  
is the memory size in K bytes: 64 or 128  
produces a usage message  
The order and case of arguments is arbitrary. Any invalid or missing argument will result in an error message. Note that  
the port address must be the same as the physical address set on the SDU1352 evaluation board.  
Example:  
BIOS1352 SINGLE x=320 y=240 g=16 p=320 m=128  
BIOS1352.COM Utility  
Issue Date: 98/10/08  
SED1352  
X16-UI-003-08  
Page 4  
Epson Research and Development  
Vancouver Design Center  
Comments  
BIOS1352 can be used in conjunction with a Monochrome Display Adapter (mono) card. The standard DOS  
command MODE MONO will switch to the mono card and the DOS command MODE CO80 will switch to the LCD  
panel.  
BIOS1352 emulates mode 3, but any program that attempts to write directly to video memory, bypassing the video  
BIOS, will not display correctly.  
BIOS1352 can be used in conjunction with a VGA BIOS. In this case all TTY output will be displayed on the VGA  
monitor.  
When the SED1352 video memory is specified as 64K bytes, the SED1352 video memory will reside at D000h to  
DFFFh. For 128K bytes of SED1352 video memory, the memory will reside at C000h to DFFFh.  
Program Messages  
ERROR: Panels greater than 640 pixels not supported.  
More than 640 horizontal pixels has been specified for the panel in the command line.  
ERROR: Panels greater than 480 lines not supported.  
More than 480 vertical lines has been specified for the panel in the command line.  
ERROR: Invalid port specified.  
The port address (p) must be specified in the format 3x0 in the command line. The range is 300h to 370h in 10h increments.  
ERROR: Only 4 or 16 gray shades allowed.  
A number other than 4 or 16 has been specified for the variable gin the command line.  
ERROR: Not enough video memory for the panel.  
The panel specified is too large to run in 16 gray shades mode. Select 4 gray shades instead.  
ERROR: Video memory and VGA BIOS memory conflict.  
Both the SED1352 video memory and the VGA BIOS are trying to use the memory at location C000h to CFFFh.  
ERROR: Only 8k, 16k, 32k, 40k, 64k or 128k memory allowed.  
An invalid value has been specified for memory size (m) on the command line.  
ERROR: Only 8 or 16 bits allowed for width.  
The SED1352 only supports 8 or 16 bit memory width.  
ERROR: Memory size cannot support memory width.  
Choose one of the following combinations:  
Memory Size (m)  
Memory Width (w)  
8
8
16  
16  
32  
8
40  
8
64  
16  
128  
16  
SED1352  
X16-UI-003-08  
BIOS1352.COM Utility  
Issue Date: 98/10/08  
SED1352 Dot Matrix Graphics LCD Controller  
1352GRAY.EXE Display Utility  
Document Number: X16-UI-004-08  
Copyright © 1995, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-UI-004-08  
1352GRAY.EXE Display Utility  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 3  
1352GRAY.EXE DISPLAY UTILITY  
1352GRAY is a menu driven display utility for the SED1352 which demonstrates the gray shades and available palettes.  
For 128K bytes of display memory and a panel size of 640x400 or less, either 4 or 16 gray shades are available. If the panel  
size is greater than 640x400 only 4 shades of gray are available. For 64K bytes of display memory and a panel size of  
640x200, 320x240 or less, either 4 or 16 shades are available. In 4 gray shade mode it is possible to select 1 of 4 palettes.  
Program Requirements  
Video Controller  
Display Type  
: SED1352  
: Up to 640x480 LCD  
BIOS  
: Seiko Epson BIOS1352 version 1.11 or later  
DOS Program  
: Yes  
DOS Version  
: 3.0 or greater  
: No  
Windows Program  
Windows DOS Box  
Windows DOS Full Screen  
OS/2 DOS Full Screen  
: Yes  
: Yes  
: Yes  
Installation  
Copy the file 1352gray.exe to a directory that is in the DOS path on your hard drive.  
Usage  
1352GRAY is invoked from the DOS command line as follows.  
1352gray [/?]  
Where:  
/?  
produces a usage message.  
1352GRAY displays a default gray shade pattern as a series of vertical or horizontal bars. The pattern, number of gray  
shades, and current palette may be modified by the user when possible. Instructions to modify these options will appear  
when available.  
Pressing the ESC key terminates the program and restores the original BIOS1352 settings.  
1352GRAY.EXE Display Utility  
Issue Date: 98/10/08  
SED1352  
X16-UI-004-08  
Page 4  
Epson Research and Development  
Vancouver Design Center  
Comments  
1352GRAY requires BIOS1352.COM to be loaded prior to running.  
Four gray shades is always possible. Switching to 16 gray shades may not be possible if the panel size exceeds  
640x400.  
Program Messages  
ERROR: This program requires BIOS1352 to be loaded!  
The program BIOS1352.COM must be run before 1352GRAY. Load BIOS1352.COM and then re-run 1352GRAY.EXE.  
SED1352  
X16-UI-004-08  
1352GRAY.EXE Display Utility  
Issue Date: 98/10/08  
SED1352 Dot Matrix Graphics LCD Controller  
1352PD.EXE Power Down Utility  
Document Number: X16-UI-005-07  
Copyright © 1996, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-UI-005-07  
1352PD.EXE Power Down Utility  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 3  
1352PD.EXE POWER DOWN UTILITY  
1352PD is an OEM utility program for setting power down modes in the SED1352 LCD Display Controller. It provides a  
simple method for setting power modes during power consumption testing.  
Program Requirements  
Video Controller  
Display Type  
: SED1352  
: Up to 640x480 LCD  
BIOS  
: Seiko Epson BIOS1352 version 1.11 or later  
DOS Program  
: Yes  
DOS Version  
: 3.0 or greater  
: No  
Windows Program  
Windows DOS Box  
Windows DOS Full Screen  
OS/2 DOS Full Screen  
: Yes  
: Yes  
: Yes  
Installation  
Copy the file 1352pd.exe to a directory that is in the DOS path on your hard drive.  
Usage  
1352PD is run from the DOS command line as follows:  
1352pd ModeNumber  
Where:  
ModeNumber is a decimal number (0, 1, or 2) for the desired power down mode.  
Example: typing the following command line activates power down mode 2:  
1352pd 2 <ENTER>  
Output from the program can be redirected to an external DOS device such as a terminal attached to the serial port such as  
COM1 as shown below:  
1352pd 2 > com1 <ENTER>  
Striking any key will set mode state 0 (no power down).  
1352PD.EXE Power Down Utility  
Issue Date: 98/10/08  
SED1352  
X16-UI-005-07  
Page 4  
Epson Research and Development  
Vancouver Design Center  
Comments  
1352PD.EXE requires BIOS1352.COM to be loaded prior to running.  
The following power modes are supported:  
Mode 0  
Mode 1 or 2  
Mode 0 operates at full power.  
SED1352 will engage power down mode 1 or 2. SED1352 LUT will be disabled  
and all LCD signals are forced low.  
Program Messages  
Power Down Mode xx is set.  
The power down mode xx has been set. This message may not be visible if the active display controller is the SED1352.  
ERROR: Cannot set power mode xx!  
1352PD.EXE cannot set the power down mode requested . The power down mode must be 0, 1, or 2.  
ERROR: This program requires BIOS1352 to be loaded!  
The program BIOS1352.COM must be run before 1352PD. Load BIOS1352 and re-run 1352PD.EXE.  
SED1352  
X16-UI-005-07  
1352PD.EXE Power Down Utility  
Issue Date: 98/10/08  
SED1352 Dot Matrix Graphics LCD Controller  
1352READ.EXE Diagnostic Utility  
Document Number: X16-UI-006-06  
Copyright © 1996, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-UI-006-06  
1352READ.EXE Diagnostic Utility  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 3  
1352READ.EXE DIAGNOSTIC UTILITY  
1352READ is an OEM utility program which enables the user to read the SED1352 register contents. It is a useful utility  
for OEMs wishing to submit a problem report for the video controller. If run with BIOS1352 loaded, it will try to interpret  
the BIOS settings.  
Program Requirements  
Video Controller  
Display Type  
BIOS  
: SED1352  
: Up to 640x480 LCD  
: Seiko Epson BIOS1352.COM (optional)  
DOS Program  
DOS Version  
: Yes  
: 3.0 or greater  
: No  
Windows Program  
Windows DOS Box  
: Yes  
Windows DOS Full Screen : Yes  
OS/2 DOS Full Screen  
: Yes  
Note  
1352READ uses “stdout” calls and may be redirected to a file or piped to a DOS filter such as  
MORE.COM.  
Installation  
Copy the file 1352read.exe to a directory that is in the DOS path on your hard drive.  
Usage  
From DOS prompt, type the following:  
1352read [port] [/?]  
Where:  
1352read  
port  
without any argument will read the SED1352 registers, including the gray shade lookup table.  
is the SED1352 port address in hex (e.g., 310).  
/?  
produces a usage message.  
Example:  
to generate a report, simply type  
1352read [port] > report.txt  
and the information which 1352READ obtains will be stored in the file report.txt.  
1352READ.EXE Diagnostic Utility  
Issue Date: 98/10/08  
SED1352  
X16-UI-006-06  
Page 4  
Epson Research and Development  
Vancouver Design Center  
Comments  
It is not necessary to specfy a port address if BIOS1352 has previously been loaded.  
1352READ will search for BIOS1352.COM. If this program is found the port address reported by BIOS1352 will be  
used. If the port address is specified on the 1352READ command line the two port addresses are compared and if  
different an error message is generated.  
1352READ will accept any port address, however, the SDU1352 can only be configured to an address in the range of  
300h through 370h.  
Program Messages  
ERROR: 1352 registers not responding at port address [port].  
1352READ has not found an SED1352 at the port address specified. Check the command line port setting for BIOS1352  
and/or 1352READ to ensure it is correct and re-run the program.  
ERROR: 1352READ requires a port address.  
1352READ has not detected BIOS1352.COM to obtain the port address and no port address was specified on the command  
line. Either specify a port address on the 1352READ command line or run BIOS1352.COM prior to running 1352READ.  
ERROR: BIOS1352 reports a port address of [port], which is different from the  
specified port address of [port].  
The poert address entered for 1352READ is different that the one entered for BIOS1352.COM. Specify the same port  
address on the 1352READ command line as the one in BIOS1352.COM and the physical address of the SDU1352 evalu-  
ation board and re-run the program.  
WARNING: BIOS1352 state is out of sync with SED1352 registers.  
One or more of the following command line items reported by BIOS1352 does not match the values found in the SED1352  
registers; horizontal panel size, vertical panel size, number of gray shades, or panel type (single or dual).  
SED1352  
X16-UI-006-06  
1352READ.EXE Diagnostic Utility  
Issue Date: 98/10/08  
SED1352 Dot Matrix Graphics LCD Controller  
SDU1352B0C Rev. 1.0 Evaluation  
Board User Manual  
Document Number: X16-AN-002-09  
Copyright © 1995, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-AN-002-09  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
Epson Research and Development  
Vancouver Design Center  
Page 3  
Table of Contents  
1
SDU1352B0C REV 1.0 EVALUATION BOARD . . . . . . . . . . . . . . . . . . . .7  
1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  
1.2 Installation and Configuration . . . . . . . . . . . . . . . . . . . . . . . . 8  
1.3 Technical Description . . . . . . . . . . . . . . . . . . . . . . . . . . 12  
1.3.1  
1.3.2  
1.3.3  
1.3.4  
1.3.5  
1.3.6  
1.3.7  
1.3.8  
1.3.9  
ISA Bus Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12  
Non-ISA Bus Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13  
SRAM Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13  
Monochrome LCD Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13  
Power Save Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13  
Adjustable LCD Panel Negative Power Supply . . . . . . . . . . . . . . . . . . . . . . . 13  
Adjustable LCD Panel Positive Power Supply . . . . . . . . . . . . . . . . . . . . . . . 14  
Crystal Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14  
CPU/Bus Interface Header Strips . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14  
1.3.10 Schematic Notes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14  
Appendix A  
Appendix B  
PARTS LIST . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15  
SDU1352B0C REV. 1.0 SCHEMATIC DIAGRAMS . . . . . . . . . . . 16  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
SED1352  
X16-AN-002-09  
Page 4  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-AN-002-09  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
Epson Research and Development  
Vancouver Design Center  
Page 5  
List of Tables  
Table 1-1: Configuration DIP Switch Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . .8  
Table 1-2: I/O Mapping Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8  
Table 1-3: Decoding Jumper Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .8  
Table 1-4: LCD Signal Connector J1 Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9  
Table 1-5: CPU/BUS Connector H1 Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10  
Table 1-6: CPU/BUS Connector H2 Pinout . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11  
List of Figures  
Figure 1: SDU1352B0C Rev. 1.0 Schematic Diagram (1 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16  
Figure 2: SDU1352B0C Rev. 1.0 Schematic Diagram (2 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17  
Figure 3: SDU1352B0C Rev. 1.0 Schematic Diagram (3 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18  
Figure 4: SDU1352B0C Rev. 1.0 Schematic Diagram (4 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19  
Figure 5: SDU1352B0C Rev. 1.0 Schematic Diagram (5 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20  
Figure 6: SDU1352B0C Rev. 1.0 Schematic Diagram (6 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21  
Figure 7: SDU1352B0C Rev. 1.0 Schematic Diagram (7 of 7) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
SED1352  
X16-AN-002-09  
Page 6  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-AN-002-09  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
Epson Research and Development  
Vancouver Design Center  
Page 7  
1 SDU1352B0C REV 1.0 EVALUATION BOARD  
This manual reflects the use of the SDU1352B0C Rev 1.0 evaluation board in conjunction with the SED1352 LCD  
Controller. All appropriate components are surface-mount to reduce cost and minimize board space.  
1.1 Features  
100 pin QFP5 package  
SMD technology for all appropriate devices  
Monochrome STN LCD support  
8-bit and 16-bit ISA Bus support  
5V operation  
Two terminal crystal support (up to 25.175MHz)  
16-bit wide, 128K bytes SRAM support  
Configuration Options  
Support for Software Power Save Modes  
On-board adjustable LCD BIAS negative power supply  
On-board adjustable LCD BIAS positive power supply  
CPU/Bus Interface Header strips  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
SED1352  
X16-AN-002-09  
Page 8  
Epson Research and Development  
Vancouver Design Center  
1.2 Installation and Configuration  
The SED1352 has 16 configuration inputs (VD[15:0]) which are read on power-up. For the purpose of this design, most of  
these configuration inputs have been factory set and therefore are not configurable. A four position DIP switch block is  
provided for the selection of 8- or 16-bit bus interface, and setting I/O address bits 4 through 6.  
Table 1-1: Configuration DIP Switch Settings  
Switch Signal  
Closed  
16-bit ISA Bus interface  
Open  
8-bit ISA Bus interface  
SW1-1  
SW1-2  
SW1-3  
SW1-4  
SW1-5  
SW1-6  
SW1-7  
VD0  
VD1  
VD2  
VD3  
VD7  
VD8  
VD9  
Direct-mapping I/O  
Indexing I/O  
M68K CPU Interface  
ISA Bus / other MPU other  
No byte-swap  
Byte-swap high and low data bytes  
I/O mapping address bit 4  
I/O mapping address bit 5  
I/O mapping address bit 6  
See Table 1-2, “I/O Mapping Example”  
64K bytes of SRAM available at segment  
D000h  
128K bytes of SRAM available at segment C000h-  
D000h  
SW1-8  
-
Note  
The polarity of the Configuration Dip Switches is Closed = ’1’ or ’high’, Open = ’0’ or ’low’.  
Factory set fixed options on this board are:  
16-bit display memory interface (either 64K bytes or 128K bytes)  
128K bytes available at C000h memory segment  
This board is also pre-set to use indexing I/O with address 0000 0011 0??? 000x, where x is don’t care and ??? can be  
configured with dip-switch SW1-5 through SW1-7. The factory setting of ??? = 001, i.e., I/O address = 0310h and 0311h.  
When using direct-mapping I/O, the I/O address is 0000 0011 0??? xxxx, where x is don’t care and ??? can be configured  
with dip-switch SW1-5 through SW1-7. If ??? = 001, then the I/O address for AUX[00h ] = 0310h, I/O address for  
AUX[01h] = 0311h, I/O address for AUX[02h] = 0312h and so on.  
Table 1-2: I/O Mapping Example  
bit 6 bit 5 bit 4  
I/O Mapping Address (Hex)  
0
0
1
Table 1-3: Decoding Jumper Setting  
Description  
1-2  
1
2-3  
0
JP1  
JP2  
JP3  
JP4  
Set to the same polarity as SW1-1 (VD0)  
Set to the same polarity as SW1-5 (VD7)  
Set to the same polarity as SW1-6 (VD8)  
Set to the same polarity as SW1-7 (VD9)  
1
0
1
0
1
0
Note  
These jumpers are necessary for the external ISA Bus decode logic.  
SED1352  
X16-AN-002-09  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
 
Epson Research and Development  
Vancouver Design Center  
Page 9  
LCD Signal Connector Pinout  
Table 1-4: LCD Signal Connector J1 Pinout  
LCD  
Connector  
Pin No.  
Mono STN LCD  
Comments  
SED1352  
Pin Name  
8-bit  
LD0  
LD1  
LD2  
4-bit  
LD0  
LD1  
LD2  
1
3
5
Lower panel display data for dual panel-dual drive  
mode. In 8-bit single panel-single drive mode, these  
are the least significant 4 bits of the 8-bit output data  
to the panel (data[3:0]). In 4-bit single panel mode,  
these outputs are low.  
LD3  
7
LD3  
UD0  
UD1  
UD2  
9
UD0  
UD1  
UD2  
UD0  
UD1  
UD2  
Upper panel display data for dual panel-dual drive  
mode. In 8-bit single panel-single drive mode, these  
are the most significant 4 bits of the 8-bit output data  
to the panel (data[7:4]). In 4-bit single panel mode,  
these are the 4 data bits output to the panel.  
11  
13  
UD3  
15  
UD3  
UD3  
17-31  
(odd pins)  
N/C  
XSCL  
NC  
33  
35  
37  
39  
XSCL  
XSCL  
Shift Clock for LCD data  
LP  
LP  
LP  
Latch Pulse output  
YD  
YD  
YD  
Vertical Scanning Start Pulse  
2-26  
(even pins)  
GRND  
GRND  
GRND  
Logic Ground  
N/C  
VLCD  
VCC  
28  
30  
32  
34  
36  
38  
40  
VLCD  
+5V  
VLCD  
+5V  
Negative power supply output (-18V to -23V)  
+12V  
+12V  
VDDH  
WF  
+12V  
VDDH  
WF  
VDDH  
WF  
Positive power supply output (+23V to +40V)  
LCD backplane Bias signal  
LCDENB  
/LCDPWR /LCDPWR LCD power control to external supply  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
SED1352  
X16-AN-002-09  
 
Page 10  
Epson Research and Development  
Vancouver Design Center  
CPU / BUS Interface Connector Pinouts  
Table 1-5: CPU/BUS Connector H1 Pinout  
Connector CPU/BUS  
Comments  
Pin No.  
Pin Name  
1
SD0  
Connected to DB0 of the SED1352  
Connected to DB1 of the SED1352  
Connected to DB2 of the SED1352  
Connected to DB3 of the SED1352  
Ground  
2
SD1  
3
SD2  
4
SD3  
5
GND  
GND  
SD4  
6
Ground  
7
Connected to DB4 of the SED1352  
Connected to DB5 of the SED1352  
Connected to DB6 of the SED1352  
Connected to DB7 of the SED1352  
Ground  
8
SD5  
9
SD6  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
SD7  
GND  
GND  
SD8  
Ground  
Connected to DB8 of the SED1352  
Connected to DB9 of the SED1352  
Connected to DB10 of the SED1352  
Connected to DB11 of the SED1352  
Ground  
SD9  
SD10  
SD11  
GND  
GND  
SD12  
SD13  
SD14  
SD15  
RESET  
GND  
GND  
GND  
+12V  
+12V  
/SBHE  
Ground  
Connected to DB12 of the SED1352  
Connected to DB13 of the SED1352  
Connected to DB14 of the SED1352  
Connected to DB15 of the SED1352  
Connected to the RESET signal of the SED1352  
Ground  
Ground  
Ground  
12 volt supply  
12 volt supply  
Connected to the BHE# signal of the SED1352  
IOCHRDY Connected to the READY signal of the SED1352  
/IOSC  
Connected to the IOCS# signal of the SED1352  
Connected to the MEMCS# signal of the SED1352  
/MEMCS  
SED1352  
X16-AN-002-09  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
 
Epson Research and Development  
Vancouver Design Center  
Page 11  
Table 1-6: CPU/BUS Connector H2 Pinout  
Connector CPU/BUS  
Comments  
Pin No.  
1
Pin Name  
SA0  
Connected to AB0 of the SED1352  
Connected to AB1 of the SED1352  
Connected to AB2 of the SED1352  
Connected to AB3 of the SED1352  
Connected to AB4 of the SED1352  
Connected to AB5 of the SED1352  
Connected to AB6 of the SED1352  
Connected to AB7 of the SED1352  
Ground  
2
SA1  
3
SA2  
4
SA3  
5
SA4  
6
SA5  
7
SA6  
8
SA7  
9
GND  
GND  
SA8  
10  
11  
12  
13  
14  
15  
16  
17  
18  
19  
20  
21  
22  
23  
24  
25  
26  
27  
28  
29  
30  
31  
32  
Ground  
Connected to AB8 of the SED1352  
Connected to AB9 of the SED1352  
Connected to AB10 of the SED1352  
Connected to AB11 of the SED1352  
Connected to AB12 of the SED1352  
Connected to AB13 of the SED1352  
Ground  
SA9  
SA10  
SA11  
SA12  
SA13  
GND  
GND  
SA14  
SA15  
SA16  
SA17  
SA18  
SA19  
GND  
GND  
+5V  
Ground  
Connected to AB14 of the SED1352  
Connected to AB14 of the SED1352  
Connected to AB16 of the SED1352  
Connected to AB17 of the SED1352  
Connected to AB18 of the SED1352  
Connected to AB19 of the SED1352  
Ground  
Ground  
5 volt supply  
+5V  
5 volt supply  
/IOW  
/IOR  
Connected to the IOW# signal of the SED1352  
Connected to the IOR# signal of the SED1352  
/SMEMW Connected to the MEMW# signal of the SED1352  
/SMEMR Connected to the MEMR# signal of the SED1352  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
SED1352  
X16-AN-002-09  
 
Page 12  
Epson Research and Development  
Vancouver Design Center  
1.3 Technical Description  
1.3.1 ISA Bus Support  
This board directly supports the 16-bit and 8-bit ISA Bus with indexing I/O via a standard AT edge connector.  
External logic has been added to provide signals which the SED1352 does not support directly. See Application Note  
X16-AN-003-xx.  
Note  
1. This board has been designed to operate in conjunction with either a VGA card or monochrome card, or as a stand-  
alone card.  
If using the SDU1352B0C in conjunction with a VGA display adapter the following limitations apply:  
a. Only 64K bytes of memory is available, residing at the D000h segment.  
b. Given the memory limitation certain panel size and gray shade capabilities are reduced.  
c. The VGA card video BIOS must be 8-bit only.  
The SDU1352B0C must be configured as follows:  
SW1-1 open  
SW1-2 to 7  
: 8-bit operation, necessary to prevent MEMCS16# conflict when reading VGA BIOS  
: set as desired  
SW1-8 closed  
JP1 2-3 shorted  
: 64K bytes available at D000h segment  
: to reflect SW1-8 polarity  
If using the SDU1352B0C in conjunction with a monochrome display adapter all 128K bytes of memory is available  
residing at segment C000h - D000h.  
The SDU1352B0C can be used as a stand-alone video adapter with 128K bytes memory available. If used as a stand-  
alone video adapter the BIOS setup program for the computer must support and have “No Video” selected as the vid-  
eo adapter. The BIOS1352.COM utility program can be used with the evaluation board to simulate a standard video  
BIOS, thus providing text and cursor functionality. See the BIOS1352.COM Utility manual, X16-UI-003-xx for de-  
tails.  
2. This board is pre-set to use indexing I/O with address 000 0011 0??? 000x, where x is don’t care and ??? can be  
configured through dip-switch SW1-7 to SW1-5. The factory setting of ??? = 001, i.e., I/O address = 0310h and  
0311h.  
3. In indexing I/O, only two I/O address spaces are needed. For example, if I/O address 310h is used, 310h will be the  
index register and 311h will be the data register.  
Example:  
I/O write 310h 01  
I/O read 311h  
I/O write 310h 05  
I/O write 311h 07  
:set index = 1  
:read contents of AUX[01h]  
:set index = 5  
:write 07 to AUX[05h]  
SED1352  
X16-AN-002-09  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
Epson Research and Development  
Vancouver Design Center  
Page 13  
1.3.2 Non-ISA Bus Support  
This evaluation board was specifically designed to support the standard 8-/16-bit ISA bus. However, as the SED1352 does  
support other bus interfaces, header strips have been provided containing all necessary I/O pins (see section 1.3.9 on page  
14).  
When using the header strips to provide the bus interface observe the following:  
1. All I/O signals on the ISA bus card edge must be isolated from the ISA Bus (do not plug the card into a computer).  
Voltage lines are provided on the header strips.  
2. U2, a TIBPAL22V10, is currently used to provide the SED1352 IOCS# (pin 23) and MEMCS# (pin 22) input signals  
for ISA bus use. This functionality must now be provided externally and these two pins need to disconnected as there  
may be conflict problems associated with two different outputs driving the same input.  
1.3.3 SRAM Support  
The SDU1352B0C board supports 16-bit wide, 64K byte - 128K byte SRAM only. DIP switch SW1-8 selects between the  
two options.  
1.3.4 Monochrome LCD Support  
The SED1352 supports 4- and 8-bit Dual and Single monochrome STN LCD panels. All the necessary signals are provided  
on the 40-pin ribbon cable header. The interface signals are alternated with grounds on the cable to reduce cross talk and  
noise related problems.  
Refer to Table 1-4, “LCD Signal Connector J1 Pinout,” on page 9 for specific settings.  
1.3.5 Power Save Modes  
The SED1352 supports 2 software Power Save Modes. The utility program 1352PD.EXE is supplied to control the software  
modes. The software modes are controlled by directly writing the SED1352 associated internal registers.  
1.3.6 Adjustable LCD Panel Negative Power Supply  
The majority of Monochrome LCD panels require a negative power supply to provide between -18 V and -23 V  
(Iout=45mA). For ease of implementation, such a power supply has been provided as an integral part of this design. The  
signal VLCD can be adjusted by R11 (100K potentiometer) to provide an output voltage from -14 V to -23 V and is  
enabled/disabled by the control signal LCDENB.  
Note  
LCDENB is directly controlled by register AUX[01], bit 4, of the SED1352. The VLCD power supply used on the  
SDU1352 requires a logic “1” to disable it. As the signal LCDENB is a logic “0” at power-up, it is inverted by ex-  
ternal logic to disable VLCD and prevent damaging the panel connected to the SDU1352.  
Determine the panel’s specific power requirements and set the potentiometer accordingly before connecting the panel.  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
SED1352  
X16-AN-002-09  
Page 14  
Epson Research and Development  
Vancouver Design Center  
1.3.7 Adjustable LCD Panel Positive Power Supply  
Most single Monochrome 640x480 STN LCD panels require a positive power supply to provide between +23V and +40V  
(Iout=45mA). For ease of implementation, such a power supply has been provided as an integral part of this design. The  
signal VDDH can be adjusted by R8 (100K potentiometer) to provide an output voltage from +23 V to +40 V and is  
enabled/disabled by the control signal LCDENB.  
Note  
LCDENB is directly controlled by register AUX[01], bit 4, of the SED1352. The VDDH power supply used on the  
SDU1352 requires a logic “1” to disable it. As the signal LCDENB is a logic “0” at power-up, it is inverted by ex-  
ternal logic to disable VLCD and prevent damaging the panel connected to the SDU1352.  
Determine the panel’s specific power requirements and set the potentiometer accordingly before connecting the panel.  
1.3.8 Crystal Support  
The input crystal frequency may be up to 25.175MHz depending on the specific panel size and frame rate desired.  
Refer to Section 9.3 of the SED1352 Functional Specification, Drawing Office No. X16-SP-001-xx for further details.  
1.3.9 CPU/Bus Interface Header Strips  
All of the CPU/Bus interface pins of SED1352 are connected to the header strips H1 and H2 for easy interface to a  
CPU/Bus other than the ISA bus.  
Refer to Table 1-5, “CPU/BUS Connector H1 Pinout,” on page 10 and Table 1-6, “CPU/BUS Connector H2 Pinout,” on  
page 11 for specific settings.  
Note  
These headers only provide the CPU/Bus interface signals from SED1352, when MC68K interface is selected (SW1-3  
closed), external decoding logic MUST be used to access the SED1352.  
1.3.10 Schematic Notes  
The evaluation boards may have been modified and therefore the following schematics may not reflect the actual imple-  
mentation. Please request updated information before starting any hardware design.  
SED1352  
X16-AN-002-09  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
Epson Research and Development  
Vancouver Design Center  
Page 15  
Appendix A PARTS LIST  
Qty/  
Board  
Item #  
Designation  
Part Value  
Description  
C1, C8-C10,  
C14-C42  
1
33  
0.1uF  
1206 pckg  
2
3
1
2
C2  
C3, C4  
C7, C11 - C13  
H1, H3  
H2  
1.0uF/35V  
56uF/35V  
10uF/15V  
Con32A  
Tantalum .1 spacing radical  
LXF35VB56RM6X11LL  
4
4
Tantalum D-SIZE  
5
2
0.1" 2x16 Male Header (PTH)  
0.1" 2x18 Male Header (PTH)  
0.1" 1x3 Male Header (PTH)  
40 pin strouded header dual-row-center key  
Socket strip/wire wray 64 pin #100-064-451  
PNP Signal Transistor (TO-92 PTH)  
NPN Signal Translator (TO-92 PTH)  
1206 pckg /1%  
6
1
Con36A  
7
19  
1
JP1 - JP19  
J1  
Header 3  
8
Con40A  
9
2
J2, J3  
M68340EVSP-64A  
2N3905  
10  
11  
12  
1
Q1  
1
Q2  
2N3903  
7
R1, R3-R8  
1 ohm  
R2, R15, R18,  
R21  
13  
14  
4
2
1K  
1206 pckg /5%  
9 resistors resistor-network :  
Bourne 4610-101-103 (or equivalent)  
R9 , R10  
10K  
15  
16  
17  
18  
19  
20  
21  
22  
23  
4
1
1
1
2
1
2
1
1
R11 - R14  
R16  
10K  
100 ohm  
1206 pckg /5%  
1206 pckg /5%  
R17  
500 ohm Trim Pot  
100K Trim Pot  
100K  
Bourns 3386W-1-501 (or equivalent)  
Bourns 3386W-1-104 (or equivalent)  
1206 pckg / 5%  
R19  
R20, R22  
R24  
240 ohm  
1206 pckg / 5%  
S1, S2  
S3  
SW DIP-8  
SW DIP-4  
SED1352F  
Dip Switch 8 position  
Dip Switch 4 position  
U1  
QFP5-100 / 100 pin SOCKET Supplied by SMOS  
100ns 32K byte Static RAM - SMOS part number  
(SOP2 SMT)  
24  
2
U4, U5  
SRM20256LM10  
25  
26  
27  
28  
29  
30  
31  
2
2
1
2
2
2
1
U8, U9  
U10, U11  
U12  
74LS688  
DW020 SMT  
TIBPAL22V10-15BCNT SOCKET + Component programmed by SMOS  
74LS09  
SN74LVT16244  
SN74LVT16245  
74HCT244  
D014 SMT  
U13, U14  
U15, U16  
U17, U18  
U19  
SN74LVT16244 (SSOP)  
SN74LVT16244 (SSOP)  
DW020 SMT  
LM317T  
3-pin TO-220 regulator  
XENTECK - Negative Power Supply Supplied by  
SMOS  
32  
33  
1
1
U20  
U21  
EPN001  
OSC-14  
SOCKET Only  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
SED1352  
X16-AN-002-09  
Page 16  
Epson Research and Development  
Vancouver Design Center  
Appendix B SDU1352B0C REV. 1.0 SCHEMATIC DIAGRAMS  
Figure 1: SDU1352B0C Rev. 1.0 Schematic Diagram (1 of 7)  
SED1352  
X16-AN-002-09  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
Epson Research and Development  
Vancouver Design Center  
Page 17  
Figure 2: SDU1352B0C Rev. 1.0 Schematic Diagram (2 of 7)  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
SED1352  
X16-AN-002-09  
Page 18  
Epson Research and Development  
Vancouver Design Center  
Figure 3: SDU1352B0C Rev. 1.0 Schematic Diagram (3 of 7)  
SED1352  
X16-AN-002-09  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
Epson Research and Development  
Vancouver Design Center  
Page 19  
Figure 4: SDU1352B0C Rev. 1.0 Schematic Diagram (4 of 7)  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
SED1352  
X16-AN-002-09  
Page 20  
Epson Research and Development  
Vancouver Design Center  
Figure 5: SDU1352B0C Rev. 1.0 Schematic Diagram (5 of 7)  
SED1352  
X16-AN-002-09  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
Epson Research and Development  
Vancouver Design Center  
Page 21  
Figure 6: SDU1352B0C Rev. 1.0 Schematic Diagram (6 of 7)  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
SED1352  
X16-AN-002-09  
Page 22  
Epson Research and Development  
Vancouver Design Center  
Figure 7: SDU1352B0C Rev. 1.0 Schematic Diagram (7 of 7)  
SED1352  
X16-AN-002-09  
SDU1352B0C Rev. 1.0 Evaluation Board User Manual  
Issue Date: 98/10/07  
SED1352 Dot Matrix Graphics LCD Controller  
Power Consumption  
Document Number: X16-AN-006-06  
Copyright © 1995, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-AN-006-06  
Power Consumption  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 3  
1 SED1352 POWER CONSUMPTION  
1.1 Conditions  
1. Pixel clock = 25MHz: screen pattern = 00h and AAh on 640x480 single panel.  
2. Pixel clock = 12MHz: screen pattern = 00h and AAh on 480x320 single panel.  
3. Pixel clock = 6MHz: screen pattern = 00h and AAh on 320x240 single panel.  
4. No display connected.  
SED1352 Power Consumption (VDD = 5.0V)  
100  
80  
25MHz Pixel Clock  
12MHz Pixel Clock  
6MHz Pixel Clock  
60  
40  
20  
0
ACTIVE  
ACTIVE  
PD1  
PD2  
Pattern 00h  
Pattern AAh  
Operating Mode  
Active  
Pattern 00h Pattern AAh  
Active  
PD1  
PD2  
Units  
25MHz  
12MHz  
6MHz  
93.0  
58.7  
32.7  
105.5  
66.1  
36.1  
14.3  
11.8  
4.7  
0.1  
0.1  
0.0  
mW  
mW  
mW  
Power Consumption  
Issue Date: 98/10/08  
SED1352  
X16-AN-006-06  
Page 4  
Epson Research and Development  
Vancouver Design Center  
SED1352 Power Consumption (VDD = 3.0V)  
40  
35  
30  
25MHz Pixel Clock  
25  
20  
12MHz Pixel Clock  
6MHz Pixel Clock  
15  
10  
5
0
ACTIVE  
ACTIVE  
PD1  
PD2  
Pattern 00h  
Pattern AAh  
Operating Mode  
Active  
Pattern 00h Pattern AAh  
Active  
PD1  
PD2  
Units  
25MHz  
12MHz  
6MHz  
35.0  
16.1  
8.3  
41.2  
18.1  
9.5  
3.3  
2.2  
0.2  
0.2  
0.3  
0.0  
mW  
mW  
mW  
SED1352  
X16-AN-006-06  
Power Consumption  
Issue Date: 98/10/08  
SED1352F0B Dot Matrix Graphics LCD Controller  
ISA Bus Interface Considerations  
Document Number: X16-AN-003-05  
Copyright © 1995, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352F0B  
X16-AN-003-05  
ISA Bus Interface Considerations  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 3  
Table of Contents  
1
2
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5  
1.1 Reference Material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5  
16-BIT ISA BUS INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  
1.2 PAL Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  
1.3 Additional Discrete Logic Description . . . . . . . . . . . . . . . . . . . . . . . . 7  
1.4 SED1352F0B Default Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  
1.4.1 Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  
1.4.2 Register Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  
3
8-BIT ISA BUS INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8  
1.5 SED1352F0B Default Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9  
1.5.1 Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9  
1.5.2 Register Setting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9  
List of Figures  
Figure 8: 16-Bit ISA Bus Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  
Figure 9: 8-Bit ISA Bus Implementation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8  
ISA Bus Interface Considerations  
Issue Date: 98/10/08  
SED1352F0B  
X16-AN-003-05  
Page 4  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352F0B  
X16-AN-003-05  
ISA Bus Interface Considerations  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 5  
1 INTRODUCTION  
The SED1352F0B is a general purpose LCD controller capable of interfacing to a variety of microprocessors. This  
interface is accomplished through the use of minimal external circuitry. This application note describes the interface  
between the SED1352F0B and the ISA Bus.  
1.1 Reference Material  
Refer to the SED1352F0B Hardware Functional Specification (X16-SP-001-xx) for complete AC timing details.  
This document makes no attempts to describe the operation of the ISA Bus, please refer to the appropriate ISA Bus  
documentation for complete information.  
ISA Bus Interface Considerations  
Issue Date: 98/10/08  
SED1352F0B  
X16-AN-003-05  
Page 6  
Epson Research and Development  
Vancouver Design Center  
2 16-BIT ISA BUS INTERFACE  
For the purpose of the example shown below, the following conditions are set by default:  
1. Indexing I/O with addresses 0310h and 0311h (see Configuration Options)  
2. 128Kbytes of display memory occupying $C and $D segments (see Configuration Options)  
Note  
This memory configuration will conflict with a VGA card installed on the same bus, therefore either a  
serial terminal or monochrome display adapter is recommended as the primary console.  
This section provides the necessary equations and settings to complete the interface between the SED1352F0B and the  
16-bit ISA Bus.  
Note  
A PAL was used instead of discrete logic to reduce external component count.  
16-Bit ISA Bus  
SED1352F0B  
VCC  
AEN  
IOCS#  
MEMCS#  
PAL  
REFRESH  
10kΩ  
SA1-15  
VD0,VD7,  
VD11-12,  
VD14-15  
AB0-19  
SA0-19  
SBHE#  
SD0-15  
BHE#  
DB0-15  
MEMW  
MEMR  
IOW#  
SMEMW#  
SMEMR#  
IOW#  
IOR#  
IOR#  
IOCHRDY  
READY  
1
3
IOCS16EN  
IOCS16#  
LA17-23  
A
2
4
5
P
6
LA23-17 (p0-6)  
0000110 (q0-6)  
MEMCS16#  
B
Q
74LS09  
G
74LS688  
Figure 8: 16-Bit ISA Bus Implementation  
SED1352F0B  
X16-AN-003-05  
ISA Bus Interface Considerations  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 7  
1.2 PAL Equations  
The PAL is programmed with the following equations:  
1. As stated above, the default I/O address is from 0310h to 0311h. The SED1352F0B provides internal decoding of ad-  
dress bits A0 to A9, therefore minimal external circuitry is necessary to provide signals IOCS# and IOCS16#  
IOCS# is required by the SED1352 to indicate a valid IO cycle. In an ISA bus environment, valid IO decoding must  
include addresses A15-A0. Given this example, addresses A10-15 must all be ’0’ and AEN must also be ’0’.  
IOCS# = !(!AEN & !A15 & !A14 & !A13 & !A12 & !A11 & !A10)  
2. As the SED1352 is capable of 16-bit IO access, the IOCS16# bus signal must be driven externally to indicate such a  
cycle. As stated in the ISA specification, the IOCS16# is a straight address decode without qualification.  
IOCS16EN# = !(!IOCS# & A9 & A8 & !A7 & !A6 & !A5 & A4 & !A3 & !A2 & !A1)  
3. With 128Kbytes of display memory and A17 to A19 decoded internally to SED1352F0B;  
MEMCS# = !REFRESH  
1.3 Additional Discrete Logic Description  
1. As shown in Figure 1, the 74LS688 is configured as a memory decoder with valid addresses between 0Cxxxxh and  
0Dxxxxh.  
2. The 74LS09 is used simply to provide the Open-Collector outputs necessary for the IOCS16# and MEMCS16# sig-  
nals.  
1.4 SED1352F0B Default Setup  
1.4.1 Configuration Options  
1. VD15 - VD13 = 110  
2. VD12 - VD4 = 110001000  
3. VD3 = 0  
memory decoding for locations $C and $D segments  
I/O decoding for locations 1100010000b - 1100010001b  
no byte swap of high and low bytes  
ISA Bus interface, i.e. non- MC68K interface  
indexing I/O  
4. VD2 = 0  
5. VD1 = 0  
6. VD0 = 1  
16-bit bus interface  
Where 1 = pull-up with a 10K resistor; 0 = no pull-up resistor  
Note  
The states of these data pins are internally latched during RESET.  
1.4.2 Register Setting  
AUX[1] bit 1 = 0 for 16-bit memory interface (must be 16-bit with a 16-bit bus).  
ISA Bus Interface Considerations  
Issue Date: 98/10/08  
SED1352F0B  
X16-AN-003-05  
Page 8  
Epson Research and Development  
Vancouver Design Center  
3 8-BIT ISA BUS INTERFACE  
For the purpose of the example shown below, the following conditions are set by default:  
1. Indexing I/O with partial decoding, i.e. address lines A10 to A15 are not decoded for I/O cycles  
Note  
Partial decoding is quite safe on most ISA Bus systems as I/O addresses above 03FFh are rarely used.  
2. I/O addresses are xxxxxx1100000000b and xxxxxx1100000001b  
3. 64Kbytes of display memory occupying $A segment  
Note  
The 74LS00 is simply used to detect the $B segment and invalidate the MEMCS# input.  
Note  
This memory configuration will conflict with a VGA card installed on the same bus, therefore either a  
serial terminal or monochrome display adapter is recommended as the primary console.  
This section provides the necessary settings to complete the interface between the SED1352F0B and the 8-bit ISA Bus.  
Since I/O addresses are partially decoded, there is no need to use a PAL for decoding.  
8-Bit ISA Bus  
SED1352F0B  
VCC  
AEN  
IOCS#  
1
2
BHE#  
REFRESH  
3
4
5
MEMCS#  
AB0-19  
A
10kΩ  
6
SA16  
B
VD11-13,  
VD15  
74LS00  
SA0-19  
SD0-7  
DB0-7  
MEMW  
MEMR  
IOW#  
SMEMW#  
SMEMR#  
IOW#  
IOR#  
IOR#  
IOCHRDY  
READY  
Figure 9: 8-Bit ISA Bus Implementation  
SED1352F0B  
X16-AN-003-05  
ISA Bus Interface Considerations  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 9  
1.5 SED1352F0B Default Setup  
1.5.1 Configuration Options  
1. VD15 - VD13 = 101  
2. VD12 - VD4 = 110000000  
3. VD3 = 0  
memory decoding for locations $A segment  
I/O decoding for locations 1100000000b - 1100000001b  
No byte swap of high and low bytes  
ISA Bus interface, i.e. non- MC68K interface  
Indexing I/O  
4. VD2 = 0  
5. VD1 = 0  
6. VD0 = 0  
8-bit bus interface  
Where 1 = pull-up with a 10K resistor; 0 = no pull-up resistor  
Note  
The states of these data pins are internally latched during RESET.  
1.5.2 Register Setting  
AUX[1] bit 1 = 0 for 16-bit memory interface or  
AUX[1] bit 1 = 1 for 8-bit memory interface.  
ISA Bus Interface Considerations  
Issue Date: 98/10/08  
SED1352F0B  
X16-AN-003-05  
Page 10  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352F0B  
X16-AN-003-05  
ISA Bus Interface Considerations  
Issue Date: 98/10/08  
SED1352 Dot Matrix Graphics LCD Controller  
MC68340 Interface Considerations  
Document Number: X16-AN-004-06  
Copyright © 1996, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-AN-004-06  
MC68340 Interface Considerations  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 3  
Table of Contents  
1
2
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5  
1.1 Reference Material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5  
MC68340 MPU INTERFACE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  
2.1 MC68340 Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  
2.2 PAL Equations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  
2.3 SED1352 Default Setup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  
List of Figures  
Figure 1: MC68340 MPU Interface Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  
MC68340 Interface Considerations  
Issue Date: 98/10/08  
SED1352  
X16-AN-004-06  
Page 4  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-AN-004-06  
MC68340 Interface Considerations  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 5  
1 INTRODUCTION  
The SED1352 is a general purpose LCD controller capable of interfacing to a variety of microprocessors. This interface is  
accomplished through the use of minimal external circuitry. This application note describes the interface between the  
SED1352 and the 16-bit MC68340 microcontroller.  
1.1 Reference Material  
Refer to the SED1352 Hardware Functional Specification (X16-SP-001-xx) for complete AC timing details.  
This document makes no attempts to describe the operation of the MC68340 microcontroller, please refer to the appropriate  
MC68340 documentation for this information.  
MC68340 Interface Considerations  
Issue Date: 98/10/08  
SED1352  
X16-AN-004-06  
Page 6  
Epson Research and Development  
Vancouver Design Center  
2 MC68340 MPU INTERFACE  
The following sections provide the necessary settings and equations to complete the interface between the SED1352 and  
the MC68340 microcontroller.  
MC68340  
SED1352  
VCC  
MEMCS#  
CS3  
SIZ0  
IOCS#  
BHE#  
PAL  
10kΩ  
VD0-VD3  
VD13  
A0  
A10-A17  
AB0-AB19  
DB0-DB15  
A0-A19  
D0-D15  
VCC  
VCC  
MEMR#  
MEMW#  
4.7kΩ  
DSACK1  
AS  
READY  
IOR#  
R/W  
IOW#  
RESET  
RESET  
Figure 1: MC68340 MPU Interface Block Diagram  
2.1 MC68340 Setup  
For the purpose of this example, the following conditions apply:  
The internal chip select signal CS3 of the MC68340, along with external DSACK1 response, is employed to access the  
SED1352. Direct mapping of the I/O with starting address at 00000000h, and 128Kbytes of display memory with starting  
address 00020000h are also used.  
1. CS3 with 256kbyte block size - starting address at 00000000h and ending address at 0003FFFFh  
2. External DSACK1 response - 16-bit port  
3. Don’t care Function Codes and with CPU space access  
4. Both read and write accesses are allowed  
Settings for the Address Mask register and Base Address register for the above conditions are:  
058h - 05Bh = 0003FFFFh  
05Ch - 05Fh = 000000F5h  
Address Mask register  
Base Address register  
SED1352  
X16-AN-004-06  
MC68340 Interface Considerations  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 7  
2.2 PAL Equations  
The PAL is programmed with the following equations:  
1. With direct-mapping I/O occupying locations from 00000000h to 0000000Fh and A4 to A9 decoded internally to  
SED1352;  
IOCS# = !(!CS3 & !A17 & !A16 & !A15 & !A14 & !A13 & !A12 & !A11 & !A10)  
2. With memory locations from 00020000h to 003FFFFh and A17 to A19 decoded internally to SED1352;  
MEMCS# = CS3  
3. BHE# becomes valid for two conditions:  
1. 16-bit or 32-bit cycle, i.e., SIZ0=0  
2. 8-bit cycle with odd byte access, i.e., SIZ0=1 and A0=1;  
BHE# = SIZ0 & !A0  
2.3 SED1352 Default Setup  
Configuration Options  
1. VD15 - VD13 = 001  
2. VD12 - VD4 = 000000xxx  
3. VD3 = 1  
memory decoding for locations 20000h - 3FFFFh  
I/O decoding for locations 0000000000b - 0000001111b  
byte swap of high and low bytes  
MC68K interface  
4. VD2 = 1  
5. VD1 = 1  
direct-mapping I/O  
6. VD0 = 1  
16-bit bus interface  
Where x = don’t care; 1 = pull-up with a 10K resistor; 0 = no pull-up resistor  
Note  
The states of these data pins are internally latched during RESET.  
Register Setting  
AUX[01h] bit 1 = 0 for 16-bit memory interface (must be 16-bit with a 16-bit bus).  
MC68340 Interface Considerations  
Issue Date: 98/10/08  
SED1352  
X16-AN-004-06  
Page 8  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-AN-004-06  
MC68340 Interface Considerations  
Issue Date: 98/10/08  
SED1352 Dot Matrix Graphics LCD Controller  
LCD Panel Options / Memory Requirements  
Document Number: X16-AN-005-07  
Copyright © 1995, 1998 Epson Research and Development, Inc. All Rights Reserved.  
Information in this document is subject to change without notice. You may download and use this document, but only for your own use in  
evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any  
representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain  
material protected under U.S. and/or International Patent laws.  
EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.  
 
Page 2  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-AN-005-07  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 3  
Table of Contents  
1
2
INTRODUCTION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5  
1.1 Reference Material . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5  
CONFIGURATION EQUATIONS . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  
2.1 Example: . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  
2.1.1 Input Clock Requirement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  
2.2 SRAM Size and Access Time Requirements . . . . . . . . . . . . . . . . . . . . . 6  
2.2.1 SRAM Size . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6  
2.2.2 SRAM Access Time . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7  
3
IMPLEMENTATION . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8  
3.1 8-Bit Display Memory Interface . . . . . . . . . . . . . . . . . . . . . . . . . . 8  
3.1.1 Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8  
3.1.2 Register Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9  
3.2 16-bit Display Memory Interface . . . . . . . . . . . . . . . . . . . . . . . . . 10  
3.2.1 Configuration options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10  
3.2.2 Register settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11  
List of Figures  
Figure 1: 8-Bit Memory Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8  
Figure 2: 16-Bit Memory Configuration Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  
SED1352  
X16-AN-005-07  
Page 4  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-AN-005-07  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 5  
1 INTRODUCTION  
The SED1352 is a highly configurable general purpose LCD controller. The LCD panel frame-rate, resolution, and gray  
shades all determine the memory and input clock requirements. This application note will describe the equations used to  
determine the various parameters. An example resolution and desired frame-rate will be selected and used to determine the  
remaining variables.  
1.1 Reference Material  
Refer to the SED1352 Hardware Functional Specification (X16-SP-001-xx) for complete AC timing details.  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  
SED1352  
X16-AN-005-07  
Page 6  
Epson Research and Development  
Vancouver Design Center  
2 CONFIGURATION EQUATIONS  
2.1 Example:  
LCD panel resolution:  
LCD panel configuration  
LCD Gray Shades  
640x240  
4 bit, Single drive panel  
4
Desired Frame-rate:  
~70Hz  
2.1.1 Input Clock Requirement  
For a frame rate of 70Hz, the input clock (or pixel clock) frequency can be calculated as following,  
fOSC = input clock  
fOSC = Frame Rate * (# of horizontal pixels + 16) * (# of vertical lines + 4)  
Therefore;  
f
OSC = 70 * (640 + 16) * (240 + 4)  
OSC = 11.2MHz  
f
Note  
1. Due to oscillator frequency availability, a 12MHz oscillator is selected thus producing a slightly  
higher frame-rate (~75Hz).  
2. For a detailed description of the frame rate formula, see section 9.3 of the SED1352 Hardware Func-  
tional Specification, drawing office number X16-SP-001-xx.  
2.2 SRAM Size and Access Time Requirements  
2.2.1 SRAM Size  
(# of Horizontal pixels)* (# of Vertical pixels)  
Memory Size (bytes) =  
8
/
(# of bits/pixel)  
i.e., 4 gray shades = 2 bits / pixel, therefore 1 byte (8 bits) = 4 pixels  
Therefore:  
Memory size (bytes) = (640 * 240) / 4  
Memory size (bytes) = 37.5 K bytes.  
Note  
For a detailed description of the memory size requirement, see section 9.4 of the SED1352 Hardware Functional  
Specification, drawing office number X16-SP-001-xx.  
SED1352  
X16-AN-005-07  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 7  
2.2.2 SRAM Access Time  
For 8-bit display memory interface;  
Access time < 2/fOSC - 50.  
With 12MHz input clock;  
Access time < 116ns.  
For 16-bit display memory interface;  
Access time < 4/fOSC - 50.  
With 12MHz input clock, access time < 283ns.  
Note  
For detail description of the SRAM access time, see section 9.2 of the SED1352 Hardware Functional Spec-  
ification, drawing office number X16-SP-001-xx.  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  
SED1352  
X16-AN-005-07  
Page 8  
Epson Research and Development  
Vancouver Design Center  
3 IMPLEMENTATION  
3.1 8-Bit Display Memory Interface  
Since 35.7K bytes with at least 116ns access time SRAM is required, one 8K bytes SRAM with 100ns access time, and one  
32K bytes SRAM with 100ns access time are used in this example.  
640x240 Panel  
SRM20256-10  
VD0-7  
VA0-14  
VCS0#  
VCS1#  
D0-7  
A0-14  
CS  
12MHz  
OSC1  
32KB  
VOE#  
VWE#  
OE  
WE  
D0-7  
A0-12  
SED1352  
CS1  
OE 8KB  
WE  
VCC  
CS2  
SRM2264-10  
Figure 1: 8-Bit Memory Configuration Example  
3.1.1 Configuration Options  
VD0 selects 16/8-bit Bus interface. When using a 8-bit memory interface, the 8-bit Bus interface must also be selected. The  
state of VD0 is internally latched during RESET. In this example VD0 has no external pull-up resistor and is therefore  
latched as a ’0’ during RESET (due to the internal pull-down resistors) thus selecting the 8-bit Bus interface.  
Other option settings are not related to this implementation.  
SED1352  
X16-AN-005-07  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 9  
3.1.2 Register Settings  
AUX[00h] = 0000 0000 not in test mode  
AUX[01h] = 1001 0011 4-bit single panel, 4 gray shades, 8-bit display memory interface with 32K bytes is the first chip  
AUX[02h] = 1001 1111 horizontal resolution = 640 ; 4 gray shades = 4 pixels per byte ; 4 pixels per fetch  
AUX[03h] = 0000 0000 not in power save modes  
AUX[04h] = 1110 1111 total 240 scan lines  
AUX[05h] = 0000 0000 WF = 0  
AUX[06h] = 0000 0000  
AUX[07h] = 0000 0000 default starting address at 0000h (with AUX[06h])  
AUX[08h] = xxxx xxxx don’t care when not using split screen  
AUX[09h] = xxxx xxxx don’t care when not using split screen  
AUX[0Ah] = 1110 1111 together with AUX[0Bh] bit1-0, should be the same as or larger than AUX[05h] bit1-0 and  
AUX[0Bh] = xxxx xx00 AUX[04h] when not using split screen  
AUX[0Dh] = 0000 0000 no virtual screen  
Example setting of Look-up Table when using bank# 0 for display:  
AUX[0Eh] = 00xx 0000 index = 0  
AUX[0Fh] = xxxx 0000 gray = 0  
AUX[0Eh] = 00xx 0001 index = 1  
AUX[0Fh] = xxxx 0101 gray = 5  
AUX[0Eh] = 00xx 0010 index = 2  
AUX[0Fh] = xxxx 1010 gray = A  
AUX[0Eh] = 00xx 0011 index = 3  
AUX[0Fh] = xxxx 1111 gray = F  
x = don’t care  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  
SED1352  
X16-AN-005-07  
Page 10  
Epson Research and Development  
Vancouver Design Center  
3.2 16-bit Display Memory Interface  
Since 35.7K bytes with at least 283ns access time SRAM is required, two 32K bytes SRAM with 120ns access time are  
used for this example.  
640x240 Panel  
SRM20256-12  
VD0-7  
VD0-15  
VA0-14  
VCS0#  
VCS1#  
D0-7  
A0-14  
CS  
12MHz  
OSC1  
32KB  
VOE#  
VWE#  
OE  
WE  
VD8-15  
D0-7  
A0-14  
SED1352  
CS  
OE  
32KB  
WE  
SRM20256-12  
Figure 2: 16-Bit Memory Configuration Example  
3.2.1 Configuration options  
VD0 = no pull-up resistor for 8-bit bus interface or  
VD0 = pull-up (with a 10K resistor) for 16-bit bus interface.  
Other option settings are not related to this implementation.  
SED1352  
X16-AN-005-07  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  
Epson Research and Development  
Vancouver Design Center  
Page 11  
3.2.2 Register settings  
AUX[00h] = 0000 0000 not in test mode  
AUX[01h] = 1001 000x 4-bit single panel, 4 gray shades, 16-bit display memory interface  
AUX[02h] = 0100 1111 horizontal resolution = 640 ; 4 gray shades = 4 pixels per byte ; 8 pixels per fetch  
AUX[03h] = 0000 0000 not in power save modes  
AUX[04h] = 1110 1111 total 240 scan lines  
AUX[05h] = 0000 0000 WF = 0  
AUX[06h] = 0000 0000  
AUX[07h] = 0000 0000 default starting address at 0000h (with AUX[06h])  
AUX[08h] = xxxx xxxx don,t care when not using split screen  
AUX[09h] = xxxx xxxx don,t care when not using split screen  
AUX[0Ah] = 1110 1111 together with AUX[0Bh] bit1-0, should be the same as or larger than AUX[05h] bit1-0 and  
AUX[0Bh] = xxxx xx00 AUX[04h] when not using split screen  
AUX[0Dh] = 0000 0000 no virtual screen  
Example setting of Look-up Table when using bank# 2 for display:  
AUX[0Eh] = 10xx 1000 index = 8  
AUX[0Fh] = xxxx 0000 gray = 0  
AUX[0Eh] = 10xx 1001 index = 9  
AUX[0Fh] = xxxx 0101 gray = 5  
AUX[0Eh] = 10xx 1010 index = A  
AUX[0Fh] = xxxx 1010 gray = A  
AUX[0Eh] = 10xx 1011 index = B  
AUX[0Fh] = xxxx 1111 gray = F  
x = don’t care  
Note  
When LCDENB (bit 4 of AUX[01h]) is used to control the LCD power, the following sequence is recommeded to  
setup the AUX registers of the SED1352:  
1. Write to bit 4 of AUX[01h] with value ’0’.  
2. Setup the AUX registers accordingly.  
3. Delay at least half a second (depend on panel type, it may be required more time delay).  
4. Write to bit 4 of AUX[01h] with value ’1’.  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  
SED1352  
X16-AN-005-07  
Page 12  
Epson Research and Development  
Vancouver Design Center  
THIS PAGE LEFT BLANK  
SED1352  
X16-AN-005-07  
LCD Panel Options / Memory Requirements  
Issue Date: 98/10/08  

相关型号:

SED1352D0B

640X400 DOTS DOT MAT LCD DSPL CTLR, UUC
SEIKO

SED1352F0A

Dot Matrix LCD Controller, 640 X 480 Dots, MOS, PQFP100
SEIKO

SED1352F0B

640X400 DOTS DOT MAT LCD DSPL CTLR, PQFP100, QFP-100
SEIKO

SED1352FOA

Interface Circuit,
SEIKO

SED1353

SED1353 GRAPHICS LCD CONTROLLER
EPSON

SED1353D0A

LCD Controller ICs
EPSON

SED1353F0A

LCD Controller ICs
EPSON

SED1353F1A

LCD Controller ICs
EPSON

SED1354

Color Graphics LCD/CRT Controller
EPSON

SED1354F0A

LCD Controller ICs
EPSON

SED1354F1A

LCD Controller ICs
EPSON

SED1354F2A

LCD Controller ICs
EPSON