Epson S1D13708 User Manual To The 213b5af7 Fed5 430f Bb22 2f60c4b3a85c

User Manual: Epson S1D13708 to the manual

Open the PDF directly: View PDF PDF.
Page Count: 574

DownloadEpson S1D13708 User Manual  To The 213b5af7-fed5-430f-bb22-2f60c4b3a85c
Open PDF In BrowserView PDF
S1D13708 Embedded Memory LCD Controller

S1D13708
TECHNICAL MANUAL
Document Number: X39A-Q-001-01

Copyright © 2001 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

S1D13708
X39A-Q-001-01

TECHNICAL MANUAL
Issue Date: 01/10/09

Epson Research and Development
Vancouver Design Center

Page 3

COMPREHENSIVE SUPPORT TOOLS
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
Display Drivers

Application Engineering Support
EPSON offers the following services through their Sales and Marketing Network:
• Sales Technical Support
• Customer Training
• Design Assistance

Application Engineering Support
Engineering and Sales Support is provided by:
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

TECHNICAL MANUAL
Issue Date: 01/10/09

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

S1D13708
X39A-Q-001-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-Q-001-01

TECHNICAL MANUAL
Issue Date: 01/10/09

ENERGY
S AV I N G

GRAPHICS

EPSON

S1D13708
S1D13708 Embedded Memory LCD Controller

July 2001

The S1D13708 is a color/monochrome LCD graphics controller with an embedded memory / display
buffer. Targeted at PDA and Cell Phone applications, the S1D13708 ‘directly’ interfaces to numerous
TFT panels and incorporates a minimum pin-count CPU interface thereby making it an ideal solution for
an LCD Module.
This high level of integration combined with a 1.8V Core, provides a low cost, low power, single chip
solution to meet the demands of embedded markets such as Mobile Communications devices and
Palm-size PCs, where board size and battery life are major concerns.
The embedded display buffer greatly improves overall system performance as the S1D13708 handles
all of the display functions directly with very little interaction from the processor.
The S1D13708 provides very flexible display features, from our patented SwivelViewTM technology
which provides hardware rotation of the displayed image, to our Ink Layer with transparency, to our
“Picture-in-Picture Plus” feature which allows two active variable size display ‘windows’.
The S1D13708 provides impressive support for Mobile Communication devices and Palm OS
handhelds, however its impartiality to CPU type or operating system makes it an ideal display solution
for a wide variety of applications.

■ FEATURES
• Embedded Display Buffer.
• Low Operating Voltage.
• Low-latency CPU interface.
• Direct support for the multiple CPU types.
• Programmable Resolutions and Color depths.
• STN LCD support.
• Active Matrix LCD support.
• Reflective Active Matrix support.

• SwivelViewTM (hardware rotation of displayed image).
•

•
•
•
•
•

(Patent # 5,734,875 - Patent # 5,956,049)

“Picture-in-Picture Plus”.
Ink Layer.
Software Initiated Power Save Mode.
Hardware or Software Video Invert.
120-pin PFBGA package.

■ SYSTEM BLOCK DIAGRAM

CPU

Data and
Control Signals

S1D13708

Digital Out

Flat Panel

X39A-C-001-01

1

GRAPHICS
S1D13708
■ DESCRIPTION
Memory Interface
•

Display Modes

Embedded 80K byte SRAM display buffer.

CPU Interface
•
•

‘Fixed’ low-latency CPU access times.
Direct support for:
Hitachi SH-4 / SH-3.
Motorola M68xxx (DragonBall, ColdFire,REDCAP2).
MPU bus interface with programmable READY.
InDirect Interface
provides a minimum 15-pin interface (as compared to
42-pin max implementation).

•

Display Support
•
•
•
•
•

•
•
•
•
•
•
•
•
•

1/2/4/8/16 bit-per-pixel (bpp) support.
Up to 64 gray shades using FRM and dithering on
monochrome passive LCD panels.
Up to 64K colors on passive STN panels.
Up to 64K colors on active matrix panels.
SwivelView: direct hardware rotation of display image
by 90°, 180°, 270°.
“Picture-in-Picture Plus”: displays a variable size
window overlaid over background image.
Ink Layer.
Partial Display Support (available on Type 3 TFT).
Double Buffering/multi-pages: provides smooth
animation and instantaneous screen update.

4/8-bit monochrome LCD interface.
4/8/16-bit color STN LCD interface.
Single-panel, single-drive passive displays.
Clock Source
9/12/18-bit Active matrix TFT interface.
•
Two clock inputs (single clock possible).
‘Direct’ support for multiple TFT interfaces (Epson, Sharp,
•
Clock source can be internally divided down for a
Type 2,3,4 external timing control IC not required).
higher frequency clock input.
Typical resolutions supported (Ink Layer disabled):
•
12MHz Crystal Input.
- 320x240 @ 8bpp
- 160x160 @ 16bpp
Operating Voltage
- 160x240 @ 16bpp
•
COREVDD 1.8 to 2.2 volts.

•

Power Down Modes
•
•

•

IOVDD 3.0 to 3.6volts.

Software Initiated Power Save Mode.
Package
BCLK can be switched off while maintaining LCD refresh.
•
120-pin PFBGA.

CONTACT YOUR SALES REPRESENTATIVE FOR THESE COMPREHENSIVE DESIGN TOOLS
• S1D13708 Technical
• Palm OS Hardware
Manual
Abstraction Layer
• S5U13708 Evaluation Boards • Windows CE Display Driver
• CPU Independent Software
• VXWorks TornadoTM Display
Utilities
Driver
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp

North America
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

Taiwan
Epson Taiwan Technology & Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

Copyright © 2001 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. Palm Computing is a registered trademark and the Palm OS platform Platinum logo is a trademark
of Palm Computing, Inc., 3Com or its subsidiaries. Microsoft, Windows, and the Windows Embedded Partner Logo are registered trademarks of Microsoft Corporation. All other trademarks are the property of their respective owners.

2

X39A-C-001-01

S1D13708 Embedded Memory LCD Controller

Hardware Functional Specification
Document Number: X39A-A-001-02

Copyright © 2001, 2002 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

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.1 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
1.2 Overview Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

2

Features . . . . . . . . . .
2.1 Integrated Frame Buffer
2.2 CPU Interface . . . .
2.3 Display Support . . . .
2.4 Display Modes . . . .
2.5 Display Features . . .
2.6 Clock Source . . . . .
2.7 Operating Voltage . . .
2.8 Miscellaneous . . . .

3

Typical System Implementation Diagrams . . . . . . . . . . . . . . . . . . . . . . 19

4

Pins . . . . . . . . . . . . . . . . .
4.1 Pinout Diagram - PFBGA - 120pin
4.2 Pinout Diagram - Die Form . . .
4.3 Pin Descriptions . . . . . . .
4.3.1 Host Interface . . . . . . . .
4.3.2 LCD Interface . . . . . . . .
4.3.3 Clock Input . . . . . . . . .
4.3.4 Miscellaneous . . . . . . . .
4.3.5 Power And Ground . . . . .
4.4 Summary of Configuration Options
4.5 Host Bus Interface Pin Mapping .
4.6 LCD Interface Pin Mapping . . .

5

D.C. Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41

6

A.C. Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . .
6.1 Clock Timing . . . . . . . . . . . . . . . . . . . . . . .
6.1.1 Input Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.1.2 Internal Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . .
6.2 CPU Interface Timing . . . . . . . . . . . . . . . . . . . .
6.2.1 Generic #1 Interface Timing . . . . . . . . . . . . . . . . . . . .
6.2.2 Generic #2 Interface Timing . . . . . . . . . . . . . . . . . . . .
6.2.3 Hitachi SH-4 Interface Timing . . . . . . . . . . . . . . . . . . .
6.2.4 Hitachi SH-3 Interface Timing . . . . . . . . . . . . . . . . . . .
6.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000) . . . . . .

Hardware Functional Specification
Issue Date: 02/03/07

.
.
.
.
.
.
.
.
.

. .
.
.
.
.
.
.
.
.

. .
. .
. .
. .
. .
. .
. .
. .
. .

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

. .
.
.
.
.
.
.
.
.

. . .
. .
. .
. .
. . .
. . .
. . .
. . .
. . .
. .
. .
. .

. .
. .
. .
. .
. .
. .
. .
. .
. .

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

. . . .
. . . .
. . . .
. . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . .
. . . .
. . . .

. . .
. .
. .
. .
. .
. .
. .
. .
. .

. . .
. .
. .
. .
. . .
. . .
. . .
. . .
. . .
. .
. .
. .

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

. . .
. .
. .
. .
. .
. .
. .
. .
. .

.
.
.
.
.
.
.
.
.

. . . . . .
. . . . .
. . . . .
. . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . .
. . . . .
. . . . .

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

. . .
. .
. .
. .
. .
. .
. .
. .
. .

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.

. . . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . .
. . . . . .
. . . . . .

. . .
. .
. . .
. . .
. .
. . .
. . .
. . .
. . .
. . .

. . . .
. . . .
. . . . .
. . . . .
. . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .

16
16
16
16
17
17
17
18
18

27
27
28
29
29
34
37
37
37
38
39
40

42
42
42
43
44
44
46
48
50
52

S1D13708
X39A-A-001-02

Page 4

Epson Research and Development
Vancouver Design Center

6.2.6
6.2.7
6.2.8

Motorola MC68K #2 Interface Timing (e.g. MC68030) . . . . . . . .
Motorola REDCAP2 Interface Timing . . . . . . . . . . . . . . . . .
Motorola DragonBall Interface Timing with DTACK
(e.g. MC68EZ328/MC68VZ328) . . . . . . . . . . . . . . . . . . . .
6.2.9 Motorola DragonBall Interface Timing w/o DTACK
(e.g. MC68EZ328/MC68VZ328) . . . . . . . . . . . . . . . . . . . .
6.2.10 Indirect Interface Timing (Mode 68) . . . . . . . . . . . . . . . . . .
6.2.11 Indirect Interface Timing (Mode 80) . . . . . . . . . . . . . . . . . .
6.3 LCD Power Sequencing . . . . . . . . . . . . . . . . . . . . .
6.3.1 Passive/TFT Power-On Sequence . . . . . . . . . . . . . . . . . . . .
6.3.2 Passive/TFT Power-Off Sequence . . . . . . . . . . . . . . . . . . . .
6.4 Display Interface . . . . . . . . . . . . . . . . . . . . . . . .
6.4.1 Generic STN Panel Timing . . . . . . . . . . . . . . . . . . . . . . .
6.4.2 Single Monochrome 4-Bit Panel Timing . . . . . . . . . . . . . . . .
6.4.3 Single Monochrome 8-Bit Panel Timing . . . . . . . . . . . . . . . .
6.4.4 Single Color 4-Bit Panel Timing . . . . . . . . . . . . . . . . . . . .
6.4.5 Single Color 8-Bit Panel Timing (Format 1) . . . . . . . . . . . . . .
6.4.6 Single Color 8-Bit Panel Timing (Format 2) . . . . . . . . . . . . . .
6.4.7 Single Color 16-Bit Panel Timing . . . . . . . . . . . . . . . . . . . .
6.4.8 Generic TFT Panel Timing . . . . . . . . . . . . . . . . . . . . . . .
6.4.9 9/12/18-Bit TFT Panel Timing . . . . . . . . . . . . . . . . . . . . .
6.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx)
6.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01) .
6.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR) . . . . . . . . .
6.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR) . . . . . . . . .
6.4.14 TFT Type 2 Panel Timing . . . . . . . . . . . . . . . . . . . . . . . .
6.4.15 TFT Type 3 Panel Timing . . . . . . . . . . . . . . . . . . . . . . . .
6.4.16 TFT Type 4 Panel Timing . . . . . . . . . . . . . . . . . . . . . . . .

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

. . .
. . .
. . .
. .
. . .
. . .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .

7

Clocks . . . . . . . . . . .
7.1 Clock Descriptions . .
7.1.1 BCLK . . . . . .
7.1.2 MCLK . . . . . .
7.1.3 PCLK . . . . . .
7.1.4 PWMCLK . . . .
7.2 Clock Selection . . .
7.3 Clocks versus Functions

.
.
.
.
.
.
.
.

. . . . . .
. . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . .
. . . . .

.
.
.
.
.
.
.
.

. . .
. .
. . .
. . .
. . .
. . .
. .
. .

. . . .
. . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . .
. . . .

. . .
. .
. . .
. . .
. . .
. . .
. .
. .

.
.
.
.
.
.
.
.

. . . . . .
. . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . .
. . . . .

.
.
.
.
.
.
.
.

. . . . . 112
. . . . 112
. . . . . .112
. . . . . .112
. . . . . .113
. . . . . .115
. . . . 116
. . . . 117

8

Registers . . . . . . . .
8.1 Register Mapping .
8.2 Register Set . . . .
8.3 Register Descriptions

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

. .
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

S1D13708
X39A-A-001-02

.
.
.
.

.
.
.
.

. .
.
.
.

.
.
.
.

.
.
.
.

. .
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

. .
.
.
.

.
.
.
.

.
.
.
.

. . . . . . . 54
. . . . . . . 56
. . . . . . . 58

. .
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.

. . 60
. . 62
. . 64
. .66
. . 66
. . 67
. .68
. . 70
. . 72
. . 74
. . 76
. . 78
. . 80
. . 82
. . 84
. . 85
. . 88
. . 92
. . 94
. . 98
. .102
. .105
. .109

. 118
. 118
. 119
. 121

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 5

8.3.1
8.3.2
8.3.3
8.3.4
8.3.5
8.3.6
8.3.7
8.3.8
8.3.9

Read-Only Configuration Registers . . . . . . . . . . . . . . . . .
Clock Configuration Registers . . . . . . . . . . . . . . . . . . .
Look-Up Table Registers . . . . . . . . . . . . . . . . . . . . . .
Panel Configuration Registers . . . . . . . . . . . . . . . . . . . .
Display Mode Registers . . . . . . . . . . . . . . . . . . . . . . .
Picture-in-Picture Plus Registers . . . . . . . . . . . . . . . . . .
Miscellaneous Registers . . . . . . . . . . . . . . . . . . . . . . .
General IO Pins Registers . . . . . . . . . . . . . . . . . . . . . .
Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV)
Pulse Configuration Registers . . . . . . . . . . . . . . . . . . . .
8.3.10 Extended Registers . . . . . . . . . . . . . . . . . . . . . . . . .
9

Frame Rate Calculation

10 Display Data Formats

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

. 121
. 122
123
. 126
. 133
. 138
. 143
. 145

. . . . . . . . . 150
. . . . . . . . . 154

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 172

11 Look-Up Table Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
11.1 Monochrome Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
11.2 Color Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
12 SwivelView™ . . . . . . . . . . . .
12.1 Concept . . . . . . . . . . .
12.2 90° SwivelView™ . . . . . .
12.2.1 Register Programming . . .
12.3 180° SwivelView™ . . . . . .
12.3.1 Register Programming . . .
12.4 270° SwivelView™ . . . . . .
12.4.1 Register Programming . . .

.
.
.
.
.
.
.
.

. . .
. .
. .
. . .
. .
. . .
. .
. . .

. . . .
. . . .
. . . .
. . . . .
. . . .
. . . . .
. . . .
. . . . .

. . .
. .
. .
. . .
. .
. . .
. .
. . .

.
.
.
.
.
.
.
.

. . . . . .
. . . . .
. . . . .
. . . . . . .
. . . . .
. . . . . . .
. . . . .
. . . . . . .

.
.
.
.
.
.
.
.

. . .
. .
. .
. . .
. .
. . .
. .
. . .

13 Picture-in-Picture Plus (PIP+)
13.1 Concept . . . . . . . .
13.2 With SwivelView Enabled
13.2.1 SwivelView 90° . . .
13.2.2 SwivelView 180° . .
13.2.3 SwivelView 270° . .

.
.
.
.
.
.

. . .
. .
. .
. . .
. . .
. . .

. . . .
. . . .
. . . .
. . . . .
. . . . .
. . . . .

. . .
. .
. .
. . .
. . .
. . .

.
.
.
.
.
.

. . . . . .
. . . . .
. . . . .
. . . . . . .
. . . . . . .
. . . . . . .

.
.
.
.
.
.

. . . . . . . 184
. . . . . . 184
. . . . . . 185
. . . . . . . . 185
. . . . . . . . 185
. . . . . . . . 186

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

. .
. .
. .
. .

.
.
.
.

.
.
.
.

. .
.
.
.

. . .
. . .
. . .
. . . .
. . . .
. . . .

14 Ink Layer . . . . . . . . .
14.1 Memory Mapping . . .
14.2 Controlling the Ink Layer
14.3 Limitations . . . . .

.
.
.
.

. . .
. .
. .
. .

15 Indirect Interface
15.1 Mode 68 . .
15.2 Mode 80 . .
15.3 Limitations .

.
.
.
.

. .
.
.
.

Hardware Functional Specification
Issue Date: 02/03/07

. .
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

. . . . 179
. . . . 179
. . . . 179
. . . . . 180
. . . . 181
. . . . . 181
. . . . 182
. . . . . 183

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

. 187
. 187
. 187
. 188

. .
. .
. .
. .

.
.
.
.

.
.
.
.

. .
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. .
.
.
.

.
.
.
.

.
.
.
.

. 189
. 190
. 200
. 209

.
.
.
.

.
.
.
.

S1D13708
X39A-A-001-02

Page 6

Epson Research and Development
Vancouver Design Center

16 Embedded Crystal Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
16.1 Oscillator Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 210
17 Big-Endian Bus Interface . . . . . . .
17.1 Byte Swapping Bus Data . . . . . .
17.1.1 16 Bpp Color Depth . . . . . . .
17.1.2 1/2/4/8 Bpp Color Depth . . . .
18 Power Save Mode

.
.
.
.

. . .
. .
. . .
. . .

. . . .
. . . .
. . . . .
. . . . .

. . .
. .
. . .
. . .

.
.
.
.

. . . . . .
. . . . .
. . . . . . .
. . . . . . .

.
.
.
.

. . .
. .
. . .
. . .

. . 211
. . 211
. . .212
. . .213

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 214

19 Mechanical Data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 215
20 References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 216
21 Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 217

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 7

List of Tables
Table 4-1: PFBGA 120-pin Mapping . . . . . . . . . . . . . . . . . . . . . . .
Table 4-2: S1D13708 Pad Layout . . . . . . . . . . . . . . . . . . . . . . . . .
Table 4-3: Host Interface Pin Descriptions . . . . . . . . . . . . . . . . . . . .
Table 4-4: LCD Interface Pin Descriptions . . . . . . . . . . . . . . . . . . . .
Table 4-5: Clock Input Pin Descriptions. . . . . . . . . . . . . . . . . . . . . .
Table 4-6: Miscellaneous Pin Descriptions . . . . . . . . . . . . . . . . . . . .
Table 4-7: Power And Ground Pin Descriptions . . . . . . . . . . . . . . . . .
Table 4-8: Summary of Power-On/Reset Options . . . . . . . . . . . . . . . . .
Table 4-9: Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . .
Table 4-10: LCD Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . .
Table 5-1: Absolute Maximum Ratings (Preliminary - Subject to Change). . . .
Table 5-2: Recommended Operating Conditions . . . . . . . . . . . . . . . . .
Table 5-3: Electrical Characteristics for VDD = 3.3V typical . . . . . . . . . . .
Table 6-1: Clock Input Requirements for CLKI when CLKI to BCLK divide > 1
Table 6-2: Clock Input Requirements for CLKI when CLKI to BCLK divide = 1
Table 6-3: Clock Input Requirements for CLKI2 . . . . . . . . . . . . . . . . .
Table 6-4: Internal Clock Requirements . . . . . . . . . . . . . . . . . . . . . .
Table 6-5: Generic #1 Interface Timing . . . . . . . . . . . . . . . . . . . . . .
Table 6-6: Generic #2 Interface Timing . . . . . . . . . . . . . . . . . . . . . .
Table 6-7: Hitachi SH-4 Interface Timing . . . . . . . . . . . . . . . . . . . . .
Table 6-8: Hitachi SH-3 Interface Timing . . . . . . . . . . . . . . . . . . . . .
Table 6-9: Motorola MC68K #1 Interface Timing . . . . . . . . . . . . . . . .
Table 6-10: Motorola MC68K #2 Interface Timing . . . . . . . . . . . . . . . .
Table 6-11: Motorola REDCAP2 Interface Timing. . . . . . . . . . . . . . . . .
Table 6-12: Motorola DragonBall Interface with DTACK Timing . . . . . . . . .
Table 6-13: Motorola DragonBall Interface without DTACK Timing . . . . . . .
Table 6-14: Indirect Interface Timing (Mode 68) . . . . . . . . . . . . . . . . . .
Table 6-15: Indirect Interface Timing (Mode 80) . . . . . . . . . . . . . . . . . .
Table 6-16: Passive/TFT Power-On Sequence Timing . . . . . . . . . . . . . . .
Table 6-17: Passive/TFT Power-Off Sequence Timing . . . . . . . . . . . . . . .
Table 6-18: Panel Timing Parameter Definition and Register Summary . . . . . .
Table 6-19: Single Monochrome 4-Bit Panel A.C. Timing . . . . . . . . . . . . .
Table 6-20: Single Monochrome 8-Bit Panel A.C. Timing . . . . . . . . . . . . .
Table 6-21: Single Color 4-Bit Panel A.C. Timing . . . . . . . . . . . . . . . . .
Table 6-22: Single Color 8-Bit Panel A.C. Timing (Format 1) . . . . . . . . . . .
Table 6-23: Single Color 8-Bit Panel A.C. Timing (Format 2) . . . . . . . . . . .
Table 6-24: Single Color 16-Bit Panel A.C. Timing . . . . . . . . . . . . . . . .

Hardware Functional Specification
Issue Date: 02/03/07

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

27
28
29
34
37
37
37
38
39
40
41
41
41
42
43
43
43
45
47
49
51
53
55
57
59
61
63
65
66
67
69
73
75
77
79
81
83

S1D13708
X39A-A-001-02

Page 8

Table 6-25: TFT A.C. Timing . . . . . . . . . . . . . . . . . . . . . .
Table 6-26: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timing . . .
Table 6-27: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing .
Table 6-28: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing
Table 6-29: 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timing .
Table 6-30: 160x240 Epson D-TFD Panel Horizontal Timing . . . . .
Table 6-31: 160x240 Epson D-TFD Panel GCP Horizontal Timing . .
Table 6-32: 160x240 Epson D-TFD Panel Vertical Timing . . . . . .
Table 6-33: 320x240 Epson D-TFD Panel Horizontal Timing . . . . .
Table 6-34: 320x240 Epson D-TFD Panel GCP Horizontal Timing . .
Table 6-35: 320x240 Epson D-TFD Panel Vertical Timing . . . . . .
Table 6-36: TFT Type 2 Horizontal Timing. . . . . . . . . . . . . . .
Table 6-37: TFT Type 2 Vertical Timing . . . . . . . . . . . . . . . .
Table 6-38: TFT Type 3 Horizontal Timing. . . . . . . . . . . . . . .
Table 6-39: TFT Type 3 Vertical Timing . . . . . . . . . . . . . . . .
Table 6-40: TFT Type 4 A.C. Timing . . . . . . . . . . . . . . . . . .
Table 7-1: BCLK Clock Selection . . . . . . . . . . . . . . . . . . .
Table 7-2: MCLK Clock Selection. . . . . . . . . . . . . . . . . . .
Table 7-3: PCLK Clock Selection . . . . . . . . . . . . . . . . . . .
Table 7-4: Relationship between MCLK and PCLK. . . . . . . . . .
Table 7-5: PWMCLK Clock Selection. . . . . . . . . . . . . . . . .
Table 7-6: S1D13708 Internal Clock Requirements . . . . . . . . . .
Table 8-1: S1D13708 Register Set . . . . . . . . . . . . . . . . . . .
Table 8-2: MCLK Divide Selection . . . . . . . . . . . . . . . . . .
Table 8-3: PCLK Divide Selection. . . . . . . . . . . . . . . . . . .
Table 8-4: PCLK Source Selection. . . . . . . . . . . . . . . . . . .
Table 8-5: Panel Data Width Selection . . . . . . . . . . . . . . . .
Table 8-6: HRTFT/D-TFD Panel Resolution Selection . . . . . . . .
Table 8-7: LCD Panel Type Selection . . . . . . . . . . . . . . . . .
Table 8-8: Inverse Video Mode Select Options . . . . . . . . . . . .
Table 8-9: LCD Bit-per-pixel Selection . . . . . . . . . . . . . . . .
Table 8-10: SwivelViewTM Mode Select Options . . . . . . . . . . .
Table 8-11: 32-bit Address Increments for Color Depth . . . . . . . .
Table 8-12: 32-bit Address Increments for Color Depth . . . . . . . .
Table 8-13: 32-bit Address Increments for Color Depth . . . . . . . .
Table 8-14: 32-bit Address Increments for Color Depth . . . . . . . .
Table 8-15: PWM Clock Control . . . . . . . . . . . . . . . . . . . .
Table 8-16: CV Pulse Control . . . . . . . . . . . . . . . . . . . . . .
Table 8-17: PWM Clock Divide Select Options . . . . . . . . . . . .
Table 8-18: CV Pulse Divide Select Options . . . . . . . . . . . . . .

S1D13708
X39A-A-001-02

Epson Research and Development
Vancouver Design Center

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

. 87
. 89
. 91
. 93
. 93
. 95
. 96
. 97
. 99
.100
.101
.103
.104
.106
.108
.111
.112
.113
.113
.115
.115
.117
.119
.122
.122
.123
.126
.126
.127
.134
.135
.136
.139
.140
.141
.142
.150
.151
.152
.152

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Table 8-19: PWMOUT Duty Cycle Select Options.
Table 8-20: Extended Panel Type Selection . . . .
Table 8-21: VCLK Hold . . . . . . . . . . . . . .
Table 8-22: VCLK Setup . . . . . . . . . . . . . .
Table 8-23: AP Pulse Width. . . . . . . . . . . . .
Table 8-24: AP Rising Position . . . . . . . . . . .
Table 8-25: GPO2 PCLK2 Divide Rate . . . . . . .
Table 8-26: GPO1 PCLK1 Divide Rate . . . . . . .
Table 8-27: Number of Source Driver ICs . . . . .
Table 18-1: Power Save Mode Function Summary .

Hardware Functional Specification
Issue Date: 02/03/07

Page 9

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

. 153
. 155
. 159
. 159
. 160
. 160
. 164
. 164
. 170
. 214

S1D13708
X39A-A-001-02

Page 10

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 11

List of Figures
Figure 3-1
Figure 3-2
Figure 3-3
Figure 3-4
Figure 3-5
Figure 3-6
Figure 3-7
Figure 3-8
Figure 3-9
Figure 3-10
Figure 4-1
Figure 6-1
Figure 6-2
Figure 6-3
Figure 6-4
Figure 6-5
Figure 6-6
Figure 6-7
Figure 6-8
Figure 6-9
Figure 6-10
Figure 6-11
Figure 6-12
Figure 6-13
Figure 6-14
Figure 6-15
Figure 6-16
Figure 6-17
Figure 6-18
Figure 6-19
Figure 6-20
Figure 6-21
Figure 6-22
Figure 6-23
Figure 6-24
Figure 6-25
Figure 6-26

Typical System Diagram (Generic #1 Bus) . . . . . . . . . . . . . . . . . . . . . .
Typical System Diagram (Generic #2 Bus) . . . . . . . . . . . . . . . . . . . . . .
Typical System Diagram (Hitachi SH-4 Bus) . . . . . . . . . . . . . . . . . . . . .
Typical System Diagram (Hitachi SH-3 Bus) . . . . . . . . . . . . . . . . . . . . .
Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000) . . . . . . . . . . .
Typical System Diagram (MC68K #2, Motorola 32-Bit 68030) . . . . . . . . . . . .
Typical System Diagram (Motorola REDCAP2 Bus) . . . . . . . . . . . . . . . . .
Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus) .
Typical System Diagram (Indirect Interface, Mode 68) . . . . . . . . . . . . . . . .
Typical System Diagram (Indirect Interface, Mode 80) . . . . . . . . . . . . . . . .
Pinout Diagram - PFBGA 120-pin . . . . . . . . . . . . . . . . . . . . . . . . . . .
Clock Input Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Generic #1 Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Generic #2 Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Hitachi SH-4 Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Hitachi SH-3 Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Motorola MC68K #1 Interface Timing. . . . . . . . . . . . . . . . . . . . . . . . .
Motorola MC68K #2 Interface Timing. . . . . . . . . . . . . . . . . . . . . . . . .
Motorola REDCAP2 Interface Timing . . . . . . . . . . . . . . . . . . . . . . . . .
Motorola DragonBall Interface with DTACK Timing . . . . . . . . . . . . . . . . .
Motorola DragonBall Interface without DTACK# Timing . . . . . . . . . . . . . .
Indirect Interface Timing (Mode 68) . . . . . . . . . . . . . . . . . . . . . . . . . .
Indirect Interface Timing (Mode 80) . . . . . . . . . . . . . . . . . . . . . . . . . .
Passive/TFT Power-On Sequence Timing . . . . . . . . . . . . . . . . . . . . . . .
Passive/TFT Power-Off Sequence Timing . . . . . . . . . . . . . . . . . . . . . . .
Panel Timing Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Generic STN Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Single Monochrome 4-Bit Panel Timing . . . . . . . . . . . . . . . . . . . . . . . .
Single Monochrome 4-Bit Panel A.C. Timing . . . . . . . . . . . . . . . . . . . . .
Single Monochrome 8-Bit Panel Timing . . . . . . . . . . . . . . . . . . . . . . . .
Single Monochrome 8-Bit Panel A.C. Timing . . . . . . . . . . . . . . . . . . . . .
Single Color 4-Bit Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Single Color 4-Bit Panel A.C. Timing . . . . . . . . . . . . . . . . . . . . . . . . .
Single Color 8-Bit Panel Timing (Format 1) . . . . . . . . . . . . . . . . . . . . . .
Single Color 8-Bit Panel A.C. Timing (Format 1) . . . . . . . . . . . . . . . . . . .
Single Color 8-Bit Panel Timing (Format 2) . . . . . . . . . . . . . . . . . . . . . .
Single Color 8-Bit Panel A.C. Timing (Format 2) . . . . . . . . . . . . . . . . . . .

Hardware Functional Specification
Issue Date: 02/03/07

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

. 19
. 19
. 20
. 21
. 22
. 23
. 24
. 25
. 25
. 26
. 27
. 42
. 44
. 46
. 48
. 50
. 52
. 54
. 56
. 58
. 60
. 62
. 64
. 66
. 67
. 68
. 70
. 72
. 73
. 74
. 75
. 76
. 77
. 78
. 79
. 80
. 81

S1D13708
X39A-A-001-02

Page 12

Figure 6-27
Figure 6-28
Figure 6-29
Figure 6-30
Figure 6-31
Figure 6-32
Figure 6-33
Figure 6-34
Figure 6-35
Figure 6-36
Figure 6-37
Figure 6-38
Figure 6-39
Figure 6-40
Figure 6-41
Figure 6-42
Figure 6-43
Figure 6-44
Figure 6-45
Figure 6-46
Figure 6-47
Figure 7-1
Figure 8-1
Figure 8-2
Figure 10-1
Figure 11-1
Figure 11-2
Figure 11-3
Figure 11-4
Figure 11-5
Figure 11-6
Figure 11-7
Figure 11-8
Figure 12-1
Figure 12-2
Figure 12-3
Figure 13-1
Figure 13-2
Figure 13-3
Figure 13-4

S1D13708
X39A-A-001-02

Epson Research and Development
Vancouver Design Center

Single Color 16-Bit Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . .82
Single Color 16-Bit Panel A.C. Timing. . . . . . . . . . . . . . . . . . . . . . . . . . .83
Generic TFT Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .84
18-Bit TFT Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .85
TFT A.C. Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .86
160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing . . . . . . . . . . . . . . . .88
160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing. . . . . . . . . . . . . . . . . .90
320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing . . . . . . . . . . . . . . . .92
320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timing. . . . . . . . . . . . . . . . . .93
160x240 Epson D-TFD Panel Horizontal Timing . . . . . . . . . . . . . . . . . . . . .94
160x240 Epson D-TFD Panel GCP Horizontal Timing . . . . . . . . . . . . . . . . . .96
160x240 Epson D-TFD Panel Vertical Timing . . . . . . . . . . . . . . . . . . . . . . .97
320x240 Epson D-TFD Panel Horizontal Timing . . . . . . . . . . . . . . . . . . . . .98
320x240 Epson D-TFD Panel GCP Horizontal Timing . . . . . . . . . . . . . . . . . 100
320x240 Epson D-TFD Panel Vertical Timing . . . . . . . . . . . . . . . . . . . . . . 101
TFT Type 2 Horizontal Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
TFT Type 2 Vertical Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
TFT Type 3 Horizontal Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
TFT Type 3 Vertical Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
TFT Type 4 Panel Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
TFT Type 4 A.C. Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Clock Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Display Data Byte/Word Swap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 136
PWM Clock/CV Pulse Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 150
4/8/16 Bit-Per-Pixel Display Data Memory Organization . . . . . . . . . . . . . . . . 172
1 Bit-per-pixel Monochrome Mode Data Output Path . . . . . . . . . . . . . . . . . . 173
2 Bit-per-pixel Monochrome Mode Data Output Path . . . . . . . . . . . . . . . . . . 173
4 Bit-per-pixel Monochrome Mode Data Output Path . . . . . . . . . . . . . . . . . . 174
8 Bit-per-pixel Monochrome Mode Data Output Path . . . . . . . . . . . . . . . . . . 174
1 Bit-Per-Pixel Color Mode Data Output Path . . . . . . . . . . . . . . . . . . . . . . 175
2 Bit-Per-Pixel Color Mode Data Output Path . . . . . . . . . . . . . . . . . . . . . . 176
4 Bit-Per-Pixel Color Mode Data Output Path . . . . . . . . . . . . . . . . . . . . . . 177
8 Bit-per-pixel Color Mode Data Output Path . . . . . . . . . . . . . . . . . . . . . . 178
Relationship Between The Screen Image and the Image Refreshed in 90× SwivelView. 179
Relationship Between The Screen Image and the Image Refreshed in 180× SwivelView.181
Relationship Between The Screen Image and the Image Refreshed in 270× SwivelView.182
Picture-in-Picture Plus with SwivelView disabled . . . . . . . . . . . . . . . . . . . . 184
Picture-in-Picture Plus with SwivelView 90° enabled . . . . . . . . . . . . . . . . . . 185
Picture-in-Picture Plus with SwivelView 180° enabled . . . . . . . . . . . . . . . . . 185
Picture-in-Picture Plus with SwivelView 270° enabled . . . . . . . . . . . . . . . . . 186

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 13

Figure 14-1 Memory Mapping for Ink Layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Figure 14-2 Transparent Color Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Figure 15-1 Sample timing of “register write” with Mode 68 . . . . . . . . . . . . . . . . . . . . .
Figure 15-2 Sample timing of “register read” with Mode 68 . . . . . . . . . . . . . . . . . . . . .
Figure 15-3 Sample timing of “memory write” with Mode 68, Big Endian . . . . . . . . . . . . .
Figure 15-4 Sample timing of “memory read” with Mode 68, Big Endian . . . . . . . . . . . . . .
Figure 15-5 Sample timing of “register write” for Mode 68 when Memory Access Select Enabled .
Figure 15-6 Sample timing of “register read” for Mode 68 when Memory Access Select Enabled .
Figure 15-7 Sample timing of “register write” with Mode 80 . . . . . . . . . . . . . . . . . . . . .
Figure 15-8 Sample timing of “register read” with Mode 80 . . . . . . . . . . . . . . . . . . . . .
Figure 15-9 Sample timing of “memory write” with mode 80, little endian . . . . . . . . . . . . .
Figure 15-10 Sample timing of “memory read” with mode 80, Little endian . . . . . . . . . . . . .
Figure 15-11 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabled
Figure 15-12 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabled .
Figure 16-1 Recommended Crystal Oscillator Circuit . . . . . . . . . . . . . . . . . . . . . . . .
Figure 17-1 Byte-swapping for 16 Bpp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Figure 17-2 Byte-swapping for 1/2/4/8 Bpp . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Figure 19-1 Mechanical Data PFBGA 120-pin Package . . . . . . . . . . . . . . . . . . . . . . .

Hardware Functional Specification
Issue Date: 02/03/07

187
188
190
191
192
194
196
198
200
201
202
204
206
208
210
212
213
215

S1D13708
X39A-A-001-02

Page 14

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 15

1 Introduction
1.1 Scope
This is the Hardware Functional Specification for the S1D13708 Embedded Memory LCD
Controller. Included in this document are timing diagrams, AC and DC characteristics,
register descriptions, and power management descriptions. This document is intended for
two audiences: Video Subsystem Designers and Software Developers.
For additional documentation related to the S1D13708 see Section 20, “References” on
page 217.
This document is updated as appropriate. Please check the Epson Research and
Development Website at www.erd.epson.com for the latest revision of this document
before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

1.2 Overview Description
The S1D13708 is a color/monochrome LCD graphics controller with an embedded 80K
byte SRAM display buffer. While supporting all other panel types, the S1D13708 also
directly interfaces to a variety of TFT products, thus removing the requirement of an
external Timing Control IC. This high level of integration provides a low cost, low power,
single chip solution to meet the demands of embedded markets such as Mobile Communications devices, and Palm-size PCs where board size and battery life are major concerns.
The S1D13708 utilizes a guaranteed low-latency CPU architecture providing support for
microprocessors without READY/WAIT# handshaking signals. The 32-bit internal data
path provides high performance bandwidth into display memory allowing for fast screen
updates.
Products requiring a rotated display image can take advantage of the SwivelView TM feature
which provides hardware rotation of the display memory transparent to the software application. The S1D13708 also provides support for Virtual screen sizes and Picture-in-Picture
Plus (variable size Overlay window).
The S1D13708’s impartiality to CPU type or operating system makes it an ideal display
solution for a wide variety of applications.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 16

Epson Research and Development
Vancouver Design Center

2 Features
2.1 Integrated Frame Buffer
• Embedded 80K byte SRAM display buffer.

2.2 CPU Interface
• Direct support of the following interfaces:
Generic MPU bus interface using WAIT# signal.
Hitachi SH-3.
Hitachi SH-4.
Motorola M68K.
Motorola MC68EZ328/MC68VZ328 DragonBall.
Motorola “REDCAP2” - no WAIT# signal.
Indirect Interface (Mode 68/Mode 80).
• 8-bit processor support with “glue logic”.
• “Fixed” low-latency CPU access times.
• Registers are memory-mapped - M/R# input selects between memory and register
address space.
• The complete 80K byte display buffer is directly and contiguously available through the
17-bit address bus.
• Single level CPU write buffer.

2.3 Display Support
• 4/8-bit monochrome LCD interface.
• 4/8/16-bit color LCD interface.
• Single-panel, single-drive passive displays.
• 9/12/18-bit Active Matrix TFT interface.
• Direct support for 18-bit Epson D-TFD interface.
• Direct support for 18-bit Sharp HR-TFT interface.
• Direct support for 18-bit Type 2, 3, and 4 TFT interfaces.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 17

2.4 Display Modes
• 1/2/4/8/16 bit-per-pixel (bpp) color depths.
• Up to 64 gray shades on monochrome passive LCD panels or 262144 colors on color
passive LCD panels using Frame Rate Modulation (FRM) and dithering.
• Up to 64 gray shades or 262144 colors on active matrix LCD panels.
• Up to 64 gray shades or 256 colors can be simultaneously displayed in 8 bpp mode.
• Up to 64 gray shades or 65536 colors can be simultaneously displayed in 16 bpp mode.
• Example resolutions:
320x240 at a color depth of 8 bpp
160x160 at a color depth of 16 bpp
160x240 at a color depth of 16 bpp
• Example resolutions with Ink Layer enabled.
640x240 at a color depth of 2 bpp
320x240 at a color depth of 4 bpp
160x120 at a color depth of 16 bpp

2.5 Display Features
• SwivelView™: 90°, 180°, 270° counter-clockwise hardware rotation of display image.
• Virtual display support: displays images larger than the panel size through the use of
panning and scrolling.
• Picture-in-Picture Plus: displays a variable size window overlaid over background
image.
• Ink Layer.
• Double Buffering/Multi-pages: provides smooth animation and instantaneous screen
updates.

2.6 Clock Source
• Three clock inputs: CLKI, CLKI2 and XTAL. It is possible to use one clock input only.
• Bus clock can be internally divided by 2, 3, or 4.
• Memory clock is derived from bus clock, CLKI2 or XTAL (XTAL is only available
when configured for Indirect Interface). It can be internally divided by 2, 3, or 4.
• Pixel clock can be derived from CLKI, CLKI2, XTAL, bus clock, or memory clock. It
can be internally divided by 2, 3, 4, or 8.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 18

Epson Research and Development
Vancouver Design Center

2.7 Operating Voltage
• CORE VDD 1.62 to 1.98 volts.
• IO VDD 3.0 to 3.6 volts.

2.8 Miscellaneous
• Hardware/Software Video Invert.
• Software Power Save mode.
• General Purpose Input/Output pins are available.
• BCLK can be switched off while still maintaining LCD refresh, offering power savings.
• 120-pin PFBGA package (also available in die form).
• 12MHz maximum crystal oscillator (XTAL) available for Indirect Interface.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 19

3 Typical System Implementation Diagrams
.

Oscillator

Generic #1
BUS

BS#
A[27:17]

FPDAT[15:0]

M/R#

Decoder

FPFRAME
CS#

CS#

FPLINE

A[16:0]

AB[16:0]

FPSHIFT

D[15:0]

DB[15:0]

DRDY

WE0#

WE0#

WE1#

WE1#

RD0#

RD#

RD1#

RD/WR#

WAIT#

S1D13708

16-bit
Single
FPFRAME LCD
Display
D[15:0]

FPLINE
FPSHIFT
MOD

Bias Power

CLKI2

IO VDD

GPO0

WAIT#

BUSCLK

CLKI

RESET#

RESET#

Figure 3-1 Typical System Diagram (Generic #1 Bus)
.

IO VDD
BS#
RD/WR#

A[27:17]

Decoder

CS#

FPDAT[8:0]

M/R#

FPFRAME

CS#

FPLINE

A[16:0]

AB[16:0]

FPSHIFT

D[15:0]

DB[15:0]

DRDY

WE#

WE0#

BHE#

WE1#

RD#

WAIT#

S1D13708

D[8:0]
FPFRAME

FPLINE
FPSHIFT
DRDY

9-bit
TFT
Display
Bias Power

Generic #2
BUS

CLKI2

Oscillator

GPO0

RD#

WAIT#

BUSCLK

CLKI

RESET#

RESET#

Figure 3-2 Typical System Diagram (Generic #2 Bus)

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 20

Epson Research and Development
Vancouver Design Center

.

Oscillator

Decoder

M/R#

FPDAT15
FPDAT12

CSn#
A[16:0]
D[15:0]
WE0#
WE1#
BS#
RD/WR#
RD#

FPFRAME

AB[16:0]

FPLINE

DB[15:0]

FPSHIFT

WE0#
WE1#
BS#
RD/WR#

DRDY

S1D13708

12-bit
TFT
Display

D[9:0]
FPFRAME
FPLINE
FPSHIFT
DRDY

GPO0

RD#

RDY#

WAIT#

CKIO

CLKI

RESET#

FPDAT[9:0]

CS#

D11
D10

Bias Power

A[25:17]

CLKI2

SH-4
BUS

RESET#

Figure 3-3 Typical System Diagram (Hitachi SH-4 Bus)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 21

.

Oscillator

Decoder

M/R#

FPDAT[17:0]
CSn#
A[16:0]

AB[16:0]

D[15:0]

DB[15:0]

WE0#
WE1#
BS#
RD/WR#
RD#

WAIT#

CKIO
RESET#

FPFRAME

CS#

FPLINE
FPSHIFT

WE0#
WE1#
BS#
RD/WR#

DRDY

S1D13708

D[17:0]
FPFRAME

FPLINE
FPSHIFT
DRDY

18-bit
TFT
Display

Bias Power

A[25:17]

CLKI2

SH-3
BUS

GPO0

RD#

WAIT#

CLKI
RESET#

Figure 3-4 Typical System Diagram (Hitachi SH-3 Bus)

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 22

Epson Research and Development
Vancouver Design Center

.

IO VDD
RD#
WE0#

A[23:17]
FC0, FC1

Decoder

FPDAT[17:0]

D[17:0]
SPS

FPFRAME
FPLINE

M/R#

LP

FPSHIFT
Decoder

CS#

A[16:1]

AB[16:1]

D[15:0]

DB[15:0]

LDS#

AB0

UDS#

WE1#

AS#
R/W#
DTACK#

CLK
RESET#

S1D13708

18-bit
HR-TFT
Display

CLK

GPIO0

PS

GPIO1

CLS

GPIO2

REV

GPIO3

SPL

Bias Power

MC68K #1
BUS

CLKI2

Oscillator

GPO0

BS#
RD/WR#
WAIT#

CLKI
RESET#

Figure 3-5 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 23

.

Oscillator

Decoder

Decoder

M/R#

FPDAT[17:0]
FPFRAME
FPLINE

CS#

FPSHIFT
A[16:0]

AB[16:0]

D[31:16]

DB[15:0]

DRDY

D[17:0]
DY
LP
XSCL
GCP

GPIO0

XINH

GPIO1

YSCL

DS#

WE1#

GPIO2

FR

AS#

BS#

GPIO3

FRS

GPIO4

RES

R/W#

RD/WR#

S1D13708

SIZ1

RD#

GPIO5

DD_P1

SIZ0

WE0#

GPIO6

YSCLD

DSACK1#

WAIT#

CLK

CLKI

RESET#

18-bit
D-TFD
Display

XSET (Bias Power)

A[31:17]
FC0, FC1

CLKI2

MC68K #2
BUS

GPO0

RESET#

Figure 3-6 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030)

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 24

Epson Research and Development
Vancouver Design Center

.

Oscillator

REDCAP2
BUS
Decoder

CSn

M/R#

FPDAT[7:4]

CS#

A[16:0]

AB[16:0]

D[15:0]

DB[15:0]

D[3:0]
FPSHIFT

FPSHIFT
FPFRAME

FPFRAME

FPLINE

FPLINE

DRDY
R/W

RD/WR#

OE

S1D13708

4-bit
Single
LCD
Display

MOD

Bias Power

BS#
A[21:17]

CLKI2

IO VDD

GPO0

RD#

EB1

WE0#

EB0

WE1#

CLK

CLKI

RESET_OUT

RESET#

*Note: CSn# can be any of CS0-CS4

Figure 3-7 Typical System Diagram (Motorola REDCAP2 Bus)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 25

.

IO VDD
BS#
RD/WR#

A[25:17]

FPDAT[7:0]
FPSHIFT

M/R#

Decoder

CSn

FPFRAME

CS#

A[16:0]

FPLINE

AB[16:0]

D[15:0]

DB[15:0]

LWE

WE0#

UWE

WE1#

OE

DRDY

S1D13708

D[7:0]
FPSHIFT

8-bit
Single
LCD
Display

FPFRAME

Bias Power

MC68EZ328/
MC68VZ328
DragonBall
BUS

CLKI2

Oscillator

FPLINE
MOD

GPO0

RD#
WAIT#

DTACK
CLKO

CLKI

RESET

RESET#

VSS

BS#

FPDAT[7:4]
FPSHIFT
FPFRAME
FPLINE

A[23:17]
FC0, FC1

Decoder

M/R#

A0
D[15:0]

DRDY

CS#

S1D13708

D[3:0]
FPSHIFT

4-bit
Single
LCD
Display

FPFRAME
FPLINE
MOD

Bias Power

AB[16:0]
RD#

XTAL1

Indirect
Interface
Mode 68

XTAL0

Figure 3-8 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus)

GPO0

DB[15:0]

EBL

WE0#

EBU

WE1#

R/W#

RD/WR#

BUSCLK

CLKI

RESET#

RESET#

Figure 3-9 Typical System Diagram (Indirect Interface, Mode 68)

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 26

Epson Research and Development
Vancouver Design Center

Indirect
Interface
Mode 80

AB[16:0]

FPDAT[7:4]

D[3:0]
FPSHIFT

FPSHIFT

FPFRAME

FPFRAME
FPLINE
A[23:17]

A0

Decoder

M/R#

D[15:0]

DB[15:0]

RDL#

RD/WR#

RDU#
WRL#

WE0#

WRU#

WE1#

FPLINE

DRDY

CS#

S1D13708

4-bit
Single
LCD
Display

MOD

Bias Power

VSS

XTAL1

BS#

XTAL0

IO VDD

GPO0

RD#

BUSCLK

CLKI

RESET#

RESET#

Figure 3-10 Typical System Diagram (Indirect Interface, Mode 80)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 27

4 Pins
4.1 Pinout Diagram - PFBGA - 120pin

L
K
J
H
G
F
E
D
C
B
A

1

2

3

4

5

6

7

8

9

10 11

BOTTOM VIEW

Figure 4-1 Pinout Diagram - PFBGA 120-pin

Table 4-1: PFBGA 120-pin Mapping
L

COREVDD

IOVDD

AB6

AB2

DB7

DB4

DB0

WAIT#

FPLINE

GPIO5

IOVDD

K

AB7

AB5

AB4

AB3

COREVDD

DB3

M/R#

IOVDD

GPIO6

GPIO4

COREVDD

GPIO1

J

AB10

AB9

AB8

AB1

DB6

DB2

BS#

FPFRAME

H

AB14

AB13

AB11

AB0

DB5

DB1

RD#

COREVDD PWMOUT

G

XTAL0

IOVDD

AB15

AB12

VSS

VSS

VSS

GPO6

F

COREVDD

CLKI

XTAL1

AB16

VSS

VSS

GPIO2

GPIO3

GPIO0

DRDY

CLKI2

FPSHIFT

CVOUT

GPO2

GPO5

GPO7

IOVDD

E

DB11

DB10

DB8

VSS

VSS

VSS

VSS

CNF7

GPO1

GPO3

GPO4

D

DB15

DB14

DB12

DB9

FPDAT0

FPDAT6

FPDAT12

FPDAT16

CNF6

TESTEN

GPO0

C

WE0#

CS#

DB13

FPDAT1

FPDAT4

FPDAT7

IOVDD

FPDAT13

FPDAT17

CNF4

CNF5

B

COREVDD

WE1#

RD/WR#

FPDAT2

COREVDD

FPDAT8

FPDAT10

FPDAT14

CNF0

CNF2

CNF3

A

IOVDD

RESET#

IOVDD

FPDAT3

FPDAT5

FPDAT9

FPDAT11

FPDAT15

CNF1

COREVDD

IOVDD

1

2

3

4

5

6

7

8

9

10

11

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 28

Epson Research and Development
Vancouver Design Center

4.2 Pinout Diagram - Die Form

94

93

92

91

90

89

88

87

86

85

84

83

82

81

80

79

78

77

76

75

74

73

72

71

70

69

68

84

83

82

81

80

79

78

77

76

75

74

73

72

71

70

69

68

67

66

65

64

63

62

61

60

59

58

66

95
85

67

96
86

99

65

100

64

101

87

57

63

102

88

56

62

103

89

55

61

104

90

54

60

105

91

53

59

106

92

52

58

107

93

51

57

108

94

50

56

109

95

49

55

110

96

48

54

111

97

47

53

112

98

46

52

113

99

45

51

114

100

44

50

115

101

43

49

116

102

42

48

117

103

41

47

118

104

40

46

119

105

39

45

120

106

38

44

121

107

37

43

122

108

36

42

123

109

35

41

124

110

34

40

125

111

33

39

126

112

32

38

127

113

31

37

128

114

30

S1D13708

36

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

33

3
5

32

2

VSS
IOVDD
GPIO6
FPLINE
FPFRAME
*CUT
VSS
IOVDD
WAIT#
RD#
BS#
M/R#
DB0
DB1
DB2
DB3
DB4
DB5
DB6
DB7
VSS
COREVDD
AB0
AB1
AB2
AB3
AB4
AB5
AB6
AB7
VSS
COREVDD

COREVDD
VSS
RESET#
WE1#
WE0#
RD/WR#
CS#
VSS
DB15
DB14
DB13
DB12
DB11
DB10
DB9
DB8
COREVDD
CLKI
IOVDD
XTAL1
XTAL0
VSS
AB16
AB15
AB14
AB13
AB12
AB11
AB10
AB9
AB8
IOVDD
VSS

1

34

4

130

3

35

2

129

1

COREVDD
VSS
CNF2
CNF1
CNF0
FPDAT17
FPDAT16
FPDAT15
FPDAT14
FPDAT13
FPDAT12
FPDAT11
FPDAT10
IOVDD
VSS
FPDAT9
FPDAT8
FPDAT7
FPDAT6
FPDAT5
COREVDD
VSS
FPDAT4
FPDAT3
FPDAT2
FPDAT1
FPDAT0
IOVDD
VSS
*CUT
IOVDD
VSS

97

98

VSS
IOVDD
CNF3
CNF4
CNF5
CNF6
CNF7
TESTEN
GPO0
GPO1
GPO2
GPO3
GPO4
GPO5
GPO6
GPO7
VSS
CLKI2
IOVDD
FPSHIFT
VSS
COREVDD
CVOUT
PWMOUT
GPO0
GPIO0
GPIO1
GPIO2
GPIO3
GPIO4
GPIO5
VSS
COREVDD

Table 4-2: S1D13708 Pad Layout

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 29

4.3 Pin Descriptions
Key:
I
O
IO
P
PCLKI1
PIC
PICS
POC8
PBCC8
PBCC8C
Hi-Z
POSC1

=
=
=
=
=
=
=
=
=
=
=
=

Input
Output
Bi-Directional (Input/Output)
Power pin
CMOS/LVTTL schmitt input clock buffer
CMOS/LVTTL input buffer
CMOS/LVTTL input buffer with Schmitt input
CMOS/LVTTL 8mA low noise output buffer
CMOS/LVTTL bi-directional low noise buffer with 8mA CMOS output
CMOS/LVTTL high-speed bi-directional low noise buffer with 8mA CMOS output
High Impedance
Crystal oscillator IO cell

4.3.1 Host Interface
Table 4-3: Host Interface Pin Descriptions
Pin Name Type

PFBGA
Pin #

Cell

IO
RESET
Voltage # State

Description
This input pin has multiple functions.

AB0

I

H4

PIC

IOVDD

0

•
•
•
•
•
•
•
•
•

For Generic #1, this pin inputs system address bit 0 (A0).
For Generic #2, this pin inputs system address bit 0 (A0).
For SH-3/SH-4, this pin inputs system address bit 0 (A0).
For MC68K #1, this pin inputs the lower data strobe (LDS#).
For MC68K #2, this pin inputs system address bit 0 (A0).
For REDCAP2, this pin inputs system address bit 0 (A0).
For DragonBall, this pin inputs system address bit 0 (A0).
For Indirect (Mode 68), this pin is tied to VSS.
For Indirect (Mode 80), this pin is tied to VSS.

See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for
summary.
System address bus bits 16-1.

AB[16:1]

I

F4,G3,
G4,H1,
H2,H3,
J1,J2,
J3,J4,
K1,K2,
K3,K4,
L3,L4

Hardware Functional Specification
Issue Date: 02/03/07

PIC

IOVDD

0

•
•
•
•
•
•
•
•
•

For Generic #1, these pins input system address bits 16-1.
For Generic #2, these pins input system address bits 16-1.
For SH-3/SH-4, these pins input system address bits 16-1.
For MC68K #1, these pins input system address bits 16-1.
For MC68K #2, these pins input system address bits 16-1.
For REDCAP2, these pins input system address bits 16-1.
For DragonBall, these pins input system address bits 16-1.
For Indirect (Mode 68), these pins are tied to VSS.
For Indirect (Mode 80), these pins are tied to VSS.

S1D13708
X39A-A-001-02

Page 30

Epson Research and Development
Vancouver Design Center

Table 4-3: Host Interface Pin Descriptions
Pin Name Type

PFBGA
Pin #

Cell

IO
RESET
Voltage # State

Description
Input data from the system data bus.

DB[15:0]

IO

C3,D1,
D2,D3,
D4,E1,
E2,E3,
H5,H6,
J5,J6,
K6,L5,
L6,L7

•
•
•
•
•
PBCC8

IOVDD

Hi-Z
•
•
•
•

For Generic #1, these pins are connected to D[15:0].
For Generic #2, these pins are connected to D[15:0].
For SH-3/SH-4, these pins are connected to D[15:0].
For MC68K #1, these pins are connected to D[15:0].
For MC68K #2, these pins are connected to D[31:16] for a 32bit device (e.g. MC68030) or D[15:0] for a 16-bit device (e.g.
MC68340).
For REDCAP2, these pins are connected to D[15:0].
For DragonBall, these pins are connected to D[15:0].
For Indirect (Mode 68), these pins are connected to D[15:0].
For Indirect (Mode 80), these pins are connected to D[15:0].

Unused pins should be tied to VSS. See Table 4-9: “Host Bus
Interface Pin Mapping,” on page 39 for summary.
This input pin has multiple functions.

WE0#

I

C1

PIC

IOVDD

1

• For Generic #1, this pin inputs the write enable signal for the
lower data byte (WE0#).
• For Generic #2, this pin inputs the write enable signal (WE#)
• For SH-3/SH-4, this pin inputs the write enable signal for data
byte 0 (WE0#).
• For MC68K #1, this pin must be tied to IO VDD
• For MC68K #2, this pin inputs the bus size bit 0 (SIZ0).
• For REDCAP2, this pin inputs the byte enable signal for the
D[7:0] data byte (EB1).
• For DragonBall, this pin inputs the byte enable signal for the
D[7:0] data byte (LWE).
• For Indirect (Mode 68), this pin inputs the byte enable signal for
the D[7:0] data byte (EBL).
• For Indirect (Mode 80), this pin inputs the write enable signal for
data byte 0 (WRL#).
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for
summary.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 31

Table 4-3: Host Interface Pin Descriptions
Pin Name Type

PFBGA
Pin #

Cell

IO
RESET
Voltage # State

Description
This input pin has multiple functions.

WE1#

I

B2

PIC

IOVDD

1

• For Generic #1, this pin inputs the write enable signal for the
upper data byte (WE1#).
• For Generic #2, this pin inputs the byte enable signal for the
high data byte (BHE#).
• For SH-3/SH-4, this pin inputs the write enable signal for data
byte 1 (WE1#).
• For MC68K #1, this pin inputs the upper data strobe (UDS#).
• For MC68K #2, this pin inputs the data strobe (DS#).
• For REDCAP2, this pin inputs the byte enable signal for the
D[15:8] data byte (EB0).
• For DragonBall, this pin inputs the byte enable signal for the
D[15:8] data byte (UWE).
• For Indirect (Mode 68), this pin inputs the byte enable signal for
the D[15:8] data byte (EBU).
• For Indirect (Mode 80), this pin inputs the write enable signal for
data byte 1 (WRU#).
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for
summary.

CS#

M/R#

I

I

C2

K7

PIC

PIC

IOVDD

IOVDD

1

Chip select input. See Table 4-9: “Host Bus Interface Pin Mapping,”
on page 39 for summary.

0

This input pin is used to select between the display buffer and
register address spaces of the S1D13708. M/R# is set high to
access the display buffer and low to access the registers. See Table
4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.
This input pin has multiple functions.

BS#

I

J7

PIC

IOVDD

1

For Generic #1, this pin must be tied to IO VDD.
For Generic #2, this pin must be tied to IO VDD.
For SH-3/SH-4, this pin inputs the bus start signal (BS#).
For MC68K #1, this pin inputs the address strobe (AS#).
For MC68K #2, this pin inputs the address strobe (AS#).
For REDCAP2, this pin must be tied to IO VDD.
For DragonBall, this pin must be tied to IO VDD.
For Indirect (Mode 68), this pin selects the Indirect Interface For
Mode 68, this pin is tied to VSS.
• For Indirect (Mode 80), this pin selects the Indirect Interface For
Mode 80, this pin is tied to IO VDD.
•
•
•
•
•
•
•
•

See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for
summary.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 32

Epson Research and Development
Vancouver Design Center

Table 4-3: Host Interface Pin Descriptions
Pin Name Type

PFBGA
Pin #

Cell

IO
RESET
Voltage # State

Description
This input pin has multiple functions.

RD/WR#

I

B3

PIC

IOVDD

1

• For Generic #1, this pin inputs the read command for the upper
data byte (RD1#).
• For Generic #2, this pin must be tied to IO VDD.
• For SH-3/SH-4, this pin inputs the RD/WR# signal. The
S1D13708 needs this signal for early decode of the bus cycle.
• For MC68K #1, this pin inputs the R/W# signal.
• For MC68K #2, this pin inputs the R/W# signal.
• For REDCAP2, this pin inputs the R/W signal.
• For DragonBall, this pin must be tied to IO VDD.
• For Indirect (Mode 68), this pin inputs the R/W# signal.
• For Indirect (Mode 80, this pin inputs the read enable signal for
data byte 0 (RDL#).
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for
summary.
This input pin has multiple functions.

RD#

I

H7

PIC

IOVDD

1

• For Generic #1, this pin inputs the read command for the lower
data byte (RD0#).
• For Generic #2, this pin inputs the read command (RD#).
• For SH-3/SH-4, this pin inputs the read signal (RD#).
• For MC68K #1, this pin must be tied to IO VDD.
• For MC68K #2, this pin inputs the bus size bit 1 (SIZ1).
• For REDCAP2, this pin inputs the output enable (OE).
• For DragonBall, this pin inputs the output enable (OE).
• For Indirect (Mode 68), this pin is tied to VSS.
• For Indirect (Mode 80), this pin inputs the read enable signal for
data byte 1 (RDU#).
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for
summary.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 33

Table 4-3: Host Interface Pin Descriptions
Pin Name Type

PFBGA
Pin #

Cell

IO
RESET
Voltage # State

Description
During a data transfer, this output pin is driven active to force the
system to insert wait states. It is driven inactive to indicate the
completion of a data transfer. WAIT# is released to the high
impedance state after the data transfer is complete. Its active polarity
is configurable. See Table 4-8: “Summary of Power-On/Reset
Options,” on page 38.

WAIT#

O

L8

PBCC8C IOVDD

Hi-Z

• For Generic #1, this pin outputs the wait signal (WAIT#).
• For Generic #2, this pin outputs the wait signal (WAIT#).
• For SH-3 mode, this pin outputs the wait request signal
(WAIT#).
• For SH-4 mode, this pin outputs the device ready signal
(RDY#).
• For MC68K #1, this pin outputs the data transfer acknowledge
signal (DTACK#).
• For MC68K #2, this pin outputs the data transfer and size
acknowledge bit 1 (DSACK1#).
• For REDCAP2, this pin is unused (Hi-Z).
• For DragonBall, this pin outputs the data transfer acknowledge
signal (DTACK).
• For Indirect (Mode 68), this pin is unused (Hi-Z).
• For Indirect (Mode 80), this pin is unused (Hi-Z).
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for
summary.

RESET#

I

A2

Hardware Functional Specification
Issue Date: 02/03/07

PICS

IOVDD

0

Active low input to set all internal registers to the default state and to
force all signals to their inactive states.

S1D13708
X39A-A-001-02

Page 34

Epson Research and Development
Vancouver Design Center

4.3.2 LCD Interface
Table 4-4: LCD Interface Pin Descriptions
Pin Name

FPDAT[17:0]

Type

PFBGA
Pin #

Cell

O

A4,A5,
A6,A7,
A8,B4,
B6,B7,
B8,C4,
C5,C6,
C8,C9,
D5,D6,
D7,D8

PBCC8

IO
RESET#
Voltage State

IOVDD

0

Description

Panel Data bits 17-0.

This output pin has multiple functions.

FPFRAME

O

J8

PBCC8

IOVDD

0

•
•
•
•
•

Frame Pulse
SPS for Sharp HR-TFT
DY for Epson D-TFD
STV for TFT Type 2
STV for Type 3

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for
summary.
This output pin has multiple functions.

FPLINE

O

L9

PBCC8

IOVDD

0

•
•
•
•
•

Line Pulse
LP for Sharp HR-TFT
LP for Epson D-TFD
STB for TFT Type 2
LP for Type 3

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for
summary.
This output pin has multiple functions.

FPSHIFT

O

G10

PBCC8

IOVDD

0

•
•
•
•
•

Shift Clock
CLK for Sharp HR-TFT
XSCL for Epson D-TFD
CLK for TFT Type 2
CPH for Type 3

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for
summary.
This output pin has multiple functions.

DRDY

O

H11

POC8

IOVDD

0

• Display enable (DRDY) for TFT panels
• 2nd shift clock (FPSHIFT2) for passive LCD with Format 1
interface
• GCP for Epson D-TFD
• INV for TFT Type 2
• INV for TFT Type 3
• LCD backplane bias signal (MOD) for all other LCD panels
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for
summary.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 35

Table 4-4: LCD Interface Pin Descriptions
Pin Name

Type

PFBGA
Pin #

Cell

IO
RESET#
Voltage State

Description
This pin has multiple functions.

GPIO0

IO

H10

PBCC8

IOVDD

0

•
•
•
•
•
•

PS for Sharp HR-TFT
XINH for Epson D-TFD
VCLK for TFT Type 2
CPV for Type 3
General purpose IO pin 0 (GPIO0)
Hardware Video Invert

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for
summary.
This pin has multiple functions.

GPIO1

IO

J9

PBCC8

IOVDD

0

•
•
•
•
•

CLS for Sharp HR-TFT
YSCL for Epson D-TFD
AP for TFT Type 2
OE for Type 3
General purpose IO pin 1 (GPIO1)

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for
summary.
This pin has multiple functions.

GPIO2

IO

J10

PBCC8

IOVDD

0

•
•
•
•
•

REV for Sharp HR-TFT
FR for Epson D-TFD
POL for TFT Type 2
POL for Type 3
General purpose IO pin 2 (GPIO2)

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for
summary.
This pin has multiple functions.

GPIO3

IO

J11

PBCC8

IOVDD

0

•
•
•
•
•

SPL for Sharp HR-TFT
FRS for Epson D-TFD
STH for TFT Type 2
EIO for Type 3
General purpose IO pin 3 (GPIO3)

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for
summary.
This pin has multiple functions.

GPIO4

IO

K10

PBCC8

IOVDD

0

• RES for Epson D-TFD
• VCOM for Type 3
• General purpose IO pin 4 (GPIO4)
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for
summary.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 36

Epson Research and Development
Vancouver Design Center

Table 4-4: LCD Interface Pin Descriptions
Pin Name

Type

PFBGA
Pin #

Cell

IO
RESET#
Voltage State

Description
This pin has multiple functions.

GPIO5

IO

L10

PBCC8

IOVDD

0

• DD_P1 for Epson D-TFD
• XOEV for Type 3
• General purpose IO pin 5 (GPIO5)
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for
summary.
This pin has multiple functions.

GPIO6

IO

K9

PBCC8

IOVDD

0

• YSCLD for Epson D-TFD
• CMD for Type 3
• General purpose IO pin 6 (GPIO6)
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for
summary.
This output pin has multiple functions.

PWMOUT

O

H9

PBCC8

IOVDD

0

• PWM Clock output
• General purpose output
This output pin has multiple functions.

CVOUT

O

G11

PBCC8

IOVDD

0

GPO0

O

D11

POC8

IOVDD

0

General Purpose Output (possibly used for controlling the LCD
power). It may also be used for the MOD control signal of the
Sharp HR-TFT panel.

GPO1

O

E9

POC8

IOVDD

0

General Purpose Output pin 1 (GPO1).
When used with a Type 3 panel this pin functions as PCLK1.

GPO2

O

F8

POC8

IOVDD

0

General Purpose Output pin 2 (GPO2).
When used with a Type 3 panel this pin functions as PCLK2.

GPO3

O

E10

POC8

IOVDD

0

General Purpose Output pin 3 (GPO3).
When used with a Type 3 panel this pin functions as XRESH.

GPO4

O

E11

POC8

IOVDD

0

General Purpose Output pin 4 (GPO4).
When used with a Type 3 panel this pin functions as XRESV.

GPO5

O

F9

POC8

IOVDD

0

General Purpose Output pin 5 (GPO5).
When used with a Type 3 panel this pin functions as XOHV.

GPO6

O

G8

POC8

IOVDD

0

General Purpose Output pin 6 (GPO6).
When used with a Type 3 panel this pin functions as XSTBY.

GPO7

O

F10

POC8

IOVDD

0

General Purpose Output pin 7 (GPO7).
When used with a Type 3 panel this pin functions as PMDE.

S1D13708
X39A-A-001-02

• CV Pulse Output
• General purpose output

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 37

4.3.3 Clock Input
Table 4-5: Clock Input Pin Descriptions
IO
RESET#
Voltage State

Pin Name

Type

PFBGA
Pin #

Cell

CLKI

I

F2

PCLK1

IOVDD

—

Typically used as input clock source for bus clock and memory
clock.

CLKI2

I

G9

PCLK1

IOVDD

—

Typically used as input clock source for pixel clock This pin must
be tied to VSS when a crystal is not used.

XTAL0

0

F3

POSC1

IOVDD

—

Crystal output. This pin must be left unconnected when a crystal is
not used.

XTAL1

I

G1

POSC1

IOVDD

—

Crystal input. This pin must be tied to VSS when a crystal is not
used.

Description

4.3.4 Miscellaneous
Table 4-6: Miscellaneous Pin Descriptions
IO
RESET#
Voltage State

Type

PFBGA
Pin #

CNF[7:0]

I

A9, B9,
B10, B11,
C10, C11,
D9, E8

PIC

IOVDD

—

TESTEN

I

D10

PIC

IOVDD

0

Pin Name

Cell

Description
These inputs are used to configure the S1D13708 - see Table
4-8: “Summary of Power-On/Reset Options,” on page 38.
Note: These pins are used for configuration of the
S1D13708 and must be connected directly to IO VDD or VSS.
Test Enable input used for production test only (has type 1 pulldown resistor with a typical value of 50Ω at 3.3V).

4.3.5 Power And Ground
Table 4-7: Power And Ground Pin Descriptions
Pin Name

IOVDD

COREVDD

VSS

IO
RESET#
Voltage State

Type

PFBGA
Pin #

Cell

P

A1, A3,
A11, C7,
F11, G2,
K8,L2,
L11

P

—

—

IO VDD pins.

P

A10, B1,
B5, F1,
H8, K5,
K11, L1

P

—

—

Core VDD. pins.

P

E4, E5,
E6, E7,
F5, F7,
G5, G6,
G7

P

—

—

VSS pins.

Hardware Functional Specification
Issue Date: 02/03/07

Description

S1D13708
X39A-A-001-02

Page 38

Epson Research and Development
Vancouver Design Center

4.4 Summary of Configuration Options
Table 4-8: Summary of Power-On/Reset Options
Power-On/Reset State

S1D13708
Configuration
Input

1

0

Select host bus interface as follows:

CNF4,CNF[2:0]

CNF4
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0

CNF2
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1

CNF1
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1

CNF0
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1

Host Bus
SH-4/SH-3 interface, Big Endian
SH-4/SH-3 interface, Little Endian
MC68K #1, Big Endian
Reserved
MC68K #2, Big Endian
Reserved
Generic #1, Big Endian
Generic #1, Little Endian
Reserved
Generic #2, Little Endian
REDCAP2, Big Endian
Reserved
DragonBall (MC68EZ328/MC68VZ328), Big Endian
Reserved
Indirect Interface, Big Endian
Indirect Interface, Little Endian

CNF3

Configure GPIO pins as inputs at power-on

Configure GPIO pins as outputs at power-on (for use
by HR-TFT/D-TFD/TFT Type 2/TFT Type 3 when
selected)

CNF5

WAIT# is active high

WAIT# is active low

BCLK Source (CLKI/XTAL) to BCLK divide select:
Note: XTAL should only be used when configured for Indirect Interface (CNF[2:0] = 111).
CNF[7:6]

S1D13708
X39A-A-001-02

CNF7
0
0
1
1

CNF6
0
1
0
1

BCLK Divide Ratio
1:1
2:1
3:1
4:1

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 39

4.5 Host Bus Interface Pin Mapping
Table 4-9: Host Bus Interface Pin Mapping
Motorola

S1D13708
Pin Name

Generic #1

AB[16:1]

A[16:1]

Generic #2

Hitachi
SH-3 /SH-4

Motorola
MC68K #1

Motorola
MC68K #2

Motorola
REDCAP2

A[16:1]

A[16:1]

A[16:1]

A[16:1]

A[16:1]

MC68EZ328/
MC68VZ328

DragonBall

AB0
DB[15:0]
CS#

1

A0

A0

D[15:0]

D[15:0]

External Decode

A0

1

LDS#

D[15:0]

D[15:0]

CSn#

M/R#

A0
D[15:0]

A0
2

External Decode

1

A[16:1]
A0

1

D[15:0]

D[15:0]

CSn

CSn

External Decode

CLKI

BUSCLK

BUSCLK

CKIO

CLK

CLK

BS#

Connected to IO VDD

BS#

AS#

AS#

CLK

CLKO

Connected to IO VDD

Indirect
Interface
Mode 68

Indirect
Interface
Mode 80

Connected to VSS
Connected to VSS
D[15:0]

D[15:0]

External Decode
A0

A0

BUSCLK

BUSCLK

Connected
to VSS

Connected
to IO VDD

RD/WR#

RD1#

Connected
to IO VDD

RD/WR#

R/W#

R/W#

R/W

Connected
to IO VDD

R/W#

RDL#

RD#

RD0#

RD#

RD#

Connected
to IO VDD

External
Decode

OE

OE

Connected
to VSS

RDU#

WE0#

WE0#

WE#

WE0#

Connected
to IO VDD

SIZ0

EB1

LWE

EBL

WRL#

WE1#

WE1#

BHE#

WE1#

UDS#

DS#

EB0

UWE

EBU

WRU#

WAIT#

WAIT#

WAIT#

WAIT#/
RDY#

DTACK#

DSACK1#

N/A

DTACK

N/A

N/A

RESET#

RESET#

RESET#

RESET#

RESET#

RESET#

RESET_OUT

RESET

RESET#

RESET#

Note
1
2

A0 for these busses is not used internally by the S1D13708.
If the target MC68K bus is 32-bit, then these signals should be connected to D[31:16].

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 40

Epson Research and Development
Vancouver Design Center

4.6 LCD Interface Pin Mapping
Table 4-10: LCD Interface Pin Mapping
Monochrome Passive
Panel
Pin Name

Color Passive Panel

Single
4-bit

Color TFT Panel

Single
8-bit

4-bit

Format 1
8-bit

Generic TFT (TFT Type 1)

Format 2
8-bit

FPFRAME

16-Bit

9-bit

12-bit

18-bit

FPFRAME

Sharp HRTFT1

Epson
D-TFD1

TFT Type 2

TFT Type 3

18-bit

18-bit

18-bit

18-bit

18-bit

SPS

DY

STV

STV

FPFRAME

TFT Type 4

FPLINE

FPLINE

LP

LP

STB

LP

FPLINE

FPSHIFT

FPSHIFT

DCLK

XSCL

CLK

CPH

FPSHIFT

no connect

GCP

INV

INV

DRDY

FPDAT0

driven 0

D0

driven 0

D0 (B5)2

D0 (G3)2

D0 (R6)2

R2

R3

R5

R5

R5

R5

R5

R5

FPDAT1

driven 0

D1

driven 0

D1 (R5)2

D1 (R3)2

D1 (G5)2

R1

R2

R4

R4

R4

R4

R4

R4

FPDAT2

driven 0

D2

driven 0

D2 (G4)2

D2 (B2)2

D2 (B4)2

R0

R1

R3

R3

R3

R3

R3

R3

FPDAT3

driven 0

D3

driven 0

D3 (B3)2

D3 (G2)2

D3 (R4)2

G2

G3

G5

G5

G5

G5

G5

G5

DRDY

MOD

FPSHIFT2

MOD

DRDY

FPDAT4

D0

D4

D0 (R2)2

D4 (R3)2

D4 (R2)2

D8 (B5)2

G1

G2

G4

G4

G4

G4

G4

G4

FPDAT5

D1

D5

D1 (B1)2

D5 (G2)2

D5 (B1)2

D9 (R5)2

G0

G1

G3

G3

G3

G3

G3

G3

FPDAT6

D2

D6

D2 (G1)2

D6 (B1)2

D6 (G1)2

D10 (G4)2

B2

B3

B5

B5

B5

B5

B5

B5

FPDAT7

D3

D7

D3 (R1)2

D7 (R1)2

D7 (R1)2

D11 (B3)2

B1

B2

B4

B4

B4

B4

B4

B4

FPDAT8

driven 0

driven 0

driven 0

driven 0

driven 0

D4 (G3)2

B0

B1

B3

B3

B3

B3

B3

B3

FPDAT9

driven 0

driven 0

driven 0

driven 0

driven 0

D5 (B2)2

driven 0

R0

R2

R2

R2

R2

R2

R2
R1

FPDAT10

driven 0

driven 0

driven 0

driven 0

driven 0

D6 (R2)2

driven 0

driven 0

R1

R1

R1

R1

R1

FPDAT11

driven 0

driven 0

driven 0

driven 0

driven 0

D7 (G1)2

driven 0

driven 0

R0

R0

R0

R0

R0

R0

FPDAT12

driven 0

driven 0

driven 0

driven 0

driven 0

D12 (R3)2

driven 0

G0

G2

G2

G2

G2

G2

G2

FPDAT13

driven 0

driven 0

driven 0

driven 0

driven 0

D13 (G2)2

driven 0

driven 0

G1

G1

G1

G1

G1

G1

FPDAT14

driven 0

driven 0

driven 0

driven 0

driven 0

D14 (B1)2

driven 0

driven 0

G0

G0

G0

G0

G0

G0

FPDAT15

driven 0

driven 0

driven 0

driven 0

driven 0

D15 (R1)2

driven 0

B0

B2

B2

B2

B2

B2

B2

FPDAT16

driven 0

driven 0

driven 0

driven 0

driven 0

driven 0

driven 0

driven 0

B1

B1

B1

B1

B1

B1

FPDAT17

driven 0

driven 0

driven 0

driven 0

driven 0

driven 0

driven 0

driven 0

B0

B0

B0

B0

B0

B0

GPIO0

GPIO0

GPIO0

GPIO0

GPIO0

GPIO0

GPIO0

GPIO0

GPIO0

GPIO0

PS

XINH

VCLK

CPV

GPIO0

GPIO1

GPIO1

GPIO1

GPIO1

GPIO1

GPIO1

GPIO1

GPIO1

GPIO1

GPIO1

CLS

YSCL

AP

OE

GPIO1

GPIO2

GPIO2

GPIO2

GPIO2

GPIO2

GPIO2

GPIO2

GPIO2

GPIO2

GPIO2

REV

FR

POL

POL

GPIO2

GPIO3

GPIO3

GPIO3

GPIO3

GPIO3

GPIO3

GPIO3

GPIO3

GPIO3

GPIO3

SPL

FRS

STH

EIO

GPIO3

GPIO4

GPIO4

GPIO4

GPIO4

GPIO4

GPIO4

GPIO4

GPIO4

GPIO4

GPIO4

GPIO4
(output only)

RES

GPIO4
(output only)

VCOM

GPIO4

GPIO5

GPIO5

GPIO5

GPIO5

GPIO5

GPIO5

GPIO5

GPIO5

GPIO5

GPIO5

GPIO5
(output only)

DD_P1

GPIO5
(output only)

XOEV

GPIO5

GPIO6

GPIO6
(output only)

YSCLD

GPIO6
(output only)

CMD

GPIO6

MOD

GPO0

GPO0

GPO0

GPO0
GPO1

GPIO6

GPIO6

GPIO6

GPIO6

GPIO6

GPO0

GPIO6

GPIO6

GPO0 (General Purpose Output)

GPIO6

GPIO6

GPO1

GPO1

GPO1

PCLK1

GPO2

GPO2

GPO2

PCLK2

GPO2

GPO3

GPO3

GPO3

XRESH

GPO3

GPO4

GPO4

GPO4

XRESV

GPO4

GPO5

GPO5

GPO5

XOHV

GPO5

GPO6

GPO6

GPO6

XSTBY

GPO6

GPO7

GPO7

GPO7

PMDE

GPO7

CVOUT

CVOUT

CVOUT

CVOUT

CVOUT

PWMOUT

PWMOUT

PWMOUT

PWMOUT

PWMOUT

Note
1

GPIO pins must be configured as outputs (CNF3 = 0 at RESET#) when TFT-Type 2,
TFT-Type 3, HR-TFT or D-TFD panels are selected.
2 These pin mappings use signal names commonly used for each panel type, however
signal names may differ between panel manufacturers. The values shown in brackets
represent the color components as mapped to the corresponding FPDATxx signals at
the first valid edge of FPSHIFT. For further FPDATxx to LCD interface mapping, see
Section 6.4, “Display Interface” on page 68.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 41

5 D.C. Characteristics
Note

When applying Supply Voltages to the S1D13708, Core VDD must be applied to the
chip before, or simultaneously with IO VDD, or damage to the chip may result.
Table 5-1: Absolute Maximum Ratings (Preliminary - Subject to Change)
Symbol

Parameter

Rating

Units

Core VDD

Supply Voltage

VSS - 0.3 to 4.0

V

IO VDD

Supply Voltage

VSS - 0.3 to 4.0

V

VIN

Input Voltage

VSS - 0.3 to IO VDD + 0.5

V

VOUT

Output Voltage

VSS - 0.3 to IO VDD + 0.5

V

TSTG

Storage Temperature

-65 to 150

°C

TSOL

Solder Temperature/Time

260 for 10 sec. max at lead

°C

Table 5-2: Recommended Operating Conditions
Symbol

Parameter

Condition

Min

Typ

Max

Units

Core VDD

Supply Voltage

VSS = 0 V

1.62

1.8

1.98

V

IO VDD

Supply Voltage

VSS = 0 V

3.0

3.3

3.6

V

VIN

Input Voltage

VSS

IO VDD

V

TOPR

Operating Temperature

0

70

°C

Table 5-3: Electrical Characteristics for VDD = 3.3V typical
Symbol
IDDS
IIZ
IOZ

Parameter
Quiescent Current
Input Leakage Current
Output Leakage Current

VOH

High Level Output Voltage

VOL

Low Level Output Voltage

VIH
VIL
VT+
VTVH1
RPD
CI
CO
CIO

High Level Input Voltage
Low Level Input Voltage
High Level Input Voltage
Low Level Input Voltage
Hysteresis Voltage
Pull Down Resistance
Input Pin Capacitance
Output Pin Capacitance
Bi-Directional Pin Capacitance

Hardware Functional Specification
Issue Date: 02/03/07

Condition
Quiescent Conditions

Min

Typ

-1
-1
VDD = min.
-8mA
IOH =
VDD = min.
8mA
IOL =
LVTTL Level, VDD = max
LVTTL Level, VDD = min
LVTTL Schmitt
LVTTL Schmitt
LVTTL Schmitt
VI = VDD

Max
170
1
1

VDD - 0.4

V
0.4

2.0
1.1
0.6
0.1
20

Units
µA
µA
µA

0.8
2.4
1.8
50

120
10
10
10

V
V
V
V
V
V
kΩ
pF
pF
pF

S1D13708
X39A-A-001-02

Page 42

Epson Research and Development
Vancouver Design Center

6 A.C. Characteristics
Conditions:

CORE VDD = 1.8V ± 10%
IO VDD = 3.3V ± 10%
TA = TBD ° C
tr and tf for all inputs must be < 5 nsec (10% ~ 90%)
CL = 50pF (Bus/MPU Interface)
CL = 0pF (LCD Panel Interface)

6.1 Clock Timing
6.1.1 Input Clocks
Clock Input Waveform
t

t

PWH

PWL

90%
V
IH
VIL
10%

t

tr

f

TOSC

Figure 6-1 Clock Input Requirements

Table 6-1: Clock Input Requirements for CLKI when CLKI to BCLK divide > 1
Symbol

Parameter

Min

Max

Units

100

MHz

fOSC

Input Clock Frequency (CLKI)

TOSC

Input Clock period (CLKI)

1/fOSC

ns

tPWH

Input Clock Pulse Width High (CLKI)

4.5

ns

tPWL

Input Clock Pulse Width Low (CLKI)

4.5

ns

tf

Input Clock Fall Time (10% - 90%)

5

ns

tr

Input Clock Rise Time (10% - 90%)

5

ns

Note

Maximum internal requirements for clocks derived from CLKI must be considered
when determining the frequency of CLKI. See Section 6.1.2, “Internal Clocks” on page
43 for internal clock requirements.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 43

Table 6-2: Clock Input Requirements for CLKI when CLKI to BCLK divide = 1
Symbol

Parameter

Min

Max

Units

66

MHz

fOSC

Input Clock Frequency (CLKI)

TOSC

Input Clock period (CLKI)

tPWH

Input Clock Pulse Width High (CLKI)

3

ns

tPWL

Input Clock Pulse Width Low (CLKI)

3

ns

1/fOSC

ns

tf

Input Clock Fall Time (10% - 90%)

5

ns

tr

Input Clock Rise Time (10% - 90%)

5

ns

Note

Maximum internal requirements for clocks derived from CLKI must be considered
when determining the frequency of CLKI. See Section 6.1.2, “Internal Clocks” on page
43 for internal clock requirements.
Table 6-3: Clock Input Requirements for CLKI2
Symbol

Parameter

fOSC

Input Clock Frequency (CLKI2)

TOSC

Input Clock period (CLKI2)

tPWH
tPWL

Min

Max

Units

66

MHz

1/fOSC

ns

Input Clock Pulse Width High (CLKI2)

3

ns

Input Clock Pulse Width Low (CLKI2)

3

ns

tf

Input Clock Fall Time (10% - 90%)

5

ns

tr

Input Clock Rise Time (10% - 90%)

5

ns

Note

Maximum internal requirements for clocks derived from CLKI2 must be considered
when determining the frequency of CLKI2. See Section 6.1.2, “Internal Clocks” on page
43 for internal clock requirements.

6.1.2 Internal Clocks
Table 6-4: Internal Clock Requirements
Symbol

Parameter

Min

Max

Units

fBCLK

Bus Clock frequency

66

MHz

fMCLK

Memory Clock frequency

50

MHz

fPCLK

Pixel Clock frequency

50

MHz

fPWMCLK PWM Clock frequency

66

MHz

XTAL Clock frequency

12

MHz

fXTAL

Note

For further information on internal clocks, refer to Section 7, “Clocks” on page 112.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 44

Epson Research and Development
Vancouver Design Center

6.2 CPU Interface Timing
The following section includes CPU interface AC Timing. These timings are based on IO
VDD = 3.3V and Core VDD = 1.8V.

6.2.1 Generic #1 Interface Timing

TCLK
CLK
t3

t4

A[16:1], M/R#
t5

t6

CS#
t8
WE0#, WE1#, RD0#, RD1#
t9

t10

t7

WAIT#
t11
D[15:0] (write)
t13

t14

t15

D[15:0] (read)

Figure 6-2 Generic #1 Interface Timing
Note

The above diagram assumes that WAIT# is used and that MCLK = BCLK.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 45

Table 6-5: Generic #1 Interface Timing
Symbol
fCLK
TCLK
t3
t4
t5
t6
t7a
t7b
t7c
t7d
t8
t9
t10
t11
t12
t13
t14
t15

Parameter
Bus Clock frequency
Bus Clock period
A[16:0], M/R# setup to first CLK rising edge where CS# = 0 and either RD0#,
RD1# = 0 or WE0#, WE1# = 0
A[16:0], M/R# hold from either RD0#, RD1# or WE0#, WE1# rising edge
CS# setup to CLK rising edge
CS# hold from either RD0#, RD1# or WE0#, WE1# rising edge
WAIT# asserted for MCLK = BCLK
WAIT# asserted for MCLK = BCLK ÷ 2
WAIT# asserted for MCLK = BCLK ÷ 3
WAIT# asserted for MCLK = BCLK ÷ 4
RD0#, RD1#, WE0#, WE1# setup to CLK rising edge
Falling edge of either RD0#, RD1# or WE0#, WE1# to WAIT# driven low
Rising edge of either RD0#, RD1# or WE0#, WE1# to WAIT# high impedance
D[15:0] setup to third CLK rising edge where CS# = 0 and WE0#, WE1# = 0
(write cycle) (see note 1)
D[15:0] hold from WAIT# rising edge (write cycle)
RD0#, RD1# falling edge to D[15:0] driven (read cycle)
WAIT# rising edge to D[15:0] valid (read cycle)
RD0#, RD1# rising edge to D[15:0] high impedance (read cycle)

Min

Max
50

1/fCLK

Unit
MHz
ns

1

ns

0
1
0

ns
ns
ns
TCLK
TCLK
TCLK
TCLK
ns
ns
ns

8
13
17
20
1
5
3

12
8

1
0
4
3

ns
11
2
9

ns
ns
ns
ns

1. t11 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 46

Epson Research and Development
Vancouver Design Center

6.2.2 Generic #2 Interface Timing

TCLK
BUSCLK
t3

t4

A[16:1], M/R#, BHE#
t5

t6

CS#
t8
RD#, WE#
t9

t10

t7

WAIT#
t11
D[15:0] (write)
t13

t14

t15

D[15:0] (read)

Figure 6-3 Generic #2 Interface Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 47

Table 6-6: Generic #2 Interface Timing
Symbol
Parameter
fBUSCLK Bus Clock frequency
TBUSCLK Bus Clock period
A[16:0], M/R#, BHE# setup to first BUSCLK rising edge where CS# = 0 and
t3
either RD# = 0 or WE# = 0
t4
A[16:0], M/R#, BHE# hold from either RD# or WE# rising edge
t5
CS# setup to BUSCLK rising edge
t6
CS# hold from either RD# or WE# rising edge
t7a
WAIT# asserted for MCLK = BCLK
t7b
WAIT# asserted for MCLK = BCLK ÷ 2
t7c
WAIT# asserted for MCLK = BCLK ÷ 3
t7d
WAIT# asserted for MCLK = BCLK ÷ 4
t8
RD# or WE# setup to BUSCLK rising edge
t9
Falling edge of either RD# or WE# to WAIT# driven low
t10
Rising edge of either RD# or WE# to WAIT# high impedance
D[15:0] setup to third BUSCLK rising edge where CS# = 0 and WE# = 0
t11
(write cycle) (see note 1)
t12
D[15:0] hold from WAIT# rising edge (write cycle)
t13
RD# falling edge to D[15:0] driven (read cycle)
t14
WAIT# rising edge to D[15:0] valid (read cycle)
t15
Rising edge of RD# to D[15:0] high impedance (read cycle)

Min

Max
50

1/fBUSCLK

Unit
MHz
ns

1

ns

0
1
0

ns
ns
ns
8
13
15
21

1
5
3

12
8

1
0
5
3

TBUSCLK
TBUSCLK
TBUSCLK
TBUSCLK
ns
ns
ns
ns

11
2
9

ns
ns
ns
ns

1. t11 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 48

Epson Research and Development
Vancouver Design Center

6.2.3 Hitachi SH-4 Interface Timing

TCKIO
CLKI
t4

t3
A[16:1], RD/WR#, M/R#
t6

t5
BS#

t8

t7
CSn#

WEn#, RD#
t12

t11
RDY

t13

t14

t9
t15

t16

D[15:0] (write)
t10

t17

t18

D[15:0] (read)

Figure 6-4 Hitachi SH-4 Interface Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 49

Table 6-7: Hitachi SH-4 Interface Timing
Symbol

Parameter

fCKIO

Clock frequency

TCKIO

Clock period

Min

Max

Unit

66

MHz

1/fCKIO

ns

A[16:0], M/R#, RD/WR# setup to CKIO

1

ns

t4

A[16:0], M/R#, RD/WR# hold from CSn#

0

ns

t5

BS# setup

1

ns

t6

t3

BS# hold

5

ns

t7

CSn# setup

1

ns

t8

CSn# high setup to CKIO

2

ns

t9a

RDY asserted for MCLK = BCLK (max. MCLK = 50MHz)

t9b

RDY asserted for MCLK = BCLK ÷ 2

14

TCKIO

t9c

RDY asserted for MCLK = BCLK ÷ 3

16

TCKIO

t9d

RDY asserted for MCLK = BCLK ÷ 4

23

TCKIO

t10

Falling edge RD# to D[15:0] driven (read cycle)

4

9

ns

t11

7

TCKIO

Falling edge CSn# to RDY# driven high

4

9

ns

t12

CKIO to RDY# low

5

14

ns

t13

CSn# high to RDY# high

5

12

ns

t14

Falling edge CKIO to RDY# high impedance

4

10

ns

t15

D[15:0] setup to 2

nd

CKIO after BS# (write cycle) (see note 1)

t16

D[15:0] hold (write cycle)

t17

RDY# falling edge to D[15:0] valid (read cycle)

t18

Rising edge RD# to D[15:0] high impedance (read cycle)

0

ns

0

ns

3

2

ns

9

ns

1. t15 is the delay from when data is placed on the bus until the data is latched into the write buffer.
Note

Minimum one software WAIT state is required.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 50

Epson Research and Development
Vancouver Design Center

6.2.4 Hitachi SH-3 Interface Timing

TCKIO
CKIO
t8

t3
A[16:1], RD/WR#, M/R#
t6

t5
BS#

t4

t7
CSn#

WEn#, RD#
t13

t12

t11

t9
WAIT#
t14

t15

D[15:0] (write)
t10

t16

t17

D[15:0] (read)

Figure 6-5 Hitachi SH-3 Interface Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 51

Table 6-8: Hitachi SH-3 Interface Timing
Symbol

Parameter

fCKIO

Bus Clock frequency

TCKIO

Bus Clock period

Min

Max

Unit

66

MHz

1/fCKIO

ns

A[16:0], M/R#, RD/WR# setup to CKIO

1

ns

t4

CSn# high setup to CKIO

1

ns

t5

BS# setup

0

ns

t6

t3

BS# hold

5

ns

t7

CSn# setup

1

ns

t8

A[16:0], M/R#, RD/WR# hold from CS#

0

ns

t9a

WAIT# asserted for MCLK = BCLK (max. MCLK = 50MHz)

t9b

WAIT# asserted for MCLK = BCLK ÷ 2

13

TCKIO

t9c

WAIT# asserted for MCLK = BCLK ÷ 3

15

TCKIO

t9d

WAIT# asserted for MCLK = BCLK ÷ 4

23

TCKIO

t10

Falling edge RD# to D[15:0] driven (read cycle)

4

9

ns

t11

6

TCKIO

Rising edge CSn# to WAIT# high impedance

3

7

ns

t12

Falling edge CSn# to WAIT# driven low

4

11

ns

t13

CKIO to WAIT# delay

5

14

ns

nd

t14

D[15:0] setup to 2

t15

D[15:0] hold (write cycle)

CKIO after BS# (write cycle) (see note 1)

t16

WAIT# rising edge to D[15:0] valid (read cycle)

t17

Rising edge RD# to D[15:0] high impedance (read cycle)

0

ns

0
3

ns
2

ns

9

ns

1. t14 is the delay from when data is placed on the bus until the data is latched into the write buffer.
Note

Minimum one software WAIT state is required.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 52

Epson Research and Development
Vancouver Design Center

6.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000)

TCLK
CLK
t3

t4

A[16:1], R/W#, M/R#
t5

t6

CS#
t9

t8
AS#

t11

t10
UDS#, LDS#, (A0)

t13

t12
t15

t16
t7

DTACK#

t18
t17
D[15:0] (write)
t19

t20

t21

D[15:0] (read)

Figure 6-6 Motorola MC68K #1 Interface Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 53

Table 6-9: Motorola MC68K #1 Interface Timing
Symbol

Parameter

fCLK

Bus Clock Frequency

TCLK

Bus Clock period

Min

Max

Unit

50

MHz

1/fCLK

ns

t3

A[16:1], R/W#, M/R# setup to first CLK rising edge where CS# = 0,
AS# = 0, UDS# = 0, and LDS# = 0

1

ns

t4

A[16:1], M/R# hold from AS# rising edge

0

ns

t5

CS# setup to CLK rising edge while CS#, AS#, UDS#/LDS# = 0

1

ns

t6

CS# hold from AS# rising edge

0

ns

t7a

DTACK# asserted for MCLK = BCLK

8

TCLK

t7b

DTACK# asserted for MCLK = BCLK ÷ 2

13

TCLK

t7c

DTACK# asserted for MCLK = BCLK ÷ 3

17

TCLK

t7d

DTACK# asserted for MCLK = BCLK ÷ 4

23

TCLK

t8

AS# setup to CLK rising edge while CS#, AS#, UDS#/LDS# = 0

1

ns

t9

AS# setup to CLK rising edge

1

ns

t10

UDS#/LDS# setup to CLK rising edge while CS#, AS#, UDS#/LDS# = 0

1

ns

t11

UDS#/LDS# high setup to CLK rising edge

1

ns

t12

First CLK rising edge where AS# = 1 to DTACK# high impedance

3

t13

R/W# setup to CLK rising edge before all CS#, AS#, UDS# and/or LDS# = 0

1

10

ns
ns

t15

AS# = 0 and CS# = 0 to DTACK# driven high

4

10

ns

t16

AS# rising edge to DTACK# rising edge

5

14

ns

t17

D[15:0] valid to third CLK rising edge where CS# = 0, AS# = 0 and either
UDS# = 0 or LDS# = 0 (write cycle) (see note 1)

1

t18

D[15:0] hold from DTACK# falling edge (write cycle)

0

t19

UDS# = 0 and/or LDS# = 0 to D[15:0] driven (read cycle)

3

t20

DTACK# falling edge to D[15:0] valid (read cycle)

t21

UDS#, LDS# rising edge to D[15:0] high impedance (read cycle)

3

ns
ns
9

ns

0

ns

4

ns

1. t17 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 54

Epson Research and Development
Vancouver Design Center

6.2.6 Motorola MC68K #2 Interface Timing (e.g. MC68030)

TCLK
CLK
t3

t4

A[16:1], R/W#, M/R#, SIZ[1:0]
t5

t6

CS#
t9

t8
AS#

t11

t10
UDS#, LDS#, (A0)

t13

t12
t15

t16
t7

DSACK1#

t18
t17
D[31:16] (write)
t19

t20

t21

D[31:16] (read)

Figure 6-7 Motorola MC68K #2 Interface Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 55

Table 6-10: Motorola MC68K #2 Interface Timing
Symbol

Parameter

fCLK

Bus Clock frequency

TCLK

Bus Clock period

Min

Max

Unit

50

MHz

1/fCLK

ns

t3

A[16:0], SIZ[1:0], M/R# setup to first CLK rising edge where
CS# = 0, AS# = 0, DS# = 0

4

ns

t4

A[16:0], SIZ[1:0], M/R#, R/W# hold from AS# rising edge

0

ns

t5

CS# setup to CLK rising edge

3

ns

t6

CS# hold from AS# rising edge

0

ns

t7a

DSACK1# asserted for MCLK = BCLK

8

TCLK

t7b

DSACK1# asserted for MCLK = BCLK ÷ 2

13

TCLK

t7c

DSACK1# asserted for MCLK = BCLK ÷ 3

17

TCLK

t7d

DSACK1# asserted for MCLK = BCLK ÷ 4

22

TCLK

t8

AS# falling edge to CLK rising edge

4

ns

t9

AS# rising edge to CLK rising edge

4

ns

t10

DS# falling edge to CLK rising edge

4

ns

t11

DS# setup to CLK rising edge

4

ns

t12

First CLK where AS# = 1 to DSACK1# high impedance

2

t13

R/W# setup to CLK rising edge before all CS# = 0, AS# = 0, and DS# = 0

1

t15

AS# = 0 and CS# = 0 to DSACK1# rising edge

3

10

ns

t16

AS# rising edge to DSACK1# rising edge

5

14

ns

t17

D[31:16] valid to third CLK rising edge where CS# = 0, AS# = 0, and DS# = 0
(write cycle) (see note 1)

1

t18

D[31:16] hold from falling edge of DSACK1# (write cycle)

0

t19

DS# falling edge to D[31:16] driven (read cycle)

5

t20

DSACK1# falling edge to D[31:16] valid (read cycle)

t21

DS# rising edge to D[31:16] invalid/high impedance (read cycle)

3

28

ns
ns

ns
ns
14

ns

0

ns

10

ns

1. t17 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 56

Epson Research and Development
Vancouver Design Center

6.2.7 Motorola REDCAP2 Interface Timing

TCLK
CLK
t4

t3
A[16:1], R/W#, M/R#, CS#
t5

t7

t6
EBO#, EB1# (write)
t8

t9

D[15:0] (write)
t11

t10
EB0#, EB1#, OE#
t13

t14

t12
D[15:0] (read)
Note: CSn# may be any of CS0# - CS4#.

Figure 6-8 Motorola REDCAP2 Interface Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 57

Table 6-11: Motorola REDCAP2 Interface Timing
Symbol

Parameter

fCLK

Bus Clock frequency

TCLK

Bus Clock period

Min

Max

Units

17

MHz

1/fCLK

ns

t3

A[16:0], M/R#, R/W, CSn setup to CLK rising edge

1

ns

t4

A[16:0], M/R#, R/W, CSn hold from CLK rising edge

0

ns

t5a

CSn asserted for MCLK = BCLK

8

TCLK

t5b

CSn asserted for MCLK = BCLK ÷ 2

10

TCLK

t5c

CSn asserted for MCLK = BCLK ÷ 3

13

TCLK

t5d

CSn asserted for MCLK = BCLK ÷ 4

15

TCLK

t6

EB0, EB1 asserted to CLK rising edge (write cycle)

2

ns

t7

EB0, EB1 de-asserted to CLK rising edge (write cycle)

3

ns

t8

D[15:0] input setup to 3rd CLK rising edge after EB0 or EB1 asserted low
(write cycle) (see note 1)

1

ns

t9

D[15:0] input hold from 3rd CLK rising edge after EB0 or EB1 asserted low
(write cycle)

1

ns

t10

OE, EB0, EB1 setup to CLK rising edge (read cycle)

1

ns

t11

OE, EB0, EB1 hold to CLK rising edge (read cycle)

1

ns

t12

D[15:0] output delay from OE, EB0, EB1 falling edge
(read cycle)

5

t13a

11

ns

1st CLK rising edge after EB0 or EB1 asserted low to D[15:0] valid for MCLK
= BCLK (read cycle)

5CLK + 16

ns

t13b

1st CLK rising edge after EB0 or EB1 asserted low to D[15:0] valid for MCLK
= BCLK ÷ 2 (read cycle)

8CLK + 16

ns

t13c

1st CLK rising edge after EB0 or EB1 asserted low to D[15:0] valid for MCLK
= BCLK ÷ 3 (read cycle)

9CLK + 16

ns

t13d

1st CLK rising edge after EB0 or EB1 asserted low to D[15:0] valid for MCLK
= BCLK ÷ 4 (read cycle)

11CLK + 16

ns

t14

CLK rising edge to D[15:0] output in Hi-Z (read cycle)

9

ns

3

1. t8 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 58

Epson Research and Development
Vancouver Design Center

6.2.8 Motorola DragonBall Interface Timing with DTACK (e.g. MC68EZ328/MC68VZ328)

TCLKO
CLKO
t3

t4

A[16:1]
t7

t6
CSX#
t8

t9

t10

t11

UWE#, LWE# (write)

OE# (read)
t12

t13

D[15:0] (write)
t14

t15

D[15:0] (read)
t19

t17
t16
DTACK#

t18
t5

Figure 6-9 Motorola DragonBall Interface with DTACK Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 59

Table 6-12: Motorola DragonBall Interface with DTACK Timing
Symbol

Parameter

fCLKO

Bus Clock frequency

TCLKO

Bus Clock period

t3

MC68EZ328

MC68VZ328

Min

Min

Max
16

Max
33

Unit
MHz

1/fCLKO

1/fCLKO

ns

A[16:0] setup 1st CLKO when CSX = 0 and either UWE/LWE
or OE = 0

0

0

ns

0

t4

A[16:0] hold from CSX rising edge

t5a

DTACK asserted for MCLK = BCLK

8

8

TCLKO

t5b

DTACK asserted for MCLK = BCLK ÷ 2

13

13

TCLKO

t5c

DTACK asserted for MCLK = BCLK ÷ 3

16

16

TCLKO

t5d

DTACK asserted for MCLK = BCLK ÷ 4

22

TCLKO

t6

CSX setup to CLKO rising edge

t7

CSX rising edge to CLKO rising edge

2

2

ns

t8

UWE/LWE falling edge to CLKO rising edge

2

2

ns

t9

UWE/LWE rising edge to CSX rising edge

0

0

ns

t10

OE falling edge to CLKO rising edge

2

2

ns

t11

OE hold from CSX rising edge

0

0

ns

t12

D[15:0] setup to 3rd CLKO when CSX, UWE/LWE asserted
(write cycle) (see note 1)

0

1

ns

t13

D[15:0] in hold from CSX rising edge (write cycle)

0

0

ns

t14

Falling edge of OE to D[15:0] driven (read cycle)

4

10

4

10

ns

t15

CSX rising edge to D[15:0] output Hi-Z (read cycle)

3

9

3

9

ns

t16

CSX falling edge to DTACK driven high

4

9

4

10

ns

t17

DTACK falling edge to D[15:0] valid (read cycle)

0

ns

t18

CSX high to DTACK high

5

13

5

14

ns

t19

CLKO rising edge to DTACK Hi-Z

4

9

4

10

ns

0

22
2

ns

2

0

ns

1. t12 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 60

Epson Research and Development
Vancouver Design Center

6.2.9 Motorola DragonBall Interface Timing w/o DTACK (e.g. MC68EZ328/MC68VZ328)

TCLKO
CLKO
t3

t4

A[16:1]
t5
t7

t6
CSX#
t8

t9

t10

t11

UWE#, LWE# (write)

OE# (read)
t12

t13

D[15:0] (write)
t15
t14

t16

D[15:0] (read)

Figure 6-10 Motorola DragonBall Interface without DTACK# Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 61

Table 6-13: Motorola DragonBall Interface without DTACK Timing
Symbol

Parameter

fCLKO

Bus Clock frequency

TCLKO

Bus Clock period

MC68EZ328
Min

Max

MC68VZ328
Min

16

Max
33

Unit
MHz

1/fCLKO

1/fCLKO

ns

A[16:0] setup 1st CLKO when CSX = 0 and either UWE/LWE
or OE = 0

0

0

ns

t4

A[16:0] hold from CSX rising edge

0

0

ns

t5a

CSX asserted for MCLK = BCLK
(CPU wait state register should be programmed to 4 wait
states)

t5b

CSX asserted for MCLK = BCLK ÷ 2
(CPU wait state register should be programmed to 8 wait
states)

t5c

CSX asserted for MCLK = BCLK ÷ 3
(CPU wait state register should be programmed to 10 wait
states)

t6

CSX setup to CLKO rising edge

2

2

ns

t7

CSX rising edge setup to CLKO rising edge

2

2

ns

t8

UWE/LWE setup to CLKO rising edge

2

2

ns

t3

7

7

TCLKO

Not Supported

11

TCLKO

Not Supported

13

TCLKO

t9

UWE/LWE rising edge to CSX rising edge

0

0

ns

t10

OE setup to CLKO rising edge

2

2

ns

t11

OE hold from CSX rising edge

0

0

ns

t12

D[15:0] setup to 3rd CLKO after CSX, UWE/LWE asserted
(write cycle) (see note 1)

1

1

ns

t13

CSX rising edge to D[15:0] output Hi-Z (write cycle)

0

0

ns

t14

Falling edge of OE to D[15:0] driven (read cycle)

5

t15a

1st CLKO rising edge after OE and CSX asserted low to
D[15:0] valid for MCLK = BCLK (read cycle)

t15b

1st CLKO rising edge after OE and CSX asserted low to
D[15:0] valid for MCLK = BCLK ÷ 2 (read cycle)

t15c
t16

11

5

11

ns

6TCLKO + 6

ns

Not Supported

9TCLKO + 6

ns

1st CLKO rising edge after OE and CSX asserted low to
D[15:0] valid for MCLK = BCLK ÷ 3 (read cycle)

Not Supported

12TCLKO + 6

ns

CSX rising edge to D[15:0] output Hi-Z (read cycle)

3

9

ns

6TCLKO + 6

9

3

1. t12 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 62

Epson Research and Development
Vancouver Design Center

6.2.10 Indirect Interface Timing (Mode 68)

TBUSCLK
BUSCLK

A0, R/W#

CS#

t2

t1
t8

t9

EBU, EBL
t3

t4

D[15:0] (write)

D[15:0] (read)

t5
t6

t7

Figure 6-11 Indirect Interface Timing (Mode 68)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 63

Table 6-14: Indirect Interface Timing (Mode 68)
Symbol

Parameter

Min

fBUSCLK Bus Clock frequency

Max

Units

50

MHz

1/fBUSCLK

ns

t1

A0 / R/W# setup to (CS# | EBU), (CS# | EBL) falling edge

1

ns

t2

A0 / R/W# hold to (CS# | EBU), (CS# | EBL) rising edge

3

ns

t3

D[15:0] setup to (CS# | EBU) rising edge (write cycle)

1

TBUSCLK

t4

D[15:0] hold to (CS# | EBU) rising edge (write cycle)

4

ns

t5

Falling edge of (CS# | EBL) to D[15:0] driven (read cycle)

2

TBUSCLK

t6a

Falling edge of (CS# | EBL) to valid D[15:0] driven for MCLK = BCLK
(read cycle)

7.5

TBUSCLK

t6b

Falling edge of (CS# | EBL) to valid D[15:0] driven for MCLK = BCLK/2
(read cycle)

9.5

TBUSCLK

t6c

Falling edge of (CS# | EBL) to valid D[15:0] driven for MCLK = BCLK/3
(read cycle)

12.5

TBUSCLK

t6d

Falling edge of (CS# | EBL) to valid D[15:0] driven for MCLK = BCLK/4
(read cycle)

16.5

TBUSCLK

t7

Valid D[15:0] hold to (CS# | EBL) rising edge

0.5

TBUSCLK

t8a

(CS# | EBU) High pulse width (write cycle)

4

TBUSCLK

t8b

TBUSCLK Bus Clock period

(CS# | EBL) High pulse width for MCLK = BCLK (read cycle)

8

TBUSCLK

t8c

(CS# | EBL) High pulse width for MCLK = BCLK/2 (read cycle)

11

TBUSCLK

t8d

(CS# | EBL) High pulse width for MCLK = BCLK/3 (read cycle)

15

TBUSCLK

t8e

(CS# | EBL) High pulse width for MCLK = BCLK/4 (read cycle)

17

TBUSCLK

t9a

(CS# | EBL) Low pulse width (read turnaround)

2.5

TBUSCLK

t9b

(CS# | EBU) Low pulse width for MCLK = BCLK (write turnaround)

2.5

TBUSCLK

t9c

(CS# | EBU) Low pulse width for MCLK = BCLK/2 (write turnaround)

5.5

TBUSCLK

t9d

(CS# | EBU) Low pulse width for MCLK = BCLK/3 (write turnaround)

7.5

TBUSCLK

t9e

(CS# | EBU) Low pulse width for MCLK = BCLK/4 (write turnaround)

9.5

TBUSCLK

Note

Max frequency (fBUSCLK) when using crystal oscillator is 12MHz.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 64

Epson Research and Development
Vancouver Design Center

6.2.11 Indirect Interface Timing (Mode 80)

TBUSCLK
BUSCLK

A[16:1], M/R#
t3

t4
t10

t11

CS# | WRn#, CS# | RDn#
t5

t6

D[15:0] (write)
t7

t8

t9

D[15:0] (read)

Figure 6-12 Indirect Interface Timing (Mode 80)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 65

Table 6-15: Indirect Interface Timing (Mode 80)
Symbol

Parameter

Min

fBUSCLK Bus Clock frequency

Max

Units

50

MHz

1/fBUSCLK

ns

A0 setup to (CS# | WRn#), (CS# | RDn#) falling edge

1

ns

t4

A0 hold to (CS# | WRn#), (CS# | RDn#) rising edge

3

ns

t5

D[15:0] setup to (CS# | WRn#) rising edge (write cycle)

1

TBUSCLK

t6

TBUSCLK Bus Clock period
t3

D[15:0] hold to (CS# | WRn#) rising edge (write cycle)

4

ns

t7

Falling edge of (CS# | RDn#) to D[15:0] driven (read cycle)

2

TBUSCLK

t8a

Falling edge of (CS# | RDn#) to valid D[15:0] driven for MCLK = BCLK
(read cycle)

7.5

TBUSCLK

t8b

Falling edge of (CS# | RDn#) to valid D[15:0] driven for MCLK = BCLK/2
(read cycle)

10.5

TBUSCLK

t8c

Falling edge of (CS# | RDn#) to valid D[15:0] driven for MCLK = BCLK/3
(read cycle)

13.5

TBUSCLK

t8d

Falling edge of (CS# | RDn#) to valid D[15:0] driven for MCLK = BCLK/4
(read cycle)

15.5

TBUSCLK

t9

Valid D[15:0] hold to (CS# | RDn#) rising edge

0.5

TBUSCLK

4

TBUSCLK

t10a

(CS# | WRn#) Low pulse width (write cycle)

t10b

(CS# | RDn#) Low pulse width for MCLK = BCLK (read cycle)

8

TBUSCLK

t10c

(CS# | RDn#) Low pulse width for MCLK = BCLK/2 (read cycle)

11

TBUSCLK

t10d

(CS# | RDn#) Low pulse width for MCLK = BCLK/3 (read cycle)

15

TBUSCLK

t10e

(CS# | RDn#) Low pulse width for MCLK = BCLK/4 (read cycle)

17

TBUSCLK

t11a

(CS# | RDn#) High pulse width (read turnaround)

2

TBUSCLK

(CS# | WRn#) High pulse width for MCLK = BCLK (write turnaround)

2.5

TBUSCLK

(CS# | WRn#) High pulse width for MCLK = BCLK/2 (write turnaround)

5.5

TBUSCLK

t11d

(CS# | WRn#) High pulse width for MCLK = BCLK/3 (write turnaround)

7.5

TBUSCLK

t11e

(CS# | WRn#) High pulse width for MCLK = BCLK/4 (write turnaround)

9.5

TBUSCLK

t11b
t11c

Note

Max frequency (fBUSCLK) when using crystal oscillator is 12MHz.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 66

Epson Research and Development
Vancouver Design Center

6.3 LCD Power Sequencing
6.3.1 Passive/TFT Power-On Sequence

GPO0*
Power Save
Mode Enable**
(REG[A0h] bit 0)

t1

t2
LCD Signals***

*It is recommended to use the general purpose output pin GPO0 to control the LCD bias power.
**The LCD power-on sequence is activated by programming the Power Save Mode Enable bit (REG[A0h] bit 0) to 0.
***LCD Signals include: FPDAT[17:0], FPSHIFT, FPLINE, FPFRAME, and DRDY.

Figure 6-13 Passive/TFT Power-On Sequence Timing

Table 6-16: Passive/TFT Power-On Sequence Timing
Symbol

Parameter

t1

LCD signals active to LCD bias active

t2

Power Save Mode disabled to LCD signals active

Min

Max

Note 1

Note 1

0

20

Units
ns

1. t1 is controlled by software and must be determined from the bias power supply delay requirements of the panel
connected.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 67

6.3.2 Passive/TFT Power-Off Sequence
t1
GPO0*
Power Save
Mode Enable**
(REG[A0h] bit 0)
t2
LCD Signals***

*It is recommended to use the general purpose output pin GPO0 to control the LCD bias power.
**The LCD power-off sequence is activated by programming the Power Save Mode Enable bit (REG[A0h] bit 0) to 1.
***LCD Signals include: FPDAT[17:0], FPSHIFT, FPLINE, FPFRAME, and DRDY.

Figure 6-14 Passive/TFT Power-Off Sequence Timing

Table 6-17: Passive/TFT Power-Off Sequence Timing
Symbol
t1
t2

Parameter
LCD bias deactivated to LCD signals inactive
Power Save Mode enabled to LCD signals low

Min

Max

Note 1

Note 1

0

20

Units
ns

1. t1 is controlled by software and must be determined from the bias power supply delay requirements of the panel
connected.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 68

Epson Research and Development
Vancouver Design Center

6.4 Display Interface
The timing parameters required to drive a flat panel display are shown below. Timing
details for each supported panel type are provided in the remainder of this section.
HT
HDPS
HPS

HPW

VPS
VDPS

VPW

HDP

VT

VDP

Figure 6-15 Panel Timing Parameters

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 69

Table 6-18: Panel Timing Parameter Definition and Register Summary
Symbol
HT
HDP1
HDPS
HPS
HPW
VT
VDP
VDPS
VPS
VPW

Description
Horizontal Total
Horizontal Display Period1

Derived From
Units
((REG[12h] bits 6-0) + 1) x 8
((REG[44h] bits 6-0) + 1) x 8
For STN panels: ((REG[17h] bits 1-0, REG[16h] bits 7-0) + 22)
Horizontal Display Period Start Position
Ts
For TFT panels: ((REG[17h] bits 1-0, REG[16h] bits 7-0) + 5)
FPLINE Pulse Start Position
(REG[23h] bits 1-0, REG[22h] bits 7-0) + 1
FPLINE Pulse Width
(REG[20h] bits 6-0) + 1
Vertical Total
(REG[19h] bits 1-0, REG[18h] bits 7-0) + 1
Vertical Display Period
(REG[1Dh] bits 1-0, REG[1Ch] bits 7-0) + 1
Vertical Display Period Start Position
REG[1Fh] bits 1-0, REG[1Eh] bits 7-0
Lines (HT)
FPFRAME Pulse Start Position
REG[27h] bits 1-0, REG[26h] bits 7-0
FPFRAME Pulse Width
(REG[24h] bits 6-0) + 1

1. For passive panels, the HDP must be a minimum of 32 pixels and must be increased by multiples of 16.
For TFT panels, the HDP must be a minimum of 8 pixels and must be increased by multiples of 8.
2. The following formulas must be valid for all panel timings:
HDPS + HDP < HT
VDPS + VDP < VT

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 70

Epson Research and Development
Vancouver Design Center

6.4.1 Generic STN Panel Timing
VT (= 1 Frame)
VPW
FPFRAME
VDP
FPLINE
MOD1(DRDY)
FPDAT[17:0]

HT (= 1 Line)

HPS

HPW

FPLINE
FPSHIFT
1PCLK
MOD2(DRDY)
HDPS

HDP

FPDAT[17:0]

Figure 6-16 Generic STN Panel Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 71

VT
= Vertical Total
= [(REG[19h] bits 1-0, REG[18h] bits 7-0) + 1] lines
VPS
= FPFRAME Pulse Start Position
= 0 lines, because [(REG[27h] bits 1-0, REG[26h] bits 7-0)] = 0
VPW = FPFRAME Pulse Width
= [(REG[24h] bits 2-0) + 1] lines
VDPS = Vertical Display Period Start Position = 0 lines, because [(REG[1Fh] bits 1-0, REG[1Eh] bits 7-0)] = 0
VDP
= Vertical Display Period
= [(REG[1Dh] bits 1-0, REG[1Ch] bits 7-0) + 1] lines
HT
= Horizontal Total
= [((REG[12h] bits 6-0) + 1) x 8] pixels
HPS
= FPLINE Pulse Start Position
= [(REG[23h] bits 1-0, REG[22h] bits 7-0) + 1] pixels
HPW = FPLINE Pulse Width
= [(REG[20h] bits 6-0) + 1] pixels
HDPS = Horizontal Display Period Start Position = 22 pixels, because [(REG[17h] bits 1-0, REG[16h] bits 7-0)] = 0
HDP
= Horizontal Display Period
= [((REG[14h] bits 6-0) + 1) x 8] pixels
*For passive panels, the HDP must be a minimum of 32 pixels and must be increased by multiples of 16.
*HPS must comply with the following formula:
HPS > HDP + 22
HPS + HPW < HT
*Panel Type Bits (REG[10h] bits 1-0) = 00b (STN)
*FPFRAME Pulse Polarity Bit (REG[24h] bit 23) = 1 (active high)
*FPLINE Pulse Polarity Bit (REG[20h] bit 7) = 1 (active high)
*MOD1 is the MOD signal when REG[11h] bits 5-0 = 0 (MOD toggles every FPFRAME)
*MOD2 is the MOD signal when REG[11h] bits 5-0 = n (MOD toggles every n FPLINE)

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 72

Epson Research and Development
Vancouver Design Center

6.4.2 Single Monochrome 4-Bit Panel Timing
VDP

VNDP

FPFRAME
FPLINE
DRDY (MOD)
FPDAT[7:4]

Invalid

LINE1

LINE2

LINE3

LINE4

LINE239 LINE240

Invalid

LINE1

LINE2

FPLINE
DRDY (MOD)
HDP

HNDP

FPSHIFT
FPDAT7

Invalid

1-1

1-5

1-317

Invalid

FPDAT6
FPDAT5

Invalid

1-2

1-6

1-318

Invalid

Invalid

1-3

1-7

1-319

Invalid

FPDAT4

Invalid

1-4

1-8

1-320

Invalid

* Diagram drawn with 2 FPLINE vertical blank period
Example timing for a 320x240 panel

Figure 6-17 Single Monochrome 4-Bit Panel Timing
VDP
VNDP

HDP
HNDP

= Vertical Display Period
= (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines
= Vertical Non-Display Period
= VT - VDP
= (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines
= Horizontal Display Period
= ((REG[14h] bits 6:0) + 1) x 8Ts
= Horizontal Non-Display Period
= HT - HDP
= (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 73

t2

t1

Sync Timing
FPFRAME

t4

t3

FPLINE
t5
DRDY (MOD)
Data Timing
FPLINE
t6
t8
t7

t9

t14

t11

t10

FPSHIFT
t12
FPDAT[7:4]

t13
1

2

Figure 6-18 Single Monochrome 4-Bit Panel A.C. Timing

Table 6-19: Single Monochrome 4-Bit Panel A.C. Timing
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13
t14

1.
2.
3.
4.
5.
6.
7.
8.

Ts
t1min
t2min
t3min
t4min
t5min
t6min
t14min

Parameter
FPFRAME setup to FPLINE falling edge
FPFRAME hold from FPLINE falling edge
FPLINE period
FPLINE pulse width
MOD transition to FPLINE rising edge
FPSHIFT falling edge to FPLINE rising edge
FPSHIFT falling edge to FPLINE falling edge
FPLINE falling edge to FPSHIFT falling edge
FPSHIFT period
FPSHIFT pulse width low
FPSHIFT pulse width high
FPDAT[7:4] setup to FPSHIFT falling edge
FPDAT[7:4] hold to FPSHIFT falling edge
FPLINE falling edge to FPSHIFT rising edge

Min
note 2
note 3
note 4
note 5
note 6
note 7
t6 + t4
t14 + 2
4
2
2
1
2
note 8

Typ

Max

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period
= HPS + t4min
= t3min - (HPS + t4min)
= HT
= HPW
= HPS - 1
= HPS - (HDP + HDPS) + 2, if negative add t3min
= HDPS - (HPS + t4min), if negative add t3min

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 74

Epson Research and Development
Vancouver Design Center

6.4.3 Single Monochrome 8-Bit Panel Timing
VDP

VNDP

FPFRAME
FPLINE
DRDY (MOD)
FPDAT[7:0]

LINE1

Invalid

LINE2

LINE3

LINE4

LINE479 LINE480

Invalid

LINE1

LINE2

FPLINE
DRDY (MOD)
HDP

HNDP

FPSHIFT
FPDAT7

Invalid

1-1

1-9

1-633

Invalid

FPDAT6

Invalid

1-2

1-10

1-634

Invalid

FPDAT5
FPDAT4
FPDAT3

Invalid

1-3

1-11

1-635

Invalid

Invalid

1-4

1-12

1-636

Invalid

Invalid

1-5

1-13

1-637

Invalid

FPDAT2

Invalid

1-6

1-14

1-638

Invalid

FPDAT1
FPDAT0

Invalid

1-7

1-15

1-639

Invalid

Invalid

1-8

1-16

1-640

Invalid

* Diagram drawn with 2 FPLINE vertical blank period
Example timing for a 640x480 panel

Figure 6-19 Single Monochrome 8-Bit Panel Timing
VDP
VNDP

HDP
HNDP

= Vertical Display Period
= (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines
= Vertical Non-Display Period
= VT - VDP
= (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines
= Horizontal Display Period
= ((REG[14h] bits 6:0) + 1) x 8Ts
= Horizontal Non-Display Period
= HT - HDP
= (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 75

t2

t1

Sync Timing
FPFRAME

t4

t3

FPLINE
t5
DRDY (MOD)
Data Timing
FPLINE
t6
t8
t7

t9

t14

t11

t10

FPSHIFT
t12
FPDAT[7:0]

t13
1

2

Figure 6-20 Single Monochrome 8-Bit Panel A.C. Timing

Table 6-20: Single Monochrome 8-Bit Panel A.C. Timing
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13
t14

1.
2.
3.
4.
5.
6.
7.
8.

Ts
t1min
t2min
t3min
t4min
t5min
t6min
t14min

Parameter
FPFRAME setup to FPLINE falling edge
FPFRAME hold from FPLINE falling edge
FPLINE period
FPLINE pulse width
MOD transition to FPLINE rising edge
FPSHIFT falling edge to FPLINE rising edge
FPSHIFT falling edge to FPLINE falling edge
FPLINE falling edge to FPSHIFT falling edge
FPSHIFT period
FPSHIFT pulse width low
FPSHIFT pulse width high
FPDAT[7:0] setup to FPSHIFT falling edge
FPDAT[7:0] hold to FPSHIFT falling edge
FPLINE falling edge to FPSHIFT rising edge

Min
note 2
note 3
note 4
note 5
note 6
note 7
t6 + t4
t14 + 4
8
4
4
4
4
note 8

Typ

Max

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period
= HPS + t4min
= t3min - (HPS + t4min)
= HT
= HPW
= HPS - 1
= HPS - (HDP + HDPS) + 4, if negative add t3min
= HDPS - (HPS + t4min), if negative add t3min

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 76

Epson Research and Development
Vancouver Design Center

6.4.4 Single Color 4-Bit Panel Timing
VNDP

VDP

FPFRAME
FPLINE
DRDY (MOD)
FPDAT[7:4]

LINE1

Invalid

LINE2

LINE3

LINE4

LINE239 LINE240

Invalid

LINE1

LINE2

FPLINE
DRDY (MOD)

HDP
.5Ts

FPSHIFT

FPDAT7
FPDAT6
FPDAT5
Notes:

FPDAT4

.5Ts

.5Ts

Invalid

1-R1

.5Ts

.5Ts

1-G2

.5Ts

.5Ts

.5Ts

.5Ts

.5Ts

.5Ts

.5Ts

HNDP

2.5Ts

.5Ts

.5Ts

.5Ts

.5Ts

.5Ts

.5Ts

1-B3

1-B319

Invalid

Invalid

1-G1

1-B2

1-R4

1-R320

Invalid

Invalid

1-B1

1-R3

1-G4

1-G320

Invalid

Invalid

1-R2

1-G3

1-B4

1-B320

Invalid

- FPSHIFT uses extended low states in order to process 8 pixels in 6 FPSHIFT clocks
- Ts = Pixel clock period (PCLK)
- Diagram drawn with 2 FPLINE vertical blank period
- Example timing for a 320x240 panel

Figure 6-21 Single Color 4-Bit Panel Timing
VDP
VNDP

HDP
HNDP

= Vertical Display Period
= (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines
= Vertical Non-Display Period
= VT - VDP
= (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines
= Horizontal Display Period
= ((REG[14h] bits 6:0) + 1) x 8Ts
= Horizontal Non-Display Period
= HT - HDP
= (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 77

t2

t1

Sync Timing
FPFRAME

t4

t3

FPLINE
t5
DRDY (MOD)
Data Timing
FPLINE
t6
t8
t7

t9

t14

t11

t10

FPSHIFT
t12
FPDAT[7:4]

t13
1

2

Figure 6-22 Single Color 4-Bit Panel A.C. Timing

Table 6-21: Single Color 4-Bit Panel A.C. Timing
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13
t14

1.
2.
3.
4.
5.
6.
7.
8.

Ts
t1min
t2min
t3min
t4min
t5min
t6min
t14min

Parameter
FPFRAME setup to FPLINE falling edge
FPFRAME hold from FPLINE falling edge
FPLINE period
FPLINE pulse width
MOD transition to FPLINE rising edge
FPSHIFT falling edge to FPLINE rising edge
FPSHIFT falling edge to FPLINE falling edge
FPLINE falling edge to FPSHIFT falling edge
FPSHIFT period
FPSHIFT pulse width low
FPSHIFT pulse width high
FPDAT[7:4] setup to FPSHIFT falling edge
FPDAT[7:4] hold to FPSHIFT falling edge
FPLINE falling edge to FPSHIFT rising edge

Min
note 2
note 3
note 4
note 5
note 6
note 7
t6 + t4
t14 + 0.5
1
0.5
0.5
0.5
0.5
note 8

Typ

Max

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period
= HPS + t4min
= t3min - (HPS + t4min)
= HT
= HPW
= HPS - 1
= HPS - (HDP + HDPS) + 1.5), if negative add t3min
= HDPS - (HPS + t4min) + 1, if negative add t3min

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 78

Epson Research and Development
Vancouver Design Center

6.4.5 Single Color 8-Bit Panel Timing (Format 1)
VNDP

VDP

FPFRAME
FPLINE
FPDAT[7:0]

LINE1

Invalid

LINE2

LINE3

LINE4

LINE239

LINE240

Invalid

2Ts

2Ts

LINE1

LINE2

FPLINE
HDP
2Ts

FPSHIFT

2Ts

2Ts

4Ts

2Ts

2Ts

2Ts

4Ts

2Ts

2Ts

4Ts

2Ts

4Ts

2Ts

2Ts

4Ts

2Ts

HNDP
2Ts

2Ts

2Ts

4Ts

2Ts

2Ts

4Ts

2Ts

FPSHIFT2
2Ts

2Ts

4Ts

2Ts

2Ts

2Ts

1R316

2Ts

2Ts

FPDAT7

Invalid

1-R1

1-G1

1-G6

1-B6

1-B11

1-R12

1R316

Invalid

FPDAT6

Invalid

1-B1

1-R2

1-R7

1-G7

1-G12

1-B12

1B316

Invalid

FPDAT5
FPDAT4
FPDAT3

Invalid

1-G2

1-B2

1-B7

1-R8

1-R13

1-G13

1G317

Invalid

Invalid

1-R3

1-G3

1-G8

1-B8

1-B13

1-R14

1R318

Invalid

Invalid

1-B3

1-R4

1-R9

1-G9

1-G14

1-B14

1B318

Invalid

FPDAT2

Invalid

1-G4

1-B4

1-B9

1-R10

1-R15

1-G15

1G319

Invalid

FPDAT1

Invalid

1-R5

1-G5

1-G10

1-B10

1-B15

1-R16

1R320

Invalid

FPDAT0

Invalid

1-B5

1-R6

1-R11

1-G11

1-G16

1-B16

1B320

Invalid

Notes:
- The duty cycle of FPSHIFT changes in order to process 16 pixels in 6 FPSHIFT/FPSHIFT2 rising edges
- Ts = Pixel clock period (PCLK)
- Diagram drawn with 2 FPLINE vertical blank period
- Example timing for a 320x240 panel

Figure 6-23 Single Color 8-Bit Panel Timing (Format 1)
VDP
VNDP

HDP
HNDP

= Vertical Display Period
= (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines
= Vertical Non-Display Period
= VT - VDP
= (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines
= Horizontal Display Period
= ((REG[14h] bits 6:0) + 1) x 8Ts
= Horizontal Non-Display Period
= HT - HDP
= (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 79

t2

t1

Sync Timing
FPFRAME

t4

t3

FPLINE
Data Timing

FPLINE
t6a
t6b
t7a

t8

t9

t14

t11

t10

FPSHIFT
t7b
FPSHIFT2
t12 t13 t12 t13

FPDAT[7:0]

1

2

Figure 6-24 Single Color 8-Bit Panel A.C. Timing (Format 1)

Table 6-22: Single Color 8-Bit Panel A.C. Timing (Format 1)
Symbol
t1
t2
t3
t4
t6a
t6b
t7a
t7b
t8
t9
t10
t11
t12
t13
t14

1.
2.
3.
4.
5.
6.
7.
8.

Ts
t1min
t2min
t3min
t4min
t6amin
t6bmin
t14min

Parameter
FPFRAME setup to FPLINE falling edge
FPFRAME hold from FPLINE falling edge
FPLINE period
FPLINE pulse width
FPSHIFT falling edge to FPLINE rising edge
FPSHIFT2 falling edge to FPLINE rising edge
FPSHIFT falling edge to FPLINE falling edge
FPSHIFT2 falling edge to FPLINE falling edge
FPLINE falling edge to FPSHIFT rising, FPSHIFT2 falling edge
FPSHIFT2, FPSHIFT period
FPSHIFT2, FPSHIFT pulse width low
FPSHIFT2, FPSHIFT pulse width high
FPDAT[7:0] setup to FPSHIFT2, FPSHIFT falling edge
FPDAT[7:0] hold from FPSHIFT2, FPSHIFT falling edge
FPLINE falling edge to FPSHIFT rising edge

Min
note 2
note 3
note 4
note 5
note 6
note 7
t6a + t4
t6b + t4
t14 + 2
4
2
2
1
1
note 8

Typ

Max

6

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period
= HPS + t4min
= t3min - (HPS + t4min)
= HT
= HPW
= HPS - (HDP + HDPS), if negative add t3min
= HPS - (HDP + HDPS) + 2, if negative add t3min
= HDPS - (HPS + t4min), if negative add t3min

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 80

Epson Research and Development
Vancouver Design Center

6.4.6 Single Color 8-Bit Panel Timing (Format 2)
VDP

VNDP

FPFRAME
FPLINE
DRDY (MOD)
FPDAT[7:0]

Invalid

LINE1

LINE2

LINE3

LINE4

LINE239 LINE240

Invalid

LINE1

LINE2

FPLINE
DRDY (MOD)

HDP
2Ts

FPSHIFT

Ts
Ts

2Ts

2Ts

Ts
Ts

2Ts

HNDP
2Ts

Ts

Ts
Ts

2Ts

Ts

Ts

FPDAT7
FPDAT6
FPDAT5
FPDAT4
FPDAT3

Invalid

1-R1

1-B3

1-G6

Ts
1-G318

Invalid

Invalid

1-G1

1-R4

1-B6

1-B318

Invalid
Invalid

Invalid

1-B1

1-G4

1-R7

1-R319

Invalid

1-R2

1-B4

1-G7

1-G319

Invalid

Invalid

1-G2

1-R5

1-B7

1-B319

Invalid

FPDAT2

Invalid

1-B2

1-G5

1-R8

1-R320

Invalid

FPDAT1

Invalid

1-R3

1-B5

1-G8

1-G320

Invalid

FPDAT0

Invalid

1-G3

1-R6

1-B8

1-B320

Invalid

Notes:
- The duty cycle of FPSHIFT changes in order to process 8 pixels in 3 FPSHIFT rising clocks
- Ts = Pixel clock period (PCLK)
- Diagram drawn with 2 FPLINE vertical blank period
- Example timing for a 320x240 panel

Figure 6-25 Single Color 8-Bit Panel Timing (Format 2)
VDP
VNDP

HDP
HNDP

= Vertical Display Period
= (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines
= Vertical Non-Display Period
= VT - VDP
= (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines
= Horizontal Display Period
= ((REG[14h] bits 6:0) + 1) x 8Ts
= Horizontal Non-Display Period
= HT - HDP
= (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 81

t1

Sync Timing

t2

FPFRAME
t4

t3

FPLINE
t5
DRDY (MOD)
Data Timing
FPLINE
t6
t8
t7

t9

t14

t11

t10

FPSHIFT
t12
FPDAT[7:0]

t13
1

2

Figure 6-26 Single Color 8-Bit Panel A.C. Timing (Format 2)

Table 6-23: Single Color 8-Bit Panel A.C. Timing (Format 2)
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13
t14

1.
2.
3.
4.
5.
6.
7.
8.

Ts
t1min
t2min
t3min
t4min
t5min
t6min
t14min

Parameter
FPFRAME setup to FPLINE falling edge
FPFRAME hold from FPLINE falling edge
FPLINE period
FPLINE pulse width
MOD transition to FPLINE rising edge
FPSHIFT falling edge to FPLINE rising edge
FPSHIFT falling edge to FPLINE falling edge
FPLINE falling edge to FPSHIFT falling edge
FPSHIFT period
FPSHIFT pulse width low
FPSHIFT pulse width high
FPDAT[7:0] setup to FPSHIFT falling edge
FPDAT[7:0] hold to FPSHIFT falling edge
FPLINE falling edge to FPSHIFT rising edge

Min
note 2
note 3
note 4
note 5
note 6
note 7
t6 + t4
t14 + 2
2
1
1
1
1
note 8

Typ

Max

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period
= HPS + t4min
= t3min - (HPS + t4min)
= HT
= HPW
= HPS - 1
= HPS - (HDP + HDPS) + 1, if negative add t3min
= HDPS - (HPS + t4min), if negative add t3min

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 82

Epson Research and Development
Vancouver Design Center

6.4.7 Single Color 16-Bit Panel Timing
VDP

VNDP

FPFRAME
FPLINE
DRDY (MOD)
FPDAT[15:0]

LINE1

Invalid

LINE2

LINE3

LINE4

LINE479

LINE480

Invalid

LINE1

LINE2

FPLINE
DRDY (MOD)
HDP
3Ts

FPSHIFT

2Ts

3Ts

3Ts

2Ts

3Ts
3Ts

3Ts

HNDP
3Ts

3Ts

2Ts

3Ts

3Ts
1-G635

Invalid

1-G12

1-G636

Invalid

1-B7

1-R13

1-R637

Invalid

1-R3

1-G8

1-B13

1-B637

Invalid

1-B3

1-R9

1-G14

1-G638

Invalid

1-G4

1-B9

1-R15

1-R639

Invalid

Invalid

1-R5

1-G10

1-B15

1-B639

Invalid

Invalid

1-B5

1-R11

1-G16

1-G640

Invalid

FPDAT11
FPDAT10
FPDAT9
FPDAT8

Invalid

1-G1

1-B6

1-R12

1-R636

Invalid

Invalid

1-R2

1-G7

1-B12

1-B636

Invalid

Invalid

1-B2

1-R8

1-G13

1-G637

Invalid

Invalid

1-G3

1-B8

1-R14

1-R638

Invalid

FPDAT3

Invalid

1-R4

1-G9

1-B14

1-B638

Invalid

FPDAT2

Invalid

1-B4

1-R10

1-G15

1-G639

Invalid

FPDAT1

Invalid

1-G5

1-B10

1-R16

1-R640

Invalid

FPDAT0

Invalid

1-R6

1-G11

1-B16

1-B640

Invalid

FPDAT15
FPDAT14
FPDAT13
FPDAT12
FPDAT7
FPDAT6

Invalid

1-R1

3Ts

3Ts
2Ts
1-G6
1-B11

Invalid

1-B1

1-R7

Invalid

1-G2

Invalid
Invalid
Invalid

FPDAT5
FPDAT4

3Ts

2Ts

2Ts

3Ts

Notes:
- The duty cycle of FPSHIFT changes in order to process 16 pixels in 3 FPSHIFT rising clocks
- Ts = Pixel clock period (PCLK)
- Diagram drawn with 2 FPLINE vertical blank period
- Example timing for a 640x480 panel

Figure 6-27 Single Color 16-Bit Panel Timing
VDP
VNDP

HDP
HNDP

= Vertical Display Period
= (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines
= Vertical Non-Display Period
= VT - VDP
= (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines
= Horizontal Display Period
= ((REG[14h] bits 6:0) + 1) x 8Ts
= Horizontal Non-Display Period
= HT - HDP
= (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 83

t2

t1

Sync Timing
FPFRAME

t4

t3

FPLINE
t5
DRDY (MOD)
Data Timing
FPLINE
t6
t8
t7

t9

t14

t11

t10

FPSHIFT
t12
FPDAT[15:0]

t13
1

2

Figure 6-28 Single Color 16-Bit Panel A.C. Timing

Table 6-24: Single Color 16-Bit Panel A.C. Timing
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13
t14

1.
2.
3.
4.
5.
6.
7.
8.

Ts
t1min
t2min
t3min
t4min
t5min
t6min
t14min

Parameter
FPFRAME setup to FPLINE falling edge
FPFRAME hold from FPLINE falling edge
FPLINE period
FPLINE pulse width
MOD transition to FPLINE rising edge
FPSHIFT falling edge to FPLINE rising edge
FPSHIFT falling edge to FPLINE falling edge
FPLINE falling edge to FPSHIFT falling edge
FPSHIFT period
FPSHIFT pulse width low
FPSHIFT pulse width high
FPDAT[15:0] setup to FPSHIFT rising edge
FPDAT[15:0] hold to FPSHIFT rising edge
FPLINE falling edge to FPSHIFT rising edge

Min
note 2
note 3
note 4
note 5
note 6
note 7
t6 + t4
t14 + 3
5
2
2
2
2
note 8

Typ

Max

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period
= HPS + t4min
= t3min - (HPS + t4min)
= HT
= HPW
= HPS - 1
= HPS - (HDP + HDPS) + 2, if negative add t3min
= HDPS - (HPS + t4min), if negative add t3min

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 84

Epson Research and Development
Vancouver Design Center

6.4.8 Generic TFT Panel Timing
VT (= 1 Frame)
VPS

VPW

FPFRAME
VDP

VDPS
FPLINE

DRDY
FPDAT[17:0]

HT (= 1 Line)
HPS

HPW

FPLINE
FPSHIFT
DRDY
HDPS
FPDAT[17:0]

HDP

invalid

invalid

Figure 6-29 Generic TFT Panel Timing
VT
VPS
VPW
VDPS
VDP
HT
HPS
HPW
HDPS
HDP

= Vertical Total
= [(REG[19h] bits 1-0, REG[18h] bits 7-0) + 1] lines
= FPFRAME Pulse Start Position
= (REG[27h] bits 1-0, REG[26h] bits 7-0) lines
= FPFRAME Pulse Width
= [(REG[24h] bits 2-0) + 1] lines
= Vertical Display Period Start Position = (REG[1Fh] bits 1-0, REG[1Eh] bits 7-0) lines
= Vertical Display Period
= [(REG[1Dh] bits 1-0, REG[1Ch] bits 7-0) + 1] lines
= Horizontal Total
= [((REG[12h] bits 6-0) + 1) x 8] pixels
= FPLINE Pulse Start Position
= [(REG[23h] bits 1-0, REG[22h] bits 7-0) + 1] pixels
= FPLINE Pulse Width
= [(REG[20h] bits 6-0) + 1] pixels
= Horizontal Display Period Start Position= [(REG[17h] bits 1-0, REG[16h] bits 7-0) + 5] pixels
= Horizontal Display Period
= [((REG[14h] bits 6-0) + 1) x 8] pixels

*For TFT panels, the HDP must be a minimum of 16 pixels and must be increased by multiples of 8.
*Panel Type Bits (REG[10h] bits 1-0) = 01 (TFT)
*FPLINE Pulse Polarity Bit (REG[20h] bit 7) = 0 (active low)
*FPFRAME Polarity Bit (REG[24h] bit 7) = 0 (active low)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 85

6.4.9 9/12/18-Bit TFT Panel Timing
VNDP2

VDP

VNDP1

FPFRAME
FPLINE
FPDAT[17:0]

LINE240

LINE1

LINE480

DRDY

FPLINE
HDP

HNDP1

HNDP2

FPSHIFT
DRDY

FPDAT[17:0]

invalid

1-1

1-2

1-320

invalid

Note: DRDY is used to indicate the first pixel
Example Timing for 18-bit 320x240 panel

Figure 6-30 18-Bit TFT Panel Timing
VDP
VNDP

VNDP1
VNDP2
HDP
HNDP

HNDP1
HNDP2

= Vertical Display Period
= VDP Lines
= Vertical Non-Display Period
= VNDP1 + VNDP2
= VT - VDP Lines
= Vertical Non-Display Period 1
= VNDP - VNDP2 Lines
= Vertical Non-Display Period 2
= VDPS - VPS Lines
= Horizontal Display Period
= HDP Ts
= Horizontal Non-Display Period
= HNDP1 + HNDP2
= HT - HDP Ts
= Horizontal Non-Display Period 1
= HDPS - HPS Ts
= Horizontal Non-Display Period 2
= HPS - (HDP + HDPS) Ts

Hardware Functional Specification
Issue Date: 02/03/07

if negative add VT

if negative add HT
if negative add HT

S1D13708
X39A-A-001-02

Page 86

Epson Research and Development
Vancouver Design Center

t1
t2
FPFRAME
t3
FPLINE

t4

FPLINE
t5

t8
t7

t6
DRDY
t9

t12
t13

t10 t11

t14

FPSHIFT

t15 t16
FPDAT[17:0]

invalid

1

2

319

320

invalid

Note: DRDY is used to indicate the first pixel

Figure 6-31 TFT A.C. Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 87

Table 6-25: TFT A.C. Timing
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13
t14
t15
t16

1. Ts
2. t6min
3. t8min

Parameter
FPFRAME cycle time
FPFRAME pulse width low
FPFRAME falling edge to FPLINE falling edge phase difference
FPLINE cycle time
FPLINE pulse width low
FPLINE Falling edge to DRDY active
DRDY pulse width
DRDY falling edge to FPLINE falling edge
FPSHIFT period
FPSHIFT pulse width high
FPSHIFT pulse width low
FPLINE setup to FPSHIFT falling edge
DRDY to FPSHIFT falling edge setup time
DRDY hold from FPSHIFT falling edge
Data setup to FPSHIFT falling edge
Data hold from FPSHIFT falling edge

= pixel clock period
= HDPS - HPS
= HPS - (HDP + HDPS)

Hardware Functional Specification
Issue Date: 02/03/07

Min
VT
VPW
HPS
HT
HPW
note 2
HDP
note 3
1
0.5
0.5
0.5
0.5
0.5
0.5
0.5

Typ

Max

250

Units
Lines
Lines
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

if negative add HT
if negative add HT

S1D13708
X39A-A-001-02

Page 88

Epson Research and Development
Vancouver Design Center

6.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx)
FPFRAME
(SPS)

t1

FPLINE
(LP)
t2
t3
FPLINE
(LP)

t4

FPSHIFT
(CLK)
t5 t6
D1

FPDAT[17:0]
t7
t9

D2

D160

D3
t8

t10

GPIO3
(SPL)
t11
GPIO1
(CLS)
t12
GPIO0
(PS)

t13

GPIO2
(REV)

Figure 6-32 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 89

Table 6-26: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timing
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13

1.
2.
3.
4.
5.
6.

Ts
t1typ
t2typ
t3typ
t7typ
t8typ

Parameter
FPLINE start position
Horizontal total period
FPLINE width
FPSHIFT period
Data setup to FPSHIFT rising edge
Data hold from FPSHIFT rising edge
Horizontal display start position
Horizontal display period
FPLINE rising edge to GPIO3 rising edge
GPIO3 pulse width
GPIO1, GPIO0 pulse width
GPIO1 rising edge (GPIO0 falling edge) to FPLINE rise edge
GPIO2 toggle edge to FPLINE rise edge

Min
180

Typ
13 (note 2)
note 3
2 (note 4)
1

0.5
0.5
5 (note 5)
160 (note 6)
4
1
136
4
10

Max
220

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period
= (REG[23h] bits 1-0, REG[22h] bits 7-0) + 1
= ((REG[12h] bits 6-0) + 1) x 8
= (REG[20h] bits 6-0) + 1
= ((REG[17h] bits 1-0, REG[16h] bits 7-0) + 5) - ((REG[23h] bits 1-0, REG[22h] bits 7-0) + 1)
= (((REG[14h] bits 6-0)) + 1) x 8

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 90

Epson Research and Development
Vancouver Design Center

t1
t2

t3

FPDAT[17:0]

LINE1

LINE2

LINE160

t4
FPFRAME
(SPS)
t5

t6

GPIO1
(CLS)
t8

t7
GPIO0
(PS)
t9
FPLINE
(LP)
FPSHIFT
(CLK)
t10
GPIO1
(CLS)

t11

t12

t13
t14

GPIO0
(PS)

Figure 6-33 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 91

Table 6-27: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13
t14

1. Ts

Parameter
Vertical total period
Vertical display start position
Vertical display period
Vertical sync pulse width
FPFRAME falling edge to GPIO1 alternate timing start
GPIO1 alternate timing period
FPFRAME falling edge to GPIO0 alternate timing start
GPIO0 alternate timing period
GPIO1 first pulse rising edge to FPLINE rising edge
GPIO1 first pulse width
GPIO1 first pulse falling edge to second pulse rising edge
GPIO1 second pulse width
GPIO0 falling edge to FPLINE rising edge
GPIO0 low pulse width

Min
203

Typ
40
160
2
5
4
40
162
4
48
40
48
4
24

Max
264

Units
Lines
Lines
Lines
Lines
Lines
Lines
Lines
Lines
Ts (note 1)
Ts
Ts
Ts
Ts
Ts

= pixel clock period

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 92

Epson Research and Development
Vancouver Design Center

6.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01)
FPFRAME
(SPS)

t1

FPLINE
(LP)
t2
t3
FPLINE
(LP)

t4

FPSHIFT
(CLK)
t5 t6
D1

FPDAT[17:0]

D320

D3
t8

t7

t9

D2

t10

GPIO3
(SPL)
t11
GPIO1
(CLS)
t12
GPIO0
(PS)

t13

GPIO2
(REV)

Figure 6-34 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 93

Table 6-28: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing
Symbol

Parameter
FPLINE start position
Horizontal total period
FPLINE width
FPSHIFT period
Data setup to FPSHIFT rising edge
Data hold from FPSHIFT rising edge
Horizontal display start position
Horizontal display period
FPLINE rising edge to GPIO3 rising edge
GPIO3 pulse width
GPIO1, GPIO0 pulse width
GPIO1 rising edge (GPIO0 falling edge) to FPLINE rise edge
GPIO2 toggle edge to FPLINE rise edge

t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13

1.
2.
3.
4.
5.
6.

Ts
t1typ
t2typ
t3typ
t7typ
t8typ

Min
400

Typ
14 (note 2)
note 3
1 (note 4)
1

Max
440

0.5
0.5
60 (note 5)
320 (note 6)
59
1
353
5
11

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period
= (REG[23h] bits 1-0, REG[22h] bits 7-0) + 1
= ((REG[12h] bits 6-0) + 1) x 8
= (REG[20h] bits 6-0) + 1
= ((REG[17h] bits 1-0, REG[16h] bits 7-0) + 5) - ((REG[23h] bits 1-0, REG[22h] bits 7-0) + 1)
= ((REG[14h] bits 6-0) + 1) x 8

t1
t2
FPDAT[17:0]

t3
LINE1

LINE2

LINE240

t4
FPFRAME
(SPS)

Figure 6-35 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timing

Table 6-29: 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timing
Symbol
t1
t2
t3
t4

Parameter
Vertical total period
Vertical display start position
Vertical display period
Vertical sync pulse width

Hardware Functional Specification
Issue Date: 02/03/07

Min
245

Typ
4
240
2

Max
330

Units
Lines
Lines
Lines
Lines

S1D13708
X39A-A-001-02

Page 94

Epson Research and Development
Vancouver Design Center

6.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR)
t1
FPLINE
(LP)
t3

t2
FPSHIFT
(XSCL)
t4

t6

t5

FPDAT[17:0]

1

2

3

4

160

(R,G,B)
t7

t8
t9

t9
t10

t10
GPIO4
(RES)
t11

t12

t11

t12

GPIO1
(YSCL)
t13
GPIO0
(XINH)
t14

t15

GPIO6
(YSCLD)
GPIO2
(FR)
t16
GPIO3
(FRS)
t17

t17

GPIO5
(DD_P1)

Figure 6-36 160x240 Epson D-TFD Panel Horizontal Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 95

Table 6-30: 160x240 Epson D-TFD Panel Horizontal Timing
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13
t14
t15
t16
t17

1. Ts

Parameter
FPLINE pulse width
FPLINE falling edge to FPSHIFT start position
FPSHIFT active period
FPSHIFT start to first data
Horizontal display period
Last data to FPSHIFT inactive
FPLINE falling edge to GPIO4 first pulse falling edge
Horizontal total period
GPIO4 first pulse falling edge to second pulse falling edge
GPIO4 pulse width
GPIO1 pulse width
GPIO1 low period
GPIO0 pulse width
GPIO6 low pulse width
GPIO6 rising edge to GPIO0 falling edge
GPIO2 toggle to GPIO3 toggle
GPIO5 low pulse width

Min

Typ
9
8.5
167
4
160
3
1
400
200
11
100
100)
200
90
10
1
7

Max

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 96

Epson Research and Development
Vancouver Design Center

t1
GPIO4
(RES)
t2
DRDY
(GCP)

GCP Data Register
(REG[2Ch])

1

1

0

1

0

0

1

bit0

bit7
Index 00h

1

0

1

bit7

bit7
Index 01h

Index 00h

Figure 6-37 160x240 Epson D-TFD Panel GCP Horizontal Timing

Table 6-31: 160x240 Epson D-TFD Panel GCP Horizontal Timing
Symbol

Parameter
Half of the horizontal total period
GCP clock period

t1
t2

1. Ts

Min

Typ
200
1

Max

Units
Ts (note 1)
Ts

= pixel clock period

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 97

Vertical Total = 250HT
t1
FPFRAME
(DY)
t2
GPIO1
(YSCL)
GPIO0
(XINH)
t3
FPDAT[17:0]
(R,G,B)

line1

line2

GPIO2 (FR)
(odd frame)

GPIO2 (FR)
(even frame)

Figure 6-38 160x240 Epson D-TFD Panel Vertical Timing
Table 6-32: 160x240 Epson D-TFD Panel Vertical Timing
Symbol
t1
t2
t3

1. Ts

Parameter
FPFRAME pulse width
Horizontal total period
Vertical display start

Min

Typ
200
400
400

Max

Units
Ts (note 1)
Ts
Ts

= pixel clock period

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 98

Epson Research and Development
Vancouver Design Center

6.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR)

t1
FPLINE
(LP)
t3

t2
FPSHIFT
(XSCL)
FPDAT[17:0]
(R,G,B)

t6

t5

t4
1

2

3

4

320

t8

t7
t9

t9

t10

t10

GPIO4
(RES)
t11

t12

t11

t12

GPIO1
(YSCL)
t13
GPIO0
(XINH)
t14

t15

GPIO6
(YSCLD)
GPIO2
(FR)
t16
GPIO3
(FRS)
t17

t17

GPIO5
(DD_P1)

Figure 6-39 320x240 Epson D-TFD Panel Horizontal Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 99

Table 6-33: 320x240 Epson D-TFD Panel Horizontal Timing
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13
t14
t15
t16
t17

1. Ts

Parameter
FPLINE pulse width
FPLINE falling edge to FPSHIFT start position
FPSHIFT active period
FPSHIFT start to first data
Horizontal display period
Last data to FPSHIFT inactive
FPLINE falling edge to GPIO4 first pulse falling edge
Horizontal total period
GPIO4 first pulse falling edge to second pulse falling edge
GPIO4 pulse width
GPIO1 pulse width
GPIO1 low period
GPIO0 pulse width
GPIO6 low pulse width
GPIO6 rising edge to GPIO0 falling edge
GPIO2 toggle to GPIO3 toggle
GPIO5 low pulse width

Min

Typ
9
8.5
331
6
320
5
1
400
200
11
100
100
200
90
10
1
7

Max

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 100

Epson Research and Development
Vancouver Design Center

t1
GPIO4
(RES)

t2
DRDY
(GCP)

GCP Data Register
(REG[2Ch])

1

1

0

1

0

0

1

bit0

bit7
Index 00h

1

0

1

bit7

bit7

Index 00h

Index 01h

Figure 6-40 320x240 Epson D-TFD Panel GCP Horizontal Timing

Table 6-34: 320x240 Epson D-TFD Panel GCP Horizontal Timing
Symbol

Parameter
Half of the horizontal total period
GCP clock period

t1
t2

1. Ts

Min

Typ
200
1

Max

Units
Ts (note 1)
Ts

= pixel clock period

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 101

Vertical Total = 250HT
t1
FPFRAME
(DY)

t2

GPIO1
(YSCL)
GPIO0
(XINH)
t3
FPDAT[17:0]
(R,G,B)

line1

line2

GPIO2 (FR)
(odd frame)

GPIO2 (FR)
(even frame)

Figure 6-41 320x240 Epson D-TFD Panel Vertical Timing
Table 6-35: 320x240 Epson D-TFD Panel Vertical Timing
Symbol
t1
t2
t3

1. Ts

Parameter
FPFRAME pulse width
Horizontal total period
Vertical display start

Min

Typ
200
400
400

Max

Units
Ts (note 1)
Ts
Ts

= pixel clock period

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 102

Epson Research and Development
Vancouver Design Center

6.4.14 TFT Type 2 Panel Timing
t1
t2
FPLINE
(STB)
t3

t4

GPIO0
(VCLK)
t5

t6

GPIO3
(STH)

FPSHIFT
(CLK)
t7
D[17:0]

t8
1

DRDY (INV)

Last

2
t9

t10

t11

GPIO1
(AP)
t12
GPIO2
(POL)

Figure 6-42 TFT Type 2 Horizontal Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 103

Table 6-36: TFT Type 2 Horizontal Timing
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12

1.
2.
3.
4.
5.
6.
7.
8.

Ts
t1typ
t3typ
t4typ
t5typ
t9typ
t10typ
t11typ

Parameter
Horizontal total period
FPLINE pulse width
GPIO0 rising edge to FPLINE rising edge
FPLINE rising edge to GPIO0 falling edge
FPLINE rising edge to GPIO3 rising edge
GPIO3 pulse width
Data setup time
Data hold time
Horizontal display period
FPLINE rising edge to GPIO1 rising edge
GPIO1 pulse width
FPLINE rising edge to GPIO2 toggle position

Min
1
7
7

0.5
0.5
8
40
20

Typ
note 2
5
note 3
note 4
note 5
1

Max
1024

note 6
note 7
note 8
10

1024
90
270

16
16

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period
= (REG[12h] bits 6-0) +1) x 8
= Selected from 7, 9, 12 or 16 Ts in REG[D0h] bits 1-0
= Selected from 7, 9, 12 or 16 Ts in REG[D0h] bits 4-3
= (REG[17h] bits 1-0, REG[16h] bits 7-0) + 3
= ((REG[14h] bits 6-0) +1) x 8
= Selected from 40, 52, 68 or 90 Ts in REG[D1h] bits 1-0
= Selected from 20, 40, 80, 120, 150, 190, 240 or 270 Ts in REG[D1h] bits 5-3

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 104

Epson Research and Development
Vancouver Design Center

t1
t2
FPFRAME
(STV)
t3
GPIO3
(STH)
t4
D[17:0]

t5
Line1

Line2

Last

GPIO2
(POL)
(Odd Frame)
GPIO2
(POL)
(Even Frame)
GPIO2
(POL)
(Alternate Timing)

Figure 6-43 TFT Type 2 Vertical Timing

Table 6-37: TFT Type 2 Vertical Timing
Symbol

Parameter
Vertical total period
FPFRAME pulse width
GPIO3 rising edge to FPFRAME rising edge
Vertical display start position
Vertical display period

t1
t2
t3
t4
t5

1.
2.
3.
4.

Ts
t1typ
t4typ
t5typ

Min
8

0
1

Typ
note 1
1
0
note 2
note 3

Max
1024

1024
1024

Units
Lines
Lines
Ts (note 1)
Lines
Ts

= pixel clock period
= (REG[19h] bits 1-0, REG[18h] bits 7-0) +1
= (REG[1Fh] bits 1-0, REG[1Eh] bits 7-0)
= (REG[1Dh] bits 1-0], REG[1Ch] bits 7-0) + 1

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 105

6.4.15 TFT Type 3 Panel Timing
t1
t2
FPLINE
(LP)
t3

t4

GPIO3
(EIO)

FPSHIFT
(CPH)
t5
D[17:0]

t7

t6

1

DRDY (INV)

t8
Last

2

t10

t9
GPIO1
(OE)
t11
GPIO2
(POL)
t12
GPIO4
(VCOM)
t13

t14

GPIO0
(CPV)

Figure 6-44 TFT Type 3 Horizontal Timing

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 106

Epson Research and Development
Vancouver Design Center

Table 6-38: TFT Type 3 Horizontal Timing
Symbol

t5
t6
t7
t8
t9
t10
t11
t12
t13
t14

Parameter
Horizontal total period
FPLINE pulse width
FPLINE rising edge to GPIO3 rising edge
GPIO3 pulse width
GPIO3 rising edge to 1st data
Data setup time
Data hold time
Horizontal display period
FPLINE rising edge to GPIO1 rising edge
GPIO1 pulse width
FPLINE rising edge to GPIO2 toggle position
FPLINE rising edge to GPIO4 toggle position
FPLINE rising edge to GPIO0 rising edge
GPIO0 pulse width

Ts
t1typ
t2typ
t3typ
t8typ
t9typ
t10typ
t11typ
t12typ
t14typ

= pixel clock period
= ((REG[12h] bits 6-0) + 1) x 8
= (REG[20h] bits 6-0) + 1
= (REG[17h] bits 1-0, REG[16h] bits 7-0) + 3
= (REG[14h] bits 6-0) x 8
= ((REG[D5h] bits 7-0) x 2
= ((REG[D6h] bits 7-0) x 2
= ((REG[D7h] bits 7-0) x 2
= ((REG[D8h] bits 7-0) x 2
= ((REG[D9h] bits 7-0) x 2

t1
t2
t3
t4

1.
2.
3.
4.
5.
6.
7.
8.
9.
10.

Min
8
1

Typ
note 2
note 3
note 4

Max
1024
256

1
0.5
0.5
8
0
2
0
0
2

note 5
note 6
note 7
note 8
note 9
0
note 10

1024
512
512
512
512
512

Units
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

Note

When TFT type 3 panel interface is selected, the following formula must be satisfied.
HTP - (HDS + HDP) > (Number of Source Driver IC * 3) + 3
Note

When REG[D6h] = 0, GPIO1 (OE) pulse width equals FPLINE (LP) pulse width.
Note

When REG[D9h] = 0, t13 = 4ns and GPIO0 (CPV) pulse width equals FPLINE (LP)
pulse width.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 107

t1
t2
FPFRAME
(STV)
t3

t3
GPIO0
(CPV)
FPLINE
(LP)
t4
D[17:0]

t5
Line1

Line2

Last
t5

GPIO1
(OE)
t6 t7
GPIO5
(XOEV)

GPIO2
(POL)
(Odd Frame)
GPIO2
(VCOM)
(Odd Frame)
GPIO2
(POL)
(Even Frame)
GPIO2
(VCOM)
(Even Frame)

Figure 6-45 TFT Type 3 Vertical Timing

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 108

Epson Research and Development
Vancouver Design Center

Table 6-39: TFT Type 3 Vertical Timing
Symbol

Parameter
Vertical total period
FPFRAME pulse width
GPIO0 rising edge to FPFRAME rising (falling) edge
Vertical display start position
Vertical display period
GPIO5 rising edge to GPIO0 rising edge
GPIO0 rising edge to GPIO5 falling edge

t1
t2
t3
t4
t5
t6
t7

1.
2.
3.
4.
5.

Ts
t4typ
t5typ
t6typ
t7typ

Min
1

1
1
0
0

Typ
1
0.5
note 2
note 3
note 4
note 5

Max
1024

1024
512
512

Units
Lines
Lines
Lines
Lines
Lines
Ts
Ts

= pixel clock period
= (REG[1Fh] bits 1-0, REG[1Eh] bits 7-0)
= (REG[1Dh] bits 1-0, REG[1Ch] bits 7-0) + 1
= ((REG[DAh] bits 7-0) x 2
= ((REG[DBh] bits 7-0) x 2
Note

When REG[DAh] = 0, GPIO5 (XOEV) stays HIGH.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 109

6.4.16 TFT Type 4 Panel Timing
VNDP2

VDP

VNDP1

FPFRAME
FPLINE
FPDAT[17:0]

LINE480

LINE1

LINE480

DRDY

FPLINE
HDP

HNDP1

HNDP2

FPSHIFT
DRDY

FPDAT[17:0]

invalid

1-1

1-2

1-640

invalid

Note: DRDY is used to indicate the first pixel
Example Timing for 12-bit 640x480 panel

Figure 6-46 TFT Type 4 Panel Timing
VDP
VNDP

VNDP1
VNDP2
HDP
HNDP

HNDP1
HNDP2

= Vertical Display Period
= VDP Lines
= Vertical Non-Display Period
= VNDP1 + VNDP2
= VT - VDP Lines
= Vertical Non-Display Period 1
= VNDP - VNDP2 Lines
= Vertical Non-Display Period 2
= VDPS - VPS Lines
= Horizontal Display Period
= HDP Ts
= Horizontal Non-Display Period
= HNDP1 + HNDP2
= HT - HDP Ts
= Horizontal Non-Display Period 1
= HDPS - (HPS + 1) + 5 Ts
= Horizontal Non-Display Period 2
= (HPS + 1) - (HDP + HDPS + 5) Ts

Hardware Functional Specification
Issue Date: 02/03/07

if negative add VT

if negative add HT
if negative add HT

S1D13708
X39A-A-001-02

Page 110

Epson Research and Development
Vancouver Design Center

t1
t2
FPFRAME
t3
FPLINE

t4

FPLINE
t5
t6

t9

t7
t8

DRDY
t10

t13

t14

t15

t11 t12
FPSHIFT

t16 t17
FPDAT[17:0]

invalid

1

2

639

640

invalid

Note: DRDY is used to indicate the first pixel

Figure 6-47 TFT Type 4 A.C. Timing

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 111

Table 6-40: TFT Type 4 A.C. Timing
Symbol
t1
t2
t3
t4
t5
t6
t7
t8
t9
t10
t11
t12
t13
t14
t15
t16
t17

1.
2.
3.
4.
5.
6.
7.
8.
9.

Ts
t1typ
t2typ
t3typ
t4typ
t5typ
t6typ
t8typ
t9typ

Parameter
FPFRAME cycle time
FPFRAME pulse width low
FPFRAME falling edge to FPLINE falling edge phase difference
FPLINE cycle time
FPLINE pulse width low
FPLINE Falling edge to DRDY active
DRDY active to data setup
DRDY pulse width
DRDY falling edge to FPLINE falling edge
FPSHIFT period
FPSHIFT pulse width high
FPSHIFT pulse width low
FPLINE setup to FPSHIFT falling edge
DRDY to FPSHIFT falling edge setup time
DRDY hold from FPSHIFT falling edge
Data setup to FPSHIFT falling edge
Data hold from FPSHIFT falling edge

Min
VT
VPW
HPS
HT
HPW

HDP
1
0.5
0.5
0.5
0.5
0.5
0.5
0.5

Typ
note 2
note 3
note 4
note 5
note 6
note 7
8
note 8
note 9

Max

250

Units
Lines
Lines
Ts (note 1)
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts
Ts

= pixel clock period
= (REG[19h] bits 1-0, REG[18h] bits 7-0) +1
= (REG[24h] bits 2-0) + 1
= (REG[23h] bits 1-0, REG[22h] bits 7-0) + 1
= ((REG[12h] bits 6-0) + 1) x 8
= (REG[12h] bits 6-0) + 1
= HDPS- (HPS + 1) x 8
= ((REG[14h] bits 6-0) + 1) x 8
= HPS - HDPS - HDP

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 112

Epson Research and Development
Vancouver Design Center

7 Clocks
7.1 Clock Descriptions
7.1.1 BCLK
BCLK is an internal clock derived from CLKI or XTAL. CLKI is typically provided from
the host CPU bus clock. The source clock options for BCLK may be selected as in the
following table.
Table 7-1: BCLK Clock Selection
Source Clock Options

BCLK Selection

CLKI

CNF[7:6] = 00, REG[CAh] bit 0 = 0

CLKI ÷2

CNF[7:6] = 01, REG[CAh] bit 0 = 0

CLKI ÷3

1

CNF[7:6] = 10, REG[CAh] bit 0 = 0

CLKI ÷4

1

CNF[7:6] = 11, REG[CAh] bit 0 = 0

XTAL2

÷2
XTAL ÷31
XTAL2 ÷41

CNF[7:6] = 00, REG[CAh] bit 0 = 1

2

CNF[7:6] = 01, REG[CAh] bit 0 = 1

2

CNF[7:6] = 10, REG[CAh] bit 0 = 1

XTAL

CNF[7:6] = 11, REG[CAh] bit 0 = 1

Note

The ÷ 3 and ÷ 4 options may not work properly with bus interfaces
which have short back-to-back cycle timing.
2 XTAL should only be used for BCLK when using the Indirect Interface.
1

7.1.2 MCLK
MCLK provides the internal clock required to access the embedded SRAM. The S1D13708
is designed with efficient power saving control for clocks (clocks are turned off when not
used); reducing the frequency of MCLK does not necessarily save more power.
Furthermore, reducing the MCLK frequency relative to the BCLK frequency increases the
CPU cycle latency and so reduces screen update performance. For a balance of power
saving and performance, MCLK should be configured to have a high enough frequency
setting to provide sufficient screen refresh as well as acceptable CPU cycle latency.
The source clock options for MCLK may be selected as in the following table.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 113

Table 7-2: MCLK Clock Selection
Source Clock Options

MCLK Selection

BCLK

REG[04h] bit 5,4 = 00

BCLK ÷2

REG[04h] bit 5,4 = 01

BCLK ÷3

REG[04h] bit 5,4 = 10

BCLK ÷4

REG[04h] bit 5,4 = 11

7.1.3 PCLK
PCLK is the internal clock used to control the LCD panel. PCLK should be chosen to match
the optimum frame rate of the LCD panel. See Section 9, “Frame Rate Calculation” on page
171 for details on the relationship between PCLK and frame rate.
Some flexibility is possible in the selection of PCLK. Firstly, LCD panels typically have a
range of permissible frame rates. Secondly, it may be possible to choose a higher PCLK
frequency and tailor the horizontal and vertical non-display periods to lower the frame-rate
to its optimal value.
The source clock options for PCLK may be selected as in the following table.
Table 7-3: PCLK Clock Selection

Hardware Functional Specification
Issue Date: 02/03/07

Source Clock Options

PCLK Selection

MCLK

REG[05h] = 00h

MCLK ÷2

REG[05h] = 10h

MCLK ÷3

REG[05h] = 20h

MCLK ÷4

REG[05h] = 30h

MCLK ÷8

REG[05h] = 40h

BCLK

REG[05h] = 01h

BCLK ÷2

REG[05h] = 11h

BCLK ÷3

REG[05h] = 21h

BCLK ÷4

REG[05h] = 31h

BCLK ÷8

REG[05h] = 41h

CLKI

REG[05h] = 02h

CLKI ÷2

REG[05h] = 12h

CLKI ÷3

REG[05h] = 22h

CLKI ÷4

REG[05h] = 32h

CLKI ÷8

REG[05h] = 42h

CLKI2

REG[CAh] bit 1 = 0, REG[05h] = 03h

CLKI2 ÷2

REG[CAh] bit 1 = 0, REG[05h] = 13h

CLKI2 ÷3

REG[CAh] bit 1 = 0, REG[05h] = 23h

CLKI2 ÷4

REG[CAh] bit 1 = 0, REG[05h] = 33h

CLKI2 ÷8

REG[CAh] bit 1 = 0, REG[05h] = 43h

S1D13708
X39A-A-001-02

Page 114

Epson Research and Development
Vancouver Design Center

Table 7-3: PCLK Clock Selection (Continued)

S1D13708
X39A-A-001-02

Source Clock Options

PCLK Selection

XTAL

REG[CAh] bit 1 = 1, REG[05h] = 03h

XTAL ÷2

REG[CAh] bit 1 = 1, REG[05h] = 13h

XTAL ÷3

REG[CAh] bit 1 = 1, REG[05h] = 23h

XTAL ÷4

REG[CAh] bit 1 = 1, REG[05h] = 33h

XTAL ÷8

REG[CAh] bit 1 = 1, REG[05h] = 43h

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 115

There is a relationship between the frequency of MCLK and PCLK that must be
maintained.
Table 7-4: Relationship between MCLK and PCLK
SwivelView Orientation

Color Depth (bpp)

MCLK to PCLK Relationship

16

fMCLK ≥ fPCLK

8

fMCLK ≥ fPCLK ÷ 2

4

fMCLK ≥ fPCLK ÷ 4

2

fMCLK ≥ fPCLK ÷ 8

1

fMCLK ≥ fPCLK ÷16

16/8/4/2/1

fMCLK ≥ 1.25fPCLK

SwivelView 0° and 180°

SwivelView 90° and 270°

7.1.4 PWMCLK
PWMCLK is the internal clock used by the Pulse Width Modulator for output to the panel.
The source clock options for PWMCLK may be selected as in the following table.
Table 7-5: PWMCLK Clock Selection
Source Clock Options

PWMCLK Selection

CLKI

REG[B1h] bit 0 = 0

CLKI2

REG[CAh] bit 1 = 0, REG[B1h] bit 0 = 1

XTAL

REG[CAh] bit 1 = 1, REG[B1h] bit 0 = 1

For further information on controlling PWMCLK, see Section 8.3.9, “Pulse Width
Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registers” on
page 150.
Note

The S1D13708 provides Pulse Width Modulation output on the pin PWMOUT.
PWMOUT can be used to control LCD panels which support PWM control of the backlight inverter.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 116

Epson Research and Development
Vancouver Design Center

7.2 Clock Selection
The following diagram provides a logical representation of the S1D13708 internal clocks.

0

CLKI

00
XTAL

1

÷2

01

÷3

10

÷4

11

BCLK
REG[CAh] bit 0

CNF[7:6]1
REG[04h] bits 5,4

00
÷2

01

÷3

10

÷4

11

MCLK

00
01
000
10

1

11
0

CLKI2

REG[05h] bits 1,0

REG[CAh] bit 1

0

÷2

001

÷3

010

÷4

011

÷8

1xx

PCLK

REG[05h] bits 6-4
PWMCLK

1

REG[B1h] bit 0

Figure 7-1 Clock Selection
Note
1

S1D13708
X39A-A-001-02

CNF[7:6] must be set at RESET#.

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 117

7.3 Clocks versus Functions
Table 7-6: “S1D13708 Internal Clock Requirements”, lists the internal clocks required for
the following S1D13708 functions.
Table 7-6: S1D13708 Internal Clock Requirements
Function

Bus Clock
(BCLK)

Memory Clock
(MCLK)

Pixel Clock
(PCLK)

PWM Clock
(PWMCLK)

Register Read/Write

Required

Not Required

Not Required

Not Required1

Memory Read/Write

Required

Required

Not Required

Not Required1

Look-Up Table Register
Read/Write

Required

Required

Not Required

Not Required1

Software Power Save

Required

Not Required

Not Required

Not Required1

LCD Output

Not Required

Required

Required

Not Required1

Note
1

Hardware Functional Specification
Issue Date: 02/03/07

PWMCLK is an optional clock (see Section 7.1.4, “PWMCLK” on page 115).

S1D13708
X39A-A-001-02

Page 118

Epson Research and Development
Vancouver Design Center

8 Registers
This section discusses how and where to access the S1D13708 registers. It also provides
detailed information about the layout and usage of each register.

8.1 Register Mapping
The S1D13708 registers are memory-mapped. When the system decodes the input pins as
CS# = 0 and M/R# = 0, the registers may be accessed. The register space is decoded by
A[16:0].

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 119

8.2 Register Set
The S1D13708 register set is as follows.
Table 8-1: S1D13708 Register Set
Register

Pg

Register

Pg

Read-Only Configuration Registers
REG[00h] Revision Code Register

121

REG[02h] Configuration Readback Register

121

REG[01h] Display Buffer Size Register

121

Clock Configuration Registers
REG[04h] Memory Clock Configuration Register

122

REG[05h] Pixel Clock Configuration Register

122

Look-Up Table Registers
REG[08h] Look-Up Table Blue Write Data Register

123

REG[09h] Look-Up Table Green Write Data Register

REG[0Ah] Look-Up Table Red Write Data Register

124

REG[0Bh] Look-Up Table Write Address Register

124

REG[0Ch] Look-Up Table Blue Read Data Register

124

REG[0Dh] Look-Up Table Green Read Data Register

125

125

REG[0Fh] Look-Up Table Read Address Register

125

REG[0Eh] Look-Up Table Red Read Data Register

123

Panel Configuration Registers
REG[10h] Panel Type Register

126

REG[11h] MOD Rate Register

127

REG[12h] Horizontal Total Register

127

REG[14h] Horizontal Display Period Register

128

REG[16h] Horizontal Display Period Start Position Register 0

128

REG[17h] Horizontal Display Period Start Position Register 1

128

REG[18h] Vertical Total Register 0

129

REG[19h] Vertical Total Register 1

129

REG[1Ch] Vertical Display Period Register 0

129

REG[1Dh] Vertical Display Period Register 1

129

REG[1Eh] Vertical Display Period Start Position Register 0

130

REG[1Fh] Vertical Display Period Start Position Register 1

130

REG[20h] FPLINE Pulse Width Register

130

REG[22h] FPLINE Pulse Start Position Register 0

131

REG[23h] FPLINE Pulse Start Position Register 1

131

REG[24h] FPFRAME Pulse Width Register

131

REG[26h] FPFRAME Pulse Start Position Register 0

132

REG[27h] FPFRAME Pulse Start Position Register 1

132

REG[28h] D-TFD GCP Index Register

132

REG[2Ch] D-TFD GCP Data Register

132

Display Mode Registers
REG[70h] Display Mode Register

133

REG[71h] Special Effects Register

135

REG[74h] Main Window Display Start Address Register 0

137

REG[75h] Main Window Display Start Address Register 1

137

REG[76h] Main Window Display Start Address Register 2

137

REG[78h] Main Window Line Address Offset Register 0

137

REG[79h] Main Window Line Address Offset Register 1

137

Picture-in-Picture Plus Registers
REG[7Ch] PIP+ Window Display Start Address Register 0
+

138

REG[7Dh] PIP+ Window Display Start Address Register 1
+

138

REG[7Eh] PIP Window Display Start Address Register 2

138

REG[80h] PIP Window Line Address Offset Register 0

138

REG[81h] PIP+ Window Line Address Offset Register 1

138

REG[84h] PIP+ Window X Start Position Register 0

139

REG[85h] PIP+ Window X Start Position Register 1

139

REG[88h] PIP+ Window Y Start Position Register 0

140

REG[89h] PIP+ Window Y Start Position Register 1

140

REG[8Ch] PIP+ Window X End Position Register 0

141

+

REG[8Dh] PIP Window X End Position Register 1

141

REG[91h] PIP+ Window Y End Position Register 1

142

+

REG[90h] PIP Window Y End Position Register 0

142

Miscellaneous Registers
REG[A0h] Power Save Configuration Register

143

REG[A1h] Reserved

143

REG[A2h] Reserved

144

REG[A3h] Reserved

144

REG[A4h] Scratch Pad Register 0

144

REG[A5h] Scratch Pad Register 1

144

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 120

Epson Research and Development
Vancouver Design Center

Table 8-1: S1D13708 Register Set
Register

Pg

Register

Pg

General Purpose IO Pins Registers
REG[A8h] General Purpose IO Pins Configuration Register 0

145

REG[A9h] General Purpose IO Pins Configuration Register 1

146

REG[ACh] General Purpose IO Pins Status/Control Register 0

146

REG[ADh] General Purpose IO Pins Status/Control Register 1

149

PWM Clock and CV Pulse Configuration Registers
REG[B0h] PWM Clock / CV Pulse Control Register

150

REG[B1h] PWM Clock / CV Pulse Configuration Register

152

REG[B2h] CV Pulse Burst Length Register

153

REG[B3h] PWMOUT Duty Cycle Register

153

Extended Registers
REG[C0h] Memory Access Pointer 0

154

REG[C1h] Memory Access Pointer 1

154

REG[C2h] Memory Access Pointer 2

154

REG[C4h] Memory Access Start

154

REG[C5h] Extended Panel Type Register

155

REG[C6h] Memory Access Select Register

155

REG[C7h] Ink Layer Transparent Color Register 0

156

REG[C8h] Ink Layer Transparent Color Register 1

156

REG[C9h] Ink Layer Register

157

REG[CAh] BCLK Source Select Register

157

REG[CBh] Data Compare Invert Enable Register

158

REG[D0h] TFT Type 2 VCLK Configuration Register

159

REG[D1h] TFT Type 2 AP Configuration Register

160

REG[D4h] TFT Type 3 Control Signal Enable Register

161

REG[D5h] TFT Type 3 OE Rising Edge Position Register

162

REG[D6h] TFT Type 3 OE Pulse Width Register

162

REG[D7h] TFT Type 3 POL Toggle Position Register

162

REG[D8h] TFT Type 3 VCOM Toggle Position Register

162

REG[D9h] TFT Type 3 CPV Pulse Width Register

163

REG[DAh] TFT Type 3 XOEV Rising Edge Position Register

163

REG[DBh] TFT Type 3 XOEV Falling Edge Position Register

163

REG[DCh] TFT Type 3 PCLK Divide Register

164

REG[E0h] TFT Type 3 Partial Mode Display Area Control Register 165

REG[E1h] TFT Type 3 Partial Mode Display Refresh Cycle Register165

REG[E2h] TFT Type 3 Partial Area 0 X Start Position Register

166

REG[E3h] TFT Type 3 Partial Area 0 Y Start Position Register

166

REG[E4h] TFT Type 3 Partial Area 0 X End Position Register

166

REG[E5h] TFT Type 3 Partial Area 0 Y End Position Register

166

REG[E6h] TFT Type 3 Partial Area 1 X Start Position Register

167

REG[E7h] TFT Type 3 Partial Area 1 Y Start Position Register

167

REG[E8h] TFT Type 3 Partial Area 1 X End Position Register

167

REG[E9h] TFT Type 3 Partial Area 1 Y End Position Register

167

REG[EAh] TFT Type 3 Partial Area 2 X Start Position Register

168

REG[EBh] TFT Type 3 TFT Partial Area 2 Y Start Position Register 168

REG[ECh] TFT Type 3 Partial Area 2 X End Position Register

168

REG[EDh] TFT Type 3 Partial Area 2 Y End Position Register

168

REG[F0h] TFT Type 3 Command 0 Store Register 0

169

REG[F1h] TFT Type 3 Command 0 Store Register 1

169

REG[F2h] TFT Type 3 Command 1 Store Register 0

169

REG[F3h] TFT Type 3 Command 1 Store Register 1

169

REG[F4h] TFT Type 3 Command Send Request Register

169

REG[F5h] TFT Type 3 Source Driver IC Number Register

170

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 121

8.3 Register Descriptions
Unless specified otherwise, all register bits are set to 0 during power-on.

8.3.1 Read-Only Configuration Registers
Revision Code Register
REG[00h]

Read Only
Product Code Bits 5-0

7

6

5

4

Revision Code Bits 1-0
3

2

1

0

Note

The S1D13708 returns a value of 34h.
bits 7-2

Product Code
These are read-only bits that indicates the product code. The product code is 001101.

bits 1-0

Revision Code
These are read-only bits that indicates the revision code. The revision code is 00.

Display Buffer Size Register
REG[01h]

Read Only
Display Buffer Size Bits 7-0

7

6

bits 7-0

5

4

3

2

1

0

Display Buffer Size Bits [7:0]
This is a read-only register that indicates the size of the SRAM display buffer measured in
4K byte increments. The S1D13708 display buffer is 80K bytes and therefore this register
returns a value of 20 (14h).
Value of this register = display buffer size ÷ 4K bytes
= 80K bytes ÷ 4K bytes
= 20 (14h)

Configuration Readback Register
REG[02h]
CNF7 Status
7

bits 7-0

CNF6 Status CNF5 Status
6

5

Read Only
CNF4 Status
4

CNF3 Status
3

CNF2 Status
2

CNF1 Status
1

CNF0 Status
0

CNF[7:0] Status
These read-only status bits return the status of the configuration pins CNF[7:0]. CNF[7:0]
are latched at the rising edge of RESET#.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 122

Epson Research and Development
Vancouver Design Center

8.3.2 Clock Configuration Registers
Memory Clock Configuration Register
REG[04h]
n/a
7

Read/Write

MCLK Divide Select Bits 1-0
6

bits 5-4

5

4

n/a
3

2

1

0

MCLK Divide Select Bits [1:0]
These bits determine the divide used to generate the Memory Clock (MCLK) from the Bus
Clock (BCLK).
Table 8-2: MCLK Divide Selection
MCLK Divide Select Bits

BCLK to MCLK Frequency Ratio

00

1:1

01

2:1

10

3:1

11

4:1

Pixel Clock Configuration Register
REG[05h]
n/a
7

bits 6-4

Read/Write

PCLK Divide Select Bits 2-0
6

5

n/a
4

3

PCLK Source Select Bits 1-0
2

1

0

PCLK Divide Select Bits [1:0]
These bits determine the divide used to generate the Pixel Clock (PCLK) from the Pixel
Clock Source.
Table 8-3: PCLK Divide Selection

S1D13708
X39A-A-001-02

PCLK Divide Select Bits

PCLK Source to PCLK Frequency Ratio

000

1:1

001

2:1

010

3:1

011

4:1

1XX

8:1

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

bits 1-0

Page 123

PCLK Source Select Bits [1:0]
These bits determine the source of the Pixel Clock (PCLK).
Table 8-4: PCLK Source Selection
PCLK Source Select Bits 1:0

PCLK Source

00

MCLK

01

BCLK

10

CLKI

11

CLKI2 / XTAL

Note

Selecting XTAL as the PCLK source is controlled by the BCLK Source Select bit
(REG[C9h] bit 0).

8.3.3 Look-Up Table Registers
Look-Up Table Blue Write Data Register
REG[08h]

Write Only

LUT Blue Write Data Bits 5-0
7

6

bits 7-2

5

4

n/a
3

2

1

0

LUT Blue Write Data Bits [5:0]
This register contains the data to be written to the blue component of the Look-Up Table.
The data is stored in this register until a write to the LUT Write Address register
(REG[0Bh]) moves the data into the Look-Up Table.
Note

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is
written to.

Look-Up Table Green Write Data Register
REG[09h]

Write Only

LUT Green Write Data Bits 5-0
7

bits 7-2

6

5

4

n/a
3

2

1

0

LUT Green Write Data Bits [5:0]
This register contains the data to be written to the green component of the Look-Up Table.
The data is stored in this register until a write to the LUT Write Address register
(REG[0Bh]) moves the data into the Look-Up Table.
Note

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is
written to.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 124

Epson Research and Development
Vancouver Design Center

Look-Up Table Red Write Data Register
REG[0Ah]

Write Only

LUT Red Write Data Bits 5-0
7

6

bits 7-2

5

4

n/a
3

2

1

0

LUT Red Write Data Bits [5:0]
This register contains the data to be written to the red component of the Look-Up Table.
The data is stored in this register until a write to the LUT Write Address register
(REG[0Bh]) moves the data into the Look-Up Table.
Note

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is
written to.

Look-Up Table Write Address Register
REG[0Bh]

Write Only
LUT Write Address Bits 7-0

7

6

bits 7-0

5

4

3

2

1

0

LUT Write Address Bits [7:0]
This register forms a pointer into the Look-Up Table (LUT) which is used to write LUT
data stored in REG[08h], REG[09h] and REG[0Ah. The LUT Read Address Register
(REG[0Fh]) and all corresponding Read Data Registers will also be updated with the
newly written address and data. This is a write-only register and returns 00h if read.Fh
Note

The S1D13708 has three 256-position, 6-bit wide LUTs, one for each of red, green, and
blue (see Section 11, “Look-Up Table Architecture” on page 173).

Look-Up Table Blue Read Data Register
REG[0Ch]

Read Only

LUT Blue Read Data Bits 5-0
7

bits 7-2

S1D13708
X39A-A-001-02

6

5

4

n/a
3

2

1

0

LUT Blue Read Data Bits [5:0]
This register contains the data from the blue component of the Look-Up Table. The LUT
entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a readonly register.

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 125

Look-Up Table Green Read Data Register
REG[0Dh]

Read Only

LUT Green Read Data Bits 5-0
7

6

bits 7-2

5

4

n/a
3

2

1

0

LUT Green Read Data Bits [5:0]
This register contains the data from the green component of the Look-Up Table. The LUT
entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a readonly register.

Look-Up Table Red Read Data Register
REG[0Eh]

Read Only

LUT Red Read Data Bits 5-0
7

6

bits 7-2

5

4

n/a
3

2

1

0

LUT Red Read Data Bits [5:0]
This register contains the data from the red component of the Look-Up Table. The LUT
entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a readonly register.

Look-Up Table Read Address Register
REG[0Fh]

Write Only
LUT Read Address Bits 7-0

7

bits 7-0

6

5

4

3

2

1

0

LUT Read Address Bits [7:0]
This register forms a pointer into the Look-Up Table (LUT) which is used to read LUT
data and store it in REG[0Ch], REG[0Dh], REG[0Eh]. This is a write-only register and
returns 00h if read.
Note

The S1D13708 has three 256-position, 6-bit wide LUTs, one for each of red, green, and
blue (see Section 11, “Look-Up Table Architecture” on page 173).

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 126

Epson Research and Development
Vancouver Design Center

8.3.4 Panel Configuration Registers
Panel Type Register
REG[10h]

Read/Write

Panel Data
Format Select

Color/Mono.
Panel Select

7

6

Panel Data Width Bits 1-0
5

HRTFT/
D-TFD
Control Bit

n/a

3

2

4

Panel Type Select Bits 1-0
1

0

bit 7

Panel Data Format Select
When this bit = 0, 8-bit single color passive LCD panel data format 1 is selected. For AC
timing see Section 6.4.5, “Single Color 8-Bit Panel Timing (Format 1)” on page 78.
When this bit = 1, 8-bit single color passive LCD panel data format 2 is selected. For AC
timing see Section 6.4.6, “Single Color 8-Bit Panel Timing (Format 2)” on page 80.

bit 6

Color/Mono Panel Select
When this bit = 0, a monochrome LCD panel is selected.
When this bit = 1, a color LCD panel is selected.

bits 5-4

Panel Data Width Bits [1:0]
These bits select the data width size of the LCD panel.
Table 8-5: Panel Data Width Selection

bit 3

Panel Data Width Bits [1:0]

Passive Panel Data Width
Size

Active Panel Data Width Size

00

4-bit

9-bit

01

8-bit

12-bit

10

16-bit

18-bit

11

Reserved

Reserved

HRTFT/D-TFD Control Bit
This bit selects one of two modes of operation for HR-TFT/D-TFD panels depending on
the panel resolution. This bit has no effect for other panel types.
Table 8-6: HRTFT/D-TFD Panel Resolution Selection
HRTFT/D-TFD Control Bit

HR-TFT Resolution

D-TFD Resolution

0

160x160

160x240

1

320x240

320x240

Note

This bit sets some internal non-configurable timing values for the selected panel. However, all panel configuration registers (REG[12h] - REG[27h]) still require programming with the appropriate values for the selected panel. For panel AC timing, see
Section 6.4, “Display Interface” on page 68.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

bits 1-0

Page 127

Panel Type Select Bits[1:0]
These bits select the panel type.
Table 8-7: LCD Panel Type Selection
REG[10h] Bits[1:0]

Panel Type Select

00

STN

01

TFT

10

HR-TFT

11

D-TFD

MOD Rate Register
REG[11h]

Read/Write

n/a
7

MOD Rate Bits 5-0
6

bits 5-0

5

4

3

2

1

MOD Rate Bits [5:0]
These bits are for passive LCD panels only.
When these bits are all 0, the MOD output signal (DRDY) toggles every FPFRAME.
For a non-zero value n, the MOD output signal (DRDY) toggles every n FPLINE.

Horizontal Total Register
REG[12h]

Read/Write

n/a
7

bits 6-0

0

Horizontal Total Bits 6-0
6

5

4

3

2

1

0

Horizontal Total Bits [6:0]
These bits specify the LCD panel Horizontal Total period, in 8 pixel resolution. The Horizontal Total is the sum of the Horizontal Display period and the Horizontal Non-Display
period. Since the maximum Horizontal Total is 1024 pixels, the maximum panel resolution supported is 800x600.
Horizontal Total in number of pixels = ((REG[12h] bits 6:0) + 1) × 8
Note

For TFT Type 3 panels this register must be programmed such that the following
formula is valid.
HT - HDPS - HDP < 11 PCLKs
Note

This register must be programmed such that the following formula is valid.
HDPS + HDP < HT
Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Interface” on page 68.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 128

Epson Research and Development
Vancouver Design Center

Horizontal Display Period Register
REG[14h]

Read/Write

n/a
7

Horizontal Display Period Bits 6-0
6

bits 6-0

5

4

3

2

1

0

Horizontal Display Period Bits [6:0]
These bits specify the LCD panel Horizontal Display period, in 8 pixel resolution. The
Horizontal Display period should be less than the Horizontal Total to allow for a sufficient
Horizontal Non-Display period.
Horizontal Display Period in number of pixels = ((REG[14h] bits 6:0) + 1) × 8
Note

For passive panels, HDP must be a minimum of 32 pixels and can be increased by multiples of 16. For TFT panels, HDP must be a minimum of 16 pixels and can be increased
by multiples of 8.
Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Interface” on page 68.

Horizontal Display Period Start Position Register 0
REG[16h]

Read/Write

Horizontal Display Period Start Position Bits 7-0
7

6

5

4

3

2

1

Horizontal Display Period Start Position Register 1
REG[17h]

Read/Write
Horizontal Display Period
Start Position Bits 9-8

n/a
7

bits 9-0

6

5

0

4

3

2

1

0

Horizontal Display Period Start Position Bits [9:0]
These bits specify a value used in the calculation of the Horizontal Display Period Start
Position (in 1 pixel resolution) for TFT, ‘Direct’ HR-TFT and ‘Direct’ D-TFD panels. For
passive LCD panels these bits must be set to 00h.
To calculate the Horizontal Display Period Start Position (HDPS) an offset which depends
on the panel type is required. For further information on calculating the HDPS, see the
specific panel AC timing in Section 6.4, “Display Interface” on page 68.
Note

This register must be programmed such that the following formula is valid.
HDPS + HDP < HT

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 129

Vertical Total Register 0
REG[18h]

Read/Write
Vertical Total Bits 7-0

7

6

5

4

3

2

1

Vertical Total Register 1
REG[19h]

Read/Write
n/a

7

6

bits 9-0

0

5

Vertical Total Bits 9-8
4

3

2

1

0

Vertical Total Bits [9:0]
These bits specify the LCD panel Vertical Total period, in 1 line resolution. The Vertical
Total is the sum of the Vertical Display Period and the Vertical Non-Display Period. The
maximum Vertical Total is 1024 lines.
Vertical Total in number of lines = (REG[18h] bits 7:0, REG[19h] bits 1:0) + 1
Note
1

This register must be programmed such that the following formula is valid.
VDPS + VDP < VT
2 For panel AC timing and timing parameter definitions, see Section 6.4, “Display Interface” on page 68.
Vertical Display Period Register 0
REG[1Ch]

Read/Write
Vertical Display Period Bits 7-0

7

6

5

4

3

2

1

Vertical Display Period Register 1
REG[1Dh]

Read/Write
Vertical Display Period
Bits 9-8

n/a
7

bits 9-0

6

5

0

4

3

2

1

0

Vertical Display Period Bits [9:0]
These bits specify the LCD panel Vertical Display period, in 1 line resolution. The Vertical
Display period should be less than the Vertical Total to allow for a sufficient Vertical
Non-Display period.
Vertical Display Period in number of lines = (REG[1Ch] bits 7:0, REG[1Dh] bits 1:0) + 1
Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Interface” on page 68.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 130

Epson Research and Development
Vancouver Design Center

Vertical Display Period Start Position Register 0
REG[1Eh]

Read/Write

Vertical Display Period Start Position Bits 7-0
7

6

5

4

3

2

1

Vertical Display Period Start Position Register 1
REG[1Fh]

Read/Write
Vertical Display Period Start
Position Bits 9-8

n/a
7

6

bits 9-0

5

0

4

3

2

1

0

Vertical Display Period Start Position Bits [9:0]
These bits specify the Vertical Display Period Start Position for HR-TFT and D-TFD
panels in 1 line resolution.
Note

For passive LCD and TFT (non-HR-TFT/D-TFD) panels these bits must be set to 00h.
Note

This register must be programmed such that the following formula is valid.
VDPS + VDP < VT
Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Interface” on page 68.

FPLINE Pulse Width Register
REG[20h]

Read/Write

FPLINE Pulse
Polarity
7

FPLINE Pulse Width Bits 6-0
6

5

4

3

2

1

0

bit 7

FPLINE Pulse Polarity
This bit selects the polarity of the horizontal sync signal. For most passive panels this bit
should be set to 1. For TFT panels this bit is set according to the horizontal sync signal
required by the panel, typically FPLINE or LP, depending on the panel type.
When this bit = 0, the horizontal sync signal is active low.
When this bit = 1, the horizontal sync signal is active high.

bits 6-0

FPLINE Pulse Width Bits [6:0]
These bits specify the width of the panel horizontal sync signal, in 1 pixel resolution. The
horizontal sync signal is typically FPLINE or LP, depending on the panel type.
FPLINE Pulse Width in number of pixels = (REG[20h] bits 6:0) + 1
Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Interface” on page 68.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 131

FPLINE Pulse Start Position Register 0
REG[22h]

Read/Write

FPLINE Pulse Start Position Bits 7-0
7

6

5

4

3

2

1

FPLINE Pulse Start Position Register 1
REG[23h]

Read/Write
FPLINE Pulse Start Position
Bits 9-8

n/a
7

6

bits 9-0

5

0

4

3

2

1

0

FPLINE Pulse Start Position Bits [9:0]
These bits specify the start position of the horizontal sync signal, in 1 pixel resolution.
FPLINE Pulse Start Position in pixels = [(REG[23h] bits 1-0, REG[22h] bits 7-0) + 1]
Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Interface” on page 68.

FPFRAME Pulse Width Register
REG[24h]

Read/Write

FPFRAME
Pulse Polarity
7

n/a
6

5

FPFRAME Pulse Width Bits 2-0
4

3

2

1

0

bit 7

FPFRAME Pulse Polarity
This bit selects the polarity of the vertical sync signal. For most passive panels this bit
should be set to 1. For TFT panels this bit is set according to the vertical sync signal
required by the panel, typically FPFRAME, SPS or DY, depending on the panel type.
When this bit = 0, the vertical sync signal is active low.
When this bit = 1, the vertical sync signal is active high.

bits 2-0

FPFRAME Pulse Width Bits [2:0]
These bits specify the width of the panel vertical sync signal, in 1 line resolution. The vertical sync signal is typically FPFRAME, SPS or DY, depending on the panel type.
FPFRAME Pulse Width in number of lines = (REG[24h] bits 2:0) + 1
Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Interface” on page 68.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 132

Epson Research and Development
Vancouver Design Center

FPFRAME Pulse Start Position Register 0
REG[26h]

Read/Write

FPFRAME Pulse Start Position Bits 7-0
7

6

5

4

3

2

1

FPFRAME Pulse Start Position Register 1
REG[27h]

Read/Write
FPFRAME Pulse Start
Position Bits 9-8

n/a
7

6

bits 9-0

5

0

4

3

2

1

0

FPFRAME Pulse Start Position Bits [9:0]
These bits specify the start position of the vertical sync signal, in 1 line resolution.
Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Interface” on page 68.

D-TFD GCP Index Register
REG[28h]

Read/Write

n/a
7

D-TFD GCP Index Bits 4-0

6

bits 4-0

5

4

3

2

1

0

D-TFD GCP Index Bits [4:0]
For D-TFD panels only. These bits form the index that points to 32 8-bit GCP data registers.

D-TFD GCP Data Register
REG[2Ch]

Read/Write
D-TFD GCP Data Bits 7-0

7

bits 7-0

6

5

4

3

2

1

0

D-TFD GCP Data Bits [7:0]
For D-TFD panel only. This register stores the data to be written to the GCP data bits and
is controlled by the D-TFD GCP Index register (REG[28h]).
Note

The Panel Type bits (REG[10h] bits 1:0) must be set to 11 (D-TFD) for the GCP Data
bits to have any hardware effect.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 133

8.3.5 Display Mode Registers
Display Mode Register
REG[70h]

Read/Write

Display Blank

Dithering
Disable

Hardware
Video Invert
Enable

Software
Video Invert

n/a

7

6

5

4

3

Bit-per-pixel Select Bits 2-0
2

1

0

bit 7

Display Blank
When this bit = 0, the LCD display pipeline is enabled.
When this bit = 1, the LCD display pipeline is disabled and all LCD data outputs are
forced to zero (i.e., the screen is blanked).

bit 6

Dithering Disable
When this bit = 0, dithering on the passive LCD panel is enabled, allowing a maximum of
256K colors (218) or 64 gray shades in 1/2/4/8 bpp mode. In 16bpp mode, only 64K colors
(216) is allowed because the LUT is bypassed.
When this bit = 1, dithering on the passive LCD panel is disabled, allowing a maximum of
4096 colors (212) or 16 gray shades.
Note

For a summary of the results of dithering for each color depth, see Table 8-9: “LCD Bitper-pixel Selection,” on page 135.
All passive STN color panels are controlled using 3 bits for each pixel (RGB) for a total of
8 possible colors. LCD controllers use a combination of Frame Rate Modulation (FRM)
and dithering to achieve more than 8 colors per pixel. FRM can achieve 16 shades of color
for each RGB component resulting in a total of 4096 possible colors (16x16x16). Dithering
uses a 4 pixel square formation and applies a set of 4 hard-coded patterns for each of the 16
shades of color. This expands the original 16 shades of color from the FRM logic to 64
shades per RGB component which results in 256K colors per pixel (64x64x64).
For the S1D13708, 16 bpp is arranged as 5-6-5 RGB. In this mode, when dithering is
enabled, the LUT is bypassed and the original 16-bit data is used as a pointer into the 64
shades per color in the following manner.
(5-6-5 RGB) 32 possible Red, 64 possible Green, 32 possible Blue
This combination of FRM and dithering results in 256K colors/pixel, however, the 16 bpp
limitation of the S1D13708 limits this to 64K colors/pixel.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 134

bit 5

Epson Research and Development
Vancouver Design Center

Hardware Video Invert Enable
This bit allows the Video Invert feature to be controlled using the General Purpose IO pin
GPIO0. This option is not available if configured for a HR-TFT, D-TFD, TFT Type 2,
or TFT Type 3 as GPIO0 is used as an LCD control signal by these panels.
When this bit = 0, GPIO0 has no effect on the video data.
When this bit = 1, video data may be inverted via GPIO0.
Note

The S1D13708 requires some configuration before the hardware video invert feature
can be enabled.
• CNF3 must be set to 1 at RESET#
• GPIO Pin Input Enable (REG[A9h] bit 7) must be set to 1
• GPIO0 Pin IO Configuration (REG[A8h] bit 0) must be set to 0
If Hardware Video Invert is not available, the video invert function can be controlled by
software using REG[70h] bit 4. The following table summarizes the video invert options
available.
Table 8-8: Inverse Video Mode Select Options
Hardware Video
Invert Enable

Software Video
Invert

GPIO0

Video Data

0

0

X

Normal

0

1

X

Inverse

1

X

0

Normal

1

X

1

Inverse

Note

Video data is inverted after the Look-Up Table.
bit 4

Software Video Invert
When this bit = 0, video data is normal.
When this bit = 1, video data is inverted.
See Table 8-8: “Inverse Video Mode Select Options”.
Note

Video data is inverted after the Look-Up Table

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

bits 2-0

Page 135

Bit-per-pixel Select Bits [2:0]
These bits select the color depth (bit-per-pixel) for the displayed data for both the main
window and the PIP+ window (if active).
1, 2, 4 and 8 bpp modes use the 18-bit LUT, allowing maximum 256K colors. 16 bpp
mode bypasses the LUT, allowing only 64K colors.
Table 8-9: LCD Bit-per-pixel Selection
Maximum Number of Colors/Shades
Bit-per-pixel
Color Depth (bpp)
Select Bits [2:0]

Passive Panel
(Dithering On)

TFT Panel

Max. No. Of
Simultaneously
Displayed
Colors/Shades

000

1 bpp

256K/64

256K/64

2/2

001

2 bpp

256K/64

256K/64

4/4

010

4 bpp

256K/64

256K/64

16/16

011

8 bpp

256K/64

256K/64

256/64

100

16 bpp

64K/64

64K/64

64K/64

101, 110, 111

Reserved

n/a

n/a

n/a

Special Effects Register
REG[71h]

Read/Write
+

Display Data
Word Swap

Display Data
Byte Swap

n/a

PIP Window
Enable

7

6

5

4

bit 7

SwivelView Mode Select
Bits 1-0

n/a
3

2

1

0

Display Data Word Swap
The display pipe fetches 32-bits of data from the display buffer. This bit enables the lower
16-bit word and the upper 16-bit word to be swapped before sending them to the LCD display. If the Display Data Byte Swap bit is also enabled, then the byte order of the fetched
32-bit data is reversed.
Note

For further information on byte swapping for Big Endian mode, see Section 17, “BigEndian Bus Interface” on page 212.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 136

bit 6

Epson Research and Development
Vancouver Design Center

Display Data Byte Swap
The display pipe fetches 32-bits of data from the display buffer. This bit enables byte 0 and
byte 1 to be swapped, and byte 2 and byte 3 to be swapped, before sending them to the
LCD display. If the Display Data Word Swap bit is also enabled, then the byte order of the
fetched 32-bit data is reversed.

byte 0
byte 1

32-bit display data
from display buffer

Data

To LUT

Serialization

byte 2
byte 3
Byte Swap

Word Swap

Figure 8-1 Display Data Byte/Word Swap
Note

For further information on byte swapping for Big Endian mode, see Section 17, “BigEndian Bus Interface” on page 212.
bit 4

PIP+ Window Enable
This bit enables the PIP+ window within the main window used for the Picture-in-Picture
Plus feature. The location of the PIP+ window within the landscape window is determined
by the PIP+ Window X Position registers (REG[84h], REG[85h], REG[8Ch], REG[8Dh])
and PIP+ Window Y Position registers (REG[88h], REG[89h], REG[90h], REG[91h]).
The PIP+ window has its own Display Start Address register (REG[7Ch, REG[7Dh],
REG[7Eh]) and Memory Address Offset register (REG[80h], REG[81h]). The PIP+ window shares the same color depth and SwivelViewTM orientation as the main window.
Note

Picture-in-Picture Plus (PIP+) is not available when the Ink Layer is enabled (REG[C9h]
bit 0 = 1).

bits 1-0

SwivelView Mode Select Bits [1:0]
These bits select different SwivelViewTM orientations:
Table 8-10: SwivelViewTM Mode Select Options

S1D13708
X39A-A-001-02

SwivelView Mode Select Bits

SwivelView Orientation

00

0° (Normal)

01

90°

10

180°

11

270°

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 137

Main Window Display Start Address Register 0
REG[74h]

Read/Write

Main window Display Start Address Bits 7-0
7

6

5

4

3

2

1

Main Window Display Start Address Register 1
REG[75h]

0

Read/Write

Main window Display Start Address Bits 15-8
7

6

5

4

3

2

1

Main Window Display Start Address Register 2
REG[76h]

Read/Write
Main window
Display Start
Address
Bit 16

n/a
7

6

bits 16-0

5

4

0

3

2

1

0

Main Window Display Start Address Bits [16:0]
These bits form the 17-bit address for the starting double-word of the LCD image in the
display buffer for the main window.
Note that this is a double-word (32-bit) address. An entry of 00000h into these registers
represents the first double-word of display memory, an entry of 00001h represents the second double-word of the display memory, and so on.

Main Window Line Address Offset Register 0
REG[78h]

Read/Write

Main window Line Address Offset Bits 7-0
7

6

5

4

3

2

1

Main Window Line Address Offset Register 1
REG[79h]

Read/Write
Main window Line Address
Offset Bits 9-8

n/a
7

bits 9-0

6

5

0

4

3

2

1

0

Main Window Line Address Offset Bits [9:0]
These bits are the LCD display’s 10-bit address offset from the starting double-word of
line “n” to the starting double-word of line “n + 1” for the main window. Note that this is
a 32-bit address increment.
A virtual image can be formed by setting this register to a value greater than the width of
the main window. The displayed image is a window into the larger virtual image.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 138

Epson Research and Development
Vancouver Design Center

8.3.6 Picture-in-Picture Plus Registers
PIP+ Window Display Start Address Register 0
REG[7C]

Read/Write

PIP+ Window Display Start Address Bits 7-0
7

6

5

4

3

2

1

PIP+ Window Display Start Address Register 1
REG[7Dh]

0

Read/Write

PIP+ Window Display Start Address Bits 15-8
7

6

5

4

3

2

1

PIP+ Window Display Start Address Register 2
REG[7Eh]

Read/Write
PIP+ Window
Display Start
Address
Bit 16

n/a
7

6

5

4

0

3

2

1

0

PIP+ Window Display Start Address Bits [16:0]
These bits form the 17-bit address for the starting double-word of the PIP+ window.

bits 16-0

Note that this is a double-word (32-bit) address. An entry of 00000h into these registers
represents the first double-word of display memory, an entry of 00001h represents the second double-word of the display memory, and so on.
Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is
set to 1 (REG[71h] bit 4).

PIP+ Window Line Address Offset Register 0
REG[80h]

Read/Write

PIP+ Window Line Address Offset Bits 7-0
7

6

5

4

3

2

1

PIP+ Window Line Address Offset Register 1
REG[81h]

0

Read/Write
+

PIP Window Line Address
Offset Bits 9-8

n/a
7

bits 9-0

6

5

4

3

2

1

0

PIP+ Window Line Address Offset Bits [9:0]
These bits are the LCD display’s 10-bit address offset from the starting double-word of
line “n” to the starting double-word of line “n + 1” for the PIP+ window. Note that this is
a 32-bit address increment.
Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is
set to 1 (REG[71h] bit 4).

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 139

PIP+ Window X Start Position Register 0
REG[84h]

Read/Write

PIP+ Window X Start Position Bits 7-0
7

6

5

4

3

2

1

PIP+ Window X Start Position Register 1
REG[85h]

0

Read/Write
+

PIP Window X Start Position
Bits 9-8

n/a
7

bits 9-0

6

5

4

3

2

1

0

+

PIP Window X Start Position Bits [9:0]
These bits determine the X start position of the PIP+ window in relation to the origin of the
panel. Due to the S1D13708 SwivelView feature, the X start position may not be a
horizontal position value (only true in 0° and 180° SwivelView). For further information
on defining the value of the X Start Position register, see Section 13, “Picture-in-Picture
Plus (PIP+)” on page 184.
The register is also incremented differently based on the SwivelView orientation. For 0°
and 180° SwivelView the X start position is incremented by x pixels where x is relative to
the current color depth.
Table 8-11: 32-bit Address Increments for Color Depth
Color Depth

Pixel Increment (x)

1 bpp

32

2 bpp

16

4 bpp

8

8 bpp

4

16 bpp

2

For 90° and 270° SwivelView the X start position is incremented in 1 line increments.
Depending on the color depth, some of the higher bits in this register are unused because
the maximum horizontal display width is 1024 pixels.
Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is
set to 1 (REG[71h] bit 4).

Note

The effect of REG[84h] through REG[91h] takes place only after REG[91h] is written
and at the next vertical non-display period.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 140

Epson Research and Development
Vancouver Design Center

PIP+ Window Y Start Position Register 0
REG[88h]

Read/Write

PIP+ Window Y Start Position Bits 7-0
7

6

5

4

3

2

1

PIP+ Window Y Start Position Register 1
REG[89h]

0

Read/Write
+

PIP Window Y Start Position
Bits 9-8

n/a
7

bits 9-0

6

5

4

3

2

1

0

+

PIP Window Y Start Position Bits [9:0]
These bits determine the Y start position of the PIP+ window in relation to the origin of the
panel. Due to the S1D13708 SwivelView feature, the Y start position may not be a vertical
position value (only true in 0° and 180° SwivelView). For further information on defining
the value of the Y Start Position register, see Section 13, “Picture-in-Picture Plus (PIP+)”
on page 184.
The register is also incremented differently based on the SwivelView orientation. For 0°
and 180° SwivelView the Y start position is incremented in 1 line increments. For 90° and
270° SwivelView the Y start position is incremented by y pixels where y is relative to the
current color depth.
Table 8-12: 32-bit Address Increments for Color Depth
Color Depth

Pixel Increment (y)

1 bpp

32

2 bpp

16

4 bpp

8

8 bpp

4

16 bpp

2

Depending on the color depth, some of the higher bits in this register are unused because
the maximum vertical display height is 1024 pixels.
Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is
set to 1 (REG[71h] bit 4).

Note

The effect of REG[84h] through REG[91h] takes place only after REG[91h] is written
and at the next vertical non-display period.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 141

PIP+ Window X End Position Register 0
REG[8Ch]

Read/Write

PIP+ Window X End Position Bits 7-0
7

6

5

4

3

2

1

PIP+ Window X End Position Register 1
REG[8Dh]

0

Read/Write
+

PIP Window X End Position
Bits 9-8

n/a
7

bits 9-0

6

5

4

3

2

1

0

+

PIP Window X End Position Bits [9:0]
These bits determine the X end position of the PIP+ window in relation to the origin of the
panel. Due to the S1D13708 SwivelView feature, the X end position may not be a
horizontal position value (only true in 0° and 180° SwivelView). For further information
on defining the value of the X End Position register, see Section 13, “Picture-in-Picture
Plus (PIP+)” on page 184.
The register is also incremented differently based on the SwivelView orientation. For 0°
and 180° SwivelView the X end position is incremented by x pixels where x is relative to
the current color depth.
Table 8-13: 32-bit Address Increments for Color Depth
Color Depth

Pixel Increment (x)

1 bpp

32

2 bpp

16

4 bpp

8

8 bpp

4

16 bpp

2

For 90° and 270° SwivelView the X end position is incremented in 1 line increments.
Depending on the color depth, some of the higher bits in this register are unused because
the maximum horizontal display width is 1024 pixels.
Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is
set to 1 (REG[71h] bit 4).

Note

The effect of REG[84h] through REG[91h] takes place only after REG[91h] is written
and at the next vertical non-display period.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 142

Epson Research and Development
Vancouver Design Center

PIP+ Window Y End Position Register 0
REG[90h]

Read/Write

PIP+ Window Y End Position Bits 7-0
7

6

5

4

3

2

1

PIP+ Window Y End Position Register 1
REG[91h]

0

Read/Write
+

PIP Window Y End Position
Bits 9-8

n/a
7

bits 9-0

6

5

4

3

2

1

0

+

PIP Window Y End Position Bits [9:0]
These bits determine the Y end position of the PIP+ window in relation to the origin of the
panel. Due to the S1D13708 SwivelView feature, the Y end position may not be a vertical
position value (only true in 0° and 180° SwivelView). For further information on defining
the value of the Y End Position register, see Section 13, “Picture-in-Picture Plus (PIP+)”
on page 184.
The register is also incremented differently based on the SwivelView orientation. For 0°
and 180° SwivelView the Y end position is incremented in 1 line increments. For 90° and
270° SwivelView the Y end position is incremented by y pixels where y is relative to the
current color depth.
Table 8-14: 32-bit Address Increments for Color Depth
Color Depth

Pixel Increment (y)

1 bpp

32

2 bpp

16

4 bpp

8

8 bpp

4

16 bpp

2

Depending on the color depth, some of the higher bits in this register are unused because
the maximum vertical display height is 1024 pixels.
Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is
set to 1 (REG[71h] bit 4).

Note

The effect of REG[84h] through REG[91h] takes place only after REG[91h] is written
and at the next vertical non-display period.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 143

8.3.7 Miscellaneous Registers
Power Save Configuration Register
REG[A0h]
Vertical NonDisplay
Period Status
(RO)
7

Read/Write
Memory
Controller
Power Save
Status (RO)

n/a
6

5

4

3

Power Save
Mode Enable

n/a
2

1

0

bit 7

Vertical Non-Display Period Status
This is a read-only status bit.
When this bit = 0, the LCD panel output is in a Vertical Display Period.
When this bit = 1, the LCD panel output is in a Vertical Non-Display Period.

bit 3

Memory Controller Power Save Status
This read-only status bit indicates the power save state of the memory controller.
When this bit = 0, the memory controller is powered up.
When this bit = 1, the memory controller is powered down and the MCLK source can be
turned off.
Note

Memory writes are possible during power save mode because the S1D13708 dynamically enables the memory controller for display buffer writes.
bit 0

Power Save Mode Enable
When this bit = 1, the software initiated power save mode is enabled.
When this bit = 0, the software initiated power save mode is disabled.
At reset, this bit is set to 1. For a summary of Power Save Mode, see Section 18, “Power
Save Mode” on page 215.
Note

Memory writes are possible during power save mode because the S1D13708 dynamically enables the memory controller for display buffer writes.

Reserved
REG[A1h]

Read/Write
n/a

7

bit 0

6

5

4

Reserved
3

2

1

0

Reserved.
This bit must be set to 0.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 144

Epson Research and Development
Vancouver Design Center

Reserved
REG[A2h]

Read/Write

Reserved
7

n/a
6

5

4

bit 7

Reserved.
This bit must be set to 0.

bit 0

Reserved.
This bit must be set to 0.

Reserved
3

2

1

Reserved
REG[A3h]

Read/Write

Reserved
7

0

n/a
6

bit 7

5

4

3

2

1

0

Reserved.
This bit must be set to 0.

Scratch Pad Register 0
REG[A4h]

Read/Write
Scratch Pad Bits 7-0

7

6

5

4

3

2

1

Scratch Pad Register 1
REG[A5h]

0

Read/Write
Scratch Pad Bits 15-8

7

bits 15-0

S1D13708
X39A-A-001-02

6

5

4

3

2

1

0

Scratch Pad Bits [15:0]
This register contains general purpose read/write bits. These bits have no effect on
hardware.

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 145

8.3.8 General IO Pins Registers
General Purpose IO Pins Configuration Register 0
REG[A8h]
n/a
7

Read/Write

GPIO6 Pin IO GPIO5 Pin IO GPIO4 Pin IO GPIO3 Pin IO GPIO2 Pin IO GPIO1 Pin IO GPIO0 Pin IO
Configuration Configuration Configuration Configuration Configuration Configuration Configuration
6

5

4

3

2

1

0

Note

If CNF3 = 0 at RESET#, then all GPIO pins are configured as outputs only and this register has no effect. This case allows the GPIO pins to be used by the HR-TFT/D-TFD
panel interfaces. For a summary of GPIO usage for HR-TFT/D-TFD, see Table 4-10:
“LCD Interface Pin Mapping,” on page 40.
Note

The input functions of the GPIO pins are not enabled until REG[A9h] bit 7 is set to 1.
bit 6

GPIO6 Pin IO Configuration
When this bit = 0 (default), GPIO6 is configured as an input pin.
When this bit = 1, GPIO6 is configured as an output pin.

bit 5

GPIO5 Pin IO Configuration
When this bit = 0 (default), GPIO5 is configured as an input pin.
When this bit = 1, GPIO5 is configured as an output pin.

bit 4

GPIO4 Pin IO Configuration
When this bit = 0 (default), GPIO4 is configured as an input pin.
When this bit = 1, GPIO4 is configured as an output pin.

bit 3

GPIO3 Pin IO Configuration
When this bit = 0 (default), GPIO3 is configured as an input pin.
When this bit = 1, GPIO3 is configured as an output pin.

bit 2

GPIO2 Pin IO Configuration
When this bit = 0 (default), GPIO2 is configured as an input pin.
When this bit = 1, GPIO2 is configured as an output pin.

bit 1

GPIO1 Pin IO Configuration
When this bit = 0 (default), GPIO1 is configured as an input pin.
When this bit = 1, GPIO1 is configured as an output pin.

bit 0

GPIO0 Pin IO Configuration
When this bit = 0 (default), GPIO0 is configured as an input pin.
When this bit = 1, GPIO0 is configured as an output pin.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 146

Epson Research and Development
Vancouver Design Center

General Purpose IO Pins Configuration Register 1
REG[A9h]
GPIO Pin
Input Enable
7

Read/Write
n/a

6

bit 7

5

4

3

2

1

0

GPIO Pin Input Enable
This bit is used to enable the input function of the GPIO pins. It must be changed to a 1
after power-on reset to enable the input function of the GPIO pins (default is 0).

General Purpose IO Pins Status/Control Register 0
REG[ACh]
n/a

GPIO6 Pin IO
Status

GPIO5 Pin IO
Status

7

6

5

Read/Write

GPIO4 Pin IO GPIO3 Pin IO
Status
Status
4

3

GPIO2 Pin IO
Status
2

GPIO1 Pin IO GPIO0 Pin IO
Status
Status
1

0

Note

For information on GPIO pin mapping when HR-TFT/D-TFD panels are selected, see
Table 4-10: “LCD Interface Pin Mapping,” on page 40.
bit 6

GPIO6 Pin IO Status
When GPIO6 is not used as a LCD signal and GPIO6 is configured as an output, writing a
1 to this bit drives GPIO6 high and writing a 0 to this bit drives GPIO6 low.
When GPIO6 is not used as a LCD signal and GPIO6 is configured as an input, a read
from this bit returns the status of GPIO6.
When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) writing to this bit has no effect.
When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) writing to this bit has no
effect.

bit 5

GPIO5 Pin IO Status
When GPIO5 is not used as a LCD signal and GPIO5 is configured as an output, writing a
1 to this bit drives GPIO5 high and writing a 0 to this bit drives GPIO5 low.
When GPIO5 is not used as a LCD signal and GPIO5 is configured as an input, a read
from this bit returns the status of GPIO5.
When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 1 is written to this bit, the
D-TFD signal DD_P1 signal is enabled.
When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 0 is written to this bit, the
D-TFD signal DD_P1 signal is forced low.
When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 1 is written to this
bit, the GPIO5 (XOEV) signal is enabled.
When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 0 is written to this
bit, the GPIO5 (XOEV) signal is forced high when the FPFRAME Polarity bit = 1
(REG[24h] bit 7 = 1) and forced low when the FPFRAME Polarity bit = 0 (REG[24h] bit
7 = 0).

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

bit 4

Page 147

GPIO4 Pin IO Status
When GPIO4 is not used as a LCD signal and GPIO4 is configured as an output, writing a
1 to this bit drives GPIO4 high and writing a 0 to this bit drives GPIO4 low.
When GPIO4 is not used as a LCD signal and GPIO4 is configured as an input, a read
from this bit returns the status of GPIO4.
When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 1 is written to this bit, the
D-TFD signal RES signal is enabled.
When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 0 is written to this bit, the
D-TFD signal RES signal is forced low.
When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 1 is written to this
bit, the GPIO4 (VCOM) signal is enabled.
When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 0 is written to this
bit, the GPIO4 (VCOM) signal is forced low.

bit 3

GPIO3 Pin IO Status
When GPIO3 is not used as a LCD signal and GPIO3 is configured as an output, writing a
1 to this bit drives GPIO3 high and writing a 0 to this bit drives GPIO3 low.
When GPIO3 is not used as a LCD signal and GPIO3 is configured as an input, a read
from this bit returns the status of GPIO3.
When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) writing to this bit has no effect.
When a HR-TFT panel is enabled (REG[10h] bits 1:0 = 10) writing to this bit has no
effect.
When a TFT Type 2 panel is enabled (REG[C5h] bits 1:0 = 01) writing to this bit has no
effect.
When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) writing to this bit has no
effect.

bit 2

GPIO2 Pin IO Status
When GPIO2 is not used as a LCD signal and GPIO2 is configured as an output, writing a
1 to this bit drives GPIO2 high and writing a 0 to this bit drives GPIO2 low.
When GPIO2 is not used as a LCD signal and GPIO2 is configured as an input, a read
from this bit returns the status of GPIO2.
When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) writing to this bit has no effect.
When a HR-TFT panel is enabled (REG[10h] bits 1:0 = 10) writing to this bit has no
effect.
When a TFT Type 2 panel is enabled (REG[C5h] bits 1:0 = 01) writing to this bit has no
effect.
When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) writing to this bit has no
effect.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 148

bit 1

Epson Research and Development
Vancouver Design Center

GPIO1 Pin IO Status
When GPIO1 is not used as a LCD signal and GPIO1 is configured as an output, writing a
1 to this bit drives GPIO1 high and writing a 0 to this bit drives GPIO1 low.
When GPIO1 is not used as a LCD signal and GPIO1 is configured as an input, a read
from this bit returns the status of GPIO1.
When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 1 is written to this bit, the
D-TFD signal YSCL signal is enabled.
When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 0 is written to this bit, the
D-TFD signal YSCL signal is forced low.
When a HR-TFT panel is enabled (REG[10h] bits 1:0 = 10) and a 1 is written to this bit,
the HR-TFT signal CLS signal is enabled.
When a HR-TFT panel is enabled (REG[10h] bits 1:0 = 10) and a 0 is written to this bit,
the HR-TFT signal CLS signal is forced low.
When a TFT Type 2 panel is enabled (REG[C5h] bits 1:0 = 01) and a 1 is written to this
bit, the AP signal is enabled.
When a TFT Type 2 panel is enabled (REG[C5h] bits 1:0 = 01) and a 0 is written to this
bit, the AP signal is forced low.
When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 1 is written to this
bit, the OE signal is enabled.
When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 0 is written to this
bit, the OE signal is forced low.

bit 0

GPIO0 Pin IO Status
When GPIO1 is not used as a LCD signal and GPIO0 is configured as an output, writing a
1 to this bit drives GPIO0 high and writing a 0 to this bit drives GPIO0 low.
When GPIO1 is not used as a LCD signal and GPIO0 is configured as an input, a read
from this bit returns the status of GPIO0.
When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) writing to this bit has no effect.
When a HR-TFT panel is enabled (REG[10h] bits 1:0 = 10) writing to this bit has no
effect.
When a TFT Type 2 panel is enabled (REG[C5h] bits 1:0 = 01) writing to this bit has no
effect.
When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) writing to this bit has no
effect.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 149

General Purpose IO Pins Status/Control Register 1
REG[ADh]
GPO0 Control
7

bit 7

Read/Write
n/a

6

5

4

3

2

1

0

GPO0 Control
This bit controls the General Purpose Output 0 pin.
Writing a 0 to this bit drives GPO0 to low.
Writing a 1 to this bit drives GPO0 to high.
This bit has no effect when HR-TFT panel type is selected.
Note

Many implementations use the GPO0 pin to control the LCD bias power (see Section
6.3, “LCD Power Sequencing” on page 66).

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 150

Epson Research and Development
Vancouver Design Center

8.3.9 Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse
Configuration Registers
PWMOUT Enable
Divided
Clock

PWM Clock
Divider

PWMCLK

Clock Source / 2

PWM Duty Cycle
Modulation

m

to PWMOUT

Duty = n / 256
frequency =
Clock Source / (2m X 256)

n = PWM Clock Duty Cycle

m = PWM Clock Divide Select value

PWM Clock Force High
CV Pulse Enable
Divided
Clock

CV Pulse
Divider
Clock Source / 2 x

CV Pulse Burst
Generation

to CVOUT

y-pulse burst
frequency =
Clock Source / (2x X 2)
y = Burst Length value

x = CV Pulse Divide Select value

CV Pulse Force High

Figure 8-2 PWM Clock/CV Pulse Block Diagram
Note

For further information on PWMCLK, see Section 7.1.4, “PWMCLK” on page 115.

PWM Clock / CV Pulse Control Register
REG[B0h]
PWM Clock
Force High

n/a

7

6

bit 7 and bit 4

5

Read/Write
PWM Clock
Enable

CV Pulse
Force High

CV Pulse
Burst Status
(RO)

4

3

2

CV Pulse
Burst Start

CV Pulse
Enable

1

0

PWM Clock Force High (bit 7) and PWM Clock Enable (bit 4)
These bits control the PWMOUT pin and PWM Clock circuitry as follows.
Table 8-15: PWM Clock Control
Bit 7

Bit 4

Result

0

1

PWM Clock circuitry enabled
(controlled by REG[B1h] and REG[B3h])

0

0

PWMOUT forced low

1

x

PWMOUT forced high

x = don’t care

When PWMOUT is forced low or forced high it can be used as a general purpose output.
Note

The PWM Clock circuitry is disabled when Power Save Mode is enabled.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

bit 3 and bit 0

Page 151

CV Pulse Force High (bit 3) and CV Pulse Enable (bit 0)
These bits control the CVOUT pin and CV Pulse circuitry as follows.
Table 8-16: CV Pulse Control
Bit 3

Bit 0

Result

0

1

CV Pulse circuitry enabled
(controlled by REG[B1h] and REG[B2h])

0

0

CVOUT forced low

1

x

CVOUT forced high

x = don’t care

When CVOUT is forced low or forced high it can be used as a general purpose output.
Note

Bit 0 must be set to 1 before initiating a new burst using the CV Pulse Burst Start bit.
Note

The CV Pulse circuitry is disabled when Power Save Mode is enabled.
bit 2

CV Pulse Burst Status
This is a read-only bit. A “1” indicates a CV pulse burst is occurring. A “0” indicates no
CV pulse burst is occurring. Software should wait for this bit to clear before starting
another burst.

bit 1

CV Pulse Burst Start
A 1 in this bit initiates a single CVOUT pulse burst. The number of clock pulses generated
is programmable from 1 to 256. The frequency of the pulses is the divided CV Pulse
source divided by 2, with 50/50 duty cycle. This bit should be cleared to 0 by software
before initiating a new burst.
Note

This bit has effect only if the CV Pulse Enable bit is 1.
bit 0

CV Pulse Enable
See description for bit 3.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 152

Epson Research and Development
Vancouver Design Center

PWM Clock / CV Pulse Configuration Register
REG[B1h]
PWM Clock Divide Select Bits 3-0
7

bits 7-4

6

5

Read/Write
CV Pulse Divide Select Bits 2-0

4

3

2

PWMCLK
Source Select

1

0

PWM Clock Divide Select Bits [3:0]
The value of these bits represents the power of 2 by which the selected PWM clock source
is divided.
Table 8-17: PWM Clock Divide Select Options
PWM Clock Divide Select Bits [3:0]

PWM Clock Divide Amount

0h

1

1h

2

2h

4

3h

8

...

...

Ch

4096

Dh-Fh

Reserved

Note

This divided clock is further divided by 256 before it is output at PWMOUT.
bits 3-1

CV Pulse Divide Select Bits [2:0]
The value of these bits represents the power of 2 by which the selected CV Pulse source is
divided.
Table 8-18: CV Pulse Divide Select Options
CV Pulse Divide Select Bits [2:0]

CV Pulse Divide Amount

0h

1

1h

2

2h

4

3h

8

...

...

7h

128

Note

This divided clock is further divided by 2 before it is output at the CVOUT.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

bit 0

Page 153

PWMCLK Source Select
When this bit = 0, the clock source for PWMCLK is the BCLK source.
When this bit = 1, the clock source for PWMCLK is CLKI2 or XTAL (see BCLK Source
Select Register on page 157).
Note

For further information on the PWMCLK source select, see Section 7.2, “Clock Selection” on page 116.

CV Pulse Burst Length Register
REG[B2h]

Read/Write
CV Pulse Burst Length Bits 7-0

7

6

bits 7-0

5

4

3

2

1

0

CV Pulse Burst Length Bits [7:0]
The value of this register determines the number of pulses generated in a single CV Pulse
burst:
Number of pulses in a burst = (ContentsOfThisRegister) + 1

PWMOUT Duty Cycle Register
REG[B3h]

Read/Write
PWMOUT Duty Cycle Bits 7-0

7

bits 7-0

6

5

4

3

2

1

0

PWMOUT Duty Cycle Bits [7:0]
This register determines the duty cycle of the PWMOUT output.
Table 8-19: PWMOUT Duty Cycle Select Options
PWMOUT Duty Cycle [7:0]

Hardware Functional Specification
Issue Date: 02/03/07

PWMOUT Duty Cycle

00h

Always Low

01h

High for 1 out of 256 clock periods

02h

High for 2 out of 256 clock periods

...

...

FFh

High for 255 out of 256 clock periods

S1D13708
X39A-A-001-02

Page 154

Epson Research and Development
Vancouver Design Center

8.3.10 Extended Registers
Memory Access Pointer 0
REG[C0h]

Read/Write
Memory Access Pointer Bits 7-0

7

6

5

4

3

2

1

Memory Access Pointer 1
REG[C1h]

0

Read/Write
Memory Access Pointer Bits 15-8

7

6

5

4

3

2

1

Memory Access Pointer 2
REG[C2h]

Read/Write
Memory
Access
Pointer
Bit 16

n/a
7

6

bits 16-0

0

5

4

3

2

1

0

Memory Access Pointer Bits [16:0]
These registers control memory accesses for the Indirect Interface only (CNF[2:0] =
111). These bits contain a pointer to the address position in the display buffer (memory)
used when a “data” read/write is executed. At reset, these registers are set to 0. After each
byte read/write, the Memory Access Pointer is incremented by 1. After each word
read/write, the Memory Access Pointer is incremented by 2. For further information on
accessing the S1D13708 display buffer, see Section 17, “Big-Endian Bus Interface” on
page 212.
Note
1

If the Memory Access Pointer programmed specifies an odd memory address, only
byte accesses may be performed.
2
These bits take effect only after a “command” write to the Memory Access Start
register (REG[C4h]).

Memory Access Start
REG[C4h]

Write only
n/a

7

bits 7-0

S1D13708
X39A-A-001-02

6

5

4

3

2

1

0

Memory Access Start [7:0]
This register controls memory accesses for the Indirect Interface only (CNF[2:0] =
111). This register is the trigger which readies the interface for reads/writes from/to the
display buffer. After a “command” write to this register, successive reads/writes may be
performed. After each byte read/write, the Memory Access Pointer is incremented by 1.
After each word read/write, the Memory Access Pointer is incremented by 2.

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 155

Extended Panel Type Register
REG[C5h]

Read/Write
n/a

7

6

bits 1-0

5

Extended Panel Type Bits 1-0
4

3

2

1

0

Extended Panel Type Bits [1:0]
These bits override the setting in REG[10h] bits 1-0 and allow selection of the alternate
TFT panel types.
Table 8-20: Extended Panel Type Selection
REG[C5h] Bits [1:0]

Panel Type

00

no effect from REG[10h] bits 1-0

01

TFT Type 2

10

TFT Type 3

11

TFT Type 4

Memory Access Select Register
REG[C6h]

Read/Write
Memory
Access Select

n/a
7

bit 0

6

5

4

3

2

1

0

Memory Access Select Bit
This register only has an effect when the Indirect Interface is enabled (CNF[2:0] =
111). This bit selects the type of memory access, byte or word, used for memory accesses
when the Indirect Interface is enabled.
When this bit = 0, byte or word accesses are allowed. For Mode 68, EBL and EBU indicate the transfer size. For Mode 80, WRU#, WRL#, RDU#, and RDL# indicate the transfer size.
When this bit = 1, only word accesses are allowed and WRU#, RDU#, EBU are ignored
when determining the transfer size. This bit affects memory accesses only, the signals are
not ignored for register accesses.
Note

All word accesses must be byte aligned on even addresses.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 156

Epson Research and Development
Vancouver Design Center

Ink Layer Transparent Color Register 0
REG[C7h]

Read/Write

Ink Layer Transparent Color Bits 7-0
7

6

5

4

3

2

1

Ink Layer Transparent Color Register 1
REG[C8h]

0

Read/Write

Ink Layer Transparent Color Bits 15-8
7

S1D13708
X39A-A-001-02

6

5

4

3

2

1

0

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

bits 15-0

Page 157

Ink Layer Transparent Color Bits [15:0]
The Ink Layer requires a transparent color to be selected. This transparent color is compared with the values in the foreground image during display refresh. If the pixel value
matches the transparent color, the pixel from the background image is shown. If the pixel
value does not match the transparent color, the foreground image is shown.
For further information on the Ink Layer, see Section 14, “Ink Layer” on page 187.

Ink Layer Register
REG[C9h]

Read/Write
Ink Layer
Enable

n/a
7

6

bit 0

5

4

3

2

1

0

Ink Layer Enable
This bit controls whether the Ink Layer is enabled or disabled.
When this bit = 0, the Ink Layer is disabled.
When this bit = 1, the Ink Layer is enabled.
For further information on the Ink Layer, see Section 14, “Ink Layer” on page 187.
Note

Picture-in-Picture Plus (PIP+) is not available when the Ink Layer is enabled.

BCLK Source Select Register
REG[CAh]

Read/Write
Extended

n/a

XTAL Enable Bits 1-0

n/a

PCLK/PWMCLK

Source Select
7

bits 5-4

6

5

4

3

2

1

BCLK Source
Select
0

XTAL Enable Bits [1:0]
These two bits enable the crystal input/drive circuitry.
When these bits = 00, the XTAL circuitry is disabled.
When these bits = 11, the XTAL circuitry is enabled.
For further information on the crystal usage, see Section 16, “Embedded Crystal Oscillator” on page 211.

bit 1

Extended PCLK / PWMCLK Source Select
This bit selects the source (between CLKI2 and XTAL) used for PCLK and the PWM
clock when CLKI2 is selected as the source for PCLK (see REG[05h] bits 1-0) and PWM
clock (see REG[B1h] bit 0).
When this bit = 0, the source used for PCLK and PWMCLK is CLKI2.
When this bit = 1, the source used for PCLK and PWMCLK is XTAL.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 158

Epson Research and Development
Vancouver Design Center

bit 0

BCLK Source Select
This bit selects the BCLK source between CLKI and XTAL (XTAL is recommended only
when configured for the Indirect Interface, see CNF[2:0]). When this bit is used the BCLK
source switches in a glitch free manner.
When this bit = 0, the BCLK source is CLKI.
When this bit = 1, the BCLK source is XTAL.
Note

There must be a CLKI source initially for this bit to operate.
Note

The BCLK source may be divided down using the BCLK Source to BCLK divide ratio
select (CNF[7:6]).

Data Compare Invert Enable Register
REG[CBh]

Read/Write
Data
Compare
Invert Enable

n/a
7

bit 0

S1D13708
X39A-A-001-02

6

5

4

3

2

1

0

Data Compare Invert Enable
This bit can be used to lower power consumption for TFT Type 2 and TFT Type 3 Interfaces. The Data Compare and Invert function reduces the amount of data toggled by counting the number of bits that are changed (1 to 0 or 0 to 1) from the previous pixel data. For
all other panel interfaces it has no effect.
When this bit = 0, the Data Compare and Invert functions are disabled.
When this bit = 1, the Data Compare and Invert functions are enabled.

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 159

TFT Type 2 VCLK Configuration Register
REG[D0h]
n/a
7

bits 4-3

Read/Write
VCLK Hold bits 1-0

6

5

4

n/a

3

2

VCLK Setup bits 1-0
1

0

VCLK Hold Bits [1:0]
These bits control the TFT Type 2 AC timing parameter from the rising edge of STB to the
falling edge of VCLK. The parameter is selected as follows. For all other panel interfaces
it has no effect.
Table 8-21: VCLK Hold

bits 1-0

REG[D0h] bits 1-0

VCLK Hold (in PCLKs)

00

7

01

9

10

12

11

16

VCLK Setup Bits [1:0]
These bits control the TFT Type 2 AC timing parameter from the rising edge of VCLK to
the rising edge of STB. The parameter is selected as follows. For all other panel interfaces
it has no effect.
Table 8-22: VCLK Setup

Hardware Functional Specification
Issue Date: 02/03/07

REG[D0h] bits 4-3

VCLK Setup (in PCLKs)

00

7

01

9

10

12

11

16

S1D13708
X39A-A-001-02

Page 160

Epson Research and Development
Vancouver Design Center

TFT Type 2 AP Configuration Register
REG[D1h]
POL Type

n/a

7

6

Read/Write

AP Pulse Width bits 2-0
5

4

n/a
3

AP Rising Position bits 1-0

2

1

0

bit 7

POL Type
This bit selects how often the POL signal is toggled. The POL signal is used for the TFT
Type 2 Interface. For all other panel interfaces this bit has no effect.
When this bit = 0, the POL signal is toggled every line.
When this bit = 1, the POL signal is toggled every frame.

bits 5-3

AP Pulse Width Bits [2:0]
These bits specify the AP Pulse Width used for the TFT Type Interface. For all other panel
interfaces it has no effect.
Table 8-23: AP Pulse Width

bits 1-0

REG[D1h] bits 5-3

AP Pulse Width (in PCLKs)

000

20

001

40

010

80

011

120

100

150

101

190

110

240

111

270

AP Rising Position Bits [1:0]
These bits control the TFT Type 2 AC timing parameter from the rising edge of STB to the
rising edge of AP. The parameter is selected as follows. For all other panel interfaces it has
no effect.
Table 8-24: AP Rising Position

S1D13708
X39A-A-001-02

REG[D1h] bits 1-0

GPIO1 (AP) Rising Position (in PCLKs)

00

40

01

52

10

68

11

90

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 161

TFT Type 3 Signal Control Register
REG[D4h]

Read/Write

PDME
Control

XSTBY
Control

XOHV Control

XRESV
Control

XRESH
Control

PCLK2
Enable

PCLK1
Enable

n/a

7

6

5

4

3

2

1

0

Note

The GPO pins are used by the TFT Type 3 interface when REG[C5h] bits 1-0 = 10. For
pin mapping for TFT Type 3, see Table 4-10: “LCD Interface Pin Mapping,” on page
40.
bit 7

PDME Control
If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit controls the LCD
signal PDME.
When this bit = 1, PDME = 1.
When this bit = 0, PDME = 0.

bit 6

XSTBY Control
If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit controls the LCD
signal XSTBY.
When this bit = 1, XSTBY = 1.
When this bit = 0, XSTBY = 0.

bit 5

XOHV Control
If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit controls the LCD
signal XOHV.
When this bit = 1, XOHV = 1.
When this bit = 0, XOHV = 0.

bit 4

XRESV Control
If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit controls the LCD
signal XRESV.
When this bit = 1, XRESV = 1.
When this bit = 0, XRESV = 0.

bit 3

XRESH Control
If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit controls the LCD
signal XRESH.
When this bit = 1, XRESH = 1.
When this bit = 0, XRESH = 0.

bit 2

PCLK2 Control
If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit enables the LCD
signal PCLK2.
When this bit = 1, PCLK2 = 1.
When this bit = 0, PCLK2 = 0.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 162

Epson Research and Development
Vancouver Design Center

bit 1

PCLK1 Control
If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit enables the LCD
signal PCLK1.
When this bit = 1, PCLK1 = 1.
When this bit = 0, PCLK1 = 0.

TFT Type 3 OE Rising Edge Position Register
REG[D5h]

Read/Write

OE Rising Edge Position bits 7-0
7

6

bits 7-0

5

4

3

2

1

0

OE Rising Edge Position Bits [7:0]
These bits specify the rising edge position of the OE signal in 2 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 OE Pulse Width Register
REG[D6h]

Read/Write
OE Pulse Width bits 7-0

7

6

bits 7-0

5

4

3

2

1

0

OE Pulse Width Bits [7:0]
These bits specify the pulse width of the OE signal in 2 pixel resolution. This register is
used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 POL Toggle Position Register
REG[D7h]

Read/Write

POL Toggle Position bits 7-0
7

6

bits 7-0

5

4

3

2

1

0

POL Toggle Position Bits [7:0]
These bits specify the toggle position of the POL signal in 2 pixel resolution. This register
is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 VCOM Toggle Position Register
REG[D8h]

Read/Write

VCOM Toggle Position bits 7-0
7

bits 7-0

S1D13708
X39A-A-001-02

6

5

4

3

2

1

0

VCOM Toggle Position Bits [7:0]
These bits specify the toggle position of the VCOM signal in 2 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 163

TFT Type 3 CPV Pulse Width Register
REG[D9h]

Read/Write
CPV Pulse Width bits 7-0

7

6

bits 7-0

5

4

3

2

1

0

CPV Pulse Width Bits [7:0]
These bits specify the pulse width of the CPV signal in 2 pixel resolution. This register is
used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 XOEV Rising Edge Position Register
REG[DAh]

Read/Write

XOEV Rising Edge Position bits 7-0
7

6

bits 7-0

5

4

3

2

1

0

XOEV Rising Edge Position Bits [7:0]
These bits specify the rising edge position of the XOEV signal in 2 pixel resolution. This
register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces. The value of this register must be greater than zero.

TFT Type 3 XOEV Falling Edge Position Register
REG[DBh]

Read/Write

XOEV Falling Edge Position bits 7-0
7

bits 7-0

6

5

4

3

2

1

0

XOEV Falling Edge Position Bits [7:0]
These bits specify the falling edge position of the XOEV signal in 2 pixel resolution. This
register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 164

Epson Research and Development
Vancouver Design Center

TFT Type 3 PCLK Divide Register
REG[DCh]
n/a
7

bit 5-4

Read/Write

PCLK2 Divide Rate
6

5

4

PCLK1 Divide Rate
3

2

1

0

PCLK2 Divide Rate Bits [1:0]
These bits specify the divide rate for PCLK2. This register is used for the TFT Type 3
Interface and has no effect for all other panel interfaces.
Table 8-25: GPO2 PCLK2 Divide Rate

bits 3-0

REG[DBh] bits 5-4

PCLK2 Divide Rate

00

64

01

128

10

256

11

512

PCLK1 Divide Rate Bits [3:0]
These bits specify the divide rate for PCLK1. This register is used for the TFT Type 3
Interface and has no effect for all other panel interfaces.
Table 8-26: GPO1 PCLK1 Divide Rate

S1D13708
X39A-A-001-02

REG[DBh] bits 3-0

GPO1 PCLK1 Divide Rate

0000

2

0001

4

0010

8

0011

16

0100

32

0101

64

0110

128

0111

256

1000

512

1001

1024

1010

2048

1011

4096

1100

8192

1101

16384

1110

32768

1111

65536

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 165

TFT Type 3 Partial Mode Display Area Control Register
REG[E0h]
n/a
7

6

5

Read/Write

Partial Mode
Display
Enable

Partial Mode
Display Type
Select

Area 2
Display
Enable

Area 1
Display
Enable

Area 0
Display
Enable

4

3

2

1

0

bit 4

Partial Mode Display Enable
This bit enables/disables the Partial Mode Display for the TFT Type 3 and has no effect
for all other panel interfaces.
When this bit = 1, Partial Mode Display is enabled.
When this bit = 0, Partial Mode Display is disabled.

bit 3

Partial Mode Display Type Select
This bit selects the type of partial mode display.
When this bit =0, the Stripe type of partial mode display is selected. If Stripe is enabled
only the Y Position registers are used in calculating the partial display.
When this bit = 1, type Block type of partial mode display is selected. If Block is enabled
both the X and Y Position registers are used in calculating the partial display.

bit 2

Area 2 Display Enable
This bit enables/disables the Area 2 for Partial Mode Display on the TFT Type 3 and has
no effect for all other panel interfaces.
When this bit = 1, Area 2 is enabled.
When this bit = 0, Area 2 is disabled.

bit 1

Area 1 Display Enable
This bit enables/disables the Area 1 for Partial Mode Display on the TFT Type 3 and has
no effect for all other panel interfaces.
When this bit = 1, Area 1 is enabled.
When this bit = 0, Area 1 is disabled.

bit 0

Area 0 Display Enable
This bit enables/disables the Area 0 for Partial Mode Display on the TFT Type 3 and has
no effect for all other panel interfaces.
When this bit = 1, Area 0 is enabled.
When this bit = 0, Area 0 is disabled.

TFT Type 3 Partial Mode Display Refresh Cycle Register
REG[E1h]
n/a
7

bits 5-0

Read/Write

Partial Mode Display Refresh Cycle bits 5-0
6

5

4

3

2

1

0

Partial Mode Display Refresh Cycle Bits [5:0]
These bits specify the refresh cycle for the Partial Mode Display. The refresh cycle can be
a value from 0 to 63. This register is used for the TFT Type 3 Interface and has no effect
for all other panel interfaces.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 166

Epson Research and Development
Vancouver Design Center

TFT Type 3 Partial Area 0 X Start Position Register
REG[E2h]
n/a
7

Read/Write

Partial Area 0 X Start Position bits 5-0
6

bits 5-0

5

4

3

2

1

Partial Area 0 X Start Position Bits [5:0]
These bits specify the X Start Position of Partial Area 0 in 8 pixel resolution. This register
is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 0 Y Start Position Register
REG[E3h]
n/a
7

Read/Write

Partial Area 0 Y Start Position bits 5-0
6

bits 5-0

5

4

3

2

1

n/a
7

Read/Write
Partial Area 0 X End Position bits 5-0

6

bits 5-0

5

4

3

2

1

n/a

S1D13708
X39A-A-001-02

0

Partial Area 0 X End Position Bits [5:0]
These bits specify the X End Position of Partial Area 0 in 8 pixel resolution. This register
is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 0 Y End Position Register
REG[E5h]

bits 5-0

0

Partial Area 0 Y Start Position Bits [5:0]
These bits specify the Y Start Position of Partial Area 0 in 8 line resolution. This register is
used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 0 X End Position Register
REG[E4h]

7

0

Read/Write
Partial Area 0 Y End Position bits 5-0

6

5

4

3

2

1

0

Partial Area 0 Y End Position Bits [5:0]
These bits specify the Y End Position of Partial Area 0 in 8 line resolution. This register is
used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 167

TFT Type 3 Partial Area 1 X Start Position Register
REG[E6h]
n/a
7

Read/Write

Partial Area 1 X Start Position bits 5-0
6

bits 5-0

5

4

3

2

1

Partial Area 1 X Start Position Bits [5:0]
These bits specify the X Start Position of Partial Area 1 in 8 pixel resolution. This register
is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 1 Y Start Position Register
REG[E7h]
n/a
7

Read/Write

Partial Area 1 Y Start Position bits 5-0
6

bits 5-0

5

4

3

2

1

n/a
7

Read/Write
Partial Area 1 X End Position bits 5-0

6

bits 5-0

5

4

3

2

1

0

Partial Area 1 X End Position Bits [5:0]
These bits specify the X End Position of Partial Area 1 in 8 pixel resolution. This register
is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 1 Y End Position Register
REG[E9h]
n/a

bits 5-0

0

Partial Area 1 Y Start Position Bits [5:0]
These bits specify the Y Start Position of Partial Area 1 in 8 line resolution. This register is
used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 1 X End Position Register
REG[E8h]

7

0

Read/Write
Partial Area 1 Y End Position bits 5-0

6

5

4

3

2

1

0

Partial Area 1 Y End Position Bits [5:0]
These bits specify the Y End Position of Partial Area 1 in 8 line resolution. This register is
used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 168

Epson Research and Development
Vancouver Design Center

TFT Type 3 Partial Area 2 X Start Position Register
REG[EAh]
n/a
7

Read/Write

Partial Area 2 X Start Position bits 5-0
6

bits 5-0

5

4

3

2

1

Partial Area 2 X Start Position Bits [5:0]
These bits specify the X Start Position of Partial Area 2 in 8 pixel resolution. This register
is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 2 Y Start Position Register
REG[EBh]
n/a
7

Read/Write

Partial Area 2 Y Start Position bits 5-0
6

bits 5-0

5

4

3

2

1

n/a
7

Read/Write
Partial Area 2 X End Position bits 5-0

6

bits 5-0

5

4

3

2

1

n/a

S1D13708
X39A-A-001-02

0

Partial Area 2 X End Position Bits [5:0]
These bits specify the X End Position of Partial Area 2 in 8 pixel resolution. This register
is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 2 Y End Position Register
REG[EDh]

bits 5-0

0

Partial Area 2 Y Start Position Bits [5:0]
These bits specify the Y Start Position of Partial Area 2 in 8 line resolution. This register is
used for the TFT Type 3Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 2 X End Position Register
REG[ECh]

7

0

Read/Write
Partial Area 2 Y End Position bits 5-0

6

5

4

3

2

1

0

Partial Area 2 Y End Position Bits [5:0]
These bits specify the Y End Position of Partial Area 2 in 8 line resolution. This register is
used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 169

TFT Type 3 Command 0 Store Register 0
REG[F0h]

Read/Write
Command 0 Store bits 7-0

7

6

5

4

3

2

1

TFT Type 3 Command 0 Store Register 1
REG[F1h]

Read/Write

n/a
7

6

bits 11-0

0

Command 0 Store bits 11-8
5

4

3

2

1

0

Command 0 Store Bits [11:0]
These bits store command 0 for the TFT Type 3 Interface. This register has no effect for all
other panel interfaces.

TFT Type 3 Command 1 Store Register 0
REG[F2h]

Read/Write
Command 1 Store bits 7-0

7

6

5

4

3

2

1

TFT Type 3 Command 1 Store Register 1
REG[F3h]

Read/Write

n/a
7

6

bits 11-0

Command 1 Store bits 11-8
5

4

3

2

1

Read/Write
Command
Send Request

n/a

bit 0

0

Command 1 Store Bits [11:0]
These bits store command 1 for the TFT Type 3 Interface. This register has no effect for all
other panel interfaces.

TFT Type 3 Command Send Request Register
REG[F4h]

7

0

6

5

4

3

2

1

0

Command Send Request
After the CPU sets this bit, the S1D13708 sends the command in the next non-display
period and clears this bit automatically. This register has no effect for all other panel interfaces.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 170

Epson Research and Development
Vancouver Design Center

TFT Type 3 Source Driver IC Number Register
REG[F5h]

Read/Write
Source Driver IC Number
Bits 1-0

n/a
7

bits 1-0

6

5

4

3

2

1

0

Source Driver IC Number Bits [1:0]
These bits contain the number of Source Driver ICs.
Table 8-27: Number of Source Driver ICs

S1D13708
X39A-A-001-02

REG[F5h] bits 1-0

Source Driver ICs

00

1

01

2

10

3

11

4

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 171

9 Frame Rate Calculation
The following formula is used to calculate the display frame rate.
f PCLK
FrameRate = ------------------------------( HT ) × ( VT )

Where:

Hardware Functional Specification
Issue Date: 02/03/07

fPCLK

= PClk frequency (Hz)

HT

= Horizontal Total
= ((REG[12h] bits 6-0) + 1) x 8 Pixels

VT

= Vertical Total
= ((REG[19h] bits 1-0, REG[18h] bits 7-0) + 1) Lines

S1D13708
X39A-A-001-02

Page 172

Epson Research and Development
Vancouver Design Center

10 Display Data Formats
The following diagrams show the display mode data formats for a little-endian system.
1 bpp:
bit 7

bit 0

Byte 0

A0

A1

A2

A3

A4

A5

A6

Byte 1

A8

A9

A10 A11 A12 A13 A14 A15

Byte 2

A16 A17 A18 A19 A20 A21 A22 A23

P0 P1 P2 P3 P4 P5 P6 P7

A7
LUT

Pn = RGB value from LUT
Index (An)

Host Address
Panel Display

Display Memory
2 bpp:
bit 7

bit 0

Byte 0

A0

B0

A1

B1

A2

B2

A3

B3

Byte 1

A4

B4

A5

B5

A6

B6

A7

B7

Byte 2

A8

B8

A9

B9

A10 B10 A11 B11

P0 P1 P2 P3 P4 P5 P6 P7
LUT

Pn = RGB value from LUT
Index (An, Bn)

Host Address
Display Memory

Panel Display

4 bpp:
bit 7

bit 0

Byte 0

A0

B0

C0

D0

A1

B1

C1

D1

Byte 1

A2

B2

C2

D2

A3

B3

C3

D3

Byte 2

A4

B4

C4

D4

A5

B5

C5

D5

P0 P1 P2 P3 P4 P5 P6 P7
LUT

Pn = RGB value from LUT
Index (An, Bn, Cn, Dn)

Host Address
Display Memory

Panel Display

8 bpp:
bit 7

bit 0

Byte 0

A0

B0

C0

D0

E0

F0

G0

H0

Byte 1

A1

B1

C1

D1

E1

F1

G1

H1

Byte 2

A2

B2

C2

D2

E2

F2

G2

H2

P0 P1 P2 P3 P4 P5 P6 P7
LUT

Pn = RGB value from LUT Index
(An, Bn, Cn, Dn, En, Fn, Gn, Hn)

Host Address
Panel Display

Display Memory
16 bpp:
Byte 0

5-6-5 RGB
bit 7
bit 0
1
2
0
G0 G0 G0 B04 B03 B02 B01 B00

Byte 2

R04 R03 R02 R01 R00 G05 G04 G03
G12 G11 G10 B14 B13 B12 B11 B10

Byte 3

R14 R13 R12 R11 R10 G15 G14 G13

Byte 1

P0 P1 P2 P3 P4 P5 P6 P7
Bypasses LUT

Pn = (Rn4-0, Gn 5-0, Bn4-0)

Panel Display
Host Address

Display Buffer

Figure 10-1 4/8/16 Bit-Per-Pixel Display Data Memory Organization
Note

1. The Host-to-Display mapping shown here is for a little endian system.
2. For 16 bpp format, Rn, Gn, Bn represent the red, green, and blue color components.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 173

11 Look-Up Table Architecture
The following figures are intended to show the display data output path only.
Note

When Video Data Invert is enabled the video data is inverted after the Look-Up Table.

11.1 Monochrome Modes
The green Look-Up Table (LUT) is used for all monochrome modes.
1 Bit-per-pixel Monochrome Mode

Green Look-Up Table 256x6
00
01

00
01

6-bit Gray Data

FC
FD
FE
FF
= unused Look-Up Table entries

1 bit-per-pixel data
from Display Buffer

Figure 11-1 1 Bit-per-pixel Monochrome Mode Data Output Path
2 Bit-per-pixel Monochrome Mode

Green Look-Up Table 256x6
00
01
02
03

00
01
10
11

6-bit Gray Data

FC
FD
FE
FF
2 bit-per-pixel data
from Display Buffer

= unused Look-Up Table entries

Figure 11-2 2 Bit-per-pixel Monochrome Mode Data Output Path

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 174

Epson Research and Development
Vancouver Design Center

4 Bit-per-pixel Monochrome Mode

Green Look-Up Table 256x6
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F

0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111

6-bit Gray Data

FC
FD
FE
FF
4 bit-per-pixel data
from Display Buffer
= unused Look-Up Table entries

Figure 11-3 4 Bit-per-pixel Monochrome Mode Data Output Path
8 Bit-per-pixel Monochrome Mode

Green Look-Up Table 256x6
00
01
02
03
04
05
06
07

0000 0000
0000 0001
0000 0010
0000 0011
0000 0100
0000 0101
0000 0110
0000 0111

F8
F9
FA
FB
FC
FD
FE
FF

1111 1000
1111 1001
1111 1010
1111 1011
1111 1100
1111 1101
1111 1110
1111 1111

6-bit Gray Data

8 bit-per-pixel data
from Display Buffer

Figure 11-4 8 Bit-per-pixel Monochrome Mode Data Output Path

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 175

16 Bit-Per-Pixel Monochrome Mode
The LUT is bypassed and the green data is directly mapped for this color depth– See
“Display Data Formats” on page 172..

11.2 Color Modes
1 Bit-Per-Pixel Color
Red Look-Up Table 256x6
00
01

0
1

6-bit Red Data

FC
FD
FE
FF

Green Look-Up Table 256x6
00
01

0
1

6-bit Green Data

FC
FD
FE
FF

Blue Look-Up Table 256x6
00
01

0
1

6-bit Blue Data

FC
FD
FE
FF

1 bit-per-pixel data
from Image Buffer

= unused Look-Up Table entries

Figure 11-5 1 Bit-Per-Pixel Color Mode Data Output Path

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 176

Epson Research and Development
Vancouver Design Center

2 Bit-Per-Pixel Color
Red Look-Up Table 256x6
00
01
02
03

00
01
10
11

6-bit Red Data

00
01
10
11

6-bit Green Data

00
01
10
11

6-bit Blue Data

FC
FD
FE
FF
Green Look-Up Table 256x6
00
01
02
03

FC
FD
FE
FF
Blue Look-Up Table 256x6
00
01
02
03

FC
FD
FE
FF
2 bit-per-pixel data
from Image Buffer

= unused Look-Up Table entries

Figure 11-6 2 Bit-Per-Pixel Color Mode Data Output Path

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 177

4 Bit-Per-Pixel Color
Red Look-Up Table 256x6
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F

0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111

6-bit Red Data

FC
FD
FE
FF
Green Look-Up Table 256x6
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F

0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111

6-bit Green Data

FC
FD
FE
FF
Blue Look-Up Table 256x6
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F

FC
FD
FE
FF
4 bit-per-pixel data
from Image Buffer

0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111

6-bit Blue Data

= unused Look-Up Table entries

Figure 11-7 4 Bit-Per-Pixel Color Mode Data Output Path

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 178

Epson Research and Development
Vancouver Design Center

8 Bit-per-pixel Color Mode
Red Look-Up Table 256x6
00
01
02
03
04
05
06
07

0000 0000
0000 0001
0000 0010
0000 0011
0000 0100
0000 0101
0000 0110
0000 0111

F8
F9
FA
FB
FC
FD
FE
FF

1111 1000
1111 1001
1111 1010
1111 1011
1111 1100
1111 1101
1111 1110
1111 1111

Green Look-Up Table 256x6
00
01
02
03
04
05
06
07

0000 0000
0000 0001
0000 0010
0000 0011
0000 0100
0000 0101
0000 0110
0000 0111

F8
F9
FA
FB
FC
FD
FE
FF

1111 1000
1111 1001
1111 1010
1111 1011
1111 1100
1111 1101
1111 1110
1111 1111

Blue Look-Up Table 256x6
00
01
02
03
04
05
06
07

0000 0000
0000 0001
0000 0010
0000 0011
0000 0100
0000 0101
0000 0110
0000 0111

F8
F9
FA
FB
FC
FD
FE
FF

1111 1000
1111 1001
1111 1010
1111 1011
1111 1100
1111 1101
1111 1110
1111 1111

6-bit Red Data

6-bit Green Data

6-bit Blue Data

8 bit-per-pixel data
from Display Buffer

Figure 11-8 8 Bit-per-pixel Color Mode Data Output Path
16 Bit-Per-Pixel Color Mode
The LUT is bypassed and the color data is directly mapped for this color depth– See
“Display Data Formats” on page 172.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 179

12 SwivelView™
12.1 Concept
Most computer displays are refreshed in landscape orientation – from left to right and top
to bottom. Computer images are stored in the same manner. SwivelView™ is designed to
rotate the displayed image on an LCD by 90°, 180°, or 270° in an counter-clockwise
direction. The rotation is done in hardware and is transparent to the user for all display
buffer reads and writes. By processing the rotation in hardware, SwivelView™ offers a
performance advantage over software rotation of the displayed image.
The image is not actually rotated in the display buffer since there is no address translation
during CPU read/write. The image is rotated during display refresh.

12.2 90° SwivelView™
90° SwivelView™ requires the Memory Clock (MCLK) to be at least 1.25 times the
frequency of the Pixel Clock (PCLK), i.e. MCLK ≥ 1.25PCLK.
The following figure shows how the programmer sees a 320x480 portrait image and how
the image is being displayed. The application image is written to the S1D13708 in the
following sense: A–B–C–D. The display is refreshed by the S1D13708 in the following
sense: B-D-A-C.
physical memory
start address

320

display start address
(panel origin)

C

SwivelView
window

SwivelView
window

B

D

B

A

480

A

D

C

480
320

image seen by programmer
= image in display buffer

image refreshed by S1D13708

Figure 12-1 Relationship Between The Screen Image and the Image Refreshed in 90° SwivelView.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 180

Epson Research and Development
Vancouver Design Center

12.2.1 Register Programming
Enable 90° SwivelView™ Mode

Set SwivelView™ Mode Select bits to 01.
Display Start Address

The display refresh circuitry starts at pixel “B”, therefore the Display Start Address register
must be programmed with the address of pixel “B”. The example in the figure shows a 320pixel wide display, and if we assume 8-bpp display mode, the Display Start Address will
be 4Fh (the Display Start Address register is 0-based and in 32-bit increment).
Memory Address Offset

The Memory Address Offset register should be normally set to be the same as the display
width, e.g. 320 pixels or 50h (the Memory Address Offset register is in 32-bit increment).
This value may be increased to create a virtual display.
Panning

Panning is achieved by changing the Display Start Address register:
• Increment/decrement the Display Start Address register pans the display window
right/left by 32 bits, e.g. 4 pixels in 8-bpp mode.
• Increase/decrease the Display Start Address register by an amount equals to the Memory
Address Offset pans the display window down/up by 1 line.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 181

12.3 180° SwivelView™
The following figure shows how the programmer sees a 480x320 landscape image and how
the image is being displayed. The application image is written to the S1D13708 in the
following sense: A–B–C–D. The display is refreshed by the S1D13708 in the following
sense: D-C-B-A.
display start address
(panel origin)

D

D
480

image seen by programmer
= image in display buffer

B

C

320

320

SwivelView
window

A

B

SwivelView
window

A

C

physical memory
start address

480
image refreshed by S1D13708

Figure 12-2 Relationship Between The Screen Image and the Image Refreshed in 180° SwivelView.

12.3.1 Register Programming
Enable 180° SwivelView™ Mode

Set SwivelView™ Mode Select bits to 10.
Display Start Address

The display refresh circuitry starts at pixel “D”, therefore the Display Start Address register
must be programmed with the address of pixel “D”. The example in the figure shows a 480pixel wide display, and if we assume 8-bpp display mode, the Display Start Address will
be 95FFh (the Display Start Address register is 0-based and in 32-bit increment).
Memory Address Offset

The Memory Address Offset register should be normally set to be the same as the display
width, e.g. 480 pixels or 78h (the Memory Address Offset register is in 32-bit increment).
This value may be increased to create a virtual display.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 182

Epson Research and Development
Vancouver Design Center

Panning

Panning is achieved by changing the Display Start Address register:
• Increment/decrement the Display Start Address register pans the display window
right/left by 32 bits, e.g. 4 pixels in 8-bpp mode.
• Increase/decrease the Display Start Address register by an amount equals to the Memory
Address Offset pans the display window down/up by 1 line.

12.4 270° SwivelView™
270° SwivelView™ requires the Memory Clock (MCLK) to be at least 1.25 times the
frequency of the Pixel Clock (PCLK), i.e. MCLK ≥ 1.25PCLK.
The following figure shows how the programmer sees a 320x480 portrait image and how
the image is being displayed. The application image is written to the S1D13708 in the
following sense: A–B–C–D. The display is refreshed by the S1D13708 in the following
sense: C-A-D-B.
physical memory
start address
B

320

display start address
(panel origin)

A

SwivelView
window

SwivelView
window

C

480

A

B

D

D

C

480
320

image seen by programmer
= image in display buffer

image refreshed by S1D13708

Figure 12-3 Relationship Between The Screen Image and the Image Refreshed in 270° SwivelView.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 183

12.4.1 Register Programming
Enable 270° SwivelView™ Mode

Set SwivelView™ Mode Select bits to 11.
Display Start Address

The display refresh circuitry starts at pixel “C”, therefore the Display Start Address register
must be programmed with the address of pixel “C”. The example in the figure shows a 320pixel wide display, and if we assume 8-bpp display mode, the Display Start Address will
be 95B0h (the Display Start Address register is 0-based and in 32-bit increment).
Memory Address Offset

The Memory Address Offset register should be normally set to be the same as the display
width, e.g. 320 pixels or 50h (the Memory Address Offset register is in 32-bit increment).
This value may be increased to create a virtual display.
Panning

Panning is achieved by changing the Display Start Address register:
• Increment/decrement the Display Start Address register pans the display window
right/left by 32 bits, e.g. 4 pixels in 8-bpp mode.
• Increase/decrease the Display Start Address register by an amount equals to the Memory
Address Offset pans the display window down/up by 1 line.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 184

Epson Research and Development
Vancouver Design Center

13 Picture-in-Picture Plus (PIP + )
13.1 Concept
Picture-in-Picture Plus enables a secondary window (or PIP+ window) within the main
display window. The PIP+ window may be positioned anywhere within the virtual display
and is controlled through the PIP+ Window control registers (REG[7Ch] through
REG[91h]). The PIP+ window retains the same color depth and SwivelView orientation as
the main window.
The following diagram shows an example of a PIP+ window within a main window and the
registers used to position it.

0° SwivelViewTM

PIP+ window y start position
(REG[89h],REG[88h])

panel’s origin

PIP+ window y end position
(REG[91h],REG[90h])
main-window

PIP+ window

PIP+ window x start position
(REG[85h],REG[84h])

PIP+ window x end position
(REG[8Dh],REG[8Ch])

Figure 13-1 Picture-in-Picture Plus with SwivelView disabled

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 185

13.2 With SwivelView Enabled
13.2.1 SwivelView 90°
90° SwivelViewTM

panel’s origin
PIP+ window x start position
(REG[85h],REG[84h])

PIP+ window x end position
(REG[8Dh],REG[8Ch])
PIP+ window

main-window

PIP+ window y start position
(REG[89h],REG[88h])

PIP+ window y end position
(REG[91h],REG[90h])

Figure 13-2 Picture-in-Picture Plus with SwivelView 90° enabled

13.2.2 SwivelView 180°
180° SwivelViewTM

PIP+ window x end position
(REG[8Dh],REG[8Ch])

PIP+ window x start position
(REG[85h],REG[84h])

PIP+ window

main-window

PIP+ window y end position
(REG[91h],REG[90h])

PIP+ window y start position
(REG[89h],REG[88h])

panel’s origin

Figure 13-3 Picture-in-Picture Plus with SwivelView 180° enabled

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 186

Epson Research and Development
Vancouver Design Center

13.2.3 SwivelView 270°
270° SwivelViewTM

PIP+ window y end position
(REG[91h],REG[90h])

PIP+ window y start position
(REG[89h],REG[88h])

PIP+ window x start position
(REG[85h],REG[84h])

main-window

PIP+ window

PIP+ window x end position
(REG[8Dh],REG[8Ch])

panel’s origin

Figure 13-4 Picture-in-Picture Plus with SwivelView 270° enabled

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 187

14 Ink Layer
The S1D13708 Ink Layer design provides support for a foreground image that can be
overlaid on the background (or main) image. The Ink Layer supports all color depths and
automatically adjusts to the resolution of the display.

14.1 Memory Mapping
The S1D13708 has 80K bytes of embedded SRAM. When the ink layer is enabled, this
memory is divided into two 40K byte blocks which can be logically represented as shown
below.
Ink Layer Disabled
(REG[C9h] bit 0 = 0)

Ink Layer Enabled
(REG[C9h] bit 0 = 1)
00000h

00000h

40K Byte
Ink Layer
(foreground)

80K Byte
Display Buffer

0A000h

40K Byte
Display Buffer
(background)

13FFFh

13FFFh

Figure 14-1 Memory Mapping for Ink Layer

14.2 Controlling the Ink Layer
The Ink Layer is controlled using REG[C7h] through REG[C9h].

Enabling the Ink Layer

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 188

Epson Research and Development
Vancouver Design Center

The Ink Layer is enabled/disabled using REG[C9h] bit 0. When the Ink Layer Enable bit is
set to 1, the display buffer is automatically configured for a foreground and background
image as shown in Figure 14-1 Memory Mapping for Ink Layer.

Setting the Transparent Color
The Ink Layer requires a transparent color to be set. This transparent color is stored in
REG[C7h], REG[C8h] and the value from these registers is compared with the values in
the foreground image during display refresh. If the pixel value matches the transparent
color, the corresponding pixel from the background image is shown. If the pixel value does
not match the transparent color, the foreground image is shown.

Transparent Color = FFh
(REG[C7h],REG[C8h])

Pixel Value = A0h

00000h

40K Byte
Ink Layer
(foreground)

Example:
Compare first pixel in ink layer (A0h) with the first
display color (00h). Pixel values do not match
therefore pixel value from main display (00h) is used
for display refresh.
Compare second pixel in ink layer (A0h) with
display memory color (A0h). Pixel values do match
therefore pixel value from ink layer (A0h) is
used for display refresh.

0A000h
Pixel Value = 00h
Pixel Value = A0h

40K Byte
Display Buffer
(background)

13FFFh

Figure 14-2 Transparent Color Example

14.3 Limitations
There are certain limitations when the Ink Layer is enabled.
• Available display buffer is only 40K byte. This limits the resolution and color depth of
the display (e.g. 160x160 at 16 bpp is not possible).

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 189

15 Indirect Interface
The Indirect Interface is an asynchronous interface with 2 modes of operation, mode 68 and
mode 80. The address and data are multiplexed onto the data bus, thus providing a low pin
count interface to the S1D13708. The modes are distinguished between one another by the
polarity of BS#. Both modes support 8 and 16 bit accesses for both little and big endian.
The S1D13708 Indirect Interface use a combination of “command” and “data” reads/writes
to program the LCD controller. First, register addresses are loaded using “command”
writes. Then, register values and memory reads/writes are performed using “data”
reads/writes. Memory addresses are performed by programming REG[C0h] through
REG[C2h] with the desired 17-bit address.
If the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1), memory accesses are
always word accesses and the signals WRU#, RDU# and EBU are ignored (WRL#, RDL#
and EBL are used for accessing both the higher and lower bytes). If this bit is disabled,
byte/word accesses to memory are controlled by WRn#, RDn# and EBn.
For details and examples, see the following sections. Also refer to Connecting to the
Indirect Interface Bus, Document Number X39A-G-020-xx.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 190

Epson Research and Development
Vancouver Design Center

15.1 Mode 68
The following shows an example of a “register write” with Mode 68.

CS#
A0
R/W#
EBL
EBU
CMD0

CMD1

DATA1

CMD2

DATA3

CMD4

D[7:0]
DATA0

DATA4

DATA2

D[15:8]
command write

data write

even number

byte access

STEP

1

2

command write
odd number

3

data write
byte access

command write
even number

data write
word access
(Big Endian)

4

5

6

command write
even number

data write
byte access

Little Endian
DATA2

D[7:0]
DATA3

D[15:8]

Figure 15-1 Sample timing of “register write” with Mode 68
1. write register address (command write).
2. write register data (data write). Even numbered register uses the high byte.
3. write register address (command write).
4. write register data (data write). Demonstrates how to access an odd numbered register
using the low byte. Note that the high byte could also have been used by asserting
EBU instead of EBL.
5. write register address (command write)
6. write register data (data write). Word accesses (16-bit) use the higher byte for the even
register address and the lower byte for the odd register address.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 191

The following shows an example of a “register read” with Mode 68.

CS#
A0
R/W#
EBL
EBU
CMD0

CMD1

DATA3

CMD2

DATA1

CMD4

D[7:0]
DATA0

DATA4

DATA2

D[15:8]

STEP

command write

data read

even number

byte access

1

2

command write
odd number

3

data read
byte access

command write
even number

data read
word access
(Big Endian)

4

5

6

command write

data read

even number

byte access

Little Endian
DATA2

D[7:0]
DATA3

D[15:8]

Figure 15-2 Sample timing of “register read” with Mode 68
1. write register address (command write).
2. read register data (data read).
3. write register address (command write).
4. read register data (data read). Demonstrates how to access an odd numbered register
using the low byte. Note that the high byte could also have been used by asserting
EBU instead of EBL.
5. write register address (command write).
6. read register data (data read). Word accesses (16-bit) use the higher byte for the even
register address and the lower byte for the odd register address.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 192

Epson Research and Development
Vancouver Design Center

The following shows an example of a “memory write” with Mode 68, Big Endian.

CS#
A0
R/W#
EBL
EBU
D[7:0]
D[15:8]
Command
Write

Data Write
word access

REG[C0h]
even number

Command
Write

Data Write
byte access

REG[C2h]
even number

Command
Write

Data Write
byte access

REG[C4h]

memory data memory data memory data memory data memory data
even address odd address even address even address even address

Data Write
byte access

Address +1
(byte)

STEP

1

2

3

4

5

6

6

Data Write
word access

Address +1
(byte)

Data Write
word access

Data Write
byte access

Address +2 Address +2
(word)
(word)

6

6

6

Figure 15-3 Sample timing of “memory write” with Mode 68, Big Endian
1. write register address of Memory Access Pointer 0 (REG[C0h]) (command write).
2. write memory address[7:0] to the low byte and memory address[15:8] to the high byte
(data write). This places data into RegC0 and RegC1, which form bits [7:0] and [15:8]
of memory address respectfully.
3. write register address of Memory Access Pointer 2 (REG[C2h] bit 0) (command
write).
4. write memory access pointer (REG[c2h] bit 0) (data write). This forms bit 16 of memory address.
5. write register number of Memory Access Start register (REG[C4h] (command write).
Note

No “data write” is required after a command write to the Memory Access Start register
(REG[C4h]). This step configures the S1D13708 for burst memory access beginning
with the next data write.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 193

6. write Memory data (data write)
The S1D13708 indirect interface implements an auto increment function to allow
burst memory accesses. For byte accesses, the Memory Address Pointer registers
(REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word
accesses, the Memory Address Pointer registers are automatically incremented “+2”.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 194

Epson Research and Development
Vancouver Design Center

The following shows an example of a “memory read” with Mode 68, Big Endian.

CS#
A0
R/W#
EBL
EBH
D[7:0]
D[15:8]
Command
Write

Data Write
word access

Command
Write

Data Write
byte access

REG[C2h]
even number

REG[C0h]
even number

Command
Write

Data Read
word access

REG[C4h]

memory data memory data memory data memory data memory data
even address odd address even address odd address even address

Data Read
word access

Address +2
(word)

STEP

1

2

3

4

5

6

6

Data Read
byte access

Address +2
(word)

Data Read
byte access

Data Read
byte access

Address +1 Address +1
(byte)
(byte)

6

6

6

Figure 15-4 Sample timing of “memory read” with Mode 68, Big Endian
1. write register address of Memory Access Pointer 0 (REG[C0h]) (command write).
2. write memory address[7:0] to the low byte and memory address[15:8] to the high byte
(data write). This places data into RegC0 and RegC1, which form bits [7:0] and [15:8]
of memory address respectfully.
3. write register address of Memory Access Pointer 2 (REG[C2h] bit 0) (command
write).
4. write memory access pointer (REG[c2h] bit 0) (data write). This forms bit 16 of memory address.
5. write register number of Memory Access Start register (REG[C4h] (command write).
Note

No “data write” is required after a command write to the Memory Access Start register
(REG[C4h]). This step configures the S1D13708 for burst memory access beginning
with the next data write.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 195

6. read Memory data (data read)
The S1D13708 indirect interface implements an auto increment function to allow
burst memory accesses. For byte accesses, the Memory Address Pointer registers
(REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word
accesses, the Memory Address Pointer registers are automatically incremented “+2”.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 196

Epson Research and Development
Vancouver Design Center

The following shows an example of a “memory write” for Mode 68 when the Memory
Access Select bit is enabled (REG[C6h] bit 0 = 1).

CS#
A0
R/W#
EBL
Little endian

EBU

DATA0

DATA2

DATA4

DATA6

DATA8

DATA10

DATA12

DATA1

DATA3

DATA5

DATA7

DATA9

DATA11

DATA13

D[7:0]
D[15:8]
command write
MemoryAccessStart

data write

data write

word access

word access

Address +2
(word)

STEP

1

2

data write

data write

data write

data write

word access

word access

word access

word access

Address +2
(word)

2

Address +2
(word)

2

Address +2
(word)

2

Address +2
(word)

2

data write
word access

Address +2
(word)

2

2

Data arrangement
Big Endian
DATA n+1

Little Endian
DATA n

DATA n

DATA n+1

D[7:0]
D[15:8]

Figure 15-5 Sample timing of “register write” for Mode 68 when Memory Access Select Enabled
1. write register number of Memory Access Start register (REG[C4h]) (command write).
Note

No “data write” is required after a command write to the Memory Access Start register
(REG[C4h]). This step configures the S1D13708 for burst memory access beginning
with the next data write.
2. write Memory data (data write).
If the Memory Access Select bit (REG[C6h] bit 0 = 1), memory accesses are word accesses even if EBU is high (EBU is ignored and EBL is used to write both the upper
and lower bytes). The big/little endian setting is used to determine the data arrangement for word accesses only.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 197

The S1D13708 indirect interface implements an auto increment function to allow
burst memory accesses. For byte accesses, the Memory Address Pointer registers
(REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word
accesses, the Memory Address Pointer registers are automatically incremented “+2”.
Note

If the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1), all memory accesses
are word accesses (EBU is ignored). Therefore, the memory address set in REG[C0h]
through REG[C2h] must be an even address.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 198

Epson Research and Development
Vancouver Design Center

The following shows an example of a “memory read” for Mode 68 when the Memory
Access Select bit is enabled (REG[C6h] bit 0 = 1).

CS#
A0
R/W#
EBL
Little endian

EBU

DATA0

DATA2

DATA4

DATA6

DATA8

DATA10

DATA12

DATA1

DATA3

DATA5

DATA7

DATA9

DATA11

DATA13

D[7:0]
D[15:8]
command write
MemoryAccessStart

data read

data read

data read

data read

data read

data read

word access

word access

word access

word access

word access

word access

Address +2
(word)

STEP

1

2

Address +2
(word)

2

Address +2
(word)

2

Address +2
(word)

2

Address +2
(word)

2

data read
word access

Address +2
(word)

2

2

Data arrangement
Big Endian
DATA n+1

Little Endian
DATA n

DATA n

DATA n+1

D[7:0]
D[15:8]

Figure 15-6 Sample timing of “register read” for Mode 68 when Memory Access Select Enabled
1. write register number of Memory Access Start register (REG[C4h]) (command write).
Note

No “data write” is required after a command write to the Memory Access Start register
(REG[C4h]). This step configures the S1D13708 for burst memory access beginning
with the next data read.
2. read Memory data (data read).
If the Memory Access Select bit (REG[C6h] bit 0 = 1), memory accesses are word accesses even if EBU is high (EBU is ignored and EBL is used to read both the upper
and lower bytes). The big/little endian setting is used to determine the data arrangement for word accesses only.
The S1D13708 indirect interface implements an auto increment function to allow

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 199

burst memory accesses. For byte accesses, the Memory Address Pointer registers
(REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word
accesses, the Memory Address Pointer registers are automatically incremented “+2”.
Note

If the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1), all memory accesses
are word accesses (EBU is ignored). Therefore, the memory address set in REG[C0h]
through REG[C2h] must be an even address.
Register access still uses EBU irrespective of REG[C6] bit 0 value.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 200

Epson Research and Development
Vancouver Design Center

15.2 Mode 80
Mode 80 supports byte and word access for both register and memory access. It also allows
both big and little endian modes. The following shows an example of a “register write” with
Mode 80.

CS#
A0
WRL#
WRU#
RDL#
RDU#
CMD0

DATA0

CMD1

CMD2

DATA2

CMD4

DATA4

D[7:0]
DATA1

DATA3

D[15:8]
command write

data write

even number

byte access

STEP

1

2

command write
odd number

3

data write
byte access

command write

4

5

even number

data write
word access
Little Endian

command write

data write

even number

byte access

6
Big Endian
DATA3

D[7:0]
DATA2

D[15:8]

Figure 15-7 Sample timing of “register write” with Mode 80
1. write register address (command write). Command write is always the lower byte.
2. write register data (data write). Even numbered register uses the low byte.
3. write register address (command write).
4. write register data (data write). Demonstrates how to access an odd numbered register
using the high byte. Note that the low byte could also have been used by asserting
WRL# instead of WRU#.
5. write register address (command write)

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 201

6. write register data (data write). Word accesses (16-bit) use the lower byte for the lower register number and the higher byte for the higher register number.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 202

Epson Research and Development
Vancouver Design Center

The following shows an example of a “register read” with Mode 80.

CS#
A0
WRL#
WRU#
RDL#
RDU#
CMD0

DATA0

CMD1

CMD2

DATA2

CMD4

DATA4

D[7:0]
DATA1

DATA3

D[15:8]
command write

data read

even number

byte access

odd number

2

3

STEP

1

command write

data read
byte access

command write
even number

4

5

data read
word access
Little Endian

command write

data read

even number

byte access

6
Big Endian
DATA3

D[7:0]
DATA2

D[15:8]

Figure 15-8 Sample timing of “register read” with Mode 80
1. write register address (command write). Command write is always the lower byte.
2. read register data (data read). Even numbered register uses the lower byte.
3. write register address (command write).
4. read register data (data read). Demonstrates how to access an odd numbered register
using the high byte. Note that the low byte could also have been used by asserting
WRL# instead of WRU#.
5. write register address (command write).
6. read register data (data read). Word accesses (16-bit) use the lower byte for the lower
register number and the higher byte for the higher register number.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 203

The following shows an example of a “memory write” with Mode 80, little endian.

CS#
A0
WRL#
WRU#
RDL#
RDU#
D[7:0]
D[15:8]
Command
Write

Data Write
word access

Command
Write

Data Write
byte access

REG[C2h]
even number

REG[C0h]
even number

Command
Write

Data Write
byte access

REG[C4h]

memory data memory data memory data memory data memory data
even address odd address even address even address even address

Data Write
byte access

Address +1
(byte)

STEP

1

2

3

4

5

6

6

Data Write
word access

Address +1
(byte)

Data Write
word access

Data Write
byte access

Address +2 Address +2
(word)
(word)

6

6

6

Figure 15-9 Sample timing of “memory write” with mode 80, little endian
1. write register number of Memory Access Pointer 0 (REG[C0h]) (command write).
2. write memory address 0 to the high byte and memory address 1 to the low byte
(MA[15:0]) (data write).
3. write register number of Memory Access Pointer 2 (REG[C2h]) (command write).
4. write memory address 2 (MA16) to the low byte (data write).
5. write register number of Memory Access Start register (REG[C4h]) (command write).
Note

No “data write” is required after a command write to the Memory Access Start register
(REG[C4h]). This step configures the S1D13708 for burst memory access beginning
with the next data write.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 204

Epson Research and Development
Vancouver Design Center

6. write Memory data (data write)
The S1D13708 indirect interface implements an auto increment function to allow
burst memory accesses. For byte accesses, the Memory Address Pointer registers
(REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word
accesses, the Memory Address Pointer registers are automatically incremented “+2”.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 205

The following shows an example of a “memory read” with Mode 80, Little endian.

CS#
A0
WRL#
WRU#
RDL#
RDU#
D[7:0]
D[15:8]
Command
Write

Data Write
word access

Command
Write

Data Write
byte access

REG[C2h]
even number

REG[C0h]
even number

Command
Write

Data Read
word access

REG[C4h]

memory data memory data memory data memory data memory data
even address odd address even address odd address even address

Data Read
word access

Address +2
(word)

STEP

1

2

3

4

5

6

6

Data Read
byte access

Address +2
(word)

Data Read
byte access

Data Read
byte access

Address +1 Address +1
(byte)
(byte)

6

6

6

Figure 15-10 Sample timing of “memory read” with mode 80, Little endian
1. write register number of Memory Access Pointer 0 (REG[C0h]) (command write).
2. write memory address 0 to the high byte and memory address 1 to the low byte
(MA[15:0]) (data write).
3. write register number of Memory Access Pointer 2 (REG[C2h]) (command write).
4. write memory address 2 (MA16) to the low byte (data write).
5. write register number of Memory Access Start register (REG[C4h]) (command write).
Note

No “data write” is required after a command write to the Memory Access Start register
(REG[C4h]). This step configures the S1D13708 for burst memory access beginning
with the next data write.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 206

Epson Research and Development
Vancouver Design Center

6. read Memory data (data read)
The S1D13708 indirect interface implements an auto increment function to allow
burst memory accesses. For byte accesses, the Memory Address Pointer registers
(REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word
accesses, the Memory Address Pointer registers are automatically incremented “+2”.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 207

The following shows an example of a “memory write” for Mode 80 when the Memory
Access Select bit is enabled (REG[C6h] bit 0 = 1).

CS#
A0
WRL#
WRU#
RDL#
RDU#
DATA0

DATA2

DATA4

DATA6

Little Endian
DATA8

DATA10

DATA12

DATA1

DATA3

DATA5

DATA7

DATA9

DATA11

DATA13

D[7:0]
D[15:8]
command write
MemoryAccessStart

data write

data write

data write

data write

data write

data write

data write

word access

word access

word access

word access

word access

word access

word access

Address +2
(word)

STEP

1

2

Address +2
(word)

2

Address +2
(word)

2

Address +2
(word)

2

Address +2
(word)

2

Address +2
(word)

2

2

Data arrangement
Big Endian
DATA n+1

Little Endian
DATA n

DATA n

DATA n+1

D[7:0]
D[15:8]

Figure 15-11 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabled
1. write register address of Memory Access Start register (REG[C4h]) (command write).
Note

No “data write” is required after a command write to the memory Access Start register
(REG[C4h]). This step configures the S1D13708 for burst memory access beginning
with the next data write.
2. write Memory data (data write).
If the Memory Access Select bit (REG[C6h] bit 0 = 1), memory accesses are word accesses even if WRU# is high (WRU# is ignored and WRL# is used to write both the

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 208

Epson Research and Development
Vancouver Design Center

upper and lower bytes). The bit/Little endian setting is used to determine the data arrangement for word accesses only.
The S1D13708 indirect interface implements an auto increment function to allow
burst memory accesses. For byte accesses, the Memory Address Pointer registers
(REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word
accesses, the Memory Address Pointer registers are automatically incremented “+2”.
Note

If the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1), all memory accesses
are word accesses (WRU# is ignored). Therefore, the memory address set in REG[C0h]
through REG[C2h] must be an even address.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 209

The following shows an example of a “memory read” for Mode 80 when the Memory
Access Select bit is enabled (REG[C6h] bit 0 = 1).

CS#
A0
WRL#
WRU#
RDL#
Little Endian

RDU#
DATA0

DATA2

DATA4

DATA6

DATA8

DATA10

DATA12

DATA1

DATA3

DATA5

DATA7

DATA9

DATA11

DATA13

D[7:0]
D[15:8]
data read

data read

data read

data read

data read

data read

word access

word access

word access

word access

word access

word access

command write
MemoryAccessStart

Address +2
(word)

STEP

1

2

Address +2
(word)

2

Address +2
(word)

2

Address +2
(word)

2

Address +2
(word)

2

data read
word access

Address +2
(word)

2

2

Data arrangement
Big Endian
DATA n+1

Little Endian
DATA n

DATA n

DATA n+1

D[7:0]

D[15:8]

Figure 15-12 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabled
1. write register address of Memory Access Start register (REG[C4h] (command write).
Note

No “data write” is required after a command write to the memory Access Start register
(REG[C4h]). This step configures the S1D13708 for burst memory access beginning
with the next data read.
2. read Memory data (data write)
If the Memory Access Select bit (REG[C6h] bit 0 = 1), memory accesses are word accesses even if RDU# is high (RDU# is ignored and RDL# is used to write both the upper and lower bytes). The bit/Little endian setting is used to determine the data

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 210

Epson Research and Development
Vancouver Design Center

arrangement for word accesses only.
The S1D13708 indirect interface implements an auto increment function to allow
burst memory accesses. For byte accesses, the Memory Address Pointer registers
(REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word
accesses, the Memory Address Pointer registers are automatically incremented “+2”.
Note

If the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1), all memory accesses
are word accesses (RDU# is ignored). Therefore, the memory address set in REG[C0h]
through REG[C2h] must be an even address.

15.3 Limitations
Each Indirect cycle requires a certain number of BCLK cycles to setup/complete (refer to
Indirect Interface Timing (Mode 68) on page 62 and Indirect Interface Timing (Mode 80)
on page 64). The BCLK source can be derived from either XTAL or CLKI. When XTAL
is used, and has a different frequency than the CPU, the CPU must take the speed difference
into account and change the cycle time accordingly.
Example: If the CPU clock is running at 20MHz and the S1D13708 is running with a
10MHz crystal, referring to Table 6-14, item t6a requires 7.5 BUSCLKs. Since the CPU
will be running 2 times faster than BUSCLK, t6a will require to be doubled to15
BUSCLKs.

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 211

16 Embedded Crystal Oscillator
The S1D13708 includes an embedded crystal oscillator which is available when the
Indirect Interface is selected.

16.1 Oscillator Circuit
When a crystal is used in conjunction with the S1D13708, the designer must connect an
external resistor and capacitors as recommended in the following figure.
XTAL1

XTAL0

Rfb

C1

Crystal
(12MHz Max.)

C2

Figure 16-1 Recommended Crystal Oscillator Circuit
Where Rfb is a feedback resistor, and C1 and C2 are load capacitances. To determine the
appropriate values for the system, a good starting point is 1 megOhm (MΩ) for Rfb, 10
picoFarads (pF) for C1, and 10 picoFarads (pF) for C2. The values of Rfb, C1, and C2 should
be further refined to meet the frequency requirements of the system.
Note

The XTAL Enable bits (REG[CAh] bits 5 and 4) are used to enable the oscillator circuit.
See the BCLK Source Select Register on page 157 for further information on these two
bits.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 212

Epson Research and Development
Vancouver Design Center

17 Big-Endian Bus Interface
17.1 Byte Swapping Bus Data
The display buffer and register architecture of the S1D13708 is inherently little-endian. If
configured as big-endian (CNF4 = 1 at reset), bus accesses are automatically handled by
byte swapping all read/write data to/from the internal display buffer and registers.
Bus data byte swapping translates all byte accesses correctly to the S1D13708 register and
display buffer locations. To maintain the correct translation for 16-bit word access, even
address bytes must be mapped to the MSB of the 16-bit word, and odd address bytes to the
LSB of the 16-bit word. For example:
Byte write 11h to register address 1Eh
Byte write 22h to register address 1Fh

->
->

Word write 1122h to register address 1Eh->

S1D13708
X39A-A-001-02

REG[1Eh] <= 11h
REG[1Fh] <= 22h
REG[1Eh] <= 11h
REG[1Fh] <= 22h

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 213

17.1.1 16 Bpp Color Depth
For 16 bpp color depth, the Display Data Byte Swap bit (REG[71h] bit 6) must be set
to 1.

Display
Buffer
Address

D[15:8]
D[7:0]
15
0
System
Memory
Address

2

0
aa

bb

cc

dd

MSB

15
CPU Data
Byte Swap

bb

aa

dd

cc

0
0
2
Display
Data
Byte Swap

LSB

aabb

System
Memory
(Big-Endian)

ccdd

Display
Buffer
(Little-Endian)

* MSB is assumed to be associated with even address.
* LSB is assumed to be associated with odd address.

Figure 17-1 Byte-swapping for 16 Bpp
For 16 bpp color depth, the MSB of the 16-bit pixel data is stored at the even system
memory address location and the LSB of the 16-bit pixel data is stored at the odd system
memory address location. Bus data byte swapping (automatic when the S1D13708 is
configured for Big-Endian) causes the 16-bit pixel data to be stored byte-swapped in the
S1D13708 display buffer. During display refresh this stored data must be byte-swapped
again before it is sent to the display.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 214

Epson Research and Development
Vancouver Design Center

17.1.2 1/2/4/8 Bpp Color Depth
For 1/2/4/8 bpp color depth, byte swapping must be performed on the bus data but not the
display data.
For 1/2/4/8 bpp color depth, the Display Data Byte Swap bit (REG[71h] bit 6) must be
set to 0.

Display
Buffer
Address

D[15:8]
D[7:0]
15
0

0
11

15
CPU Data
Byte Swap

22

22

11

0
0

System
Memory
Address

11 22

System
Memory
(Big-Endian)

Display
Buffer
(Little-Endian)

* High byte lane (D[15:8]) data (e.g. 11) is associated with even address.
* Low byte lane (D[7:0]) data (e.g. 22) is associated with odd address.

Figure 17-2 Byte-swapping for 1/2/4/8 Bpp

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 215

18 Power Save Mode
A software initiated Power Save Mode is incorporated into the S1D13708 to accommodate
the need for power reduction in the hand-held devices market. This mode is enabled via the
Power Save Mode Enable bit (REG[A0h] bit 0).
Software Power Save Mode saves power by powering down the panel and stopping display
refresh accesses to the display buffer.
Table 18-1: Power Save Mode Function Summary
Software
Power Save

Normal

IO Access Possible?

Yes

Yes

Memory Writes Possible?

Yes1

Yes

Memory Reads Possible?

No

1

Yes

Look-Up Table Registers Access Possible?

Yes

Yes

Display Active?

No

Yes

LCD Interface Outputs

Forced Low

Active

Stopped

Active

Forced Low

Active

PWMCLK
2

GPIO Pins configured for HR-TFT/D-TFD/TFT Type 2/3
GPIO Pins configured as GPIOs Access Possible?

Yes

3

Yes

Note
1

When power save mode is enabled, the memory controller is powered down and the
status of the memory controller is indicated by the Memory Controller Power Save Status bit (REG[A0h] bit 3). However, memory writes are possible during power save
mode because the S1D13708 dynamically enables the memory controller for display
buffer writes.
2
GPIO Pins are configured using the configuration pin CNF3 which is latched on the
rising edge of RESET#. For information on CNF3, see Table 4-8: “Summary of PowerOn/Reset Options,” on page 38.
3
GPIOs can be accessed and if configured as outputs can be changed.
After reset, the S1D13708 is always in Power Save Mode. Software must initialize the chip
(i.e. programs all registers) and then clear the Power Save Mode Enable bit.

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 216

Epson Research and Development
Vancouver Design Center

19 Mechanical Data
0.8max
8 ±0.2

8

±0.2

0.15 ±0.05

0.1max
TOP VIEW
SIDE VIEW

0.30

±0.05

0.75

0.08

M

6

7

L
K
J
H
G

0.65

F
E
D
C
B

0.75

A

1

2

3

4

5

8

9

10 11

BOTTOM VIEW

All dimensions in mm

Figure 19-1 Mechanical Data PFBGA 120-pin Package

S1D13708
X39A-A-001-02

Hardware Functional Specification
Issue Date: 02/03/07

Epson Research and Development
Vancouver Design Center

Page 217

20 References
The following is a partial list of documents which contain additional information related to
the S1D13708. Document numbers are listed in parenthesis after the document name. All
documentation for the S1D13708 can be found at the Epson Research and Development
Website at www.erd.epson.com.
• 13708CFG Configuration Utility Users Manual (X39A-B-001-xx)
• 13708PLAY Diagnostic Utility Users Manual (X39A-B-002-xx)
• 13708BMP Demonstration Program Users Manual (X39A-B-003-xx)
• S1D13708 Product Brief (X39A-C-001-xx)
• S1D13708 Programming Notes And Examples (X39A-G-003-xx)
• S1D13708 Power Consumption (X39A-G-006-xx)
• Interfacing to the NEC VR4102/VR4111 Microprocessors (X39A-G-007-xx)
• Interfacing to the NEC VR4181 Microprocessor (X39A-G-008-xx)
• Interfacing to the Motorola MPC821 Microprocessor (X39A-G-009-xx)
• Interfacing to the Motorola MCF5307 “Coldfire” Microprocessors (X39A-G-010-xx)
• Connecting to the Sharp HR-TFT Panels (X39A-G-011-xx)
• Interfacing to the Motorola RedCap2 DSP (X39A-G-014-xx)
• Interfacing to 8-Bit Processors (X39A-G-015-xx)
• Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor (X39A-G-016-xx)
• Interfacing to the Intel StrongARM SA-1110 Microprocessor (X39A-G-019-xx)
• S1D13708 Register Summary (X39A-R-001-xx)

Hardware Functional Specification
Issue Date: 02/03/07

S1D13708
X39A-A-001-02

Page 218

Epson Research and Development
Vancouver Design Center

21 Technical Support
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

S1D13708
X39A-A-001-02

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

Hardware Functional Specification
Issue Date: 02/03/07

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

S1D13708 Embedded Memory LCD Controller

Programming Notes and Examples

A

D

V

Document Number: X39A-G-003-01

Copyright © 2001 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.

Epson Research and Development
Vancouver Design Center

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

Page 2

A

D

V

THIS PAGE LEFT BLANK

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11

2

Identifying the S1D13708 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

3

Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

4

Memory Models . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1 Display Buffer Location . . . . . . . . . . . . . . . . . .
4.2 Memory Organization for One Bit-per-pixel (2 Colors/Gray Shades) .
4.3 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades) .
4.4 Memory Organization for Four Bit-per-pixel (16 Colors/Gray Shades)
4.5 Memory Organization for 8 Bpp (256 Colors/64 Gray Shades) . . .
4.6 Memory Organization for 16 Bpp (65536 Colors/64 Gray Shades) . .

5

Look-Up Table (LUT) . . . . . . . .
5.1 Registers . . . . . . . . . .
5.1.1 Look-Up Table Registers . .
5.2 Look-Up Table Organization . .
5.2.1 Gray Shade Modes . . . . .
5.2.2 Color Modes . . . . . . . . .

. . . . . . .
. . . . . .
. . . . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .

. . .
. .
. . .
. .
. . .
. . .

6

Power Save Mode . . . . . . . . . . . . . . . . . .
6.1 Overview . . . . . . . . . . . . . . . . .
6.2 Registers . . . . . . . . . . . . . . . . .
6.2.1 Power Save Mode Enable . . . . . . . . . . .
6.2.2 Memory Controller Power Save Status . . . .
6.3 LCD Power Sequencing . . . . . . . . . . .
6.4 Enabling Power Save Mode . . . . . . . . . .
6.5 Disabling Power Save Mode . . . . . . . . . .

7

SwivelView‘ . . . . . . . . . . . . .
7.1 SwivelView Registers . . . . .
7.2 Examples . . . . . . . . . .
7.3 Limitations . . . . . . . . .
7.3.1 SwivelView 0° and 180° . .
7.3.2 SwivelView 90° and 270° . .

. . .
. .
. .
. .
. . .
. . .

8

Picture-In-Picture Plus . . . . . . . . . . .
8.1 Concept . . . . . . . . . . . . . .
8.2 Registers . . . . . . . . . . . . .
8.3 Picture-In-Picture-Plus Examples . . . .
8.3.1 SwivelView 0° (Landscape Mode) .
8.3.2 SwivelView 90° . . . . . . . . . . .

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

14
14
14
15
15
16
16

.
.
.
.
.
.

. . . . . .
. . . . .
. . . . . . .
. . . . .
. . . . . . .
. . . . . . .

.
.
.
.
.
.

. . . . . . .
. . . . . .
. . . . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .

17
17
17
20
21
25

. . .
. .
. .
. . .
. . .
. .
. .
. .

.
.
.
.
.
.
.
.

. . . . . .
. . . . .
. . . . .
. . . . . . .
. . . . . . .
. . . . .
. . . . .
. . . . .

.
.
.
.
.
.
.
.

. . . . . . .
. . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .
. . . . . .
. . . . . .
. . . . . .

29
29
30
30
30
31
32
32

. . . .
. . . .
. . . .
. . . .
. . . . .
. . . . .

. . .
. .
. .
. .
. . .
. . .

.
.
.
.
.
.

. . . . . .
. . . . .
. . . . .
. . . . .
. . . . . . .
. . . . . . .

.
.
.
.
.
.

. . . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .

33
33
35
39
39
39

. . . .
. . . .
. . . .
. . . .
. . . . .
. . . . .

. . .
. .
. .
. .
. . .
. . .

.
.
.
.
.
.

. . . . . .
. . . . .
. . . . .
. . . . .
. . . . . . .
. . . . . . .

.
.
.
.
.
.

. . . . . . .
. . . . . .
. . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .

40
40
40
50
50
53

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

.
.
.
.
.
.
.

A

D

V

.
.
.
.
.
.

Programming Notes and Examples
Issue Date: 01/11/20

.
.
.
.
.
.

. . .
. .
. .
. .
. .
. .
. .

.
.
.
.
.
.
.

.
.
.
.
.
.
.

S1D13708
X39A-G-003-01

Page 4

Epson Research and Development
Vancouver Design Center

. . .
. . .
. .
. . .
. . .

.
.
.
.
.

. . .
. . .
. .
. . .
. . .

.
.
.
.
.

. . .
. . .
. .
. . .
. . .

.
.
.
.
.

. . .
. . .
. .
. . .
. . .

.
.
.
.
.

. . .
. . .
. .
. . .
. . .

.
.
.
.
.

. . .
. . .
. .
. . .
. . .

.
.
.
.
.

. . .
. . .
. .
. . .
. . .

.
.
.
.
.

Hardware Abstraction Layer . . . . . .
9.1 Introduction . . . . . . . . . . .
9.2 API for the HAL Library . . . . . .
9.2.1 Startup Routines . . . . . . . . .
9.2.2 Memory Access . . . . . . . . .
9.2.3 Register Access . . . . . . . . .
9.2.4 Clock Support . . . . . . . . . .
9.2.5 Miscellaneous . . . . . . . . . .

.
.
.
.
.
.
.
.

. . .
. .
. .
. . .
. . .
. . .
. . .
. . .

. . . .
. . . .
. . . .
. . . . .
. . . . .
. . . . .
. . . . .
. . . . .

. . .
. .
. .
. . .
. . .
. . .
. . .
. . .

.
.
.
.
.
.
.
.

. . . . . .
. . . . .
. . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .

.
.
.
.
.
.
.
.

. . .
. .
. .
. . .
. . .
. . .
. . .
. . .

. . .65
. . .65
. . .65
. . . 66
. . . 68
. . . 69
. . . 71
. . . 72

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

9

.
.
.
.
.

N

8.3.3 SwivelView 180° . . . .
8.3.4 SwivelView 270° . . . .
8.4 Limitations . . . . . . . .
8.4.1 SwivelView 0° and 180°
8.4.2 SwivelView 90° and 270°

. . 56
. . 60
. .64
. . 64
. . 64

10 Sample Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74

A

D

V

11 Sales and Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .75

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 5

List of Tables
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

N

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Look-Up Table Configurations . . . . . . . .
Suggested LUT Values for 1 Bpp Gray Shade
Suggested LUT Values for 4 Bpp Gray Shade
Suggested LUT Values for 4 Bpp Gray Shade
Suggested LUT Values for 8 Bpp Gray Shade
Suggested LUT Values for 1 bpp Color . . . .
Suggested LUT Values for 2 bpp Color . . . .
Suggested LUT Values for 4 bpp Color . . . .
Suggested LUT Values for 8 bpp Color . . . .
SwivelViewTM Mode Select Options . . . . .
32-bit Address Increments for Color Depth . .
32-bit Address Increments for Color Depth . .
32-bit Address Increments for Color Depth . .
32-bit Address Increments for Color Depth . .
HAL Library API . . . . . . . . . . . . . . .

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

19
20
20
21
22
24
24
25
26
32
42
44
46
47
64

A

D

V

Table 5-1:
Table 5-2:
Table 5-3:
Table 5-4:
Table 5-5:
Table 5-6:
Table 5-7:
Table 5-8:
Table 5-9:
Table 7-1:
Table 8-1:
Table 8-2:
Table 8-3:
Table 8-4:
Table 9-1:

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Epson Research and Development
Vancouver Design Center

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

Page 6

A

D

V

THIS PAGE LEFT BLANK

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 7

List of Figures
.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

N

.
.
.
.
.
.
.
.
.
.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Pixel Storage for 1 Bpp in One Byte of Display Buffer . .
Pixel Storage for 2 Bpp in One Byte of Display Buffer . .
Pixel Storage for 4 Bpp in One Byte of Display Buffer . .
Pixel Storage for 8 Bpp in One Byte of Display Buffer . .
Pixel Storage for 16 Bpp in Two Bytes of Display Buffer
Picture-in-Picture Plus with SwivelView disabled . . . .
Picture-in-Picture Plus with SwivelView disabled . . . .
Picture-in-Picture Plus with SwivelView 90° enabled . . .
Picture-in-Picture Plus with SwivelView 180° enabled . .
Picture-in-Picture Plus with SwivelView 270° enabled . .

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

.
.
.
.
.
.
.
.
.
.

. 13
. 14
. 14
. 15
. 15
. 39
. 49
. 52
. 55
. 59

A

D

V

Figure 4-1:
Figure 4-2:
Figure 4-3:
Figure 4-4:
Figure 4-5:
Figure 8-1:
Figure 8-2:
Figure 8-3:
Figure 8-4:
Figure 8-5:

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Epson Research and Development
Vancouver Design Center

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

Page 8

A

D

V

THIS PAGE LEFT BLANK

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 9

1 Introduction
This guide discusses programming issues and provides examples for the main features of
the S1D13708, such as SwivelView and Picture-in-Picture Plus (PiP+). The example source
code referenced in this guide is available on the web at www.erd.epson.com.
This guide also introduces the Hardware Abstraction Layer (HAL), which is designed to
simplify the programming of the S1D13708. Most S1D13xxx products have HAL support,
thus allowing OEMs to do multiple designs with a common code base.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

This document is updated as appropriate. Please check the Epson Research and Development website at www.erd.epson.com for the latest revision of this document and source
before beginning any development.

A

D

V

We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 10

Epson Research and Development
Vancouver Design Center

2 Identifying the S1D13708
The S1D13708 can be identified by reading the value contained in the Revision Code
Register (REG[00h]). To identify the S1D13708 follow the steps below.
1. Read REG[00h].
2. The production version of the S1D13708 returns a value of 34h. This value can be
broken down into the following.

N

a. The product code for the S1D13708 is 0Dh (001101 binary) and can be found in
bits 7-2.

A

D

V

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

b. The revision code is 0h (00 binary) and can be found in bits 1-0.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 11

3 Initialization
This section describes how to initialize the S1D13708. Sample code for performing initialization of the S1D13708 is provided in the file init13708.c which is available on the
internet at www.erd.epson.com.
S1D13708 initialization can be broken into the following steps.

N

1. Set all registers to initial values. The values are obtained by using the s1d13708.h file
that is exported by the 13708CFG.EXE configuration utility. For more information
on 13708CFG, see the 13708CFG User Manual, document number X39A-B-001-xx.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

2. Program the Look-Up Table (LUT) with color values. For details on programming the
LUT, see Section 5, “Look-Up Table (LUT)” on page 15.
3. Clear the display buffer.

A

D

V

If the system implementation uses a clock chip instead of a fixed oscillator, refer to the
HAL (Hardware Abstraction Layer) sample code available on the internet at
www.erd.epson.com. The Epson S5U13708B00B evaluation board uses a Cypress clock
chip.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 12

Epson Research and Development
Vancouver Design Center

4 Memory Models
The S1D13708 contains a display buffer of 80K bytes and supports color depths of 1, 2, 4,
8, and 16 bit-per-pixel. For each color depth, the data format is packed pixel.

N

Packed pixel data may be envisioned as a stream of pixels. In this stream, pixels are packed
adjacent to each other. If a pixel requires four bits, then it is located in the four most significant bits of a byte. The pixel to the immediate right on the display occupies the lower four
bits of the same byte. The next two pixels to the immediate right are located in the following
byte, etc.

Bit 7

Bit 6

Pixel 0

Pixel 1

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

4.1 Memory Organization for One Bit-per-pixel (2 Colors/Gray Shades)
Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Pixel 2

Pixel 3

Pixel 4

Pixel 5

Pixel 6

Pixel 7

Figure 4-1: Pixel Storage for 1 Bpp in One Byte of Display Buffer
At a color depth of 1 bpp, each byte of display buffer contains eight adjacent pixels. Setting
or resetting any pixel requires reading the entire byte, masking out the unchanged bits and
setting the appropriate bits to 1.
One bit pixels provide 2 gray shades/color possibilities. For monochrome panels the gray
shades are generated by indexing into the first two elements of the green component of the
Look-Up Table (LUT). For color panels the 2 colors are derived by indexing into the first
2 positions of the LUT.

A

D

V

4.2 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades)
Bit 7

Bit 6

Pixel 0
Bits 1-0

Bit 5

Bit 4
Pixel 1
Bits 1-0

Bit 3

Bit 2

Bit 1

Pixel 2
Bits 1-0

Bit 0
Pixel 3
Bits 1-0

Figure 4-2: Pixel Storage for 2 Bpp in One Byte of Display Buffer
At a color depth of 2 bpp, each byte of display buffer contains four adjacent pixels. Setting
or resetting any pixel requires reading the entire byte, masking out the unchanged bits and
setting the appropriate bits to 1.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 13

Two bit pixels provide 4 gray shades/color possibilities. For monochrome panels the gray
shades are generated by indexing into the first 4 elements of the green component of the
Look-Up Table (LUT). For color panels the 4 colors are derived by indexing into the first
4 positions of the LUT.

4.3 Memory Organization for Four Bit-per-pixel (16 Colors/Gray Shades)
Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 0

Pixel 1
Bits 3-0

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

Pixel 0
Bits 3-0

Bit 1

Figure 4-3: Pixel Storage for 4 Bpp in One Byte of Display Buffer
At a color depth of 4 bpp, each byte of display buffer contains two adjacent pixels. Setting
or resetting any pixel requires reading the entire byte, masking out the upper or lower nibble
(4 bits) and setting the appropriate bits to 1.
Four bit pixels provide 16 gray shades/color possibilities. For monochrome panels the gray
shades are generated by indexing into the first 16 elements of the green component of the
Look-Up Table (LUT). For color panels the 16 colors are derived by indexing into the first
16 positions of the LUT.

4.4 Memory Organization for 8 Bpp (256 Colors/64 Gray Shades)
Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

A

D

V

Pixel 0
Bits 7-0

Figure 4-4: Pixel Storage for 8 Bpp in One Byte of Display Buffer
At a color depth of 8 bpp, each byte of display buffer represents one pixel on the display.
At this color depth the read-modify-write cycles are eliminated making pixel updates faster.
Each byte indexes into one of the 256 positions of the LUT. The S1D13708 LUT supports
six bits per primary color. This translates into 256K possible colors when color mode is
selected. Therefore the display has 256 colors available out of a possible 256K colors.
When a monochrome panel is selected, the green component of the LUT is used to
determine the intensity. The green LUT, with six bits, can resolve 64 unique gray shades of
a possible 256. It is recommended that LUT indexes 00h through 3Fh be used for the 64
gray shades to be displayed.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 14

Epson Research and Development
Vancouver Design Center

4.5 Memory Organization for 16 Bpp (65536 Colors/64 Gray Shades)
Bit 15

Bit 14

Bit 13

Bit 12

Bit 11

Bit 10

Red Component
Bits 4-0
Bit 7

Bit 6

Bit 5

Bit 8

Green Component
Bits 5-3
Bit 4

Bit 3

Bit 2

Bit 1

Bit 0

Blue Component
Bits 4-0

N

Green Component
Bits 2-0

Bit 9

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Figure 4-5: Pixel Storage for 16 Bpp in Two Bytes of Display Buffer

At a color depth of 16 bpp the S1D13708 is capable of displaying 64K (65536) colors. The
64K color pixel is divided into three parts: five bits for red, six bits for green, and five bits
for blue. In this mode the LUT is bypassed and output goes directly into the Frame Rate
Modulator.

A

D

V

Should monochrome mode be chosen at this color depth, the output sends the six bits of the
green component to the modulator for a total of 64 possible gray shades. Note that since 8
bpp also provides 64 gray shades, it is recommended to use 8 bpp for monochrome mode
in order to reduce the amount of display memory used.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 15

5 Look-Up Table (LUT)
This section discusses programming the S1D13708 Look-Up Table (LUT). Included is a
summary of the LUT registers, recommendations for color/gray shade LUT values, and
additional programming considerations. For a discussion of the LUT architecture, refer to
the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

N

The S1D13708 is designed with a LUT consisting of 256 indexed red/green/blue entries.
Each LUT entry is six bits wide. The color depth (bpp) determines how many indices are
used. For example, 1 bpp uses the first 2 indices, 2 bpp uses the first 4 indices, 4 bpp uses
the first 16 indices and 8 bpp uses all 256 indices. 16 bpp bypasses the LUT.

5.1 Registers

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

In color modes, the pixel values stored in the display buffer index directly to an RGB value
stored in the LUT. In monochrome modes, the pixel value indexes into the green
component of the LUT and the amount of green at that index controls the intensity.

5.1.1 Look-Up Table Registers

Look-Up Table Blue Write Data Register
REG[08h]

Write Only

LUT Blue Write Data Bits 5-0

7

6

4

3

2

1

0

LUT Blue Write Data Bits [5:0]
This register contains the data to be written to the blue component of the Look-Up Table.
The data is stored in this register until a write to the LUT Write Address register
(REG[0Bh]) moves the data into the Look-Up Table.

V

bits 7-2

5

n/a

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is
written to.

A

D

Note

Look-Up Table Green Write Data Register
REG[09h]

Write Only

LUT Green Write Data Bits 5-0
7

bits 7-2

6

5

4

n/a
3

2

1

0

LUT Green Write Data Bits [5:0]
This register contains the data to be written to the green component of the Look-Up Table.
The data is stored in this register until a write to the LUT Write Address register
(REG[0Bh]) moves the data into the Look-Up Table.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 16

Epson Research and Development
Vancouver Design Center

Note

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is
written to.

Look-Up Table Red Write Data Register
REG[0Ah]

Write Only

LUT Red Write Data Bits 5-0
6

4

3

2

1

0

LUT Red Write Data Bits [5:0]
This register contains the data to be written to the red component of the Look-Up Table.
The data is stored in this register until a write to the LUT Write Address register
(REG[0Bh]) moves the data into the Look-Up Table.

N

bits 7-2

5

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

7

n/a

Note

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is
written to.

Look-Up Table Write Address Register
REG[0Bh]

Write Only

LUT Write Address Bits 7-0

7

6

4

3

2

1

0

LUT Write Address Bits [7:0]
This register forms a pointer into the Look-Up Table (LUT) which is used to write LUT
data stored in REG[08h], REG[09h], and REG[0Ah]. The data is updated to the LUT
only with the completion of a write to this register. This is a write-only register and
returns 00h if read.

V

bits 7-0

5

A

D

Look-Up Table Blue Read Data Register
REG[0Ch]

7

bits 7-2

Read Only

LUT Blue Read Data Bits 5-0

6

5

4

n/a
3

2

1

0

LUT Blue Read Data Bits [5:0]
This register contains the data from the blue component of the Look-Up Table. The LUT
entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a readonly register.
Note

This register is updated only when the LUT Read Address Register (REG[0Fh]) is written to.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 17

Look-Up Table Green Read Data Register
REG[0Dh]

Read Only

LUT Green Read Data Bits 5-0
7

6

bits 7-2

5

4

n/a
3

2

1

0

LUT Green Read Data Bits [5:0]
This register contains the data from the green component of the Look-Up Table. The LUT
entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a readonly register.

N

Note

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

This register is updated only when the LUT Read Address Register (REG[0Fh]) is written to.

Look-Up Table Red Read Data Register
REG[0Eh]

Read Only

LUT Red Read Data Bits 5-0

7

6

bits 7-2

5

4

3

2

n/a
1

0

LUT Red Read Data Bits [5:0]
This register contains the data from the red component of the Look-Up Table. The LUT
entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a readonly register.

Note

This register is updated only when the LUT Read Address Register (REG[0Fh]) is written to.

7

bits 7-0

A

D

V

Look-Up Table Read Address Register
REG[0Fh]

Write Only

LUT Read Address Bits 7-0

6

5

4

3

2

1

0

LUT Read Address Bits [7:0]
This register forms a pointer into the Look-Up Table (LUT) which is used to read LUT
data and store it in REG[0Ch], REG[0Dh], REG[0Eh]. The data is read from the LUT
only when a write to this register is completed. This is a write-only register and returns
00h if read.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 18

Epson Research and Development
Vancouver Design Center

5.2 Look-Up Table Organization
• The Look-Up Table treats the value of a pixel as an index into an array. For example, a
pixel value of zero would point to the first LUT entry, whereas a pixel value of seven
would point to the eighth LUT entry.
• The value contained in each LUT entry represents the intensity of the given color or
gray shade.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Table 5-1: Look-Up Table Configurations

N

• The S1D13708 Look-Up Table is linear. This means increasing the LUT entry number
results in a brighter color or gray shade. For example, a LUT entry of FCh in the red
bank results in bright red output while a LUT entry of 1Ch results in dull red.

Color Depth
1 bpp gray
2 bpp gray
4 bpp gray
8 bpp gray
16 bpp gray
1 bpp color
2 bpp color
4 bpp color
8 bpp color
16 bpp color

Look-Up Table Indices Used
RED
GREEN
BLUE
2
4
16
256
2
4
16
256

2
4
16
256

2
4
16
256

Effective Gray
Shades/Colors
2 gray shades
4 gray shades
16 gray shades
64 gray shades
64 gray shades
2 colors
4 colors
16 colors
256 colors
65536 colors

A

D

V

= Indicates the Look-Up Table is not used for that display mode

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 19

5.2.1 Gray Shade Modes
Gray shade (monochrome) modes are defined by the Color/Mono Panel Select bit
(REG[10h] bit 6). When this bit is set to 0, the value output to the panel is derived solely
from the green component of the pixel.
For each bits-per-pixel mode (excluding 16 bpp) a table of sample LUT values is provided.
These LUT values are a standardized set of intensities used by the Epson S1D13708 utility
programs.
Note

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

These LUT values carry eight bits of significance. The S1D13708 LUT uses only the six
most-significant bits. The 2 least-significant bits are ignored.
1 bpp gray shade

The 1 bpp gray shade mode uses the green component of the first 2 LUT entries. The
remaining indices of the LUT are unused.
Table 5-2: Suggested LUT Values for 1 Bpp Gray Shade
Index
00
01
02
...
FF

Red
00
00
00
00
00

Green
00
FF
00
00
00

Blue
00
00
00
00
00

Unused entries

2 bpp gray shade

A

D

V

The 2 bpp gray shade mode uses the green component of the first 4 LUT entries. The
remaining indices of the LUT are unused.
Table 5-3: Suggested LUT Values for 4 Bpp Gray Shade
Index
00
01
02
03
04
...
FF

Red
00
00
00
00
00
00
00

Green
00
55
AA
FF
00
00
00

Blue
00
00
00
00
00
00
00

Unused entries

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 20

Epson Research and Development
Vancouver Design Center

4 bpp gray shade

The 4 bpp gray shade mode uses the green component of the first 16 LUT entries. The
remaining indices of the LUT are unused.

Red
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

Green
00
11
22
33
44
55
66
77
88
99
AA
BB
CC
DD
EE
FF
00
00
00

Blue
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Index
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10
...
FF

N

Table 5-4: Suggested LUT Values for 4 Bpp Gray Shade

A

D

V

Unused entries

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 21

8 bpp gray shade

When configured for 8 bpp gray shade mode, the green component of all 256 LUT entries
may be used. However, the green component alone only provides 64 intensities (6 bits).
Table 5-5: Suggested LUT Values for 8 Bpp Gray Shade
Green
00
04
08
0C
10
14
18
1C
20
24
28
2C
30
34
38
3C
40
44
48
4C
50
54
58
5C
60
64
68
6C
70
74
78
7C

Blue
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

Index
20
21
22
23
24
25
26
27
28
29
2A
2B
2C
2D
2E
2F
30
31
32
33
34
35
36
37
38
39
3A
3B
3C
3D
3E
3F
40
...
FF

Red
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

V
D
A

Green
80
84
88
8C
90
94
98
9C
A0
A4
A8
AC
B0
B4
B8
BC
C0
C4
C8
CC
D0
D4
D8
DC
E0
E4
E8
EC
F0
F4
F8
FC
00
00
00

N

Red
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Index
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F

Blue
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

Unused entries

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 22

Epson Research and Development
Vancouver Design Center

16 bpp gray shade

The Look-Up Table is bypassed at this color depth, therefore programming the LUT is not
required.

A

D

V

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

As with 8 bpp there are limitations to the colors which can be displayed. In this mode the
six bits of green are used to set the absolute intensity of the image. This results in 64 gray
shades.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 23

5.2.2 Color Modes
In color display modes, the number of LUT entries used is determined by the color depth.
For each color depth (excluding 16 bpp) a table of sample LUT values is provided. These
LUT values are a standardized set of colors used by the Epson S1D13708 utility programs.
Note

The S1D13708 LUT uses only the six most-significant bits of the LUT. The 2 least-significant bits are ignored.

N

1 bpp color

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

When the S1D13708 is configured for 1 bpp color mode the first 2 entries in the LUT are
used. The remaining indices of the LUT are unused.
Table 5-6: Suggested LUT Values for 1 bpp Color
Index
00
01
02
...
FF

Red
00
FF
00
00
00

Green
00
FF
00
00
00

Blue
00
FF
00
00
00

= Indicates unused entries in the LUT

2 bpp color

When the S1D13708 is configured for 2 bpp color mode the first 4 entries in the LUT are
used. The remaining indices of the LUT are unused.

A

D

V

Table 5-7: Suggested LUT Values for 2 bpp Color
Index
00
01
02
03
04
...
FF

Red
00
00
FF
FF
00
00
00

Green
00
00
00
FF
00
00
00

Blue
00
FF
00
FF
00
00
00

= Indicates unused entries in the LUT

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 24

Epson Research and Development
Vancouver Design Center

4 bpp color

When the S1D13708 is configured for 4 bpp color mode the first 16 entries in the LUT are
used. The remaining indices of the LUT are unused.
The following table shows LUT values that simulate those of a VGA operating in 16 color
mode.

Red
00
00
00
00
AA
AA
AA
AA
00
00
00
00
FF
FF
FF
FF
00
00
00

Green
00
00
AA
AA
00
00
AA
AA
00
00
FF
FF
00
00
FF
FF
00
00
00

Blue
00
AA
00
AA
00
AA
00
AA
00
FF
00
FF
00
FF
00
FF
00
00
00

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Index
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10
...
FF

N

Table 5-8: Suggested LUT Values for 4 bpp Color

A

D

V

= Indicates unused entries in the LUT

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 25

8 bpp color

When the S1D13708 is configured for 8 bpp color mode all 256 entries in the LUT are used.
The S1D13708 LUT has six bits (64 values) of intensity control per primary color which is
the same as a standard VGA RAMDAC.
The following table shows LUT values that simulate the VGA default color palette.
Table 5-9: Suggested LUT Values for 8 bpp Color
R
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

G
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
FF
FF
FF
FF
FF

B
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
EF
DE
CD
BC

Index
80
81
82
83
84
85
86
87
88
89
8A
8B
8C
8D
8E
8F
90
91
92
93
94
95
96
97
98
99
9A
9B
9C
9D
9E
9F
A0
A1
A2
A3
A4

R
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
EF
DE
CD
BC

G
FF
EF
DE
CD
BC
AB
9A
89
77
66
55
44
33
22
11
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

B
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
FF
FF
FF
FF
FF

Programming Notes and Examples
Issue Date: 01/11/20

Index
C0
C1
C2
C3
C4
C5
C6
C7
C8
C9
CA
CB
CC
CD
CE
CF
D0
D1
D2
D3
D4
D5
D6
D7
D8
D9
DA
DB
DC
DD
DE
DF
E0
E1
E2
E3
E4

N

Index
40
41
42
43
44
45
46
47
48
49
4A
4B
4C
4D
4E
4F
50
51
52
53
54
55
56
57
58
59
5A
5B
5C
5D
5E
5F
60
61
62
63
64

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

B
00
AA
00
AA
00
AA
00
AA
55
FF
00
FF
00
FF
00
FF
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
00
00
00
00
00

V

G
00
00
AA
AA
00
00
AA
AA
55
00
FF
FF
00
00
FF
FF
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
00
00
00
00
00

D

R
00
00
00
00
AA
AA
AA
AA
55
00
00
00
FF
FF
FF
FF
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
00
11
22
33
44

A

Index
00
01
02
03
04
05
06
07
08
09
0A
0B
0C
0D
0E
0F
10
11
12
13
14
15
16
17
18
19
1A
1B
1C
1D
1E
1F
20
21
22
23
24

R
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
00
11
22
33
44

G
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
FF
FF
FF
FF
FF

B
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
00
11
22
33
44

S1D13708
X39A-G-003-01

Page 26

Epson Research and Development
Vancouver Design Center

Table 5-9: Suggested LUT Values for 8 bpp Color (Continued)
G
00
00
00
00
00
00
00
00
00
00
00
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF

B
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

Index
65
66
67
68
69
6A
6B
6C
6D
6E
6F
70
71
72
73
74
75
76
77
78
79
7A
7B
7C
7D
7E
7F

R
00
00
00
00
00
00
00
00
00
00
00
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF

G
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF

B
AB
9A
89
77
66
55
44
33
22
11
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

Index
A5
A6
A7
A8
A9
AA
AB
AC
AD
AE
AF
B0
B1
B2
B3
B4
B5
B6
B7
B8
B9
BA
BB
BC
BD
BE
BF

R
AB
9A
89
77
66
55
44
33
22
11
00
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF

G
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

B
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF

Index
E5
E6
E7
E8
E9
EA
EB
EC
ED
EE
EF
F0
F1
F2
F3
F4
F5
F6
F7
F8
F9
FA
FB
FC
FD
FE
FF

N

R
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00
00

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Index
25
26
27
28
29
2A
2B
2C
2D
2E
2F
30
31
32
33
34
35
36
37
38
39
3A
3B
3C
3D
3E
3F

R
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF

G
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
00
11
22
33
44
55
66
77
89
9A
AB
BC
CD
DE
EF
FF

B
55
66
77
89
9A
AB
BC
CD
DE
EF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF
FF

V

16 bpp color

A

D

The Look-Up Table is bypassed at this color depth, therefore programming the LUT is not
required.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 27

6 Power Save Mode
The S1D13708 is designed for very low-power applications. During normal operation, the
internal clocks are dynamically disabled when not required. The S1D13708 design also
includes a Power Save Mode to further save power. When Power Save Mode is initiated,
LCD power sequencing is required to ensure the LCD bias power supply is disabled
properly. For further information on LCD power sequencing, see Section 6.3, “LCD Power
Sequencing” on page 29.

6.1 Overview

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

For Power Save Mode AC Timing, see the S1D13708 Hardware Functional Specification,
document number X39A-A-001-xx.

The S1D13708 includes a software initiated Power Save Mode. Enabling/disabling Power
Save Mode is controlled using the Power Save Mode Enable bit (REG[A0h] bit 0).
While Power Save Mode is enabled the following conditions apply.
• Registers are accessible

• Memory writes are possible1

• Memory reads are not possible

• Look-Up Table registers are accessible.
• LCD display is inactive.

• LCD interface outputs are forced low.

Note
1

A

D

V

Memory writes are possible during power save mode because the S1D13708 dynamically enables the memory controller for display buffer writes.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 28

Epson Research and Development
Vancouver Design Center

6.2 Registers
6.2.1 Power Save Mode Enable
Power Save Configuration Register
REG[A0h]

7

Read/Write
Memory
Controller
Power Save
Status (RO)

n/a
6

5

4

3

Power Save
Mode Enable

n/a
2

N

Vertical NonDisplay
Period Status
(RO)

1

0

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

The Power Save Mode Enable bit initiates Power Save Mode when set to 1. Setting the bit
to 0 disables Power Save Mode and returns the S1D13708 to normal mode. At reset this bit
is set to 1.
Note

Enabling/disabling Power Save Mode requires proper LCD Power Sequencing. See Section 6.3, “LCD Power Sequencing” on page 29.

6.2.2 Memory Controller Power Save Status
Power Save Configuration Register
REG[A0h]
Vertical NonDisplay
Period Status
(RO)
7

Memory
Controller
Power Save
Status (RO)

n/a

6

5

4

3

Read/Write
Power Save
Mode Enable

n/a

2

1

0

A

D

V

The Memory Controller Power Save Status bit is a read-only status bit which indicates the
power save state of the S1D13708 SRAM interface. When this bit returns a 1, the SRAM
interface is powered down and the memory clock source may be disabled. When this bit
returns a 0, the SRAM interface is active. This bit returns a 0 after a chip reset.

S1D13708
X39A-G-003-01

Note

Memory writes are possible during power save mode because the S1D13708 dynamically enables the memory controller for display buffer writes.

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 29

6.3 LCD Power Sequencing
The S1D13708 requires LCD power sequencing (the process of powering-on and
powering-off the LCD panel). LCD power sequencing allows the LCD bias voltage to
discharge prior to shutting down the LCD signals, preventing long term damage to the panel
and avoiding unsightly “lines” at power-on/power-off.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

Proper LCD power sequencing for power-off requires a delay from the time the LCD power
is disabled to the time the LCD signals are shut down. Power-on requires the LCD signals
to be active prior to applying power to the LCD. This time interval depends on the LCD
bias power supply design. For example, the LCD bias power supply on the S5U13708B00B
Evaluation Board requires about 50 ms to fully discharge. Other power supply designs may
vary.
This section assumes the LCD bias power is controlled through GPO0. The S1D13708
GPIO pins are multi-use pins and may not be available in all system designs. For further
information on the availability of GPIO pins, see the S1D13708 Hardware Functional
Specification, document number X36A-A-001-xx.

Note

This section discusses LCD power sequencing for passive and TFT (non-HR-TFT) panels only.
For further information on LCD power sequencing the HR-TFT, see Connecting to the
Sharp HR-TFT Panels, document number X36A-G-011-xx.

A

D

V

For further information on LCD Power Sequencing the D-TFD, see Connecting to the
Epson D-TFD Panels, document number X36A-G-012-xx.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 30

Epson Research and Development
Vancouver Design Center

6.4 Enabling Power Save Mode
Power Save Mode must be enabled using the following steps.
1. Disable the LCD bias power using GPO0.
Note

The S5U13708B00B uses GPO0 to control the LCD bias power supplies. Your system
design may vary.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

3. Enable Power Save Mode - set REG[A0h] bit 0 to 1.

N

2. Wait for the LCD bias power supply to discharge. The discharge time must be based
on the time specified in the LCD panel specification.

4. At this time, the LCD pixel clock source may be disabled (Optional).
5. Optionally, when the Memory Controller Power Save Status bit (REG[A0h] bit 3)
returns a 1, the Memory Clock source may be safely shut down.

6.5 Disabling Power Save Mode

Power Save Mode must be disabled using the following steps.

1. If the Memory Clock source is shut down, it must be started and the Memory Controller Power Save Status bit must return a 0. If the pixel clock source is disabled, it
must be started before step 2.
2. Disable Power Save Mode - set REG[A0h] bit 0 to 0.

3. Wait for the LCD bias power supply to charge. The charge time must be based on the
time specified in the LCD panel specification.

D

V

4. Enable the LCD bias power using GPO0.

A

Note

S1D13708
X39A-G-003-01

The S5U13708B00B uses GPO0 to control the LCD bias power supplies. Your system
design may vary.

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 31

7 SwivelView
Most computer displays operate in landscape mode. In landscape mode the display is
typically wider than it is high. For example, a display size of 320x240 is 320 pixels wide
and 240 lines high.
SwivelView rotates the display image counter-clockwise in ninety degree increments.
Rotating the image on a 320x240 display by 90 or 270 degrees yields a display that is now
240 pixels wide and 320 lines high.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

The S1D13708 provides hardware support for SwivelView in all color depths (1, 2, 4, 8 and
16 bpp).
For further details on the SwivelView feature, see the S1D13708 Hardware Functional
Specification, document number X39A-A-001-xx.

7.1 SwivelView Registers

The following registers control the SwivelView feature.

Special Effects Register
REG[71h]

+

Display Data
Word Swap

Display Data
Byte Swap

n/a

PIP Window
Enable

7

6

5

4

n/a

3

2

Read/Write
SwivelView Mode Select
Bits 1-0
1

0

SwivelView Mode Select
The SwivelView modes are selected using the SwivelView Mode Select Bits[1:0] (bits 10). The combinations of these bits provide the following rotations:

V

Table 7-1: SwivelViewTM Mode Select Options

SwivelView Orientation

00

0° (Normal)

01

90°

10

180°

11

270°

A

D

SwivelView Mode Select Bits

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 32

Epson Research and Development
Vancouver Design Center

Main Window Display Start Address Register 0
REG[74h]

Read/Write

Main window Display Start Address Bits 7-0
7

6

5

4

3

2

1

Main Window Display Start Address Register 1
REG[75h]

0

Read/Write

7

6

5

4

3

2

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Main Window Display Start Address Register 2
REG[76h]

N

Main window Display Start Address Bits 15-8
1

Read/Write
Main window
Display Start
Address
Bit 16

n/a

7

6

5

4

3

2

0

1

0

Main Window Display Start Address
The Main Window Display Start Address register represents a DWORD address which
points to the start of the main window image in the display buffer. An address of 0 is the
start of the display buffer. For the following SwivelView mode descriptions, the desired
byte address is the starting display address for the main window image.
In SwivelView 0°, program the start address
= desired byte address ÷ 4

In SwivelView 90°, program the start address
= ((desired byte address + (panel height × bpp ÷ 8)
+ ((4 - (panel height × bpp ÷ 8)) & 03h)) ÷ 4) - 1

A

D

V

In SwivelView 180°, program the start address
= ((desired byte address + (Main Window Stride × (panel height − 1))
+ (panel width × bpp ÷ 8) + ((4 - (panel width × bpp ÷ 8)) & 03h)) ÷ 4) - 1

In SwivelView 270°, program the start address
= (desired byte address + ((panel width - 1) × Main Window Stride)) ÷ 4
Note

Truncate all fractional values before writing to the address registers.
Note

SwivelView 0° and 180° require the panel width to be a multiple of 32 ÷ bits-per-pixel.
SwivelView 90° and 270° require the panel height to be a multiple of 32 ÷ bits-per-pixel. If this is not possible, refer to Section 7.3, “Limitations” .

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 33

Main Window Line Address Offset Register 0
REG[78h]

Read/Write

Main window Line Address Offset Bits 7-0
7

6

5

4

3

2

1

Main Window Line Address Offset Register 1
REG[79h]

Read/Write
Main window Line Address
Offset Bits 9-8

6

5

4

3

2

N

n/a
7

0

1

0

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Main Window Line Address Offset
The Main Window Line Address Offset register indicates the number of dwords per line in
the main window image.
For SwivelView 0° and 180°, the image width must be at least the panel width. For
SwivelView 90° and 270°, the image width must be at least the panel height. In addition,
the image width must be a multiple of 32 ÷ bpp. If the image width is not such a multiple,
a slightly larger width must be chosen (see Section 7.3, “Limitations” ).

Panel width and panel height refer to the physical panel dimensions in pixels. Stride is the
number of bytes required for one line of the image; the offset register represents the stride
in DWORD steps.
Main Window Stride = image width × bpp ÷ 8

Note

Image width can be larger than panel width (or panel height, for SwivelView 90° or
270°).

V

number of dwords per line = image width ÷ (32 ÷ bpp)

A

D

7.2 Examples

Example 1: In SwivelView 0° (normal) mode, program the main window registers for
a 320x240 panel at a color depth of 4 bpp.

1. Determine the main window display start address.
The main window is typically placed at the start of display memory which is at display
address 0.
main window display start address register
= desired byte address ÷ 4
=0
Program the Main Window Display Start Address registers.
REG[76h],REG[75h],REG[74h] are set to 000000h.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 34

Epson Research and Development
Vancouver Design Center

2. Determine the main window line address offset.
number of dwords per line
= image width ÷ (32 ÷ bpp)
= 320 ÷ (32 ÷ 4)
= 40
= 28h
Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are
set to 0028h.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

Example 2: In SwivelView 90° mode, program the main window registers for a
320x240 panel at a color depth of 4 bpp.

1. Determine the main window display start address.
The main window is typically placed at the start of display memory, which is at display address 0.
main window display start address register
= ((desired byte address + (panel height × bpp ÷ 8)
+ ((4 - (panel height × bpp ÷ 8)) & 03h)) ÷ 4) - 1
= ((0 + (240 × 4 ÷ 8) + ((4 - (240 × 4 ÷ 8)) & 03h)) ÷ 4) - 1
= 29
= 1Dh

Program the Main Window Display Start Address registers.
REG[76h],REG[75h],REG[74h] are set to 00001Dh.

2. Determine the main window line address offset.

A

D

V

number of dwords per line
= image width ÷ (32 ÷ bpp)
= 240 ÷ (32 ÷ 4)
= 30
= 1Eh

S1D13708
X39A-G-003-01

Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are
set to 001Eh.

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 35

Example 3: In SwivelView 180° mode, program the main window registers for a
320x240 panel at a color depth of 4 bpp.

Main Window Stride
= image width × bpp ÷ 8
= 320 × 4 ÷ 8
= 160
= A0h

N

1. Determine the main window display start address.
The main window is typically placed at the start of display memory which is at display
address 0.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

main window display start address register
= ((desired byte address + (Main Window Stride × (panel height − 1))
+ (panel width × bpp ÷ 8) + ((4 - (panel width × bpp ÷ 8)) & 03h)) ÷ 4) - 1
= ((0+(160 × (240 − 1)) + (320 × 4 ÷ 8) + ((4 - (320 × 4 ÷ 8))& 03h)) ÷ 4) - 1
= 9599
= 257Fh

Program the Main Window Display Start Address registers.
REG[76h],REG[75h],REG[74h] are set to 00257Fh.

2. Determine the main window line address offset.
number of dwords per line
= image width ÷ (32 ÷ bpp)
= 320 ÷ (32 ÷ 4)
= 40
= 28h

A

D

V

Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are
set to 0028h.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 36

Epson Research and Development
Vancouver Design Center

Example 4: In SwivelView 270° mode, program the main window registers for a
320x240 panel at a color depth of 4 bpp.

Main Window Stride
= image width × bpp ÷ 8
= 240 × 4 ÷ 8
= 120
= 78h

N

1. Determine the main window display start address.
The main window is typically placed at the start of display memory, which is at display address 0.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

main window display start address register
= (desired byte address + ((panel width - 1) × Main Window Stride)) ÷ 4
= (0 + ((320 - 1) × 120)) ÷ 4
= 9570
= 2562h

Program the Main Window Display Start Address registers.
REG[76h],REG[75h],REG[74h] are set to 002562h.

2. Determine the main window line address offset.
number of dwords per line
= image width ÷ (32 ÷ bpp)
= 240 ÷ (32 ÷ 4)
= 30
= 1Eh

A

D

V

Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are
set to 001Eh.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 37

7.3 Limitations
7.3.1 SwivelView 0° and 180°

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

In SwivelView 0° and 180°, the Main Window Line Address Offset registers
(REG[79h],REG[78h]) require the panel width to be a multiple of 32 ÷ bits-per-pixel. If
this is not the case, then the Main Window Line Address Offset registers must be
programmed to a longer line which meets this requirement. This longer line creates a virtual
image where the width is main window line address offset registers × 32 ÷ bits-per-pixel.
In SwivelView 0°, this virtual image should be drawn in display memory as left justified,
and in SwivelView 180°, this virtual image should be drawn in display memory as right
justified. A left-justified image is one drawn in display memory such that each of the
image’s lines only use the left most portion of the line width defined by the line address
offset register (i.e. starting at horizontal position 0). A right-justified image is one drawn in
display memory such that each of the image’s lines only use the right most portion of the
line width defined by the line address offset registers (i.e. starting at a non-zero horizontal
position which is the virtual width - image width).

7.3.2 SwivelView 90° and 270°

A

D

V

In SwivelView 90° and 270°, the Main Window Line Address Offset registers
(REG[79h],REG[78h]) require the panel height to be a multiple of 32 ÷ bits-per-pixel. If
this is not the case, then the Main Window Line Address Offset registers must be
programmed to a longer line which meets this requirement. This longer line creates a virtual
image whose width is main window line address offset registers × 32 ÷ bits-per-pixel. In
SwivelView 270°, this virtual image should be drawn in display memory as left justified,
and in SwivelView 90°, this virtual image should be drawn in display memory as right
justified. A left-justified image is one drawn in display memory such that each of the
image’s lines only use the left most portion of the line width defined by the line address
offset register (i.e. starting at horizontal position 0). A right-justified image is one drawn in
display memory such that each of the image’s lines only use the right most portion of the
line width defined by the line address offset register (i.e. starting at a non-zero horizontal
position which is the virtual width - image width).

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 38

Epson Research and Development
Vancouver Design Center

8 Picture-In-Picture Plus
8.1 Concept
Picture-in-Picture Plus (PIP+) enables a secondary window (or PIP+ window) within the
main display window. The PIP+ window may be positioned anywhere within the virtual
display and is controlled through the PIP+ Window control registers (REG[7Ch] through
REG[91h]). The PIP+ window retains the same color depth and SwivelView orientation as
the main window.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

The following diagram shows an example of a PIP+ window within a main window.

0° SwivelView

main-window

PIP+ window

Figure 8-1: Picture-in-Picture Plus with SwivelView disabled

D

V

8.2 Registers

A

The following registers control the Picture-In-Picture Plus feature.

Special Effects Register
REG[71h]

Read/Write
+

Display Data
Word Swap

Display Data
Byte Swap

n/a

PIP Window
Enable

7

6

5

4

S1D13708
X39A-G-003-01

SwivelView Mode Select
Bits 1-0

n/a
3

2

1

0

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 39

PIP+ Window Enable
The PIP+ Window Enable bit enables a PIP+ window within the main window. The location of the PIP+ window within the landscape window is determined by the PIP+ X Position registers (REG[84h],REG[85h],REG[8Ch],REG[8Dh]) and PIP+ Y Position registers
(REG[88h],REG[89h],REG[90h],REG[91h]). The PIP+ window has its own Display Start
Address registers (REG[7Eh],REG[7Dh],REG[7Ch]) and Line Address Offset registers
(REG[81h],REG[80h]). The PIP+ window shares the same color depth and SwivelViewTM
orientation as the main window.
PIP+ Window Display Start Address Register 0
REG[7C]

N

Read/Write

7

6

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

PIP+ Window Display Start Address Bits 7-0
5

4

3

2

1

PIP+ Window Display Start Address Register 1
REG[7Dh]

0

Read/Write

PIP+ Window Display Start Address Bits 15-8

7

6

5

4

3

2

1

PIP+ Window Display Start Address Register 2
REG[7Eh]

Read/Write
PIP+ Window
Display Start
Address
Bit 16

n/a

7

6

5

4

3

2

0

1

0

A

D

V

PIP+ Display Start Address
The PIP+ Display Start Address register is a DWORD which represents an address that
points to the start of the PIP+ window image in the display buffer. An address of 0 is the
start of the display buffer. For the following PIP+ descriptions, the desired byte address is
the starting display address for the PIP+ window image.
In SwivelView 0°, program the start address
= desired byte address ÷ 4

In SwivelView 90°, program the start address
= ((desired byte address + (PIP+ width × bpp ÷ 8)
+ ((4 - (PIP+ width × bpp ÷ 8)) & 03h)) ÷ 4) - 1
In SwivelView 180°, program the start address
= ((desired byte address + (PIP+ Stride × (PIP+ height − 1))
+ (PIP+ width × bpp ÷ 8) + ((4 - (PIP+ width × bpp ÷ 8)) & 03h)) ÷ 4) - 1
In SwivelView 270°, program the start address
= (desired byte address + ((PIP+ height - 1) × PIP+ Stride)) ÷ 4

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 40

Epson Research and Development
Vancouver Design Center

Note

Truncate all fractional values before writing to the address registers.
Note

SwivelView 0° and 180° require the PIP+ width to be a multiple of 32 ÷ bits-per-pixel.
SwivelView 90° and 270° require the PIP+ height to be a multiple of 32 ÷ bits-per-pixel.
If this is not possible, refer to Section 8.4, “Limitations” .

PIP+ Window Line Address Offset Register 0
REG[80h]

N

Read/Write

7

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

PIP+ Window Line Address Offset Bits 7-0
6

5

4

3

2

1

PIP+ Window Line Address Offset Register 1
REG[81h]

6

5

Read/Write
+

PIP Window Line Address
Offset Bits 9-8

n/a

7

0

4

3

2

1

0

PIP+ Line Address Offset
The PIP+ Line Address Offset register indicates the number of dwords per line in the PIP+
window image.
The image width must be a multiple of 32 ÷ bpp. If the image width is not such a multiple,
a slightly larger width must be chosen (see Section 8.4, “Limitations” ).
PIP+ width and PIP+ height refer to the PIP+ dimensions as seen in SwivelView 0°
(landscape mode). Stride is the number of bytes required for one line of the image; the
offset register represents the stride in DWORD steps.

V

PIP+ Stride = image width × bpp ÷ 8

A

D

For SwivelView 0° and 180°,
PIP+ Width=((REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1) × (32 ÷ bpp)
PIP+ Height=(REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1
For SwivelView 90° and 270°,
PIP+ Width=((REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1) × (32 ÷ bpp)
PIP+ Height=(REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1

Note

Image width can be larger than PIP+ width (or PIP+ height, for SwivelView 90° or
270°).

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 41

number of dwords per line = image width ÷ (32 ÷ bpp)
PIP+ Window X Start Position Register 0
REG[84h]

Read/Write

PIP+ Window X Start Position Bits 7-0
7

6

5

4

3

2

1

PIP+ Window X Start Position Register 1
REG[85h]

0

Read/Write
+

6

PIP X Start Position

5

4

3

2

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

7

+

N

PIP Window X Start Position
Bits 9-8

n/a

1

0

The PIP+ X Start Position bits determine the horizontal position of the start of the PIP+
window in 0° and 180° SwivelView orientations. These bits determine the vertical start
position in 90° and 270° SwivelView. For further information on defining the value of the
X Start Position, see Section 8.3, “Picture-In-Picture-Plus Examples” on page 48.

The register also increments differently based on the SwivelView orientation. For 0° and
180° SwivelView the X Start Position is incremented by X pixels where X is relative to the
current color depth. For 90° and 270° SwivelView the X Start Position is incremented in 1
line increments.
Table 8-1: 32-bit Address Increments for Color Depth
Pixel Increment (X)

1 bpp

32

2 bpp

16

4 bpp

8

8 bpp

4

16 bpp

2

A

D

V

Bits-per-pixel (Color Depth)

In SwivelView 0°, these bits set the horizontal coordinates (x) of the PIP+ windows’s left
edge. Increasing x moves the left edge towards the right in steps of (32 ÷ bits-per-pixel) (see
Table 8-1:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start
at pixel 0.
Program the PIP+ Window X Start Position so that
PIP+ Window X Start Position = x ÷ (32 ÷ bits-per-pixel)

Note

Truncate the fractional part of the above equation.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 42

Epson Research and Development
Vancouver Design Center

In SwivelView 90°, these bits set the vertical coordinates (y) of the PIP+ window’s top
edge. Increasing y moves the top edge downward in 1 line steps. The vertical coordinates
start at line 0.
Program the PIP+ Window X Start Position so that
PIP+ Window X Start Position = y

N

In SwivelView 180°, these bits set the horizontal coordinates (x) of the PIP+ window’s
right edge. Increasing x moves the right edge towards the right in steps of (32 ÷ bits-perpixel) (see Table 8-2:, “32-bit Address Increments for Color Depth” ). The horizontal
coordinates start at pixel 0.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Program the PIP+ Window X Start Position so that
PIP+ Window X Start Position = (panel width - x - 1) ÷ (32 ÷ bits-per-pixel)
Note

Truncate the fractional part of the above equation.

In SwivelView 270°, these bits set the vertical coordinates (y) of the PIP+ window’s bottom
edge. Increasing y moves the bottom edge downwards in 1 line steps. The vertical coordinates start at line 0.

A

D

V

Program the PIP+ Window X Start Position so that
PIP+ Window X Start Position = panel width - y - 1

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 43

PIP+ Window Y Start Position Register 0
REG[88h]

Read/Write

PIP+ Window Y Start Position Bits 7-0
7

6

5

4

3

2

1

PIP+ Window Y Start Position Register 1
REG[89h]

0

Read/Write
+

PIP Window Y Start Position
Bits 9-8

7

6

5

4

3

PIP Y Start Position

2

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

+

N

n/a

1

0

The PIP+ Y Start Position bits determine the vertical start position of the PIP+ window in
0° and 180° SwivelView orientations. These bits determine the horizontal start position in
90° and 270° SwivelView. For further information on defining the value of the Y Start
Position, see Section 8.3, “Picture-In-Picture-Plus Examples” on page 48.

The register also increments differently based on the SwivelView orientation. For 0° and
180° SwivelView the Y Start Position is incremented in 1 line increments. For 90° and 270°
SwivelView the Y Start Position is incremented by Y pixels where Y is relative to the current
color depth.
Table 8-2: 32-bit Address Increments for Color Depth
Bits-Per-Pixel (Color Depth)

Pixel Increment (Y)

1 bpp

32

2 bpp

16

4 bpp

8

8 bpp

4

16 bpp

2

A

D

V

In SwivelView 0°, these bits set the vertical coordinates (y) of the PIP+ windows’s top
edge. Increasing y moves the top edge downwards in 1 line steps. The vertical coordinates
start at line 0.
Program the PIP+ Window Y Start Position so that
PIP+ Window Y Start Position = y

In SwivelView 90°, these bits set the horizontal coordinates (x) of the PIP+ window’s right
edge. Increasing x moves the right edge towards the right in steps of (32 ÷ bits-per-pixel)
(see Table 8-2:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates
start at pixel 0.
Program the PIP+ Window Y Start Position so that
PIP+ Window Y Start Position = (panel height - x - 1) ÷ (32 ÷ bits-per-pixel)
Note

Truncate the fractional part of the above equation.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 44

Epson Research and Development
Vancouver Design Center

In SwivelView 180°, these bits set the vertical coordinates (y) of the PIP+ window’s bottom
edge. Increasing y moves the bottom edge downwards in 1 line steps. The vertical coordinates start at line 0.
Program the PIP+ Window Y Start Position so that
PIP+ Window Y Start Position = panel height - y - 1

N

In SwivelView 270°, these bits set the horizontal coordinates (x) of the PIP+ window’s left
edge. Increasing x moves the left edge towards the right in steps of (32 ÷ bits-per-pixel) (see
Table 8-2:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start
at pixel 0.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Program the PIP+ Window Y Start Position so that
PIP+ Window Y Start Position = x ÷ (32 ÷ bits-per-pixel)
Note

A

D

V

Truncate the fractional part of the above equation.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 45

PIP+ Window X End Position Register 0
REG[8Ch]

Read/Write

PIP+ Window X End Position Bits 7-0
7

6

5

4

3

2

1

PIP+ Window X End Position Register 1
REG[8Dh]

0

Read/Write
+

PIP Window X End Position
Bits 9-8

7

6

5

4

3

PIP X End Position

2

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

+

N

n/a

1

0

The PIP+ X End Position bits determine the horizontal end of the PIP+ window in 0° and
180° SwivelView orientations. These bits determine the vertical end position in 90° and
270° SwivelView. For further information on defining the value of the X End Position, see
Section 8.3, “Picture-In-Picture-Plus Examples” on page 48.

This register also increments differently based on the SwivelView orientation. For 0° and
180° SwivelView the X End Position is incremented by X pixels where X is relative to the
current color depth. For 90° and 270° SwivelView the X End Position is incremented in 1
line increments.
Table 8-3: 32-bit Address Increments for Color Depth
Bits-Per-Pixel (Color Depth)

Pixel Increment (X)

1 bpp

32

2 bpp

16

4 bpp

8

8 bpp

4

16 bpp

2

A

D

V

In SwivelView 0°, these bits set the horizontal coordinates (x) of the PIP+ window’s right
edge. Increasing x moves the right edge towards the right in steps of 32 ÷ bits-per-pixel (see
Table 8-3:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start
at pixel 0.
Program the PIP+ Window X End Position so that
PIP+ Window X End Position = x ÷ (32 ÷ bits-per-pixel)

Note

Truncate the fractional part of the above equation.
In SwivelView 90°, these bits set the vertical coordinates (y) of the PIP+ window’s bottom
edge. Increasing y moves the bottom edge downward in 1 line steps. The vertical coordinates start at line 0.
Program the PIP+ Window X End Position so that
PIP+ Window X End Position = y

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 46

Epson Research and Development
Vancouver Design Center

In SwivelView 180°, these bits set the horizontal coordinates (x) of the PIP+ window’s left
edge. Increasing x moves the left edge towards the right in steps of 32 ÷ bits-per-pixel (see
Table 8-3:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start
at pixel 0.
Program the PIP+ Window X End Position so that
PIP+ Window X End Position = (panel width - x - 1) ÷ (32 ÷ bits-per-pixel)
Note

Truncate the fractional part of the above equation.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

In SwivelView 270°, these bits set the vertical coordinates (y) of the PIP+ window’s top
edge. Increasing y moves the top edge downwards in 1 line steps. The vertical coordinates
start at line 0.
Program the PIP+ Window X End Position so that
PIP+ Window X End Position = panel width - y - 1
PIP+ Window Y End Position Register 0
REG[90h]

Read/Write

PIP+ Window Y End Position Bits 7-0

7

6

5

4

3

2

1

PIP+ Window Y End Position Register 1
REG[91h]

7

6

5

Y End Position

Read/Write

PIP+ Window Y End Position
Bits 9-8

n/a

PIP+

0

4

3

2

1

0

A

D

V

The PIP+ Y End Position bits determine the vertical end position of the PIP+ window in 0°
and 180° SwivelView orientations. These bits determine the horizontal end position in 90°
and 270° SwivelView. For further information on defining the value of the Y End Position,
see Section 8.3, “Picture-In-Picture-Plus Examples” on page 48.

The register also increments differently based on the SwivelView orientation. For 0° and
180° SwivelView the Y End Position is incremented in 1 line increments. For 90° and 270°
SwivelView the Y End Position is incremented by Y pixels where Y is relative to the current
color depth.
Table 8-4: 32-bit Address Increments for Color Depth

S1D13708
X39A-G-003-01

Bits-Per-Pixel (Color Depth)

Pixel Increment (Y)

1 bpp

32

2 bpp

16

4 bpp

8

8 bpp

4

16 bpp

2

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 47

In SwivelView 0°, these bits set the vertical coordinates (y) of the PIP+ windows’s bottom
edge. Increasing y moves the bottom edge downwards in 1 line steps. The vertical coordinates start at line 0.
Program the PIP+ Window Y End Position so that
PIP+ Window Y End Position = y

N

In SwivelView 90°, these bits set the horizontal coordinates (x) of the PIP+ window’s left
edge. Increasing x moves the left edge towards the right in steps of (32 ÷ bits-per-pixel) (see
Table 8-4:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start
at pixel 0.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Program the PIP+ Window Y End Position so that
PIP+ Window Y End Position = (panel height - x - 1) ÷ (32 ÷ bits-per-pixel)

Note

Truncate the fractional part of the above equation.

In SwivelView 180°, these bits set the vertical coordinates (y) of the PIP+ window’s top
edge. Increasing y moves the top edge downwards in 1 line steps. The vertical coordinates
start at line 0.
Program the PIP+ Window Y End Position so that
PIP+ Window Y End Position = panel height - y - 1

In SwivelView 270°, these bits set the horizontal coordinates (x) of the PIP+ window’s
right edge. Increasing x moves the right edge towards the right in steps of (32 ÷ bits-perpixel) (see Table 8-4:, “32-bit Address Increments for Color Depth” ). The horizontal
coordinates start at pixel 0.

V

Program the PIP+ Window Y End Position so that
PIP+ Window Y End Position = x ÷ (32 ÷ bits-per-pixel)
Truncate the fractional part of the above equation.

A

D

Note

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 48

Epson Research and Development
Vancouver Design Center

8.3 Picture-In-Picture-Plus Examples
8.3.1 SwivelView 0° (Landscape Mode)
0° SwivelViewTM

PIP+ window y start position
(REG[89h],REG[88h])

panel’s origin

PIP+ window y end position
(REG[91h],REG[90h])

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

main-window

PIP+ window

PIP+ window x start position
(REG[85h],REG[84h])

PIP+ window x end position
(REG[8Dh],REG[8Ch])

Figure 8-2: Picture-in-Picture Plus with SwivelView disabled

SwivelView 0° (or landscape) is a mode in which both the main and PIP+ window are nonrotated. The images for each window are typically placed consecutively, with the main
window image starting at address 0 and followed by the PIP+ window image. In addition,
both images must start at addresses which are dword-aligned (the last two bits of the
starting address must be 0).
Note

A

D

V

It is possible to use the same image for both the main window and PIP+ window. To do
so, set the PIP+ Line Address Offset register (REG[81h],REG[80h]) to the same value
as the Main Window Line Address Offset register (REG[79h],REG[78h]).

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 49

Example 5: Program the PIP+ window registers for a 320x240 panel at 4 bpp, with
the PIP+ window positioned at (80, 60) with a width of 160 and a height of
120.

1. Determine the value for the PIP+ Window X Positions and PIP+ Window Y Positions
registers. Let the top left corner of the PIP+ window be (x1, y1), and let the bottom
right corner be (x2, y2), where x2 = x1 + width - 1 and y2 = y1 + height - 1. The PIP+
Window X Positions register sets the horizontal coordinates of the PIP+ window’s top
left and bottom right corners. The PIP+ Window Y Positions register sets the vertical
coordinates of the PIP+ window’s top left and bottom right corners.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

X Start Position
= x1 ÷ (32 ÷ bpp)
= 80 ÷ (32 ÷ 4)
= 10
= 0Ah

N

The required values are calculated as follows:

Y Start Position
= y1
= 60
= 3Ch

A

D

V

X End Position
= x2 ÷ (32 ÷ bpp)
= (80 + 160 - 1) ÷ (32 ÷ 4)
= 29.875
= 1Dh (truncated fractional part)
Y End Position
= y2
= 60 + 120 - 1
= 179
= B3h

2. Program the PIP+ Window X Positions register with the X Start Position in
(REG[85h],REG[84h]) and the X End Position in (REG[8Dh],REG[8Ch]).
REG[84h]=0Ah
REG[85h]=00h
REG[8Ch]=1Dh
REG[8Dh]=00h
Program the PIP+ Window Y Positions register with the Y Start Position in
(REG[89h],REG[88h]) and the Y End Position in (REG[91h],REG[90h]).
REG[88h]=3Ch
REG[89h]=00h
REG[90h]=B3h
REG[91h]=00h
Note that the values of REG[84h] through REG[91h] do not go into effect until

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 50

Epson Research and Development
Vancouver Design Center

after REG[91h] is written.
Due to truncation, the dimensions of the PIP+ window may have changed. Recalculate
the PIP+ window width and height below:
PIP+ Width
= ((REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1) × (32 ÷ bpp)
= (1Dh - 0Ah + 1) × (32 ÷ 4)
= 160 pixels

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

PIP Height
= (REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1
= B3h - 3Ch + 1
= 120 lines

3. Determine the PIP+ display start address.
The main window image must take up 320 x 240 pixels × bpp ÷ 8 = 9600h bytes. If
the main window starts at address 0h, the PIP+ window can start at 9600h.
PIP+ display start address
= desired byte address ÷ 4
= 9600h ÷ 4
= 2580h.

Program the PIP+ Display Start Address registers.
REG[7Ch]=80h
REG[7Dh]=25h
REG[7Eh]=00h

4. Determine the PIP+ line address offset.

A

D

V

number of dwords per line
= image width ÷ (32 ÷ bpp)
= 160 ÷ (32 ÷ 4)
= 20
= 14h

Program the PIP+ Line Address Offset registers.
REG[80h]=14h
REG[81h]=00h.
5. Enable the PIP+ window.
Program the PIP+ Window Enable bit.
REG[71h] bit 4 is set to 1.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 51

8.3.2 SwivelView 90°
90° SwivelViewTM

panel’s origin
PIP+ window x start position
(REG[85h],REG[84h])

PIP+ window x end position
(REG[8Dh],REG[8Ch])

PIP+ window y start position
(REG[89h],REG[88h])

N

PIP+ window

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

PIP+ window y end position
(REG[91h],REG[90h])

main-window

Figure 8-3: Picture-in-Picture Plus with SwivelView 90° enabled

SwivelView 90° is a mode in which both the main and PIP+ windows are rotated 90°
counter-clockwise when shown on the panel. The images for each window are typically
placed consecutively, with the main window image starting at address 0 and followed by
the PIP+ window image. In addition, both images must start at addresses which are dwordaligned (the last two bits of the starting address must be 0).

Note

A

D

V

It is possible to use the same image for both the main window and PIP+ window. To do
so, set the PIP+ Line Address Offset register (REG[81h],REG[80h]) to the same value
as the Main Window Line Address Offset register (REG[79h],REG[78h]).

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 52

Epson Research and Development
Vancouver Design Center

Example 6: In SwivelView 90°, program the PIP+ window registers for a 320x240
panel at 4 bpp, with the PIP+ window positioned at SwivelView 90° coordinates (60, 80) with a width of 120 and a height of 160.

1. Determine the value for the PIP+ Window X Positions and PIP+ Window Y Positions
registers. Let the top left corner of the PIP+ window be (x1, y1), and let the bottom
right corner be (x2, y2), where x2 = x1 + width - 1 and y2 = y1 + height - 1. The PIP+
Window X Positions register sets the vertical coordinates of the PIP+ window’s top
right and bottom left corners. The PIP+ Window Y Positions register sets the horizontal coordinates of the PIP+ window’s top right and bottom left corners.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

X Start Position
= y1
= 80
= 50h

N

The required values are calculated as follows:

Y Start Position
= (panel height - x2 - 1) ÷ (32 ÷ bpp)
= (240 - (60 + 120 - 1) - 1) ÷ (32 ÷ 4)
= 7.5
= 07h (truncated fractional part)

X End Position
= y2
= 80 + 160 - 1
= 239
= EFh

A

D

V

Y End Position
= (panel height - x1 - 1) ÷ (32 ÷ bpp)
= (240 - 60 - 1) ÷ (32 ÷ 4)
= 22.375
= 16h (truncated fractional part)

S1D13708
X39A-G-003-01

2. Program the PIP+ Window X Positions register with the X Start Position in
(REG[85h],REG[84h]) and the X End Position in (REG[8Dh],REG[8Ch]).
REG[84h]=50h
REG[85h]=00h
REG[8Ch]=EFh
REG[8Dh]=00h
Program the PIP+ Window Y Positions register with the Y Start Position in
(REG[89h],REG[88h]) and the Y End Position in (REG[91h],REG[90h]).
REG[88h]=07h
REG[89h]=00h
REG[90h]=16h
REG[91h]=00h

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 53

Note that the values of REG[84h] through REG[91h] do not go into effect until
after REG[91h] is written.
Due to truncation, the dimensions of the PIP+ window may have changed. Recalculate
the PIP+ window width and height below:
PIP Width
= ((REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1) × (32 ÷ bpp)
= (16h - 07h + 1) × (32 ÷ 4)
= 128 pixels (note that this is different from the desired width)

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

PIP+ Height
= (REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1
= EFh - 50h + 1
= 160 lines

3. Determine the PIP+ display start address.
The main window image must take up 320 x 240 pixels × bpp ÷ 8 = 9600h bytes. If
the main window starts at address 0h, then the PIP+ window can start at 9600h.
PIP+ display start address
= ((desired byte address + (PIP+ width × bpp ÷ 8)
+ ((4 - (PIP+ width × bpp ÷ 8)) & 03h)) ÷ 4) - 1
= ((9600h + (128 × 4 ÷ 8) + ((4 - (128 × 4 ÷ 8)) & 03h)) ÷ 4) - 1
= 9615
= 258Fh

Program the PIP+ Display Start Address registers.
REG[7Ch]=8Fh
REG[7Dh]=25h
REG[7Eh]=00h

A

D

V

4. Determine the PIP+ line address offset.
number of dwords per line
= image width ÷ (32 ÷ bpp)
= 128 ÷ (32 ÷ 4)
= 16
= 10h

Program the PIP+ Line Address Offset registers.
REG[80h]=10h
REG[81h]=00h.
5. Enable the PIP+ window.
Program the PIP+ Window Enable bit.
REG[71h] bit 4 is set to 1.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 54

Epson Research and Development
Vancouver Design Center

8.3.3 SwivelView 180°
180° SwivelViewTM

PIP+ window x end position
(REG[8Dh],REG[8Ch])

PIP+ window x start position
(REG[85h],REG[84h])

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

main-window

N

PIP+ window

PIP+ window y end position
(REG[91h],REG[90h])

PIP+ window y start position
(REG[89h],REG[88h])

panel’s origin

Figure 8-4: Picture-in-Picture Plus with SwivelView 180° enabled
SwivelView 180° is a mode in which both the main and PIP+ windows are rotated 180°
counter-clockwise when shown on the panel. The images for each window are typically
placed consecutively, with the main window image starting at address 0 and followed by
the PIP+ window image. In addition, both images must start at addresses which are dwordaligned (the last two bits of the starting address must be 0).
Note

A

D

V

It is possible to use the same image for both the main window and PIP+ window. To do
so, set the PIP+ Line Address Offset register (REG[81h],REG[80h]) to the same value
as the Main Window Line Address Offset register (REG[79h],REG[78h]).

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 55

Example 7: In SwivelView 180°, program the PIP+ window registers for a 320x240
panel at 4 bpp, with the PIP+ window positioned at SwivelView 180° coordinates (80, 60) with a width of 160 and a height of 120.

1. Determine the value for the PIP+ Window X Positions and PIP+ Window Y Positions
registers. Let the top left corner of the PIP+ window be (x1, y1), and let the bottom
right corner be (x2, y2), where x2 = x1 + width - 1 and y2 = y1 + height - 1. The PIP+
Window X Positions register sets the horizontal coordinates of the PIP+ window’s
bottom right and top left corner. The PIP+ Window Y Positions register sets the vertical coordinates of the PIP+ window’s bottom right and top left corner.

A

D

V

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

X Start Position
= (panel width - x2 - 1) ÷ (32 ÷ bpp)
= (320 - (80 + 160 - 1) - 1) ÷ (32 ÷ 4)
= 10
= 0Ah
Y Start Position
= panel height - y2 - 1
= 240 - (60 + 120 - 1) - 1
= 60
= 3Ch
X End Position
= (panel width - x1 - 1) ÷ (32 ÷ bpp)
= (320 - 80 - 1) ÷ (32 ÷ 4)
= 29.875
= 1Dh (truncated fractional part)
Y End Position
= panel height - y1 - 1
= 240 - 60 - 1
= 179
= B3h

N

The required values are calculated as follows:

2. Program the PIP+ Window X Positions register with the X Start Position in
(REG[85h],REG[84h]) and the X End Position in (REG[8Dh],REG[8Ch]).
REG[84h]=0Ah
REG[85h]=00h
REG[8Ch]=1Dh
REG[8Dh]=00h
Program the PIP+ Window Y Positions register with the Y Start Position in
(REG[89h],REG[88h]) and the Y End Position in (REG[91h],REG[90h]).
REG[88h]=3Ch
REG[89h]=00h
REG[90h]=B3h
REG[91h]=00h
Note that the values of REG[84h] through REG[91h] do not go into effect until
after REG[91h] is written.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 56

Epson Research and Development
Vancouver Design Center

Due to truncation, the dimensions of the PIP+ window may have changed. Recalculate
the PIP+ window width and height below:
PIP+ Width
= ((REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1) × (32 ÷ bpp)
= (1Dh - 0Ah + 1) × (32 ÷ 4)
= 160 pixels

N

PIP Height
= (REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1
= B3h - 3Ch + 1
= 120 lines

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

3. Determine the PIP+ display start address.
The main window image must take up 320 x 240 pixels × bpp ÷ 8 = 9600h bytes. If
the main window starts at address 0h, then the PIP+ window can start at 9600h.
PIP+ Stride
= image width × bpp ÷ 8
= 160 × 4 ÷ 8
= 80
= 50h

PIP+ display start address
= ((desired byte address + (PIP+ Stride × (PIP+ height - 1))
+ (PIP+ width × bpp ÷ 8) + ((4 - (PIP width × bpp ÷ 8)) & 03h)) ÷ 4) - 1
= ((9600h + (80 × (120 - 1)) + (160 × 4 ÷ 8) + ((4 - (160 × 4 ÷ 8))&03h)) ÷ 4) - 1
= 11999
= 2EDFh

A

D

V

Program the PIP+ Display Start Address registers.
REG[7Ch]=DFh
REG[7Dh]=2Eh
REG[7Eh]=00h

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 57

4. Determine the PIP+ line address offset.
number of dwords per line
= image width ÷ (32 ÷ bpp)
= 160 ÷ (32 ÷ 4)
= 20
= 14h

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

5. Enable the PIP+ window.

N

Program the PIP+ Line Address Offset registers.
REG[80h]=14h
REG[81h]=00h.

A

D

V

Program the PIP+ Window Enable bit.
REG[71h] bit 4 is set to 1.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 58

Epson Research and Development
Vancouver Design Center

8.3.4 SwivelView 270°
270° SwivelViewTM

PIP+ window y end position
(REG[91h],REG[90h])

PIP+ window

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

PIP+ window y start position
(REG[89h],REG[88h])

main-window

PIP+ window x start position
(REG[85h],REG[84h])

PIP+ window x end position
(REG[8Dh],REG[8Ch])

panel’s origin

Figure 8-5: Picture-in-Picture Plus with SwivelView 270° enabled
SwivelView 270° is a mode in which both the main and PIP+ windows are rotated 270°
counter-clockwise when shown on the panel. The images for each window are typically
placed consecutively, with the main window image starting at address 0 and followed by
the PIP+ window image. In addition, both images must start at addresses which are dwordaligned (the last two bits of the starting address must be 0).
Note

A

D

V

It is possible to use the same image for both the main window and PIP+ window. To do
so, set the PIP+ Line Address Offset register (REG[81h],REG[80h]) to the same value
as the Main Window Line Address Offset register (REG[79h],REG[78h]).

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 59

Example 8: In SwivelView 270°, program the PIP+ window registers for a 320x240
panel at 4 bpp, with the PIP+ window positioned at SwivelView 270° coordinates (60, 80) with a width of 120 and a height of 160.

1. Determine the value for the PIP+ Window X Positions and PIP+ Window Y Positions
registers. Let the top left corner of the PIP+ window be (x1, y1), and let the bottom
right corner be (x2, y2), where x2 = x1 + width - 1 and y2 = y1 + height - 1. The PIP+
Window X Positions register sets the vertical coordinates of the PIP+ window’s top
right and bottom left corner. The PIP+ Window Y Positions register sets the horizontal
coordinates of the PIP+ window’s top right and bottom left corner.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

X Start Position
= panel width - y2 - 1
= 320 - (80 + 160 - 1) - 1
= 80
= 50h

N

The required values are calculated as follows:

Y Start Position
= x1 ÷ (32 ÷ bpp)
= 60 ÷ (32 ÷ 4)
= 7.5
= 07h (truncated fractional part)

A

D

V

X End Position
= panel width - y1 - 1
= 320 - 80 - 1
= 239
= EFh

Y End Position
= x2 ÷ (32 ÷ bpp)
= (60 + 120 - 1) ÷ (32 ÷ 4)
= 22.375
= 16h (truncated fractional part)

2. Program the PIP+ Window X Positions register with the X Start Position in
(REG[85h],REG[84h]) and the X End Position in (REG[8Dh],REG[8Ch]).
REG[84h]=50h
REG[85h]=00h
REG[8Ch]=EFh
REG[8Dh]=00h
Program the PIP+ Window Y Positions register with the Y Start Position in
(REG[89h],REG[88h]) and the Y End Position in (REG[91h],REG[90h]).
REG[88h]=07h
REG[89h]=00h
REG[90h]=16h
REG[91h]=00h

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 60

Epson Research and Development
Vancouver Design Center

Note that the values of REG[84h] through REG[91h] do not go into effect until
after REG[91h] is written.
Due to truncation, the dimensions of the PIP+ window may have changed. Recalculate
the PIP+ window width and height below:
PIP Width
= ((REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1) × (32 ÷ bpp)
= (16h - 07h + 1) × (32 ÷ 4)
= 128 pixels (note that this is different from the desired width)

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

PIP+ Height
= (REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1
= EFh - 50h + 1
= 160 lines

3. Determine the PIP+ display start address.
The main window image must take up 320 x 240 pixels × bpp ÷ 8 = 9600h bytes. If
the main window starts at address 0h, then the PIP+ window can start at 9600h.
PIP+ Stride
= image width × bpp ÷ 8
= 128 × 4 ÷ 8
= 64
= 40h

PIP+ display start address
= (desired byte address + ((PIP+ height - 1) × PIP+ Stride)) ÷ 4
= (9600h + ((160 - 1) × 64)) ÷ 4
= 12144
= 2F70h

A

D

V

Program the PIP+ Display Start Address registers.
REG[7Ch]=70h
REG[7Dh]=2Fh
REG[7Eh]=00h

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 61

4. Determine the PIP+ line address offset.
number of dwords per line
= image width ÷ (32 ÷ bpp)
= 128 ÷ (32 ÷ 4)
= 16
= 10h

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

5. Enable the PIP+ window.

N

Program the PIP+ Line Address Offset registers.
REG[80h]=10h
REG[81h]=00h.

A

D

V

Program the PIP+ Window Enable bit.
REG[71h] bit 4 is set to 1.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 62

Epson Research and Development
Vancouver Design Center

8.4 Limitations
8.4.1 SwivelView 0° and 180°
The PIP+ Line Address Offset registers (REG[81h],REG[80h]) requires the PIP+ window
image width to be a multiple of 32 ÷ bits-per-pixel. If this formula is not satisfied, then the
PIP+ Line Address Offset register must be programmed to the next larger value that
satisfies the formula.

N

8.4.2 SwivelView 90° and 270°

A

D

V

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

The PIP+ Line Address Offset register (REG[81h],REG[80h]) requires the PIP+ window
image width to be a multiple of 32 ÷ bits-per-pixel. If this formula is not satisfied, then the
PIP+ Line Address Offset register must be programmed to the next larger value that
satisfies the formula.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 63

9 Hardware Abstraction Layer
9.1 Introduction
The S1D13708 Hardware Abstraction Layer (HAL) is a collection of routines intended to
simplify the programming for the S5U13708B00B evaluation board. Programmers can use
the HAL to assist in rapid software prototyping for the S5U13708B00B evaluation board.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

The HAL routines are divided into discrete functional blocks. The functions for startup and
clock control offer specific support for the S5U13708B00B evaluation board, while other
routines demonstrate memory and register access techniques. For a complete list, see Table
9-1:, “HAL Library API” .

9.2 API for the HAL Library

The following table lists the functions provided by the S1D13708 HAL library.
Table 9-1: HAL Library API

Function

Description

Startup

This routine loads the driver required to access the S1D13708, locates the and returns the address of
the controller.

halAcquireController

Initializes the controller for use. This includes setting the programmable clock and initializing registers as
well as setting the lookup table and clearing video memory.

halInitController

Memory Access

halReadDisplay8

Reads one byte from display memory

halReadDisplay16

Reads one word from display memory

halReadDisplay32

Reads one double word from display memory

halWriteDisplay8

Writes one byte to display memory

Writes on word to display memory

V

halWriteDisplay16

Writes on double word to display memory

halReadReg8
halReadReg16

A

D

halWriteDisplay32

Register Access
Reads one byte from a control register
Reads one word from a control register

halReadReg32

Reads one dword from a control register

halWriteReg8

Writes one byte to a control register

halWriteReg16

Writes one word to a control register

halWriteReg32

Writes one dword to a control registers

halSetClock

Programs the ICD2061A Programmable Clock Generator.

halGetClock

Returns the frequency of the requested ICD2061A clock

Clock Support

Miscellaneous
halGetVersionInfo

Returns a standardized startup banner message

halGetLastError

Returns the numerical value of the last error and optionally an ASCII string describing the error

halInitLUT

This routine sets the LUT to uniform values for color/mono panels at all color depths

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 64

Epson Research and Development
Vancouver Design Center

9.2.1 Startup Routines
There are two routines dedicated to startup and initializing the S1D13708. Typically these
two functions are the first two HAL routines a program will call.
The startup routine locates the S1D13708 controller and initializes HAL data structures. As
the name suggests, the initialization routine prepares the S1D13708 for use. Splitting the
startup functionality allows programs to start and locate the S1D13708 but delay or
possibly never initialize the controller.

N

Boolean halAcquireController(UInt32 * pMem, UInt32 * pReg)
This routine initializes data structures and initiates the link between the application software and the hardware. When the S1D13708 HAL is used this routine must be the first
HAL function called.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Description:

The display buffer and register addresses, configured by 13708CFG, are used by halAcquireController(). When both addresses are set to 0, the software assumes an Intel platform, and will attempt to load the S1D13xxx driver. If this driver loads successfully, a
check is then made for the S1D13708 evaluation board. If this board exists, halAcquireController() allocates display buffer and register addresses which are then returned via
pMem and pReg.
If either the register or display buffer addresses in 13708CFG are non-zero, halAcquireController() will return these addresses via pMem and pReg.
Pointer to an unsigned 32-bit integer which will receive the offset to the first
byte of display buffer memory. The offset may be cast to a pointer to access
display memory.

pReg

Pointer to an unsigned 32-bit integer which will receive the offset to the first
byte of register space. The offset may be cast to a pointer and to access
S1D13708 registers.
On Win32 systems the returned offsets correspond to a linear addresses
within the caller’s address space.
(non-zero) The addresses in pMem and pReg are available for use.
pMem will contain the offset to the first byte of display buffer memory.
pRegs will contain the address of the first S1D13708 control register.

FALSE

(zero) The addresses in pMem and pReg cannot be used.
If additional error information is required call halGetLastError().

D

TRUE

A

Return Value:

pMem

V

Parameters:

Note

1. This routine must be called before any other HAL routine is called.
2. For programs written for the S1D13708 evaluation board, an application may
call this routine to obtain pointers to the registers and display memory and then
perform all S1D13708 accesses directly.
3. This routine does not modify S1D13708 registers or display buffer memory.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 65

Boolean halInitController(UInt32 Flags)
Description:

This routine performs the initialization portion of the startup sequence.
Initialization of the S1D13708 evaluation board consists of several steps:
- Program the ICD2061A clock generator
- Set the initial state of the control
- Set the LUT to its default value
- Clear video memory
All display memory and nearly every control register can or will be affected by the initialization.

N

Any, or all, of the initialization steps may be bypassed according to values contained in the
Flags parameter. This allows for conditional run-time changes to the initialization.
Flags contains initialization specific information. The default action of the HAL is to perform all initialization steps. Flags contain specific instructions for bypassing certain initialization steps. Flags can be combined with the ’|’ symbol, such as
fDONT_SET_CLOCKS | fDONT_INIT_REGS. The values for Flags are:

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

Parameters:

fDONT_SET_CLOCKS
Setting this flag causes initialization to skip programming the ICD2061A
clock generator. Normally the clock on the S5U13708B00B is programmed
to configured values during initialization.
fDONT_INIT_REGS
Bypass register initialization. Normally the init process sets the register
values to a known state. Setting this flag bypasses this step.
fDONT_INIT_LUT
Bypass look-up table initialization.

fDONT_CLEAR_MEM
The final step of the initialization process is to clear display buffer memory.
Setting this flag will bypass this step.
TRUE

V

Return Value:

(zero) if the HAL was unable to initialize the S1D13708
If additional error information is required call halGetLastError()

A

D

FALSE

(non-zero) if the initialization was successful.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 66

Epson Research and Development
Vancouver Design Center

9.2.2 Memory Access
The S1D13708 HAL includes six memory access functions. The primary purpose of the
memory access functions is to demonstrate how to access display memory using the C
programming language. Most programs that need to access memory will bypass the HAL
and instead use memory pointers.
Note

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

There are two means of accessing display memory: pointers into display memory, or
through the indirect interface. The following memory access functions will support both
types of access. However, the programmer must update the indirect interface functions
in the HAL library to support the given hardware implementation. These indirect interface functions are all found in the file indirect.c in the HAL source code.
UInt8 halReadDisplay8(UInt32 Offset)
Description:

Reads and returns the value of one byte of display memory.

Parameters:

Offset

Return Value:

The value of the byte at the requested offset.

A 32 bit offset to the byte to be read from display memory.

UInt16 halReadDisplay16(UInt32 Offset)
Description:

Reads and returns the value of one word of display memory.

Parameters:

Offset

Return Value:

The value of the word at the requested offset.

A 32 bit byte offset to the word to be read from display memory.
To prevent system slowdowns and possibly memory faults, Offset should be
a word multiple.

UInt32 halReadDisplay32(UInt32 Offset)

Reads and returns the value of one dword of display memory.

V

Description:

Offset

A

D

Parameters:

Return Value:

A 32 bit byte offset to the dword to be read from display memory.
To prevent system slowdowns and possibly memory faults, Offset should be
a dword multiple.

The value of the dword at the requested offset.

void halWriteDisplay8(UInt32 Offset, UInt8 Value, UInt32 Count)
Description:

Writes a byte into display memory at the requested address.

Parameters:

Offset

A 32 bit byte offset to the byte to be written to display memory.

Value

The byte value to be written to display memory.

Count

The number of times to repeat Value in memory. By including a count (or
loop) value this function can efficiently fill display memory.

Return Value:

S1D13708
X39A-G-003-01

Nothing.

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 67

void halWriteDisplay16(UInt32 Offset, UInt16 Value, UInt32 Count)
Description:

Writes a word into display memory at the requested offset.

Parameters:

Offset

a 32 bit byte offset to the byte to be written to display memory. To prevent
system slowdowns and possibly memory faults, Offset should be a word
multiple.

Value

the word value to be written to display memory.

Count

the number of times to repeat the Value in memory. By including a count (or
loop) value this function can efficiently fill display memory.

Nothing.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

void halWriteDisplay32(UInt32 Offset, UInt32 Value, UInt32 Count)

N

Return Value:

Description:

Writes a dword into display memory at the requested offset.

Parameters:

Return Value:

Offset

A 32 bit byte offset to the byte to be written to display memory. To prevent
system slowdowns and possibly memory faults, Offset should be a dword
multiple.

Value

The dword value to be written to display memory.

Count

The number of times to repeat the Value in memory. By including a count
(or loop) value this function can efficiently fill display memory.

Nothing.

9.2.3 Register Access

The S1D13708 HAL includes six register access functions. The primary purpose of the
register access functions is to demonstrate how to access the S1D13708 control registers
using the C programming language. Most programs that need to access the registers will
bypass the HAL and instead use register pointers.

A

D

V

There are some register values which must be combined, such as the Main Window Line
Address Offset in REG[78h] and REG[79h]. Software must take into account whether the
given platform is big or little endian when combining such register values. To guarantee
that the combined register values are correct, do the following in C:

Programming Notes and Examples
Issue Date: 01/11/20

Read word from reg[index]

val16 = (halReadReg8(index+1) << 8) |
halReadReg8(index);

Read dword from reg[index]

val32 =(halReadReg8(index+3) << 24) |
(halReadReg8(index+2) << 16) |
(halReadReg8(index+1) << 8)
halReadReg8(index);

Write word (val16) to reg[index]

halWriteReg8(index, (val16 & 0xff));
halWriteReg8(index+1, (val16 >> 8) & 0xff);

Write dword (val32) to reg[index]

halWriteReg8(index, (val32 & 0xff));
halWriteReg8(index+1, (val32 >> 8) & 0xff);
halWriteReg8(index+2, (val32 >> 16) & 0xff);
halWriteReg8(index+3, (val32 >> 24) & 0xff);

S1D13708
X39A-G-003-01

Page 68

Epson Research and Development
Vancouver Design Center

Note

There are two means of accessing registers: pointers into register addressing space, or
through the indirect interface. The following register access functions will support both
types of access. However, the programmer must update the indirect interface functions
in the HAL library to support the given hardware implementation. These indirect interface functions are all found in the file indirect.c in the HAL source code.
UInt8 halReadReg8(UInt32 Index)
Description:

Reads and returns the contents of one byte of an S1D13708 register at the requested offset.
No S1D13708 registers are changed.

Parameters:

Index

Return Value:

The value read from the register.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

32 bit offset to the register to read. Index is zero-based from the beginning
of register address space.

UInt16 halReadReg16(UInt32 Index)
Description:

Reads and returns the contents of one word of an S1D13708 register at the requested offset. No S1D13708 register are changed.

Parameters:

Index

Return Value:

The word value read from the register.

32 bit offset to the register to read. Index is zero-based from the beginning
of register address space.

UInt16 halReadReg32(UInt32 Index)
Description:

Reads and returns the dword value of an S1D13708 register at the requested offset. No
S1D13708 register are changed.

Parameters:

Index

Return Value:

The dword value read from the register.

V

32 bit offset to the register to read. Index is zero-based from the beginning
of register address space.

Parameters:

A

Description:

D

void halWriteReg8(UInt32 Index, UInt8 Value)

Return Value:

S1D13708
X39A-G-003-01

Writes an 8 bit value to the register at the requested offset.
Index

32 bit offset to the register to write. Index is zero-based from the beginning
of register address space.

Value

The byte value to write to the register.

Nothing.

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 69

void halWriteReg16(UInt32 Index, UInt16 Value)
Description:

Writes a 16 bit value to the S1D13708 register at the requested offset.

Parameters:

Index

32 bit byte offset to the register to write. Index is zero-based from the
beginning of register address space.

Value

The word value to write to the register.

Return Value:

Nothing.

void halWriteReg32(UInt32 Index, UInt32 Value)
Writes a 32 bit value (dword) to the register at the requested offset.

Parameters:

Index

N

Description:

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

32 bit byte offset to the register to write. Index is zero-based from the
beginning of register address space.

Value

Return Value:

The dword value to write to the register.

Nothing.

9.2.4 Clock Support

To maximize flexibility, S5U13708B00B evaluation boards include a programmable clock.
The following HAL routines provide support for the programmable clock.

Boolean halSetClock(UInt32 ClkiFreq, UInt32 Clki2Freq)
Description:

This routine program the ICD2061A programmable clock generator to the specified frequency.

Parameters:

Return Value:

ClkiFreq

The desired frequency, in Hz, for CLKI.

Clki2Freq

The desired frequency, in Hz, for CLKI2.

TRUE (non-zero) if the function was successful in setting the clock.

A

D

V

FALSE (zero) if there was an error detected while trying to set the clock.
If additional error information is required call halGetLastError().

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 70

Epson Research and Development
Vancouver Design Center

UInt32 halGetClock(CLOCKSELECT Clock)
Description:

Returns the frequency of the clock input identified by 'Clock'.

Parameters:

Clock

Return Value:

The frequency, in Hz, of the requested clock.

Indicates which clock to read. This value can be CLKI or CLKI2.

9.2.5 Miscellaneous

N

The miscellaneous function are an assortment of routines, determined to be beneficial to a
number of programs and hence warranted being included in the HAL.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

void halGetVersionInfo(const char * szProgName, const char * szDesc, const char * szVersion,
char * szRetStr, int Length)
Description:

This routine creates a standardized startup banner by merging program and HAL specific
information. The newly formulated string is returned to the calling program for display.
The final formatted string will resemble:

13708PROGRAM - Internal test and diagnostic program - Build 1234 [HAL: 1234]
Copyright (c) 2001 Epson Research and Development, Inc.
All rights reserved.
szProgName Pointer to an ASCIIZ string containing the name of the program.
(e.g. “PROGRAM”).
szDesc

Pointer to an ASCIIZ string containing a description of what this program
is intended to do (e.g. “Internal test and diagnostic program”).

szVersion

Pointer to an ASCIIZ string containing the build info for this program. This
should be the revision info string as updated by Microsoft Visual Source
Safe© (e.g. “$Revision: 30 $”).

szRetStr

Pointer to a buffer into which the product and version information will be
formatted into.

V

Parameters:

A

D

Length

Return Value:

S1D13708
X39A-G-003-01

Total number of bytes in the string pointed to by szRetStr. This function will
write Length or fewer bytes to the buffer pointed to by szRetStr.

Nothing.

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 71

int halGetLastError(char * ErrMsg, int MaxSize)
Description: This routine retrieves the last error detected by the HAL.
Parameters: ErrMsg When halGetLastError() returns, ErrMsg will point to the textual
error message. If ErrMsg is NULL then only the error code will be
returned.
MaxSize Maximum number of bytes, including the final '\0', that can be
placed in the string pointed to by ErrMsg.

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

Return Value:The numerical value of the internal error number.

HALEXTERN void halInitLUT(void)

Description: To standardize the appearance of test and validation programs, it was
decided the HAL would have the ability to set the lookup table to uniform
values.
The routine cracks the color depth and display type to determine which LUT
values to use and proceeds to write the LUT entries.

Parameters: None

A

D

V

Return Value: Nothing.

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Page 72

Epson Research and Development
Vancouver Design Center

10 Sample Code

A

D

V

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

Example source code demonstrating programming the S1D13708 using the HAL library is
available on the internet at www.erd.epson.com.

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

Epson Research and Development
Vancouver Design Center

Page 73

11 Sales and Technical Support
North America
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

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

A

D

V

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708
X39A-G-003-01

Epson Research and Development
Vancouver Design Center

A
N
Su CE
bj D
ec IN
t t FO
o
Ch RM
an A
ge TI
O

N

Page 74

A

D

V

THIS PAGE LEFT BLANK

S1D13708
X39A-G-003-01

Programming Notes and Examples
Issue Date: 01/11/20

S1D13708 Register Summary

Bit 6

Bit 5

Bit 6

Bit 5

Bit 4

Bit 3

Bit 3

Bit 2

Bit 2

RO

Bit 1

Bit 1

RO

Bit 0

RO

Bit 0

Revision Code = 00

Bit 6

Bit 5

Bit 4

Bit 7

Bit 6

Bit 5

Bit 4

MCLK Divide Select
bits 1-0

Bit 5

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 4

LUT Green Write Data bits 5-0

Bit 6

Bit 5

Bit 4

LUT Red Write Data bits 5-0

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 4

LUT Blue Read Data bits 5-0

Bit 6

Bit 5

Bit 4

LUT Green Read Data bits 5-0

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 4

Bit 3

Bit 3

Bit 3

Bit 3

Bit 3

Bit 6

Bit 5

Bit 6

Bit 5

Bit 6

Bit 5

Bit 4

Bit 3

Bit 6

Page 1

Bit 7

Bit 6

Bit 2

Bit 5

Bit 4

Bit 3

Bit 5

n/a

Bit 4

Bit 3

Bit 2

Bit 2

Horizontal Display Period Start Position bits 7-0

REG[17h] HORIZONTAL DISPLAY PERIOD START POSITION REGISTER 1

Bit 7

Bit 2

Bit 2

Horizontal Display Period bits 6-0

REG[16h] HORIZONTAL DISPLAY PERIOD START POSITION REGISTER 0

Bit 7

n/a

REG[14h] HORIZONTAL DISPLAY PERIOD REGISTER

Bit 3

Bit 4

Bit 3

Horizontal Total bits 6-0

Bit 5

Bit 2

n/a

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

MOD Rate bits 5-0

Bit 3

n/a

Bit 6

Bit 4

Bit 4

Bit 7

REG[12h] HORIZONTAL TOTAL REGISTER

Bit 7

n/a

REG[11h] MOD RATE REGISTER

Bit 7

Panel Data
Color/Mono Panel Data Width bits 1-0 Active Panel
Format
Panel Select
Res. Select
Select

REG[10h] PANEL TYPE R EGISTER 5,6

PANEL CONFIGURATION REGISTERS

Bit 7

n/a

LUT Read Address bits 7-0

REG[0Fh] LOOK-U P TABLE READ ADDRESS REGISTER

Bit 7

LUT Red Write Data bits 5-0

REG[0Eh] LOOK-UP TABLE RED READ DATA REGISTER

Bit 7

REG[0Dh] LOOK-UP TABLE GREEN READ D ATA R EGISTER

Bit 7

Bit 3

Bit 3

Bit 3

Bit 3

Bit 3

Bit 3

LUT Write Address bits 7-0

REG[0Ch] LOOK-UP TABLE BLUE R EAD DATA REGISTER

Bit 7

REG[0Bh] LOOK-UP TABLE W RITE ADDRESS REGISTER

Bit 7

REG[0Ah] LOOK-UP TABLE RED WRITE DATA REGISTER

Bit 7

REG[09h] LOOK-UP TABLE GREEN WRITE DATA REGISTER

Bit 7

LUT Blue Write Data bits 5-0

REG[08h] LOOK-UP TABLE B LUE WRITE DATA REGISTER

Bit 4

PCLK Divide Select bits 2-0

Bit 6

LOOK-UP TABLE REGISTERS

Bit 7

n/a

REG[05h] PIXEL CLOCK CONFIGURATION REGISTER 3,4

n/a

REG[04h] MEMORY CLOCK CONFIGURATION REGISTER 2

CLOCK CONFIGURATION REGISTERS

Bit 7

Bit 0

RW

n/a

n/a

n/a

n/a

n/a

n/a

RW

Bit 0

WO

Bit 0

RO

Bit 0

RO

Bit 0

RO

Bit 0

WO

Bit 0

WO

Bit 0

WO

Bit 0

WO

Bit 0

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

Panel Type bits 1-0

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

PCLK Source Select
bits 1-0

Bit 1

RW

Bit 0

Bit 1

Bit 0

Horizontal Display Period
Start Position bits 9-8

n/a

Bit 1

CNF7 Status CNF6 Status CNF5 Status CNF4 Status CNF3 Status CNF2 Status CNF1 Status CNF0 Status

REG[02h] CONFIGURATION READBACK R EGISTER

Bit 7

Bit 4

Display Buffer Size = 00010100 (14h)

REG[01h] DISPLAY BUFFER SIZE REGISTER

Bit 7

Product Code = 001101 (0Dh)

REG[00h] REVISION CODE REGISTER 1

READ-ONLY CONFIGURATION REGISTERS

Bit 6

Bit 5

Bit 7

Bit 6

Bit 5

Bit 4

Bit 4

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 4

Bit 3

Bit 6

Bit 6

Bit 5

n/a

Bit 4

Bit 3

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

n/a
Bit 4

Bit 6

Bit 5

n/a
Bit 4

Bit 6

Bit 6

Bit 5

n/a
Bit 6

Bit 5

Bit 6

Bit 5

Bit 6

Bit 7

Bit 5

HW Video
Invert
Enable

Bit 4

Bit 6

Bit 5

n/a

Bit 4

Bit 4

Bit 3

Bit 4

PIP Window
Enable

+

Bit 4

SW Video
Invert

Bit 4

Bit 3

Bit 3

n/a

Bit 3

Bit 6

Bit 5

Bit 4

Bit 3

Bit 7

Bit 6

Bit 2

Bit 2

Bit 5

Bit 4

Bit 3

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

Bit 1

RW

Bit 0

FPLINE Pulse Start
Position bits 9-8

Bit 1

Bit 1

Bit 1

Vertical Display Period
Start Position bits 9-8

Bit 1

Bit 1

RW

Bit 0

RW

Bit 0

Bit 1

Bit 1

Bit 1

RW

Bit 0

RW

Bit 0

RW

Bit 0

FPFRAME Pulse Start
Position bits 9-8

Bit 1

Bit 1

Bit 2

Bit 2

Bit 2

Bit 2

RW

Bit 0

Bit 1

Bit 1

Bit 1

Bit 0

RW

Bit 0

RW

Bit 0

SwivelView™ Mode Select
bits 1-0

Bit 1

Bit-per-pixel Select bits 2-0

Bit 2

Bit 2

Main Window Display Start Address bits 15-8

REG[75h] MAIN WINDOW DISPLAY START ADDRESS REGISTER 1

Bit 7

Bit 2

Main Window Display Start Address bits 7-0

n/a

Bit 0

RW

Vertical Display Period
bits 9-8

Bit 1

Bit 1

FPFRAME Pulse Width bits 2-0

Bit 2

Bit 2

Bit 2

RW

Bit 0

RW

Vertical Total bits 9-8

Bit 1

D-TFD GCP Index bits 4-0

Bit 3

Bit 3

REG[74h] MAIN WINDOW DISPLAY START ADDRESS REGISTER 0

Bit 7

Display Data Display Data
Word Swap Byte Swap

REG[71h] SPECIAL EFFECTS REGISTER 8

Dithering
Disable

Display
Blank

REG[70h] DISPLAY MODE REGISTER 7

DISPLAY MODE REGISTERS

Bit 7

REG[2Ch] D-TFD GCP DATA REGISTER

Bit 7

Bit 3

Bit 3

Bit 3

D-TFD GCP Data bits 7-0

n/a

REG[28h] D-TFD GCP INDEX REGISTER

Bit 7

Bit 2

FPFRAME Pulse Start Position bits 7-0
Bit 5

REG[27h] FPFRAME PULSE START POSITION REGISTER 1

Bit 7

REG[26h] FPFRAME PULSE START POSITION REGISTER 0

Bit 7

FPFRAME
Pulse
Polarity

REG[24h] FPFRAME PULSE WIDTH REGISTER

Bit 7

Bit 3

FPLINE Pulse Start Position bits 7-0
REG[23h] FPLINE PULSE START POSITION REGISTER 1

Bit 7

Bit 3

Bit 2

FPLINE Pulse Width bits 6-0

Bit 4

REG[22h] FPLINE PULSE START POSITION REGISTER 0

Bit 7

FPLINE
Pulse
Polarity

REG[20h] FPLINE PULSE WIDTH REGISTER

Bit 7

Bit 2

Bit 2

Bit 2

Bit 2

Vertical Display Period Start Position bits 7-0
Bit 5

REG[1Fh] VERTICAL DISPLAY PERIOD START POSITION REGISTER 1

Bit 7

REG[1Eh] VERTICAL DISPLAY PERIOD START POSITION REGISTER 0

Bit 7

n/a

Bit 3

Vertical Display Period bits 7-0
REG[1Dh] VERTICAL DISPLAY PERIOD REGISTER 1

Bit 7

Bit 3

Bit 3

Vertical Total bits 7-0

REG[1Ch] VERTICAL DISPLAY PERIOD REGISTER 0

n/a

REG[19h] VERTICAL TOTAL REGISTER 1

Bit 7

REG[18h] VERTICAL TOTAL REGISTER 0

Bit 6

Bit 5

Bit 4

Bit 3

Bit 6

Bit 4

Bit 6

Bit 5

n/a
Bit 4

Bit 3

Bit 3

Bit 6

Bit 5

Bit 4

Bit 3

Bit 6

Bit 4

Bit 3

Bit 6

Bit 5

Bit 4

n/a
Bit 3

Bit 6

Bit 4

Bit 6

Bit 5

n/a
Bit 4

Bit 6

Bit 5

Bit 3

Bit 4

Bit 6

Bit 5

n/a
Bit 4

+

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

n/a
Bit 4

+

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

n/a
Bit 4

Bit 6

Bit 5

Bit 6

Bit 5

n/a

Bit 4

Bit 4

Bit 6

Bit 7

Bit 6

REG[A1h] RESERVED

Bit 7

VNDP
Status (RO)

Bit 5

Bit 5

n/a

Bit 4

n/a

Bit 4

REG[A0h] POWER SAVE CONFIGURATION REGISTER

MISCELLANEOUS REGISTERS

Bit 7

Bit 3

Bit 3

Bit 3

Bit 3

Bit 3

Bit 3

Mem Contr
PS Status
(RO)

Bit 3

Bit 3

PIP+ Window Y End Position bits 7-0
REG[91h] PIP+ W INDOW Y END POSITION R EGISTER 1

Bit 7

REG[90h] PIP+ W INDOW Y END POSITION R EGISTER 0

Bit 7

Bit 3

Bit 3

PIP+ Window X End Position bits 7-0
REG[8Dh] PIP W INDOW X END POSITION REGISTER 1

Bit 7

REG[8Ch] PIP+ W INDOW X END POSITION REGISTER 0

Bit 7

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

PIP+ Window Y Start Position bits 7-0
REG[89h] PIP W INDOW Y START POSITION REGISTER 1

Bit 7

REG[88h] PIP+ W INDOW Y START POSITION REGISTER 0

Bit 7

Bit 3

Bit 2

PIP+ Window X Start Position bits 7-0
REG[85h] PIP+ W INDOW X START POSITION REGISTER 1

Bit 7

REG[84h] PIP+ W INDOW X START POSITION REGISTER 0

Bit 7

Bit 2

Bit 2

PIP+ Window Line Address Offset bits 7-0
Bit 5

REG[81h] PIP+ W INDOW LINE ADDRESS OFFSET REGISTER 1

Bit 7

REG[80h] PIP+ W INDOW LINE ADDRESS OFFSET REGISTER 0

Bit 7

Bit 2

PIP+ Window Display Start Address bits 15-8
Bit 5

REG[7Eh] PIP+ WINDOW DISPLAY START ADDRESS REGISTER 2

Bit 7

REG[7Dh] PIP+ W INDOW DISPLAY START ADDRESS REGISTER 1

Bit 7

Bit 2

Bit 2

PIP+ Window Display Start Address bits 7-0

REG[7Ch] PIP+ W INDOW DISPLAY START ADDRESS REGISTER 0

PICTURE-IN-PICTURE PLUS REGISTERS

Bit 7

Bit 2

Main Window Line Address Offset bits 7-0
Bit 5

REG[79h] MAIN WINDOW LINE ADDRESS OFFSET REGISTER 1

Bit 7

REG[78h] MAIN WINDOW LINE ADDRESS OFFSET REGISTER 0

Bit 7

n/a

REG[76h] MAIN WINDOW DISPLAY START ADDRESS REGISTER 2

Bit 0

RW

Bit 0

RW

RW

Bit 0

RW

Bit 0

PIP+ Window
Display Start
Address
Bit 16

RW

Bit 0

RW

Bit 0

RW

Bit 0

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 1

Bit 1

Bit 1

Bit 0

Reserved

RW

Bit 0

PS Mode
Enable

RW

Bit 0

PIP+ Window Y End
Position bits 9-8

Bit 1

Bit 1

PIP+ Window X End
Position bits 9-8

Bit 1

Bit 1

PIP+ Window Y Start
Position bits 9-8

Bit 1

Bit 1

01/01/25

n/a

Bit 0

RW

PIP+ Window X Start
Position bits 9-8

Bit 1

Bit 1

PIP+ Window Line Address
Offset bits 9-8

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

Main Window Line
Address Offset bits 9-8

Bit 1

Bit 1

Main
Window
Display Start
Address Bit
16

RW

X39A-R-001-01

Bit 6

Bit 3

Bit 6

Bit 5

Bit 6

Bit 5

Bit 3

Bit 4

Bit 3

Scratch Pad 15-8

Bit 4

Scratch Pad bits 7-0

Bit 6

Bit 7

Bit 5

GPIO5 Pin
IO Config

Bit 4

GPIO4 Pin
IO Config

Bit 3

GPIO3 Pin
IO Config

Bit 2

Bit 1

Bit 6

Bit 5

GPIO5 Pin
IO Status

Bit 4

GPIO4 Pin
IO Status

Bit 3

GPIO3 Pin
IO Status

Bit 2

Bit 6

n/a

Bit 5

Bit 4

PWM Clock
Enable

Bit 3

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 6

Bit 5

Bit 6

Bit 5

Bit 6

Bit 5

Bit 6

Bit 5

Bit 4

Bit 4

Bit 4

Page 2

Bit 7

Bit 6

Bit 5

n/a

n/a

Bit 4

Bit 4

REG[C5h] EXTENDED PANEL TYPE REGISTER

Bit 7

REG[C4h] MEMORY ACCESS START

Bit 7

Bit 4

Bit 3

Bit 3

n/a

Bit 3

Bit 3

Bit 3

Bit 3

Memory Access Pointer bits 15-8

REG[C2h] MEMORY ACCESS POINTER 2

Bit 7

Bit 3

Memory Access Pointer bits 7-0

REG[C1h] MEMORY ACCESS POINTER 1

Bit 7

REG[C0h] MEMORY ACCESS POINTER 0

EXTENDED REGISTERS

Bit 7

Bit 3

PWMOUT Duty Cycle bits 7-0

REG[B3h] PWMOUT DUTY CYCLE R EGISTER 11

Bit 7

Bit 1

CV Pulse
Burst Start

Bit 1

Bit 1

GPIO1 Pin
IO Status

Bit 1

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 0

RW

Bit 0

RW

Bit 0

Memory
Access
Pointer
bit 16

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

PWMCLK
Source
Select

RW

Bit 0

CV Pulse
Enable

RW

Bit 0

RW

Bit 0

GPIO0 Pin
IO Status

RW

Bit 0

RW

Bit 0

GPIO0 Pin
IO Config

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 1

Bit 0

Extended Panel Type
bits 1-0

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

CV Pulse Divide Select bits 2-0

CV Pulse Burst Length bits 7-0

REG[B2h] CV PULSE BURST LENGTH REGISTER

Bit 7

PWM Clock Divide Select bits 3-0

Bit 2

CV Pulse
CV Pulse
Burst Status
Force High
(RO)

REG[B1h] PWM CLOCK / CV PULSE C ONFIGURATION REGISTER 9,10

Bit 7

PWM Clock
Force High

REG[B0h] PWM CLOCK / CV PULSE C ONTROL R EGISTER

PWM CLOCK AND CV PULSE CONFIGURATION REGISTERS

Bit 3

Bit 4

Reserved

Bit 5

Bit 7

Bit 6

GPO Control

Bit 2

GPIO2 Pin
IO Status

REG[ADh] GENERAL PURPOSE IO PINS STATUS/CONTROL REGISTER 1

GPIO6 Pin
IO Status

n/a

Bit 7

Bit 2

Bit 1

Bit 2

Bit 1

Bit 1

Bit 1

GPIO1 Pin
IO Config

Bit 2

Bit 2

Bit 2

GPIO2 Pin
IO Config

REG[ACh] GENERAL PURPOSE IO PINS STATUS/CONTROL REGISTER 0

Bit 3

Bit 4

Reserved

Bit 5

Bit 7

Bit 6

GPIO Pin
Input Enable

REG[A9h] GENERAL PURPOSE IO PINS CONFIGURATION REGISTER 1

GPIO6 Pin
IO Config

n/a

REG[A8h] GENERAL PURPOSE IO PINS CONFIGURATION REGISTER 0

GENERAL IO PINS REGISTERS

Bit 7

REG[A5h] SCRATCH PAD REGISTER 1

Bit 7

REG[A4h] SCRATCH PAD REGISTER 0

n/a

Bit 4

Bit 3

Bit 5

Bit 4

Bit 7

Bit 6

Bit 5

Reserved

REG[A3h] RESERVED

Bit 7

Software
Reset (WO)

Reserved

n/a

RW

REG[A2h] SOFTWARE R ESET REGISTER

S1D13708 Register Summary

Bit 6

Bit 5

Bit 6

Bit 5

Bit 6

Bit 5

Bit 6

Bit 5

Bit 4

Bit 4

Bit 4

Bit 6

Bit 5

Bit 4

OSCP Enable bits 1-0

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 6

Bit 7

Bit 5

Bit 3

Bit 3

Bit 3

Bit 3

Bit 4

Bit 4

AP Pulse Width bits 2-0
Bit 3

Bit 3

Bit 6

Bit 7

Bit 5

XOHV
Control
Bit 4

XRESV
Control
Bit 3

XRESH
Control

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 4

Bit 3

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 4

Bit 3

Bit 6

Bit 5

Bit 4

Bit 3

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 2

Bit 6

Bit 5

Bit 4

Bit 7

Bit 6

Bit 5

Bit 4

PCLK2 Divide Rate
bits 1-0
Bit 3

Bit 3

Bit 2

Bit 7

Bit 6

n/a
Bit 5

Bit 4

Bit 3

Partial Mode Parial Mode
Display
Display
Enable
Type Select

Bit 2

Area 2
Display
Enable

RW

Bit 0

Data
Compare
Invert
Enable

RW

Bit 0

BCLK
Source
Select

RW

Bit 0

Ink Layer
Enable

RW

Bit 0

RW

Bit 0

RW

Bit 0

Memory
Access
Select

RW

Bit 0

RW

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

PCLK1
Enable

Bit 1

Bit 1

Area 1
Display
Enable

Bit 1

Bit 0

Area 0
Display
Enable

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

n/a

RW

Bit 0

AP Rising Position bits 1-0

Bit 1

VCLK Setup bits 1-0

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

Bit 1

PCLK1 Divide Rate bits 3-0

Bit 2

REG[E0h] TFT TYPE 3 PARTIAL MODE DISPLAY AREA CONTROL REGISTER

n/a

REG[DCh] TFT TYPE 3 PCLK DIVIDE REGISTER

Bit 7

XOEV Falling Edge Position bits 7-0

REG[DBh] TFT TYPE 3 XOEV GPIO5 FALLING EDGE POSITION REGISTER

Bit 7

Bit 2

n/a

Bit 2

n/a

Bit 2

Bit 2

n/a

Bit 2

Bit 2

Bit 2

Bit 2

PCLK2
Enable

XOEV Rising Edge Position bits 7-0

REG[DAh] TFT TYPE 3 XOEV RISING EDGE POSITION REGISTER

Bit 7

Bit 3

CPV Pulse Width bits 7-0

REG[D9h] TFT TYPE 3 CPV PULSE W IDTH REGISTER

Bit 7

VCOM Toggle Position bits 7-0

REG[D8h] TFT TYPE 3 VCOM TOGGLE POSITION REGISTER

Bit 7

Bit 3

POL Toggle Position bits 7-0

REG[D7h] TFT TYPE 3 POL TOGGLE POSITION REGISTER

Bit 7

Bit 3

OE Pulse Width bits 7-0

REG[D6h] TFT TYPE 3 OE PULSE WIDTH REGISTER

Bit 7

OE Rising Edge Position bits 7-0

REG[D5h] TFT TYPE 3 OE RISING EDGE POSITION REGISTER

XSTBY
Control

PDME
Control

REG[D4h] TFT TYPE 3 CONTROL SIGNAL ENABLE REGISTER

n/a

POL Type

Bit 3

VCLK Hold bits 1-0

REG[D1h] TFT TYPE 2 AP C ONFIGURATION REGISTER

Bit 7

n/a

REG[D0h] TFT TYPE 2 VCLK CONFIGURATION REGISTER

Bit 7

n/a

REG[CBh] TFT DATA COMPARE INVERT ENABLE REGISTER

Bit 7

n/a

REG[CAh] OSCP C ONFIGURATION REGISTER

Bit 7

REG[C9h] INK LAYER REGISTER

Bit 7

Bit 3

Ink Transparent bits 15-8

REG[C8h] INK TRANSPARENT REGISTER 1

Bit 7

Bit 4

Ink Transparent bits 7-0

REG[C7h] INK TRANSPARENT REGISTER 0

Bit 7

n/a

REG[C6h] MEMORY ACCESS SELECT REGISTER
Bit 7

Bit 6

Bit 5

Bit 4

Bit 3

n/a
Bit 6

Bit 5

Bit 3

n/a
Bit 6

Bit 5

Bit 3

n/a
Bit 6

Bit 5

Bit 4

Bit 3

n/a
Bit 6

Bit 5

Bit 4

Bit 3

n/a
Bit 6

Bit 5

Bit 3

n/a
Bit 6

Bit 5

Bit 3

n/a
Bit 6

Bit 5

Bit 4

Bit 3

n/a
Bit 6

Bit 5

Bit 4

Bit 3

n/a
Bit 6

Bit 5

Bit 3

n/a
Bit 6

Bit 5

Bit 3

n/a
Bit 6

Bit 5

Bit 4

n/a
Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

Bit 3

Bit 4

Bit 6

n/a
Bit 5

Bit 4

Bit 6

Bit 5

Bit 4

Bit 6

n/a
Bit 5

Bit 4

Bit 3

Bit 3

Bit 6

Bit 5

Bit 4

Bit 6

Bit 5

n/a

Bit 1

Bit 1

Bit 1

Bit 2

Bit 1

Bit 4

Bit 2

Bit 2

Bit 3

Bit 3

Bit 1

Bit 1

Bit 1

Bit 1

Bit 2

Bit 2

Bit 2

Bit 0

RW

Bit 0

Command
Send
Request

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 0

RW

Bit 1

Bit 0

Source Driver IC Number
bits 1-0

Bit 1

Bit 1

Command 1 Store bits 11-8

Bit 2

Bit 2

Command 0 Store bits 11-8

Bit 2

Bit 2

Bit 1

Bit 1

Bit 0

RW

MCLK Divide Select Bits
00
01
10
11

2 REG[04h] Memory Clock Configuration Register

01/01/25

BCLK to MCLK Frequency Ratio
1:1
2:1
3:1
4:1

1 REG[00h] These bits are used to identify the SED13708. For the SED13708, the product code should be
001101.

Notes

Bit 7

REG[F5h] SOURCE DRIVER IC NUMBER REGISTER

Bit 7

n/a

REG[F4h] TFT TYPE 3 COMMAND SEND REQUEST REGISTER

Bit 7

Bit 3

Bit 3

Command 1 Store bits 7-0
REG[F3h] TFT TYPE 3 COMMAND 1 STORE REGISTER 1

Bit 7

REG[F2h] TFT TYPE 3 COMMAND 1 STORE REGISTER 0

Bit 7

Bit 3

Command 0 Store bits 7-0
REG[F1h] TFT TYPE 3 COMMAND 0 STORE REGISTER 1

Bit 7

Bit 2

Partial Area 2 Y End Position bits 5-0
REG[F0h] TFT TYPE 3 COMMAND 0 STORE REGISTER 0

Bit 7

Bit 2

Partial Area 2 X End Position bits 5-0
REG[EDh] TFT TYPE 3 PARTIAL AREA 2 Y END POSITION REGISTER

Bit 7

Bit 1

Partial Area 2 Y Start Position bits 5-0
Bit 4

REG[ECh] TFT TYPE 3 PARTIAL AREA 2 X END POSITION REGISTER

Bit 7

Bit 1

Partial Area 2 X Start Position bits 5-0
Bit 4

REG[EBh] TFT TYPE 3 PARTIAL AREA 2 Y START POSITION REGISTER

Bit 7

Bit 2

Partial Area 1 Y End Position bits 5-0

REG[EAh] TFT TYPE 3 PARTIAL AREA 2 X START POSITION REGISTER

Bit 7

Bit 2

Partial Area 1 X End Position bits 5-0

REG[E9h] TFT TYPE 3 PARTIAL AREA 1 Y END POSITION REGISTER

Bit 7

Bit 2

Bit 1

Bit 1

Partial Area 1 Y Start Position bits 5-0
Bit 4

REG[E8h] TFT TYPE 3 PARTIAL AREA 1 X END POSITION REGISTER

Bit 7

Bit 1

Partial Area 1 X Start Position bits 5-0
Bit 4

REG[E7h] TFT TYPE 3 PARTIAL AREA 1 Y START POSITION REGISTER

Bit 7

Bit 2

Partial Area 0 Y End Position bits 5-0

REG[E6h] TFT TYPE 3 PARTIAL AREA 1 X START POSITION REGISTER

Bit 7

Bit 2

Partial Area 0 X End Position bits 5-0

REG[E5h] TFT TYPE 3 PARTIAL AREA 0 Y END POSITION REGISTER

Bit 7

Bit 2

Partial Area 0 Y Start Position bits 5-0
Bit 4

REG[E4h] TFT TYPE 3 PARTIAL AREA 0 X END POSITION REGISTER

Bit 7

Bit 1

Partial Area 0 X Start Position bits 5-0
Bit 4

REG[E3h] TFT TYPE 3 PARTIAL AREA 0 Y START POSITION REGISTER

Bit 7

Bit 2

Partial Mode Display Refresh Cycle bits 5-0

REG[E2h] TFT TYPE 3 PARTIAL AREA 0 X START POSITION REGISTER

n/a

RW

X39A-R-001-01
REG[E1h] TFT TYPE 3 PARTIAL MODE D ISPLAY REFRESH CYCLE REGISTER

1 bpp
2 bpp
4 bpp
8 bpp
16 bpp
Reserved

000
001
010
011
100
101, 110, 111

Page 3

SwivelViewTM Mode Select Bits
00
01
10
11

8 REG[71h] Special Effects Register

Color Depth (bpp)

Bit-per-pixel
Select Bits [1:0]

256K/64
256K/64
256K/64
256K/64
64K/64
n/a

256K/64
256K/64
256K/64
256K/64
64K/64
n/a

TFT Panel

SwivelViewTM Orientation
Normal
90°
180°
270°

Passive Panel
(Dithering On)

Maximum Number of Colors/Shades

Panel Type
STN
TFT
HR-TFT
D-TFD

Max. No. Of
Simultaneously
Displayed Colors/
Shades
2/2
4/4
16/16
256/64
64K/64
n/a

9-bit
12-bit
18-bit
Reserved

Active Panel Data Width Size

PCLK Source
MCLK
BCLK
CLKI
CLKI2

Passive LCD Panel Data Width
Size
4-bit
8-bit
16-bit
Reserved

7 REG[70h] Display Mode Register

REG[10h] Bits[1:0]
00
01
10
11

6 REG[10h] Panel Type Register

00
01
10
11

Panel Data Width Bits [1:0]

5 REG[10h] Panel Type Register

PCLK Source Select Bits
00
01
10
11

4 REG[05h] Pixel Clock Configuration Register

PCLK Divide Select Bits
000
001
010
011
1XX

PCLK Source to PCLK Frequency Ratio
1:1
2:1
3:1
4:1
8:1

S1D13708 Register Summary

3 REG[05h] Pixel Clock Configuration Register

PWMOUT Duty Cycle [7:0]
00h
01h
02h
...
FFh

11 REG[B3h] PWMOUT Duty Cycle Register

CV Pulse Divide Select Bits [2:0]
0h
1h
2h
3h
...
7h

PWMOUT Duty Cycle
Always Low
High for 1 out of 256 clock periods
High for 2 out of 256 clock periods
...
High for 255 out of 256 clock periods

CV Pulse Divide Amount
1
2
4
8
...
128

PWM Clock Divide Amount
1
2
4
8
...
4096
Reserved

10 REG[B1h] PWM Clock / CV Pulse Configuration Register

PWM Clock Divide Select Bits [3:0]
0h
1h
2h
3h
...
Ch
Dh-Fh

9 REG[B1h] PWM Clock / CV Pulse Configuration Register

01/01/25

X39A-R-001-01

Page 4

S1D13708 Register Summary

01/01/25

X39A-R-001-01

S1D13708 Embedded Memory LCD Controller

13708CFG Configuration Program
Document Number: X39A-B-001-01

Copyright © 2001 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. Microsoft and Windows are registered trademarks of Microsoft Corporation.
All other trademarks are the property of their respective owners.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-B-001-01

13708CFG Configuration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
13708CFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5

S1D13708 Supported Evaluation Platforms
Installation . . . . . . . . . . . . .
Usage . . . . . . . . . . . . . . .
13708CFG Configuration Tabs . . . . .
General Tab . . . . . . . . . . . . . .
Preferences Tab . . . . . . . . . . . .
Clocks Tab . . . . . . . . . . . . . . .
Panel Tab . . . . . . . . . . . . . . . .
Panel Power Tab . . . . . . . . . . . .
Registers Tab . . . . . . . . . . . . . .
13708CFG Menus . . . . . . . . . .
Open... . . . . . . . . . . . . . . . . .
Save . . . . . . . . . . . . . . . . . .
Save As... . . . . . . . . . . . . . . . .
Configure Multiple . . . . . . . . . . .
Export . . . . . . . . . . . . . . . . .
Enable Tooltips . . . . . . . . . . . .
ERD on the Web . . . . . . . . . . . .
About 13708CFG . . . . . . . . . . .
Comments . . . . . . . . . . . . .

13708CFG Configuration Program
Issue Date: 01/11/16

. .
. .
. .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. .

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

. .
. .
. .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. .

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

. .
. .
. .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. .

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

. .
. .
. .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. .

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

. .
. .
. .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. .

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

. .
. .
. .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. .

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

. .
. .
. .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. . .
. .

.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.

.5
.5
.5
.6
.6
. 8
. 9
14
18
19
20
20
21
21
21
23
24
24
24
24

S1D13708
X39A-B-001-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-B-001-01

13708CFG Configuration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 5

13708CFG
13708CFG is an interactive Windows® 9x/ME/NT/2000 program that calculates register
values for a user-defined S1D13708 configuration. The configuration information can be
used to directly alter the operating characteristics of the S1D13708 utilities or any program
built with the Hardware Abstraction Layer (HAL) library. Alternatively, the configuration
information can be saved in a variety of text file formats for use in other applications.

S1D13708 Supported Evaluation Platforms
13708CFG runs on PC system running Windows 9x/ME/NT/2000 and can modify
Win32.exe files and .s9 format files.

Installation
Create a directory for 13708cfg.exe and copy the files 13708cfg.exe and panels.def to that
directory. Panels.def contains configuration information for a number of panels and must
reside in the same directory as 13708cfg.exe.

Usage
To start 13708CFG from the Windows desktop, double click the program icon.
To start 13708CFG from a Windows command prompt, change to the directory
13708cfg.exe was installed to and type the command 13708cfg.
The basic procedure for using 13708CFG is:
1. Start 13708CFG as described above.
2. Open an existing file to serve as a starting reference point (this step is optional).
3. Modify the configuration. For specific information on editing the configuration, see
“13708CFG Configuration Tabs” on page 6.
4. Save the new configuration. The configuration information can be saved in two ways;
as an ASCII text file or by modifying the executable image on disk.
Several ASCII text file formats are supported. Most are formatted C header files used
to build display drivers or standalone applications.
Utility files based on the Hardware Abstraction Layer (HAL) can be modified directly
by 13708CFG.

13708CFG Configuration Program
Issue Date: 01/11/16

S1D13708
X39A-B-001-01

Page 6

Epson Research and Development
Vancouver Design Center

13708CFG Configuration Tabs
13708CFG provides a series of tabs which can be selected at the top of the main window.
Each tab allows the configuration of a specific aspect of S1D13708 operation. The
following sections describe the purpose and use of each of the tabs.

General Tab

Decode Addresses

Register Address

Display Buffer Address

Indirect Interface
Clock Chip Support

The General tab contains settings that define the S1D13708 operating environment.
Decode Addresses

S1D13708
X39A-B-001-01

Selecting one of the listed evaluation platforms changes
the values for the “Register address” and “Display
buffer address” fields. The values used for each evaluation platform are examples of possible implementations as used by the Epson S1D13708 evaluation board.
If your hardware implementation differs from the
addresses used, select the User-Defined option and
enter the correct addresses for “Register address” and
“Display buffer address”.

13708CFG Configuration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 7

Note

When “Epson S5U13708B00B” is selected, the register and display buffer addresses are
blanked because the evaluation board uses the PCI interface and the decode addresses
are determined by the system BIOS during boot-up.
When “Epson Evaluation Board” is selected, the register and display buffer addresses
are blanked because the evaluation board communicates via the serial port.
Register Address

The physical address of the start of register decode
space (in hexadecimal).
This field is automatically set according to the Decode
Address unless the “User-Defined” decode address is
selected.

Display Buffer Address

The physical address of the start of display buffer
decode space (in hexadecimal).
This field is automatically set according to the Decode
Address unless the “User-Defined” decode address is
selected.

Indirect Interface

This setting selects software support for the S1D13708
Indirect Bus Interface.

Clock Chip Support

The S5U13708B00B evaluation board implements a
Cypress ICD2061A Clock Synthesizer which can be
used to generate CLKI and CLKI2. When this box is
checked, GPIO[3:1] are reserved for Clock Synthesizer
support. Selecting a HR-TFT panel will disable this
feature as the HR-TFT requires GPIO[3:0]. Note that
this feature is only available when using the
S5U13708B00B.

13708CFG Configuration Program
Issue Date: 01/11/16

S1D13708
X39A-B-001-01

Page 8

Epson Research and Development
Vancouver Design Center

Preferences Tab

Panel SwivelView
Panel Color Depth

S/W Invert Enable

H/W Invert Enable

The Preference tab contains settings pertaining to the initial display state. During runtime
these settings may be changed.
Panel SwivelView

The S1D13708 SwivelView feature is capable of
rotating the image displayed 90°, 180°, or 270° in a
counter-clockwise direction. This setting determines
the initial orientation of the panel.

Panel Invert

The S1D13708 can invert the display data going to the
LCD panel. The display data is inverted after the LookUp Table, which means colors are truly inverted.

S/W Invert Enable

The Video Invert feature can be controlled by software
using REG[70h] bit 4. When this box is checked, the
Software Video Invert bit is set to one and video data is
inverted. If the box is unchecked, the bit is set to zero
and video data remains normal.

H/W Invert Enable

The Video Invert feature can be controlled by hardware
if the GPIO0 is available. Hardware control is not
possible if an HR-TFT or D-TFD panel is used as both
panels use GPIO0 as an LCD control signal.

Color Depth

S1D13708
X39A-B-001-01

Sets the initial color depth on the LCD panel.

13708CFG Configuration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 9

Clocks Tab
PCLK Source

PCLK Divide

PWMCLK Enable
PWMCLK
Force High
CLKI

PWMCLK Source
PWMCLK Divide

CLKI2

PWMCLK
Duty Cycle
CV Pulse Enable
BCLK Source
CV Pulse
Force High
XTAL Timing
CV Pulse Divide
BCLK Divide
CV Pulse
Burst Length

MCLK Source

MCLK Divide

The Clocks tab simplifies the selection of input clock frequencies and the sources of
internal clocking signals. For further information regarding clocking and clock sources,
refer to the S1D13708 Hardware Functional Specification, document number X39A-A001-xx.
It is the responsibility of the system designer to ensure that the correct clock frequencies
are supplied to the S1D13708.
Note

Changing clock values may modify or invalidate Panel settings. Confirm all settings on
the Panel tab after modifying any clock settings.

13708CFG Configuration Program
Issue Date: 01/11/16

S1D13708
X39A-B-001-01

Page 10

Epson Research and Development
Vancouver Design Center

The S1D13708 may use one or two clock sources. Two clock sources allow greater flexibility in display type and memory speed.
CLKI

This setting determines the frequency of CLKI.

Timing

Set this value by selecting a preset frequency from the
drop down list or entering the desired frequency (MHz)
in the edit box.

Actual

This field displays the actual value of the CLKI
frequency. If “Enable clock chip support” is selected on
the General Tab, then this value may differ slightly
from the value entered in the timing control.

CLKI2

This setting determines the frequency of CLKI2.

Timing

Set this value by selecting a preset frequency from the
drop down list or entering the desired frequency (MHz)
in the edit box.

Actual

This field displays the actual value of the CLKI2
frequency. If “Enable clock chip support” is selected on
the General Tab, then this value may differ slightly
from the value entered in the timing control.

XTAL

Timing

PCLK

These settings select the clock frequency for the Crystal
Oscillator Input (XTAL).
This field selects the actual XTAL frequency used by
the configuration process.
These settings select the clock signal source and divisor
for the pixel clock (PCLK).

Source

Selects the PCLK source. Possible sources include
CLKI, CLKI2, BCLK, MCLK or XTAL. Note that
BCLK and MCLK may be previously divided from
CLKI or CLKI2.

Divide

Specifies the divide ratio for the clock source. The
divide ratio is applied to the PCLK source to derive
PCLK.
Selecting “Auto” for the divisor allows the configuration program to calculate the best clock divisor.
Unless a very specific clocking is being specified, it is
best to leave this setting on “Auto”.

S1D13708
X39A-B-001-01

13708CFG Configuration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 11

Timing

BCLK

This field shows the actual PCLK used by the configuration process.
These settings select the clock source and divisor for the
internal bus interface clock (BCLK).

Source

Selects the BCLK source. Possible sources include
CLKI and XTAL. Note that XTAL can be selected only
when the indirect interface is enabled.

Divide

Specifies the divide ratio for the clock source. The
divide ratio is applied to the BCLK source to derive
BCLK.

Timing

This field shows the actual BCLK frequency used by
the configuration process.

MCLK

These settings select the clock source and input clock
divisor for the internal memory clock (MCLK). For the
best performance, MCLK should be set as close to the
maximum (50 MHz) as possible.

Source

The MCLK source is always BCLK.

Divide

Specifies the divide ratio for the clock source. The
divide ratio is applied to the MCLK source to derive
MCLK.
This divide ratio should be left at 1:1 unless the
resultant MCLK is greater that 50MHz.

Timing

13708CFG Configuration Program
Issue Date: 01/11/16

This field shows the actual MCLK frequency used by
the configuration process.

S1D13708
X39A-B-001-01

Page 12

Epson Research and Development
Vancouver Design Center

PWMCLK

These controls configure various PWMCLK settings.
The PWMCLK is the internal clock used by the Pulse
Width Modulator for output to the panel.

Enable

When this box is checked, the PWMCLK circuitry is
enabled.

Force High

The signal PWMOUT is forced high when this box is
checked. When not checked, PWMOUT will be low if
PWM is not enabled or will change state according to
the configured values when PWM is enabled.

Source

Selects the PWMCLK source. Possible sources include
CLKI, CLKI2 and XTAL. Note that CLKI2 is available
for a PWMCLK source clock if PCLK does not use
XTAL. Also note that XTAL is available for a
PWMCLK source clock if PCLK does not use CLKI2.

Divide

Specifies the divide ratio for the clock source. The
divide ratio is applied to the PWMCLK source to derive
PWMCLK.
Note
After this divide is applied, PWMCLK is further
divided by 256 to achieve the final PWMCLK
frequency.

Timing

This field shows the actual PWMCLK frequency used
by the configuration process.

Duty Cycle

Selects the number of cycles that PWMOUT is high out
of 256 clock periods.

Contrast Voltage Pulse

S1D13708
X39A-B-001-01

These controls configure various Contrast Voltage
(CV) Pulse settings. The CV Pulse is provided for
panels which support the contrast voltage function.

Enable

When this box is checked, the CV Pulse circuitry is
enabled.

Force High

The signal CVOUT is forced high when this box is
checked. When not checked, CVOUT will be low if CV
is not enabled or will change state according to the
configured values when CV is enabled.

Source

The CV Pulse uses the same source clock as the
PWMCLK.

13708CFG Configuration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

13708CFG Configuration Program
Issue Date: 01/11/16

Page 13

Divide

Specifies the divide ratio for the clock source. The
divide ratio is applied to the CVOUT Pulse clock source
to derive the CV Pulse clock frequency.

Timing

This field shows the actual CV Pulse frequency used by
the configuration process.

Burst Length

The number of pulses generated in a single CV Pulse
burst.

S1D13708
X39A-B-001-01

Page 14

Epson Research and Development
Vancouver Design Center

Panel Tab
Panel Data Width

Mono/Color

Format 2

FPLINE
Polarity

FPFRAME
Polarity

Panel Dimensions

Panel Type

Display Total

Frame Rate
Pixel Clock

HRTC/FPLINE

Predefined
Panels

Display Start

VRTC/FPFRAME

The S1D13708 supports many panel types. This tab allows configuration of most panel
related settings such as dimensions, type and timings.
Panel Type

Selects between passive (STN) and active (TFT/DTFD/HR-TFT) panel types.
Some options may change or become unavailable when
the STN/TFT/D-TFD/HR-TFT setting is changed.
Reconfirm all settings on this tab after the Panel Type is
changed.

Panel Data Width

Selects the panel data width. Panel data width is the
number of bits of data transferred to the LCD panel on
each clock cycle and shouldn’t be confused with color
depth which determines the number of displayed colors.
When a passive panel type (STN) is selected, the

S1D13708
X39A-B-001-01

13708CFG Configuration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 15

available options are 4, 8, and 16 bit. When an active
panel type (TFT/D-TFD/HR-TFT) is selected, the
available options are 9, 12, and 18 bit.
Mono / Color

Selects between a monochrome or color panel.

Format 2

Selects color STN panel format 2. This option only
applies to 8-bit color STN panels.
See the S1D13708 Hardware Functional Specification,
document number X39A-A-001-xx, for a description of
format 1 / format 2 data formats. Most new panels use
the format 2 data format.

Polarity

Allows selection of the polarity for the FPLINE and
FPFRAME pulses.
Note
Selecting the wrong pulse polarity may damage
the panel.

FPLINE Polarity

Selects the polarity of the FPLINE pulse.
Refer to the panel specification for the correct polarity
of the FPLINE pulse.

FPFRAME Polarity

Selects the polarity of the FPFRAME pulse.
Refer to the panel specification for the correct polarity
of the FPFRAME pulse.

Panel Dimensions

These fields specify the panel width and height. A
number of common widths and heights are available in
the selection boxes. If the width/height of your panel is
not listed, enter the actual panel dimensions into the edit
field.
For passive panels, manually entered pixel widths must
be a minimum of 32 pixels and can be increased by
multiples of 16. For TFT panels, manually entered pixel
widths must be a minimum of 16 pixels and can be
increased by multiples of 8. If a value is entered that
does not match these requirements, a notification box
appears and 13708CFG rounds up the value to the next
allowable width.

Display Total

13708CFG Configuration Program
Issue Date: 01/11/16

It is recommended that the automatically generated
Display Total values be used. However, manual
adjustment may be used to improve the quality of the

S1D13708
X39A-B-001-01

Page 16

Epson Research and Development
Vancouver Design Center

displayed image by fine tuning the horizontal and
vertical display totals.
The display total equals the display period plus the nondisplay period. Refer to S1D13708 Hardware
Functional Specification, document number X39A-A001-xx, for a complete description of the Display Total
settings.
Display Start

It is recommended that the automatically generated
Display Start values be used. However, manual
adjustment may be used to improve the quality of the
displayed image by fine tuning the horizontal and
vertical display start positions.
Refer to S1D13708 Hardware Functional Specification, document number X39A-A-001-xx, for a
complete description of the Display Start settings.

Frame Rate

The Frame Rate (in Hz) is calculated and displayed
based on the current settings as selected on the various
tabs. If the resulting Frame Rate is not acceptable,
adjust the settings to change the frame rate.
Panel dimensions are fixed therefore frame rate can
only be adjusted by changing either PCLK or display
total values.

S1D13708
X39A-B-001-01

Pixel Clock

Select the desired Pixel Clock (in MHz) from the dropdown list. The range of frequencies displayed is
dependent on the PCLK source and divide settings as
selected on the Clocks tab.

HRTC/FPLINE (pixels)

These settings allow fine tuning of the TFT line pulse
parameters. Refer to S1D13708 Hardware Functional
Specification, document number X39A-A-001-xx for a
complete description of the FPLINE pulse settings.

Start pos

Specifies the delay (in pixels) from the start of the
horizontal non-display period to the leading edge of the
FPLINE pulse.

Pulse Width

Specifies the width (in pixels) of the horizontal sync
signal (FPLINE).

13708CFG Configuration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 17

VRTC/FPFRAME (lines)

These settings allow fine tuning of the frame pulse
parameters. Refer to S1D13708 Hardware Functional
Specification, document number X39A-A-001-xx, for a
complete description of the FPFRAME pulse settings.

Start pos

Specifies the delay (in lines) from the start of the
vertical non-display period to the leading edge of the
FPFRAME pulse.

Pulse width

Specifies the pulse width (in lines) of the vertical sync
signal (FPFRAME).

Predefined Panels

13708CFG uses a file (panels.def) which contains
predefined settings for a number of LCD panels. If the
file panels.def is present in the same directory as
13708cfg.exe, the predefined panels are available in the
drop-down list. If a panel is selected from the list,
13708CFG loads the settings contained in the file.

13708CFG Configuration Program
Issue Date: 01/11/16

S1D13708
X39A-B-001-01

Page 18

Epson Research and Development
Vancouver Design Center

Panel Power Tab

Power Down
Time Delay

Power Up
Time Delay

The S5U13708B00B evaluation board is designed to use the GPO0 signal to control the
LCD bias power. The following settings configure panel power support.
Power Down Time Delay

This setting controls the minimum time delay between
when the LCD panel is powered-off and when the
S1D13708 control signals are turned off. This setting
must be configured according to the specification for
the panel being used.
This value is used by Epson evaluation software
designed for the S5U13708B00B evaluation board.

Power Up Time Delay

This setting controls the maximum time delay between
when the S1D13708 control signals are turned on and
the LCD panel is powered-on. This setting must be
configured according to the specification for the panel
being used.
This value is used by Epson evaluation software
designed for the S5U13708B00B evaluation board.

S1D13708
X39A-B-001-01

13708CFG Configuration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 19

Registers Tab

The Registers tab allows viewing and direct editing the S1D13708 register values.
Scroll up and down the list to view register values which are determined from the configuration settings of the previous tabs. Register settings may be changed by double-clicking on
the register in the listing. Manual changes to the registers are not checked for errors, so
caution is warranted when directly editing these values. It is strongly recommended that
the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx be
referred to before making any manual register settings.
Note

Manually entered values may be changed by 13708CFG if further configuration changes
are made on other tabs. In this case, the user is notified.

13708CFG Configuration Program
Issue Date: 01/11/16

S1D13708
X39A-B-001-01

Page 20

Epson Research and Development
Vancouver Design Center

13708CFG Menus
The following sections describe each of the options in the File and Help menus.

Open...
From the Menu Bar, select “File”, then “Open...” to display the Open File Dialog Box.

The Open option allows 13708CFG to read the configuration information from programs
based on the HAL library. When 13708CFG opens a file it scans the file for an identification string, and if found, reads the configuration information. This feature may be used
to quickly arrive at a starting point for register configuration. The only requirement is that
the file being opened must contain a valid S1D13708 HAL library information block.
13708CFG supports a variety of executable file formats. Select the file type(s) 13708CFG
should display in the Files of Type drop-down list and then select the filename from the list
and click on the Open button.
Note

13708CFG is designed to work with utilities programmed using a given version of the
HAL. If the configuration structure contained in the executable file differs from the version 13708CFG expects the Open will fail and an error message is displayed. This may
happen if the version of 13708CFG is substantially older, or newer, than the file being
opened.

S1D13708
X39A-B-001-01

13708CFG Configuration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 21

Save
From the Menu Bar, select “File”, then “Save” to initiate the save action. The Save menu
option allows a fast save of the configuration information to a file that was opened with the
Open menu option.
Note

This option is only available once a file has been opened.

Save As...
From the Menu Bar, select “File”, then “Save As...” to display the Save As Dialog Box.

“Save as” is very similar to Save except a dialog box is displayed allowing the user to name
the file before saving.
Using this technique a tester can configure a number of files differing only in configuration
information and name (e.g. BMP60Hz.EXE, BMP72Hz.EXE, BMP75Hz.EXE where only
the frame rate changes in each of these files).
Note

When “Save As” is selected then an exact duplicate of the file as opened by the “Open”
option is created containing the new configuration information.

Configure Multiple
After determining the desired configuration, “Configure Multiple” allows the information
to be saved into one or more executable files built with the HAL library.

13708CFG Configuration Program
Issue Date: 01/11/16

S1D13708
X39A-B-001-01

Page 22

Epson Research and Development
Vancouver Design Center

From the Menu Bar, select “File”, then “Configure Multiple” to display the Configure
Multiple Dialog Box. This dialog box is also displayed when a file(s) is dragged onto the
13708CFG window.

The left pane lists files available for configuration; the right pane lists files that have been
selected for configuration. Files can be selected by clicking the “Add” or “Add All”
buttons, double clicking any file in the left pane, or by dragging the file(s) from Windows
Explorer.
Selecting “Show all files” displays all files in the selected directory, whereas selecting
“Show conf. files only” will display only files that can be configured using 13708CFG (i.e.
.exe, .elf, .s9, .s19, .idp, .lvb).
Checking “Preserve Physical Addresses” instructs 13708CFG to use the register and
display buffer address values the files were previously configured with. Addresses
specified in the General Tab are discarded. This is useful when configuring several
programs for various hardware platforms at the same time. For example, if configuring PCI
and S19 files at the same time for a new panel type, the physical addresses for each are
retained. This feature is primarily intended for the test lab where multiple hardware configurations exist and are being tested.

S1D13708
X39A-B-001-01

13708CFG Configuration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 23

Export
After determining the desired configuration, “Export” permits the user to save the register
information as a variety of ASCII text file formats. The following is a list and description
of the currently supported output formats:
• a C header file for use in writing HAL library based applications.
• a C header file which lists each register and the value it should be set to.
• a C header file for use in developing Window CE display drivers.
• a C header file for use in developing display drivers for other operating systems such as
Linux, QNX, and VxWorks UGL or WindML.
• a comma delimited text file containing an offset, a value, and a description for each
S1D13708 register.

After selecting the file format, click the “Export As..." button to display the file dialog box
which allows the user to enter a filename before saving. Clicking the “Preview” button uses
Notepad or the web browser to display a copy of the file to be saved.
When the C Header File for S1D13708 WinCE Drivers option is selected as the export
type, additional options are available and can be selected by clicking on the Options button.
The options dialog appears as:

Mode Number
selects the mode number for
use in the header file
Cursor Support
selects the type of cursor support
enabled in the header file

SW Blit Emulation
enables software BitBLT emulation
in the header file

13708CFG Configuration Program
Issue Date: 01/11/16

S1D13708
X39A-B-001-01

Page 24

Epson Research and Development
Vancouver Design Center

Enable Tooltips
Tooltips provide useful information about many of the items on the configuration tabs.
Placing the mouse pointer over nearly any item on any tab generates a popup window
containing helpful advice and hints.
To enable/disable tooltips check/uncheck the “Tooltips” option form the “Help” menu.
Note

Tooltips are enabled by default.

ERD on the Web
This “Help” menu item is actually a hotlink to the Epson Research and Development
website. Selecting “Help” then “ERD on the Web” starts the default web browser and
points it to the ERD product web site.
The latest software, drivers, and documentation for the S1D13708 is available at this
website.

About 13708CFG
Selecting the “About 13708CFG” option from the “Help” menu displays the About dialog
box for 13708CFG. The about dialog box contains version information and the copyright
notice for 13708CFG.

Comments
• On any tab particular options may be grayed out if selecting them would violate the
operational specification of the S1D13708 (i.e. Selecting TFT or STN on the Panel tab
enables/disables options specific to the panel type).
• The file panels.def is a text file containing operational specifications for several
supported, and tested, panels. This file can be edited with any text editor.
• 13708CFG allows manually altering register values. The manual changes may violate
memory and LCD timings as specified in the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx. If this is done, unpredictable results may
occur. Epson Research and Development, Inc. does not assume liability for any damage
done to the display device as a result of configuration errors.

S1D13708
X39A-B-001-01

13708CFG Configuration Program
Issue Date: 01/11/16

S1D13708 Embedded Memory LCD Controller

13708PLAY Diagnostic Utility
Document Number: X39A-B-002-01

Copyright © 2001 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. Microsoft and Windows are registered trademarks of Microsoft Corporation.
All other trademarks are the property of their respective owners.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-B-002-01

13708PLAY Diagnostic Utility
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 3

13708PLAY
13708PLAY is a diagnostic utility which allows a user to read/write all the registers and
display buffer of the S1D13708. Commands are received from the standard input device,
and messages are sent to the standard output device. On Intel platforms the console
provides standard input/output. For most embedded systems the serial device provides
these functions.
Commands can be entered interactively by a user, or be executed from a script file.
Scripting is a powerful feature which allows command sequences to be used repeatedly
without re-entry.

S1D13708 Supported Evaluation Platforms
13708PLAY is available as an executable for PCs running Windows® 9x/ME/NT/2000
and as C source code which can be modified and recompiled to allow 13708PLAY to run
on other evaluation platforms.

13708PLAY Diagnostic Utility
Issue Date: 01/11/16

S1D13708
X39A-B-002-01

Page 4

Epson Research and Development
Vancouver Design Center

Installation
PC platform
Copy the file 13708play.exe to a directory in the path (e.g. PATH=C:\S1D13708).
Embedded platform
Download the program 13708play to the system.

Usage
PC platform
At the prompt, type:
13708play [/?]
Where:
/?

displays copyright and program version information.

Embedded platform
Execute 13708play and at the prompt, type the command line argument /?.
Where:
/?

S1D13708
X39A-B-002-01

displays copyright and program version information.

13708PLAY Diagnostic Utility
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 5

Commands
The following commands are intended to be used from within the 13708PLAY program.
However, simple commands can also be executed from the command line
(e.g. 13708PLAY F 0 13FFF 0).
Note

If the host platform is big endian, reading/writing words and dwords to/from the registers and display buffer may result in unexpected values. In this case it will be necessary
for the user to manually swap the bytes in order to perform the IO correctly. For further
information on little/big endian and the S1D13708 byte/word swapping capabilities, see
the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
CLKI freq
Sets the frequency of CLKI.
Where:
freq

The desired frequency for CLKI (in MHz).

CLKI2 freq
Sets the frequency of CLKI2.
Where:
freq

The desired frequency for CLKI2 (in MHz).

D[S][8|16|32] [startaddr [endaddr|len]]
Displays a memory dump from the specified display buffer address range.
Where:
S

8|16|32

startaddr

endaddr|len

13708PLAY Diagnostic Utility
Issue Date: 01/11/16

Sets the base address to the beginning of system memory.
Without the “S” option, the base address is the beginning of
display buffer memory.
The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords).
If a unit size is not specified, this command uses the unit size
from the last Dump command performed. If no previous
Dump command has been issued, the unit size defaults to
8-bit.
The starting address to read data from. Specifying a
period (.) uses the same starting address as the last Dump
command performed. Specifying a startaddr of two periods
(..) will back the start address by the size of len.
Determines how many units to continue dumping the
contents of the display buffer. A number without a prefix
represents a physical ending address. If an “L” prefix is
used, the number that follows represents len, which is the
number of bytes/words/dwords to be dumped. Len is based
on the unit size. For example, 'L8' when the unit size is
16-bit would cause the Dump command to dump 8 words
from the starting address.

S1D13708
X39A-B-002-01

Page 6

Epson Research and Development
Vancouver Design Center

F[S][8|16|32] startaddr endaddr|len data1 [data2 data3 ...]
Fills a specified address range in the display buffer.
Where:
S

8|16|32

startaddr

endaddr|len

data

Sets the base address to the beginning of system memory.
Without the “S” option, the base address is the beginning of
display buffer memory.
The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords).
If a unit size is not specified, this command uses the unit size
from the last Fill command performed. If no previous Fill
command has been issued, the unit size defaults to 8-bit.
The starting address to begin filling at. Specifying a
period (.) uses the same starting address as the last Fill
command performed.
Determines how many units to fill the display buffer with. A
number without a prefix represents a physical ending
address. If a “L” prefix is used, the number that follows
represents len, or the number of bytes/words/dwords to be
filled. Len is based on the unit size. For example, 'L8' when
the unit size is 16-bit would cause the Fill command to fill 8
words from the starting address.
The value(s) used to fill the display buffer. If multiple
values are given, the pattern repeats through memory.
Values can be combinations of 'text' or numbers. Numbers
are assumed to be hexadecimal values unless otherwise
specified with the correct suffix (binary = i, octal = o,
decimal = t, hexadecimal = h).
For example, 101i = 101 binary.

H [lines]
Sets the number of lines of data that are displayed at a time. The display is halted after the
specified number of lines. Setting the number of lines to 0 disables the halt function and
allows the data to continue displaying until all data has been shown.
This command is useful when large blocks of the display buffer or the contents of the LUT
are being viewed.
Where:
lines

Number of lines that are shown before halting the
displayed data (decimal value).

I
Initializes the S1D13708 registers with the default register settings as configured by the
utility 13708CFG. For further information on 13708CFG, see the 13708CFG User Manual,
document number X39A-B-001-xx.
Note

If the “I” command is used before 13708PLAY is configured, an error message is displayed and no action is taken.

S1D13708
X39A-B-002-01

13708PLAY Diagnostic Utility
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 7

L index [red green blue]
Reads/writes the red, green, and blue Look-Up Table (LUT) components. If the red, green,
and blue components are not specified, the LUT for the given index is read and the RGB
values are displayed.
Where:
index
red
green
blue

Index into the LUT (hex).
Red component of the LUT (hex).
Green component of the LUT (hex).
Blue component of the LUT (hex).

Note

Only bits 7-2 of each color are used in the LUT. The least significant two bits of the colors are discarded. For example, the command L 0 1 2 3 will set each RGB component of
LUT index 0 to 0, as the values 1, 2, an 3 use only the least significant bits.
LA
Reads and displays all LUT values.
M [bpp]
Sets the color depth (bpp). If no color depth is provided, information about the current
settings are displayed.
Where:
bpp

Color depth to be set (1/2/4/8/16 bpp).

Note

This command reads and attempts to interpret the S1D13708 control registers. If the
S1D13708 was not correctly initialized the displayed values may be incorrect.
Q[UIT], EXIT
Quits the program.
R[S][8|16|32] [addr1 addr2 addr3 ...]
Reads the display buffer at the address locations given.
Where:
S

8|16|32

addr

13708PLAY Diagnostic Utility
Issue Date: 01/11/16

Sets the base address to the beginning of system memory.
Without the ‘S’ option, the base address is the beginning of
display buffer memory.
The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords).
If a unit size is not specified, this command uses the unit size
from the last Read command performed. If no previous
Read command has been issued, the unit size defaults to
8-bit.
The address to read data from. Multiple addresses can be
given.

S1D13708
X39A-B-002-01

Page 8

Epson Research and Development
Vancouver Design Center

RI [8|16] [cycles]
For testing the indirect interface ONLY.
RI will issue one or more data read cycles from the indirect interface cmd/data cycle.
Where:
8|16

cycles

The unit size: 8-bit (bytes), 16-bit (words).
If a unit size is not specified, this command uses the unit size
from the last Read Indirect command performed. If no
previous Read Indirect command has been issued, the unit
size defaults to 8-bit.
The number of data read cycles. The default is one cycle.

RUN scriptfile
This command opens the file scriptfile and executes each line as if it were typed from the
command prompt. For more information on scriptfiles, see Section , “Script Files” on
page 12.
Where:
scriptfile

The file containing 13708PLAY commands.

S[S][8|16|32] startaddr endaddr|len data1 [data2 data3 data4 ...]
Search the display buffer for the given data.
Where:
S

8|16|32

startaddr

endaddr|len

data

S1D13708
X39A-B-002-01

Sets the base address to the beginning of system memory.
Without the “S” option, the base address is the beginning of
display buffer memory.
The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords).
If a unit size is not specified, this command uses the unit size
from the last Search command performed. If no previous
Search command has been issued, the unit size defaults to
8-bit.
The starting address to begin the search from. Specifying a
period (.) uses the same starting address as the last Search
command performed.
Determines how many units of the display buffer will be
searched through. A number without a prefix represents a
physical ending address. If a “L” prefix is used, the number
that follows represents len, or the number of
bytes/words/dwords to be searched through. Len is based on
the unit size. For example, 'L8' when the unit size is 16-bit
would cause the Search command to search 8 words from
the starting address.
The value(s) to search the display buffer for. Values can be
combinations of 'text' or numbers. Numbers are
assumed to be hexadecimal values unless otherwise
specified with the correct suffix (binary = i, octal = o,
decimal = t, hexadecimal = h).
For example, 101i = 101 binary.
13708PLAY Diagnostic Utility
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 9

SHOW
Shows a test pattern on the display. The test pattern is based on current register settings and
may not display correctly if the registers are not configured properly.
Use this command to display an image during testing. After adjusting a register value, use
the show command to view the effect on the display.
W[S][8|16|32] [startaddr [data1 data2 data3 data4 ...]]
Writes the given data sequence to the display buffer starting at startaddr location.
Where:
S

8|16|32

startaddr

data

Sets the base address the beginning of system
memory. Without the “S” option, the base address is the
beginning of display buffer memory.
The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords).
If a unit size is not specified, this command uses the unit size
from the last Write command performed. If no previous
Write command has been issued, the unit size defaults to
8-bit.
The starting address to write data to. Specifying a
period (.) uses the same starting address as the last Write
command performed.
Values to write to the display buffer. If no data is given, then
this function enters MODIFY mode. This mode prompts the
user with the address and it's current data. While in this
mode, the user can type any of the following.
- new values (in hex)
- ENTER or SPACE - moves to the next memory
location (if data is specified the previous
memory location is updated, if no data is
specified no change is made)
- “-” - moves to the previous memory location
- “Q” or “.” - exits MODIFY mode

WI [8|16] data1 [data2 data3 ...]
For testing the indirect interface ONLY.
WI will write one or more data items to the data portion of the cmd/data cycle.
Where:
8|16

data

The unit size: 8-bit (bytes), 16-bit (words).
If a unit size is not specified, this command uses the unit size
from the last Read Indirect command performed. If no
previous Read Indirect command has been issued, the unit
size defaults to 8-bit.
Values to write to the display buffer.

XA
Reads and displays the contents of all the S1D13708 registers.

13708PLAY Diagnostic Utility
Issue Date: 01/11/16

S1D13708
X39A-B-002-01

Page 10

Epson Research and Development
Vancouver Design Center

X[8|16|32] [index [data]]
Reads/writes data to the register at index. If no data is specified, the register is read and the
contents are displayed.
Where:
8|16|32

index
data

The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords).
If a unit size is not specified, this command uses the unit size
from the last X command performed. If no previous X
command has been issued, the unit size defaults to 8-bit.
Index into the registers (hex).
The value to be written to the register. Numbers are
assumed to be hexadecimal values unless otherwise
specified with the correct suffix (binary = i, octal = o,
decimal = t, hexadecimal = h).
For example, 101i = 101 binary.

XI index
This command is for testing the indirect interface ONLY.
XI will write index to the command portion of the indirect interface cmd/data cycle. The
data portion will NOT be accessed.
Where:
index

The command portion of the indirect interface cmd/data
cycle. This is effectively the register index (hex).

?
Displays the help screen. The help screen contains a summary of all available commands.

S1D13708
X39A-B-002-01

13708PLAY Diagnostic Utility
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 11

13708PLAY Example
1. Configure 13708PLAY using the utility 13708CFG. For further information on
13708CFG, see the 13708CFG User Manual, document number X39A-B-001-xx.
2. Type 13708PLAY to start the program.
3. Type ? for help.
4. Type i to initialize the registers.
5. Type xa to display the contents of the registers.
6. Type x 80 to read register 80h.
7. Type x 80 10 to write 10h to register 80h.
8. Type f 0 ffff aa to fill the first 10000h bytes of the display buffer with AAh.
9. Type d 0 ff to read the first 100h bytes of the display buffer.
10. Type show to display a test pattern.
11. Type m to display current mode information.
12. Type m 2 to set the color depth to 2 bpp.
13. Type show to display a test pattern.
14. Type q to exit the program.

13708PLAY Diagnostic Utility
Issue Date: 01/11/16

S1D13708
X39A-B-002-01

Page 12

Epson Research and Development
Vancouver Design Center

Script Files
13708PLAY can be controlled by a script file. This is useful when:
• there is no display to monitor command keystroke accuracy.
• various registers must be quickly changed to view results.
A script file is an ASCII text file with one 13708PLAY command per line. Script files can
be executed from within 13708PLAY using the Run command (e.g. = run dumpregs.scr).
Alternately, the script file can be executed from the OS command prompt. On a PC
platform, a typical script command line might be:
13708PLAY run dumpregs.scr > results
This causes the file dumpregs.scr to be interpreted as commands by 13708PLAY and the
results to be redirected to the file results.
Example 1: Create a script file that reads all registers.

; This file initializes the S1D13708 and reads the registers.
; Note: after a semicolon (;), all characters on a line are ignored.
; Initialize the S1D13708
i
; Read all registers
xa

S1D13708
X39A-B-002-01

13708PLAY Diagnostic Utility
Issue Date: 01/11/16

S1D13708 Embedded Memory LCD Controller

13708BMP Demonstration Program
Document Number: X39A-B-003-01

Copyright © 2001 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. Microsoft and Windows are registered trademarks of Microsoft Corporation.
All other trademarks are the property of their respective owners.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-B-003-01

13708BMP Demonstration Program
Issue Date: 01/11/16

Epson Research and Development
Vancouver Design Center

Page 3

13708BMP
13708BMP is a demonstration utility used to show the S1D13708 display capabilities by
rendering bitmap images on the display device. The program displays a bitmap stored in
Windows BMP file format and then exits. 13708BMP supports SviwelView™ (90°, 180°,
and 270° hardware rotation of the display image).
13708BMP is designed to operate on a personal computer (PC) within a 32-bit environment
only (Windows® 9x/NT/ME/2000). Embedded platforms are not supported due to the
possible lack of a structured file system.
The 13708BMP demonstration utility must be configured to work with your hardware
configuration. The program 13708CFG can be used to configure 13708BMP. For further
information on 13708CFG, refer to the 13708CFG Users Manual, document number
X39A-B-001-xx.

S1D13708 Supported Evaluation Platforms
13708BMP supports the following S1D13708 evaluation platforms:
• PC with an Intel 80x86 processor running Windows 9x/NT/ME/2000.
Note

The 13708BMP source code may be modified by the OEM to support other evaluation
platforms.

Installation
Copy the file 13708bmp.exe to a directory in the path (e.g. PATH=C:\S1D13708).

13708BMP Demonstration Program
Issue Date: 01/11/16

S1D13708
X39A-B-003-01

Page 4

Epson Research and Development
Vancouver Design Center

Usage
At a command prompt, type:
13708bmp bmpfile [/?]
Where:
bmpfile

Specifies filename of the windows format bmp image to be
displayed.

/?

Displays the help message.

Note

13708BMP displays the bmpfile image and returns to the prompt.

13708BMP Examples
To display a .bmp image in the main window on an LCD, type the following:
13708bmp bmpfile.bmp
Note

To display a bmpfile using SwivelView, configure 13708bmp.exe for the selected SwivelView mode using the configuration program 13708CFG. For further information on
13708CFG, see the 13708CFG User Manual, document number X39A-B-001-xx.

Comments
• 13708BMP displays only Windows BMP format images.
• A 24-bit true color bitmap is displayed at a color depth of 16 bit-per-pixel.
• Only the green component of the image is seen on a monochrome panel.
• 13708BMP does not perform any image translations. The image to be displayed must be
the desired dimensions and color depth.

S1D13708
X39A-B-003-01

13708BMP Demonstration Program
Issue Date: 01/11/16

S1D13708 Embedded Memory LCD Controller

Wind River WindML v2.0 Display
Drivers
Document Number: X39A-E-002-01

Copyright © 2001 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

S1D13708
X39A-E-002-01

Wind River WindML v2.0 Display Drivers
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 3

Wind River WindML v2.0 DISPLAY DRIVERS
The Wind River WindML v2.0 display drivers for the S1D13708 Embedded Memory LCD
Controller are intended as “reference” source code for OEMs developing for Wind River’s
WindML v2.0. The driver package provides support for both 8 and 16 bit-per-pixel color
depths. The source code is written for portability and contains functionality for most
features of the S1D13708. Source code modification is required to produces a smaller, more
efficient driver for mass production.
The WindML display drivers are designed around a common configuration include file
called mode0.h which is generated by the configuration utility 13708CFG. This design
allows for easy customization of display type, clocks, decode addresses, rotation, etc. by
OEMs. For further information on 13708CFG, see the 13708CFG Configuration Program
User Manual, document number X39A-B-001-xx.
Note

The WindML display drivers are provided as “reference” source code only. They are intended to provide a basis for OEMs to develop their own drivers for WindML v2.0.
These drivers are not backwards compatible with UGL v1.2.
This document and the source code for the WindML display drivers is updated as appropriate. Please check the Epson Research and Development website at www.erd.epson.com
for the latest revisions before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Wind River WindML v2.0 Display Drivers
Issue Date: 01/11/14

S1D13708
X39A-E-002-01

Page 4

Epson Research and Development
Vancouver Design Center

Building a WindML v2.0 Display Driver
The following instructions produce a bootable disk that automatically starts the UGL demo
program. These instructions assume that Wind River’s Tornado platform is already
installed.
Note

For the example steps where the drive letter is given as “x:”. Substitute “x” with the
drive letter that your development environment is on.
1. Create a working directory and unzip the WindML display driver into it.
From a command prompt or GUI interface create a new directory (e.g. x:\13708).
Unzip the file 13708windml.zip to the newly created working directory. The files will
be unzipped to the directories “x:\13708\8bpp” and “x:\13708\16bpp”.
2. Configure for the target execution model.
This example build creates a VxWorks image that fits onto and boots from a single
floppy diskette. In order for the VxWorks image to fit on the disk certain modifications are required.
Replace the file “x:\Tornado\target\config\pcPentium\config.h” with the file
“x:\13708\8bpp\File\config.h” (or “x:\13708\16bpp\File\config.h”). The new config.h
file removes networking components and configures the build image for booting from
a floppy disk.
Note

Rather than simply replacing the original config.h file, rename it so the file can be kept
for reference purposes.
3. Build a boot ROM image.
From the Tornado tool bar, select Build -> Build Boot ROM. Select “pcPentium” as
the BSP and “bootrom_uncmp” as the image.
4. Create a bootable disk (in drive A:).
From a command prompt change to the directory “x:\Tornado\host\x86-win32\bin”
and run the batch file torvars.bat. Next, change to the directory “x:\Tornado\target\config\pcPentium” and type:
mkboot a: bootrom_uncmp
5. If necessary, generate a new mode0.h configuration file.
The file mode0.h contains the register values required to set the screen resolution, color depth (bpp), display type, rotation, etc. The mode0.h file included with the drivers,
may not contain applicable values and must be regenerated. The configuration program 13708CFG can be used to build a new mode0.h file. If building for 8 bpp, place
the new mode0.h file in the directory “x:\13708\8bpp\File”. If building for 16 bpp,
place the new mode0.h file in “x:\13708\16bpp\File”.

S1D13708
X39A-E-002-01

Wind River WindML v2.0 Display Drivers
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 5

Note

Mode0.h should be created using the configuration utility 13708CFG. For more information on 13708CFG, see the 13708CFG Configuration Program User Manual, document number X39A-B-001-xx available at www.erd.epson.com.
6. Build the WindML v2.0 library.
From a command prompt change to the directory “x:\Tornado\host\x86-win32\bin”
and run the batch file torvars.bat. Next, change to the directory “x:\Tornado\target\src\ugl” and type the command:
make CPU=PENTIUM ugl
7. Open the S1D13708 workspace.
From the Tornado tool bar, select File->Open Workspace...->Existing->Browse... and
select the file “x:\13708\8bpp\13708.wsp” (or “x:\13708\16bpp\13708.wsp”).
8. Add support for single line comments.
The WindML v2.0 display driver source code uses single line comment notation, “//”,
rather than the ANSI conventional comments, “/*...*/”.
To add support for single line comments follow these steps:
a.

In the Tornado “Workspace Views” window, click on the “Builds” tab.

b.

Expand the “8bpp Builds” (or “16bpp Builds”) view by clicking on the “+”
next to it. The expanded view will contain the item “default”. Right-click on
“default” and select “Properties...”. A “Properties:” window will appear.

c.

Select the “C/C++ compiler” tab to display the command switches used in
the build. Remove the “-ansi” switch from the line that contains “-g
-mpentium -ansi -nostdinc -DRW_MULTI_THREAD”.
(Refer to GNU ToolKit user's guide for details)

9. Compile the VxWorks image.
Select the “Builds” tab in the Tornado “Workspace Views” window.
Right-click on “8bpp files” (or “16bpp files”) and select “Dependencies...”. Click on
“OK” to regenerate project file dependencies for “All Project files”.
Right-click on “8bpp files” (or “16bpp files”) and select “ReBuild All(vxWorks)” to
build VxWorks.
10. Copy the VxWorks file to the diskette.
From a command prompt or through the Windows interface, copy the file
“x:\13708\8bpp\default\vxWorks” (or “x:\13708\16bpp\default\vxWorks”) to the
bootable disk created in step 4.
11. Start the VxWorks demo.
Boot the target PC with the VxWorks bootable diskette to run the UGL demo program
automatically.

Wind River WindML v2.0 Display Drivers
Issue Date: 01/11/14

S1D13708
X39A-E-002-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-E-002-01

Wind River WindML v2.0 Display Drivers
Issue Date: 01/11/14

S1D13708 Embedded Memory LCD Controller

Linux Console Driver
Document Number: X39A-E-004-01

Copyright © 2001 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.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-E-004-01

Linux Console Driver
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 3

Linux Console Driver
The Linux console driver for the S1D13708 Embedded Memory LCD Controller is
intended as “reference” source code for OEMs developing for Linux, and supports 4, 8, and
16 bit-per-pixel color depths. The source code is written for portability and contains
functionality for most features of the S1D13708. Source code modification is required to
provide a smaller driver for mass production.
A Graphical User Interface (GUI) such as Gnome can obtain the frame buffer address from
this driver allowing the Linux GUI the ability to update the display.
The console driver is designed around a common configuration include file called
s1d13708.h, which is generated by the configuration utility 13708CFG. This design allows
for easy customization of display type, clocks, decode addresses, rotation, etc. by OEMs.
For further information on 13708CFG, see the 13708CFG Configuration Program User
Manual, document number X39A-B-001-xx.
Note

The Linux console driver is provided as “reference” source code only. The driver is intended to provide a basis for OEMs to develop their own drivers for Linux.
This document and the source code for the Linux console drivers are updated as appropriate. Please check the Epson Research and Development website at www.erd.epson.com
for the latest revisions or before beginning any development.
We appreciate your comments on our documentation. Please contact us via e-mail at
documentation@erd.epson.com.

Linux Console Driver
Issue Date: 01/11/14

S1D13708
X39A-E-004-01

Page 4

Epson Research and Development
Vancouver Design Center

Building the Console Driver for Linux Kernel 2.2.x
Follow the steps below to construct a copy of the Linux operating system using the
S1D13708 as the console display device. These instructions assume that the GNU development environment is installed and the user is familiar with GNU and the Linux operating
system.
1. Acquire the Linux kernel source code.
You can obtain the Linux kernel source code from your Linux supplier or download
the source from: ftp://ftp.kernel.org.
The S1D13708 reference driver requires Linux kernel 2.2.x. The example S1D13708
reference driver available on www.erd.epson.com was built using Red Hat Linux 6.1,
kernel version 2.2.17.
For information on building the kernel refer to the readme file at:
ftp://ftp.linuxberg.com/pub/linux/kernel/README
Note

Before continuing with modifications for the S1D13708, you should ensure that you can
build and start the Linux operating system.
2. Unzip the console driver files.
Using a zip file utility, unzip the S1D13708 archive to a temporary directory. (e.g.
/tmp)
When completed the following files should be located in the temporary directory.
s1d13xxxfb.c
s1d13708.h
Config.in
fbmem.c
fbcon-cfb4.c, and
Makefile
3. Copy the console driver files to the build directory.
Copy the following files to the directory /usr/src/linux/drivers/video.
/tmp/s1d13xxxfb.c and
/tmp/s1d13708.h
Copy the remaining source files into the directory /usr/src/linux/drivers/video replacing the files of the same name.
/tmp/Config.in
/tmp/fbmem.c
/tmp/fbcon-cfb4.c, and
/tmp/Makefile
If your kernel version is not 2.2.17, or you want to retain greater control of the build
process, use a text editor to cut and paste the sections dealing with the Epson driver in
the corresponding files of the same names.

S1D13708
X39A-E-004-01

Linux Console Driver
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 5

4. Modify s1d13708.h
The file s1d13708.h contains the register values required to set the screen resolution,
color depth (bpp), display type, active display (LCD), display rotation, etc.
Before building the console driver, refer to the descriptions in the file s1d13708.h for
the default settings of the console driver. If the default does not match the configuration you are building for then s1d13708.h must be regenerated with the correct information.
Use the program 13708CFG to generate the required header file. For information on
how to use 13708CFG, refer to the 13708CFG Configuration Program User Manual,
document number X39A-B-001-xx, available at www.erd.epson.com
After selecting the desired configuration, choose “File->Export” and select the “C
Header File for S1D13708 Generic Drivers” option. Save the new configuration as
s1d13708.h in the /usr/src/linux/drivers/video, replacing the original configuration
file.
5. Configure the video options.
From the command prompt in the directory /usr/src/linux run the command:
make menuconfig
This command will start a text based interface which allows the selection of build time
parameters. From the text interface under “Console drivers” options, select:
“Support for frame buffer devices”
“Epson LCD/CRT controllers support”
“S1D13708 support”
“Advanced low level driver options”
“xBpp packed pixels support” *
* where x is the color depth being compile for.
If you are using the Epson PCI evaluation board then you must also select:
“Epson PCI Bridge adapter support”
Once you have configured the kernel options, save and exit the configuration utility.
6. Compile and install the kernel.
Build the kernel with the following sequence of commands.
make dep
make clean
make bzImage
/sbin/lilo (if running lilo)

Linux Console Driver
Issue Date: 01/11/14

S1D13708
X39A-E-004-01

Page 6

Epson Research and Development
Vancouver Design Center

7. Boot to the Linux operating system.
If you are using lilo (Linux Loader), modify the lilo configuration file as discussed in
the kernel build README file. If there were no errors during the build, from the command prompt run:
lilo
and reboot your system.
Note

In order to use the S1D13708 console driver with X server, you need to configure the X
server to use the FBDEV device. The information on the necessary files and instructions
for this process is available on the Internet at www.xfree86.org

S1D13708
X39A-E-004-01

Linux Console Driver
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 7

Building the Console Driver for Linux Kernel 2.4.x
Follow the steps below to construct a copy of the Linux operating system using the
S1D13708 as the console display device. These instructions assume that the GNU development environment is installed and the user is familiar with GNU and the Linux operating
system.
1. Acquire the Linux kernel source code.
You can obtain the Linux kernel source code from your Linux supplier or download
the source from: ftp://ftp.kernel.org.
The S1D13708 reference driver requires Linux kernel 2.4.x or greater. The example
S1D13708 reference driver available on www.erd.epson.com was built using Red Hat
Linux 6.1, kernel version 2.4.5.
For information on building the kernel refer to the readme file at:
ftp://ftp.linuxberg.com/pub/linux/kernel/README
Note

Before continuing with modifications for the S1D13708, you should ensure that you can
build and start the Linux operating system.
2. Unzip the console driver files.
Using a zip file utility, unzip the S1D13708 archive to a temporary directory. (e.g.
/tmp)
When completed the files:
Config.in
fbmem.c
fbcon-cfb4.c
Makefile
should be located in the temporary directory (/tmp), and the files:
Makefile
s1d13xxxfb.c
s1d13708.h
should be located in a sub-directory called epson within the temporary directory
(/tmp/epson).
3. Copy the console driver files to the build directory. Make the directory
/usr/src/linux/drivers/video/epson.
Copy the files
/tmp/epson/s1d13xxxfb.c
/tmp/epson/s1d13708.h
/tmp/epson/Makefile
to the directory /usr/src/linux/drivers/video/epson.

Linux Console Driver
Issue Date: 01/11/14

S1D13708
X39A-E-004-01

Page 8

Epson Research and Development
Vancouver Design Center

Copy the remaining source files
/tmp/Config.in
/tmp/fbmem.c
/tmp/fbcon-cfb4.c
/tmp/Makefile
into the directory /usr/src/linux/drivers/video replacing the files of the same name.
If your kernel version is not 2.4.5 or you want to retain greater control of the build
process then use a text editor and cut and paste the sections dealing with the Epson
driver in the corresponding files of the same names.
4. Modify s1d13708.h
The file s1d13708.h contains the register values required to set the screen resolution,
color depth (bpp), display type, active display (LCD/CRT), display rotation, etc.
Before building the console driver, refer to the descriptions in the file s1d13708.h for
the default settings of the console driver. If the default does not match the configuration you are building for then s1d13708.h will have to be regenerated with the correct
information.
Use the program 13708CFG to generate the required header file. For information on
how to use 13708CFG, refer to the 13708CFG Configuration Program User Manual,
document number X39A-B-001-xx, available at www.erd.epson.com
After selecting the desired configuration, choose “File->Export” and select the “C
Header File for S1D13708 Generic Drivers” option. Save the new configuration as
s1d13708.h in the /usr/src/linux/drivers/video, replacing the original configuration
file.
5. Configure the video options.
From the command prompt in the directory /usr/src/linux run the command:
make menuconfig
This command will start a text based interface which allows the selection of build time
parameters. From the options presented select:
“Code maturity level” options
“Prompt for development and/or incomplete drivers”
“Console drivers” options
“Frame-buffer support”
“Support for frame buffer devices (EXPERIMENTAL)”
“EPSON LCD/CRT/TV controller support”
“EPSON S1D13708 Support”
“Advanced low-level driver options”
“xbpp packed pixels support” *
* where x is the color depth being compile for.
If you are using the Epson PCI evaluation board then you must also select:
“Epson PCI Bridge adapter support”
Once you have configured the kernel options, save and exit the configuration utility.

S1D13708
X39A-E-004-01

Linux Console Driver
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 9

6. Compile and install the kernel
Build the kernel with the following sequence of commands:
make dep
make clean
make bzImage
/sbin/lilo (if running lilo)
7. Boot to the Linux operating system
If you are using lilo (Linux Loader), modify the lilo configuration file as discussed in
the kernel build README file. If there were no errors during the build, from the command prompt run:
lilo
and reboot your system.
Note

In order to use the S1D13708 console driver with X server, you need to configure the X
server to use the FBDEV device. A good place to look for the necessary files and instructions on this process is on the Internet at www.xfree86.org

Linux Console Driver
Issue Date: 01/11/14

S1D13708
X39A-E-004-01

Page 10

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-E-004-01

Linux Console Driver
Issue Date: 01/11/14

S1D13708 Embedded Memory LCD Controller

QNX Photon v2.0 Display Driver
Document Number: X39A-E-005-01

Copyright © 2001 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

S1D13708
X39A-E-005-01

QNX Photon v2.0 Display Driver
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 3

QNX Photon v2.0 Display Driver
The Photon v2.0 display drivers for the S1D13708 Embedded Memory LCD Controller are
intended as “reference” source code for OEMs developing for QNX platforms. The driver
package provides support for 8 and 16 bit-per-pixel color depths. The source code is written
for portability and contains functionality for most features of the S1D13708. Source code
modification is required to provide a smaller driver for mass production.
The current revision of the driver is designed for use with either QNX RTP or QNX4 from
the latest product CD (Dec. 99).
The Photon v2.0 display driver is designed around a common configuration include file
called S1D13708.h, which is generated by the configuration utility 13708CFG. This design
allows for easy customization of display type, clocks, decode addresses, rotation, etc. by
OEMs. For further information on 13708CFG, see the 13708CFG Configuration Program
User Manual, document number X39A-B-001-xx.
Note

The QNX display drivers are provided as “reference” source code only. They are intended to provide a basis for OEMs to develop their own drivers for QNX Photon v2.0.
This document and the source code for the QNX display drivers are updated as appropriate.
Please check the Epson Research and Development website at www.erd.epson.com for the
latest revisions before beginning any development.
We appreciate your comments on our documentation. Please contact us via e-mail at
documentation@erd.epson.com.

QNX Photon v2.0 Display Driver
Issue Date: 01/11/14

S1D13708
X39A-E-005-01

Page 4

Epson Research and Development
Vancouver Design Center

Building the Photon v2.0 Display Driver
The following steps build the Photon v2.0 display driver and integrate it into the QNX
operating system. These instructions assume the QNX developer environment is correctly
installed and the developer is familiar with building for the QNX operating system.
Unpack the Graphics Driver Development Kit Archive
1. Install the QNX ddk package using the Package Manager utility.
For information about the Drivers Development Kit contact QNX directly.
2. Once the ddk package is installed, copy the directory tree /usr/scr/gddk_v1.0 into the
Project directory.
3. Change directory to Project/gddk_1.0/devg.
4. Unpack the display driver files using the commands:
#gunzip S1D13708.tar.gz
#tar –xvf S1D13708.tar
This unpacks the files into the directory Project/gddk_1.0/devg/S1D13708.
Configure the Driver
The files s1d13708_16.h and s1d13708_8.h contain register values required to set the
screen resolution, color depth (bpp), display type, rotation, etc. The s1d13708.h file
included with the drivers may not contain applicable values and must be regenerated. The
configuration program 13708CFG can be used to build new s1d13708_16.h and
s1d13708_8.h files.
Note

S1d13708.h should be created using the configuration utility 13708CFG. For more information on 13708CFG, see the 13708CFG Configuration Program User Manual,
document number X39A-B-001-xx available at www.erd.epson.com.
Build the Driver
The first time the driver is built, the following command ensures that all drivers and
required libraries are built. At the root of the Project source tree, type make.
Note

To build drivers for X86 NTO type ‘OSLIST=nto CPULIST=x86 make’.
Further builds do not require all libraries to be re-built. To build only the S1D13708 display
driver, change to the directory gddk_1.0/devg/s1d13708 and type make.

S1D13708
X39A-E-005-01

QNX Photon v2.0 Display Driver
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 5

Installing the Driver
The build step produces two library images:
• lib/disputil/nto/x86/libdisputil.so
• lib/disputil/nto/x86/libffb.so
For the loader to locate them, the files need to be renamed and copied to the lib directory.
1. Rename libdisputil.so to libdisputil.so.1 and libffb.so to libffb.so.1.
2. Copy the files new files libdisputil.so.1 and libffb.so.1 to the directory /usr/lib.
3. Copy the file devg-S1D13708.so to the /lib/dll directory.
Note

To locate the file devg-S1D13708.so, watch the output of the ‘true’ command during the
makefile build.
4. Modify the trap file graphics-modes in the /etc/system/config directory by inserting
the following lines at the top of the file.
io-graphics -dldevg-S1D13708.so -g640x480x8 -I0 -d0x0,0x0;#640,480,8 Epson
io-graphics -dldevg-S1D13708.so -g640x480x16 -I0 -d0x0,0x0;#640,480,16 Epson
Run the Driver
It is recommended that the driver be verified before starting QNX with the S1D13708 as
the primary display. To verify the driver, type the following command at the root of the
Project source tree (gddk_1.0 directory).
util/bench/nto/x86/o/devg-bench -dldevg/S1D13708/nto/x86/dll/devg-S1D13708.so mW,H,C,F -d0x0,0x0
Where:
W is the configured width of the display
H is the configured height of the display
C is the color depth in bpp (either 8 or 16)
F is the configured frame rate
This command starts the bench utility which will initialize the driver as the secondary
display and exercise the drivers main functions. If the display appears satisfactory, restart
QNX Photon and the restart will result in the S1D13708 display driver becoming the
primary display device.

QNX Photon v2.0 Display Driver
Issue Date: 01/11/14

S1D13708
X39A-E-005-01

Page 6

Epson Research and Development
Vancouver Design Center

Comments
• To restore the display driver to the default, comment out changes made to the trap file
crt.$NODE.

S1D13708
X39A-E-005-01

QNX Photon v2.0 Display Driver
Issue Date: 01/11/14

S1D13708 Embedded Memory LCD Controller

Windows® CE 3.x Display Drivers
Document Number: X39A-E-006-01

Copyright © 2001 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. Microsoft and Windows are registered trademarks of Microsoft Corporation.
All other trademarks are the property of their respective owners.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-E-006-01

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 3

WINDOWS® CE 3.0 DISPLAY DRIVER
Windows CE v3.0 display driver for the S1D13708 Embedded Memory LCD Controller is
intended as “reference” source code for OEMs developing for the Microsoft Window CE
platform. The driver supports 4, 8 and 16 bit-per-pixel color depths in landscape mode (no
rotation), and 8 and 16 bit-per-pixel color depths in SwivelView™ 90 degree, 180 degree
and 270 degree modes. The source code is written for portability and contains functionality
for most features of the S1D13708. Source code modification is required to provide a
smaller driver for mass production.
The Windows CE v3.0 display driver is designed around a common configuration include
file called mode0.h, which is generated by the configuration utility 13708CFG. This design
allows for easy customization of display type, clocks, decode addresses, rotation, etc. by
OEMs. For further information on 13708CFG, see the 13708CFG Configuration Program
User Manual, document number X39A-B-001-xx.
Note

The Windows CE display driver is provided as “reference” source code only. They are
intended to provide a basis for OEMs to develop their own drivers for Microsoft Windows CE v3.0.
This document and the source code for the Windows CE v3.0 driver is updated as appropriate. Before beginning any development, please check the Epson Research and Development Website at www.erd.epson.com for the latest revisions.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

S1D13708
X39A-E-006-01

Page 4

Epson Research and Development
Vancouver Design Center

Example Driver Builds
The following sections describes how to build the Windows CE display driver for Windows
CE Platform Builder 3.00 using the GUI interface.
Build for CEPC (X86) on Windows CE Platform Builder 3.00 using the GUI Interface

1. Install Microsoft Windows 2000 Professional, or Windows NT Workstation version
4.0 with Service Pack 5 or later.
2. Install Platform Builder 3.00.
3. Start Platform Builder by double-clicking on the Microsoft Windows CE Platform
Builder icon.
4. Create a new project.
a. Select File | New.
b. In the dialog box, select the Platforms tab.
c. In the platforms dialog box, select “WCE Platform”, set a location for the project
(such as x:\myproject), set the platform name (such as myplatform), and set the
processor to “Win32 (WCE x86)”.
d. Click the OK button.
e. In the dialog box “WCE Platform - Step 1 of 2”, select CEPC.
f.

Click the Next button.

g. In the dialog box “WCE Platform - Step 2 of 2”, select Maximum OS (Maxall).
h. Click the Finish button.
i.

In the dialog box “New Platform Information”, click the OK button.

5. Set the active configuration to “Win32 (WCE x86) Release”.
a. From the Build menu, select “Set Active Configuration”.
b. Select “MYPLATFORM - Win32 (WCE x86) Release”.
c. Click the OK button.

S1D13708
X39A-E-006-01

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 5

6. Add the environment variable DDI_S1D13708.
a. From the Platform menu, select “Settings”.
b. Select the “Environment” tab.
c. In the Variable box, type “DDI_S1D13708”.
d. In the Value box, type “1”.
e. Click the Set button.
f.

Click the OK button.

7. Create a new directory S1D13708, under x:\wince300\platform\cepc\drivers\display,
and copy the S1D13708 driver source code into this new directory.
8. Add the S1D13708 driver component.
a. From the Platform menu, select “Insert | User Component”.
b. Set “Files of type:” to “All Files (*.*)”.
c. Select the file x:\wince300\platform\cepc\drivers\display\S1D13708\sources.
d. Click the OK button.
e. In the “User Component Target File” dialog box, select browse and then select the
path and the file name of “sources” as in step c.
f.

Click the OK button.

9. Delete the component “ddi_flat”.
a. In the Platform window, select the ComponentView tab.
b. Show the tree for MYPLATFORM components by clicking on the ‘+’ sign at the
root of the tree.
c. Right-click on the ddi_flat component.
d. Select “Delete”.
e. From the File menu, select “Save Workspace”.

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

S1D13708
X39A-E-006-01

Page 6

Epson Research and Development
Vancouver Design Center

10. From the Platform window, click the ParameterView Tab. Show the tree for MYPLATFORM Parameters by clicking the ‘+’ sign at the root of the tree. Expand the
WINCE300 tree and then click “Hardware Specific Files” and then double click
“PLATFORM.BIB”. Edit the file the platform.bib file and make the following two
changes:
a. Insert the following text after the line “IF ODO_NODISPLAY !”:
IF CEPC_DDI_S1D13708
ddi.dll

$(_FLATRELEASEDIR)\S1D13708.dll NK SH

ENDIF

b. Find the section shown below, and insert the lines as marked:
IF CEPC_DDI_FLAT !
IF DDI_S1D13708!

;Insert this line

IF CEPC_DDI_S3VIRGE !
IF CEPC_DDI_CT655X !
IF CEPC_DDI_VGA8BPP !
IF CEPC_DDI_S3TRIO64 !
IF CEPC_DDI_ATI !
ddi.dll

$(_FLATRELEASEDIR)\ddi_flat.dll

NK SH

ENDIF
ENDIF
ENDIF
ENDIF
ENDIF
ENDIF

;Insert this line

ENDIF

S1D13708
X39A-E-006-01

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 7

11. Modify MODE0.H.
The file MODE0.H (located in x:\wince300\platform\cepc\drivers\display\S1D13708)
contains the register values required to set the screen resolution, color depth (bpp),
display type, display rotation, etc.
Before building the display driver, refer to the descriptions in the file MODE0.H for
the default settings of the console driver. If the default does not match the configuration you are building for then mode0.h will have to be regenerated with the correct information.
Use the program 13708CFG to generate the header file. For information on how to use
13708CFG, refer to the 13708CFG Configuration Program User Manual, document
number X39A-B-001-xx, available at www.erd.epson.com
After selecting the desired configuration, choose “File->Export” and select the “C
Header File for S1D13708 WinCE Driver” option. Save the new configuration as
mode0.h in the \wince300\platform\cepc\drivers\display, replacing the original configuration file.
12. From the Platform window, click the ParameterView Tab. Show the tree for MYPLATFORM Parameters by clicking the ‘+’ sign at the root of the tree. Expand the
WINCE300 tree and click “Hardware Specific Files”, then double click “PLATFORM.REG”. Edit the file platform.reg to match the screen resolution, color depth,
and rotation information in mode0.h.
For example, the display driver section of platform.reg should be as follows when using a 320x240 LCD panel with a color depth of 8 bpp and a SwivelView mode of 0°
(landscape):
; Default for EPSON Display Driver
; 320x240 at 8 bits/pixel, LCD display, no rotation
; Useful Hex Values
; 640=0x280 480=0x1E0 320=140 240=0xF0
[HKEY_LOCAL_MACHINE\Drivers\Display\S1D13708]
“Width”=dword:140
“Height”=dword:F0
“Bpp”=dword:8
“Rotation”=dword:0

13. From the Build menu, select “Rebuild Platform” to generate a Windows CE image file
(NK.BIN) in the project directory x:\myproject\myplatform\reldir\x86_release\nk.bin.

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

S1D13708
X39A-E-006-01

Page 8

Epson Research and Development
Vancouver Design Center

Installation for CEPC Environment
Once the nk.bin file is built, the CEPC environment can be started by booting either from a
floppy or hard drive configured with a Windows 9x operating system. The two methods are
described below.
1. To start CEPC from a floppy drive:
a. Create a bootable floppy disk.
b. Copy himem.sys to the floppy disk and edit config.sys on the floppy disk to contain only the following line:
device=a:\himem.sys

c. Edit autoexec.bat on the floppy disk to contain the following lines:
loadcepc /B:38400 /C:1 c:\nk.bin

d. Search for loadcepc.exe in the Windows CE directories and copy loadcepc.exe to
the bootable floppy disk.
e. Copy nk.bin to c:\.
f.

Boot the system from the bootable floppy disk.

2. To start CEPC from a hard drive:
a. Search for loadcepc.exe in the Windows CE directories and copy loadcepc.exe to
C:\.
b. Edit config.sys on the hard drive to contain only the following line:
device=c:\himem.sys

c. Edit autoexec.bat on the hard drive to contain the following lines:
loadcepc /B:38400 /C:1 c:\nk.bin

d. Copy nk.bin to c:\.
e. Boot the system.

S1D13708
X39A-E-006-01

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 9

Configuration
There are several issues to consider when configuring the display driver. The issues cover
debugging support, register initialization values and memory allocation. Each of these
issues is discussed in the following sections.

Compile Switches
There are several switches, specific to the S1D13708 display driver, which affect the
display driver.
The switches are added or removed from the compile switches in the file SOURCES.
WINCEVER

This option is automatically set to the numerical version of WinCE for version 2.12 or later.
If the environment variable, _WINCEOSVER is not defined, then WINCEVER will
default to 2.11. The S1D13708 display driver may test against this option to support
different WinCE version-specific features.
EnablePreferVmem

This option enables the use of off-screen video memory. When this option is enabled,
WinCE can optimize some BLT operations by using off-screen video memory to store
images. You may need to disable this option if your off-screen video memory is limited.
ENABLE_CLOCK_CHIP

This option is used to enable support for the ICD2061A clock generator. This clock chip is
used on the S5U13708B00C evaluation board. The S1D13708 display drivers can program
the clock chip to support the frequencies required in the MODE tables.
If you are not using the S5U13708B00C evaluation adapter, you should disable this option.
EpsonMessages

This debugging option enables the display of EPSON-specific debug messages. These
debug message are sent to the serial debugging port. This option should be disabled unless
you are debugging the display driver, as they will significantly impact the performance of
the display driver.
DEBUG_MONITOR

This option enables the use of the debug monitor. The debug monitor can be invoked when
the display driver is first loaded and can be used to view registers, and perform a few
debugging tasks. The debug monitor is still under development and is UNTESTED.

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

S1D13708
X39A-E-006-01

Page 10

Epson Research and Development
Vancouver Design Center

This option should remain disabled unless you are performing specific debugging tasks that
require the debug monitor.
MonoPanel

This option is intended for the support of monochrome panels only.
The option causes palette colors to be grayscaled for correct display on a mono panel. For
use with color panels this option should not be enabled.
DEBUG_BLT

This option enables special BLT debugging messages on the debugging serial port. This
option, when enabled, will drastically impact display driver performance, and should only
be used to track down failures in the BLT operations.
This option should be disabled unless doing BLT debugging.

Mode File
A second variable which will affect the finished display driver is the register configurations
contained in the mode file.
The MODE tables (contained in files MODE0.H, MODE1.H, MODE2.H . . .) contain
register information to control the desired display mode. The MODE tables must be
generated by the configuration program 13708CFG.EXE. The display driver comes with
one example MODE table:
• MODE0.H - LCD 8-bit STN color, 320x240, 8bpp, 70Hz
By default, only MODE0.H is used by the display driver. New mode tables can be created
using the 13708CFG program. Edit the #include section of MODE.H to add the new mode
table.
If you only support a single mode table, you do not need to add any information to the
WinCE registry. If, however, you support more that one display mode, you should create
registry values (see below) that will establish the initial display mode. If your display driver
contains multiple mode tables, and if you do not add any registry values, the display driver
will default to the first mode table in your list.
To select which display mode the display driver should use upon boot, add the following
lines to your PLATFORM.REG file:
[HKEY_LOCAL_MACHINE\Drivers\Display\S1D13708]

S1D13708
X39A-E-006-01

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 11

“Width”=dword:140
“Height”=dword:F0
“Bpp”=dword:8
“Rotation”=dword:0
Note that all dword values are in hexadecimal, therefore 140h = 320 and F0h = 240. When
the display driver starts, it will read these values in the registry and attempt to match a mode
table against them. All values must be present and valid for a match to occur, otherwise the
display driver will default to the first mode table in your list.
A WinCE desktop application (or control panel applet) can change these registry values,
and the display driver will select a different mode upon warmboot. This allows the display
driver to support different display configurations and/or orientations. An example application that controls these registry values will be made available upon the next release of the
display driver; preliminary alpha code is available by special request.

Resource Management Issues
The Windows CE 3.0 OEM must deal with certain display driver issues relevant to
Windows CE 3.0. These issues require the OEM balance factors such as: system vs. display
memory utilization, video performance, and power off capabilities.
The section “Simple Display Driver Configuration” on page 13 provides a configuration
which should work with most Windows CE platforms. This section is only intended as a
means of getting started. Once the developer has a functional system, it is recommended to
optimize the display driver configuration as described below in “Description of Windows
CE Display Driver Issues”.
Description of Windows CE Display Driver Issues

The following are some issues to consider when configuring the display driver to work with
Windows CE:
1. When Windows CE enters the Suspend state (power-off), the LCD controller and display memory may lose power, depending on how the OEM sets up the system. If display memory loses power, all images stored in display memory are lost.
If power-off/power-on features are required, the OEM has several options:
•

If display memory power is turned off, add code to the display driver to save any
images in display memory to system memory before power-off, and add code to
restore these images after power-on.

• If display memory power is turned off, instruct Windows CE to redraw all images
upon power-on. Unfortunately it is not possible to instruct Windows CE to redraw any
off-screen images, such as icons, slider bars, etc., so in this case the OEM must also
configure the display driver to never use off-screen memory.
• Ensure that display memory never loses power.

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

S1D13708
X39A-E-006-01

Page 12

Epson Research and Development
Vancouver Design Center

2. Using off-screen display memory significantly improves display performance. For example, slider bars appear more smooth when using off-screen memory. To enable or
disable the use of off-screen memory, edit the file: x:\wince300\platform\cepc\drivers\display\S1D13708\sources. In SOURCES, there is a line which, when uncommented, will instruct Windows CE to use off-screen display memory (if sufficient
display memory is available):
CDEFINES=$(CDEFINES) -DEnablePreferVmem
3. In the file PROJECT.REG under CE 3.0, there is a key called PORepaint (search the
Windows CE directories for PROJECT.REG). PORepaint is relevant when the Suspend state is entered or exited. PORepaint can be set to 0, 1, or 2 as described below:
a. PORepaint=0
•

This mode tells Windows CE not to save or restore display memory on suspend or resume.

•

Since display data is not saved and not repainted, this is the FASTEST mode.

•

Main display data in display memory must NOT be corrupted or lost on suspend. The memory clock must remain running.

•

Off-screen data in display memory must NOT be corrupted or lost on suspend. The memory clock must remain running.

•

This mode cannot be used if power to the display memory is turned off.

b. PORepaint=1

S1D13708
X39A-E-006-01

•

This is the default mode for Windows CE.

•

This mode tells Windows CE to save the main display data to the system
memory on suspend.

•

This mode is used if display memory power is going to be turned off when the
system is suspended, and there is enough system memory to save the image.

•

Any off-screen data in display memory is LOST when suspended. Therefore
off-screen memory usage must either be disabled in the display driver (i.e:
EnablePreferVmem not defined in SOURCES file), or new OEM-specific
code must be added to the display driver to save off-screen data to system
memory when the system is suspended, and restored when resumed.

•

If off-screen data is used (provided that the OEM has provided code to save
off-screen data when the system suspends), additional code must be added to
the display driver’s surface allocation routine to prevent the display driver
from allocating the “main memory save region” in display memory. When
WinCE OS attempts to allocate a buffer to save the main display data, WinCE
OS marks the allocation request as preferring display memory. We believe
this is incorrect. Code must be added to prevent this specific allocation from
being allocated in display memory - it MUST be allocated from system memory.

•

Since the main display data is copied to system memory on suspend, and then
simply copied back on resume, this mode is FAST, but not as fast as mode 0.

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

Epson Research and Development
Vancouver Design Center

Page 13

c. PORepaint=2
•

This mode tells WinCE to not save the main display data on suspend, and
causes WinCE to REPAINT the main display on resume.

•

This mode is used if display memory power is going to be turned off when the
system is suspended, and there is not enough system memory to save the image.

•

Any off-screen data in display memory is LOST, and since there is insufficient system memory to save display data, off-screen memory usage MUST
be disabled.

•

When the system is resumed, WinCE instructs all running applications to repaint themselves. This is the SLOWEST of the three modes.

Simple Display Driver Configuration

The following display driver configuration should work with most platforms running
Windows CE. This configuration disables the use of off-screen display memory and forces
the system to redraw the main display upon power-on.
1. This step disables the use of off-screen display memory.
Edit the file x:\wince300\platform\cepc\drivers\display\S1D13708\sources and
change the line
CDEFINES=$(CDEFINES) -DEnablePreferVmem
to
#CDEFINES=$(CDEFINES) -DEnablePreferVmem
2. This step causes the system to redraw the main display upon power-on. This step is
only required if display memory loses power when Windows CE is shut down. If display memory is kept powered up (set the S1D13708 in powersave mode), then the display data will be maintained and this step can be skipped.
Search for the file PROJECT.REG in your Windows CE directories, and inside
PROJECT.REG find the key PORepaint. Change PORepaint as follows:
“PORepaint”=dword:2

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

S1D13708
X39A-E-006-01

Page 14

Epson Research and Development
Vancouver Design Center

Comments
• The display driver is CPU independent, allowing use of the driver for several Windows
CE Platform Builder supported platforms. The file s1dflat.cpp will require editing for
the correct values of PhysicalPortAddr, PhysicalVmemAddr, etc.
• If you are running the display driver on hardware other than the S5U13708B00C evaluation board, you must ensure that your hardware provides the correct clock frequencies
for CLKI, CLKI2 and XTAL. 13708CFG defaults to 50MHz for both CLKI and CLKI2,
and 12MHz for XTAL.
If you run the S1D13708 with a single clock source, make sure your clock sources for
PCLK, BCLK, and MCLK are correctly set to use the correct clock input source. Also
ensure that you enable the clock dividers as required for different display hardware.
• If you are using 13708cfg.exe to produce multiple MODE tables, make sure you change
the Mode Number setting for each mode table you generate. The display driver supports
multiple mode tables, but only if each mode table has a unique mode number. For more
information on setting the mode number, see the 13708CFG User Manual, document
number X39A-B-001-xx.
• The 13708CFG program assumes you are using the S5U13708B00C evaluation board,
and defaults the Panel Power control to GPIO0. 13708CFG allows you to change the
GPIO pin used to control panel power, or to disable the use of GPIO pins altogether. If
this is changed from the default, your driver will no longer be able to control panel
power on the S5U13708B00C evaluation board, and your panel may not be powered up
correctly.
• At this time, the driver has been tested on the x86 CPUs and have been run with Platform Builder v3.00.

S1D13708
X39A-E-006-01

Windows® CE 3.x Display Drivers
Issue Date: 01/11/14

S1D13708 Embedded Memory LCD Controller

Power Consumption
Document Number: X39A-G-006-01

Copyright © 2001 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

S1D13708
X39A-G-006-01

Power Consumption
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 3

1 S1D13708 Power Consumption
The S1D13708 power consumption can be affected by many system design variables.
Some of the variables to consider are:
• Input Clock Frequency (CLKI/CLKI2/XTAL): CLKI/CLKI2/XTAL frequency
determines the LCD frame-rate, CPU performance to memory, and other functions – the
higher the input clock frequency will result in higher power consumption.
• CPU interface: the S1D13708 current consumption depends on the BCLK frequency,
data width, number of toggling pins, and other factors – using higher BCLK gives
higher CPU performance but results in higher power consumption.
• VDD Voltage Level: the voltage level affects power consumption – the higher the
voltage, the higher the power consumption.
• Display Mode: the resolution and color depth affect power consumption – the higher
the
resolution/color depth, the higher the power consumption.
• Internal CLK Divide: internal registers allow the input clock to be divided before
going to the internal logic blocks – the higher the divide, the lower the power consumption.
There is a power save mode in the S1D13708 where the power consumption is affected by
various system design variables.
• Clock States During The Power Save Mode: disabling the clock oscillation during
power save mode has substantial power savings.
All unused input pins are tied to ground or as specified in the Hardware Functional Specification, document number X39A-A-001-xx.

Power Consumption
Issue Date: 01/11/25

S1D13708
X39A-G-006-01

Page 4

Epson Research and Development
Vancouver Design Center

1.1 Conditions
To illustrate the various factors that can effect power, the following table list the power
consumption for a typical Motorola DragonBall VZ interface implementation. The
DragonBall clock output of 33MHz was the connected to CLKI and divided internally for
BCLK, MCLK and PCLK.
The following table provides an example of some 320x240 and 160x160 panels and the
effects on power consumption in specific environments. The following conditions apply:
• All tests had an appropriate LCD panel connected to the LCD outputs of the S1D13708.
• All tests were run with a static full color palette display.
• All tests were done using the DragonBall host bus interface (CLKI = 33MHz).

Table 1-1: S1D13708 Power Consumption
Power Consumption (mA)

Test Condition
CORE VDD = 1.8V and IO VDD = 3.3V
Resolution

Panel Type Frame
(Color)
Rate

160x160

Color
CORE
Depth

Power Save Mode

IO

CORE1

IO1

CORE2

IO2

8

1.51

4.13

0.86

0.57

0.56

0.34

4

1.33

3.79

—

—

—

—

2

1.24

3.76

—

—

—

—

84

CLKI= 33MHz
MCLK= BCLK= CLKI
PCLK= CLKI/4

1

1.20

3.78

—

—

—

—

18-Bit
TFT

72

CLKI= 33MHz
MCLK= BCLK= CLKI
PCLK= CLKI/4

8

1.52

4.81

—

—

—

—

8-Bit STN
Format 2

93

CLKI= 33MHz
MCLK= BCLK= CLKI
PCLK= CLKI/4

8

1.75

4.17

—

—

—

—

16

1.24

2.83

0.80

0.57

0.51

0.34

8

1.10

2.66

—

—

—

—

4

1.02

2.40

—

—

—

—

2

0.98

2.37

—

—

—

—

1

0.97

2.41

—

—

—

—

18-Bit
HR-TFT
320x240

Clocks (MHz)

S1D13708
Active

18-Bit
HR-TFT

93

CLKI= 33MHz
MCLK= BCLK= CLKI
PCLK= CLKI/8

1. S1D13708 Power Save Mode enabled, CLKI is active.
2. S1D13708 Power Save Mode enabled, CLKI is inactive with input tied to ground.

S1D13708
X39A-G-006-01

Power Consumption
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 5

2 Summary
Table 1-1:, “S1D13708 Power Consumption,” on page 4 shows that the S1D13708 power
consumption depends on the specific implementation. Active Mode power consumption
depends on the desired CPU performance and LCD frame-rate, whereas power save mode
consumption depends on the CPU Interface and Input Clock state.
In a typical design environment, the S1D13708 can be configured to be an extremely
power-efficient LCD Controller with high performance and flexibility.

Power Consumption
Issue Date: 01/11/25

S1D13708
X39A-G-006-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-006-01

Power Consumption
Issue Date: 01/11/25

S1D13708 Embedded Memory LCD Controller

Interfacing to the NEC VR4102 /
VR4111 Microprocessors
Document Number: X39A-G-007-01

Copyright © 2001 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 Trademarks are the property of their respective owners.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-007-01

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2

Interfacing to the NEC VR4102/VR4111 . . . . . .
2.1 The NEC VR41XX System Bus . . . . . . . .
2.1.1 Overview . . . . . . . . . . . . . . . . . . .
2.1.2 LCD Memory Access Cycles . . . . . . . . .

3

S1D13708 Host Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.1 Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . 10
3.2 Host Bus Interface Signals . . . . . . . . . . . . . . . . . . . . . . . . . 11

4

VR4102/VR4111 to S1D13708 Interface
4.1 Hardware Description . . . . . . .
4.2 S1D13708 Hardware Configuration . .
4.3 NEC VR4102/VR4111 Configuration .

5

Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

6

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.1 Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.2 Document Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

7

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
7.1 Epson LCD Controllers (S1D13708) . . . . . . . . . . . . . . . . . . . . . 17
7.2 NEC Electronics Inc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. . .
. . .

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

. . . . . .
. . . . .
. . . . . . .
. . . . . . .

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. 8
.8
. 8
. 9

12
12
13
14

S1D13708
X39A-G-007-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-007-01

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 5

List of Tables
Table 3-1: Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 4-1: Summary of Power-On/Reset Configuration Options . . . . . . . . . . . . . . . . . . . 13
Table 4-2: CLKI to BCLK Divide Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

List of Figures
Figure 2-1: NEC VR4102/VR4111 Read/Write Cycles . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 4-1: Typical Implementation of VR4102/VR4111 to S1D13708 Interface . . . . . . . . . . . 12

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

S1D13708
X39A-G-007-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-007-01

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 7

1 Introduction
This application note describes the hardware and software environment required to
interface the S1D13708 Embedded Memory LCD Controller and the NEC VR4102/4111
microprocessor. The NEC VR4102 and VR4111 microprocessors are specifically designed
to support an external LCD controller.
The designs described in this document are presented only as examples of how such
interfaces might be implemented. This application note is updated as appropriate. Please
check the Epson Research and Development website at http://www.erd.epson.com for the
latest revision of this document before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

S1D13708
X39A-G-007-01

Page 8

Epson Research and Development
Vancouver Design Center

2 Interfacing to the NEC VR4102/VR4111
2.1 The NEC VR41XX System Bus
The VR-Series family of microprocessors features a high-speed synchronous system bus
typical of modern microprocessors. Designed with external LCD controller support and
Windows® CE based embedded consumer applications in mind, the VR4102/VR4111
offers a highly integrated solution for portable systems. This section is an overview of the
operation of the CPU bus to establish interface requirements.

2.1.1 Overview
The NEC VR series microprocessor is designed around the RISC architecture developed by
MIPS. The VR4102 microprocessor is designed around the 66MHz VR4100 CPU core and
the VR4111 is designed around the 80/100MHz VR4110 core. These microprocessors
support 64-bit processing. The CPU communicates with the Bus Control Unit (BCU)
through its internal SysAD bus. The BCU in turn communicates with external devices with
its ADD and DATA busses which can be dynamically sized for 16 or 32-bit operation.
The NEC VR4102/VR4111 can directly support an external LCD controller through a
dedicated bus interface. Specific control signals are assigned for an external LCD controller
in order to provide an easy interface to the CPU. A 16M byte block of memory is assigned
for the LCD controller with its own chip select and ready signals available. Word or byte
accesses are controlled by the system high byte signal (SHB#).

S1D13708
X39A-G-007-01

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 9

2.1.2 LCD Memory Access Cycles
Once an address in the LCD block of memory is placed on the external address bus
(ADD[25:0]) the LCD chip select (LCDCS#) is driven low. The read enable (RD#) or write
enable (WR#) signals are driven low for the appropriate cycle. LCDRDY is driven low by
the S1D13708 to insert wait states into the cycle. The system high byte enable is driven low
for 16-bit transfers and high for 8-bit transfers.
Figure 2-1: “NEC VR4102/VR4111 Read/Write Cycles,” shows the read and write cycles
to the LCD Controller Interface.

TCLK

ADD[25:0]

VALID

SHB#

LCDCS#

WR#,RD#

D[15:0]
(write)

D[15:0]
(read)

VALID

Hi-Z
VALID

Hi-Z

LCDRDY

Figure 2-1: NEC VR4102/VR4111 Read/Write Cycles

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

S1D13708
X39A-G-007-01

Page 10

Epson Research and Development
Vancouver Design Center

3 S1D13708 Host Bus Interface
The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit
Generic #2 Host Bus Interface which is most suitable for direct connection to the NEC
VR4102/4111 microprocessor. Generic #2 supports an external Chip Select, shared
Read/Write Enable for high byte, and individual Read/Write Enable for low byte.
The Generic #2 Host Bus Interface is selected by the S1D13708 on the rising edge of
RESET#. After RESET# is released, the bus interface signals assume their selected configuration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware
Configuration” on page 13.

3.1 Host Bus Interface Pin Mapping
The following table shows the functions of each Host Bus Interface signal.
Table 3-1: Host Bus Interface Pin Mapping

S1D13708
X39A-G-007-01

S1D13708
Pin Names

NEC VR4102/4111

AB[16:0]

ADD[16:0]

DB[15:0]

DAT[15:0]

WE1#

SHB#

CS#

LCDCS#

M/R#

ADD17

CLKI

BUSCLK

BS#

connect to IO VDD

RD/WR#

connect to IO VDD

RD#

RD#

WE0#

WR#

LCDRDY

WAIT#

RESET#

system RESET

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 11

3.2 Host Bus Interface Signals
The Host Bus Interface requires the following signals:
• CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source
for its internal bus and memory clocks. This clock is typically driven by the host CPU
system clock. For this example, BUSCLK from the NEC VR4102/4111 is used for
CLKI.
• The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the NEC
VR4102/4111 address bus (ADD[16:0]) and data bus (DAT[15:0]), respectively. CNF4
must be set to select little endian mode.
• Chip Select (CS#) must be driven low by LCDCS# whenever the S1D13708 is accessed
by the VR4102/4111.
• M/R# (memory/register) selects between memory or register accesses. This signal may
be connected to an address line, allowing system address ADD17 to be connected to the
M/R# line.
• WE1# connects to SHB# (the high byte enable signal from the NEC VR4102/4111)
which in conjunction with address bit 0 allows byte steering of read and write operations.
• WE0# connects to WR# (the write enable signal from the NEC VR4102/4111) and must
be driven low when the VR4102/4111 is writing data to the S1D13708.
• RD# connects to RD# (the read enable signal from the NEC VR4102/4111) and must be
driven low when the VR4102/4111 is reading data from the S1D13708.
• WAIT# connects to LCDRDY and is a signal output from the S1D13708 that indicates
the VR4102/VR4111 must wait until data is ready (read cycle) or accepted (write cycle)
on the host bus. Since VR4102/VR4111 accesses to the S1D13708 may occur asynchronously to the display update, it is possible that contention may occur in accessing the
S1D13708 internal registers and/or display buffer. The WAIT# line resolves these
contentions by forcing the host to wait until the resource arbitration is complete.
• The Bus Status (BS#) and Read/Write (RD/WR#) signals are not used in this implementation of the NEC VR4102/4111 interface using the Generic #2 Host Bus Interface.
These pins must be tied high (connected to IO VDD).

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

S1D13708
X39A-G-007-01

Page 12

Epson Research and Development
Vancouver Design Center

4 VR4102/VR4111 to S1D13708 Interface
4.1 Hardware Description
The NEC VR4102/VR4111 microprocessor is specifically designed to support an external
LCD controller by providing the internal address decoding and control signals necessary.
By using the Generic # 2 Host Bus Interface, no glue logic is required to interface the
S1D13708 and the NEC VR4102/VR4111.
A pull-up resistor is attached to WAIT# to speed its rise time when terminating a cycle.
BS# (bus start) and RD/WR# are not used by the Generic #2 Host Bus Interface and must
be tied high (connected to IO VDD).
The following diagram shows a typical implementation of the VR4102/VR4111 to
S1D13708 interface.

NEC VR4102/VR4111

S1D13708

WR#

WE0#

SHB#

WE1#
RD#

RD#

LCDCS#

CS#

IO VDD Pull-up

LCDRDY

WAIT#
M/R#

ADD17
System RESET

RESET#

ADD[16:0]

AB[16:0]

DAT[15:0]

DB[15:0]

BUSCLK

CLKI
IO VDD

BS#
RD/WR#
Note:
When connecting the S1D13708 RESET# pin, the system designer should be aware of all
conditions that may reset the S1D13708 (e.g. CPU reset can be asserted during wake-up
from power-down modes, or during debug states).

Figure 4-1: Typical Implementation of VR4102/VR4111 to S1D13708 Interface

S1D13708
X39A-G-007-01

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 13

4.2 S1D13708 Hardware Configuration
The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other
configuration data on the rising edge of RESET#. For details on configuration, refer to the
S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
The following table shows the configuration required for this implementation of a
S1D13708 to NEC VR4102/4111 interface.
Table 4-1: Summary of Power-On/Reset Configuration Options
S1D13708
Pin Name

value on this pin at the rising edge of RESET# is used to configure: (1/0)
1

0

CNF[4, 2:0]

0100 = Generic #2 Little Endian Host Bus Interface

CNF3

GPIO pins as inputs at power on

GPIO pins as HR-TFT / D-TFT outputs

CNF5

Active high WAIT#

Active low WAIT#

CNF[7:6]

see Table 4-2: “CLKI to BCLK Divide Selection” for recommended setting
= configuration for NEC VR4102/VR4111

Table 4-2: CLKI to BCLK Divide Selection
CNF7
0
0
1
1

CNF6
0
1
0
1

CLKI to BCLK Divide
1:1
2:1
3:1
4:1

= recommended setting for NEC VR4102/VR4111

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

S1D13708
X39A-G-007-01

Page 14

Epson Research and Development
Vancouver Design Center

4.3 NEC VR4102/VR4111 Configuration
The NEC VR4102/4111 provides the internal address decoding necessary to map an
external LCD controller. Physical address 0A00_0000h to 0AFF_FFFFh (16M bytes) is
reserved for an external LCD controller by the NEC VR4102/4111.
The S1D13708 is a memory mapped device. The S1D13708 uses two 128K byte blocks
which are selected using ADD17 from the NEC VR4102/4111 (ADD17 is connected to the
S1D13708 M/R# pin).The internal registers occupy the first 128K bytes block and the 80K
byte display buffer occupies the second 128K byte block.
The starting address of the S1D13708 internal registers is located at 0A00_0000h and the
starting address of the display buffer is located at 0A02_0000h. These blocks are aliased
over the entire 16M byte address space.
Note

If aliasing is not desirable, the upper addresses must be fully decoded.
The NEC VR4102/VR4111 has a 16-bit internal register named BCUCNTREG2 located at
0B00_0002h. It must be set to the value of 0001h which indicates that LCD controller
accesses use a non-inverting data bus.
The 16-bit internal register named BCUCNTREG1 (located at 0B00_0000h) must have bit
D[13] (ISA/LCD bit) set to 0. This reserves 16M bytes (from 0A00_0000h to
0AFF_FFFFh) for use by the LCD controller and not as ISA bus memory space.

S1D13708
X39A-G-007-01

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 15

5 Software
Test utilities and display drivers are available for the S1D13708. Full source code is
available for both the test utilities and the drivers.
The test utilities are configurable for different panel types using a program called
13708CFG, or by directly modifying the source. The display drivers can be customized by
the OEM for different panel types, resolutions and color depths only by modifying the
source.
The S1D13708 test utilities and display drivers are available from your sales support
contact or www.erd.epson.com.

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

S1D13708
X39A-G-007-01

Page 16

Epson Research and Development
Vancouver Design Center

6 References
6.1 Documents
• NEC Electronics Inc., VR4102/VR4111 64/32-bit Microprocessor Preliminary User’s
Manual.
• Epson Research and Development, Inc., S1D13708 Hardware Functional Specification,
document number X39A-A-001-xx.
• Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board
User Manual, document number X39A-G-004-xx.
• Epson Research and Development, Inc., S1D13708 Programming Notes and Examples,
document number X39A-G-003-xx.

6.2 Document Sources
• NEC Electronics Inc. website: http://www.necel.com.
• Epson Research and Development Website: http://www.erd.epson.com/.

S1D13708
X39A-G-007-01

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 17

7 Technical Support
7.1 Epson LCD Controllers (S1D13708)
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

7.2 NEC Electronics Inc.
NEC Electronics Inc. (U.S.A.)
Corporate Headquarters
2880 Scott Blvd.
Santa Clara, CA 95050-8062, USA
Tel: (800) 366-9782
Fax: (800) 729-9288
http://www.necel.com

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

S1D13708
X39A-G-007-01

Page 18

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-007-01

Interfacing to the NEC VR4102 / VR4111 Microprocessors
Issue Date: 01/11/05

S1D13708 Embedded Memory LCD Controller

Interfacing to the NEC VR4181A™
Microprocessor
Document Number: X39A-G-008-01

Copyright © 2001 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 Trademarks are the property of their respective owners.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-008-01

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2

Interfacing to the NEC VR4181A . . .
2.1 The NEC VR4181A System Bus . .
2.1.1 Overview . . . . . . . . . . .
2.1.2 LCD Memory Access Signals .

3

S1D13708 Host Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.1 Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . 10
3.2 Host Bus Interface Signals . . . . . . . . . . . . . . . . . . . . . . . . . 11

4

VR4181A to S1D13708 Interface . .
4.1 Hardware Description . . . . .
4.2 S1D13708 Hardware Configuration
4.3 NEC VR4181A Configuration . .

5

Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

6

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.1 Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
6.2 Document Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

7

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
7.1 Epson LCD Controllers (S1D13708) . . . . . . . . . . . . . . . . . . . . . 17
7.2 NEC Electronics Inc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

.
.
.
.

. . . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. . .
. . .

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

. . . . . .
. . . . .
. . . . . . .
. . . . . . .

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. 8
.8
. 8
. 9

12
12
13
14

S1D13708
X39A-G-008-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-008-01

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 5

List of Tables
Table 3-1: Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 4-1: Summary of Power-On/Reset Configuration Options . . . . . . . . . . . . . . . . . . . 13
Table 4-2: CLKI to BCLK Divide Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

List of Figures
Figure 4-1: Typical Implementation of VR4181A to S1D13708 Interface . . . . . . . . . . . . . . . 12

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

S1D13708
X39A-G-008-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-008-01

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 7

1 Introduction
This application note describes the hardware and software environment required to
interface the S1D13708 Embedded Memory LCD Controller and the NEC VR4181A
microprocessor. The NEC VR4181A microprocessor is specifically designed to support an
external LCD controller.
The designs described in this document are presented only as examples of how such
interfaces might be implemented. This application note is updated as appropriate. Please
check the Epson Research and Development website at http://www.erd.epson.com for the
latest revision of this document before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

S1D13708
X39A-G-008-01

Page 8

Epson Research and Development
Vancouver Design Center

2 Interfacing to the NEC VR4181A
2.1 The NEC VR4181A System Bus
The VR-Series family of microprocessors features a high-speed synchronous system bus
typical of modern microprocessors. Designed with external LCD controller support and
Windows® CE based embedded consumer applications in mind, the VR4181A offers a
highly integrated solution for portable systems. This section is an overview of the operation
of the CPU bus to establish interface requirements.

2.1.1 Overview
The NEC VR4181A is designed around the RISC architecture developed by MIPS. This
microprocessor is designed around the 100MHz VR4110 CPU core which supports the
MIPS III and MIPS16 instruction sets. The CPU communicates with external devices via
an ISA interface.
While the VR4181A has an embedded LCD controller, this internal controller can be
disabled to provide direct support for an external LCD controller through its external ISA
bus. A 64 to 512K byte block of memory is assigned to the external LCD controller with a
dedicated chip select signal (LCDCS#). Word or byte accesses are controlled by the system
high byte signal (#UBE).

S1D13708
X39A-G-008-01

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 9

2.1.2 LCD Memory Access Signals
The S1D13708 requires an addressing range of 256K bytes. When the VR4181A external
LCD controller chip select signal is programmed to a window of that size, the S1D13708
resides in the VR4181A physical address range of 133C 0000h to 133F FFFFh. This range
is part of the external ISA memory space.
The following signals are required to access an external LCD controller. All signals obey
ISA signalling rules.
• A[16:0] is the address bus.
• #UBE is the high byte enable (active low).
• #LCDCS is the chip select for the S1D13708 (active low).
• D[15:0] is the data bus.
• #MEMRD is the read command (active low).
• #MEMWR is the write command (active low).
• #MEMCS16 is the acknowledge for 16-bit peripheral capability (active low).
• IORDY is the ready signal from S1D13708.
• SYSCLK is the prescalable bus clock (optional).
Once an address in the LCD block of memory is accessed, the LCD chip select (#LCDCS)
is driven low. The read or write enable signals (#MEMRD or #MEMWR) are driven low
for the appropriate cycle and IORDY is driven low by the S1D13708 to insert wait states
into the cycle. The high byte enable (UBE#) is driven low for 16-bit transfers and high for
8-bit transfers.

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

S1D13708
X39A-G-008-01

Page 10

Epson Research and Development
Vancouver Design Center

3 S1D13708 Host Bus Interface
The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit
Generic #2 Host Bus Interface which is most suitable for direct connection to the NEC
VR4181A microprocessor. Generic #2 supports an external Chip Select, shared Read/Write
Enable for high byte, and individual Read/Write Enable for low byte.
The Generic #2 Host Bus Interface is selected by the S1D13708 on the rising edge of
RESET#. After RESET# is released, the bus interface signals assume their selected configuration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware
Configuration” on page 13.

3.1 Host Bus Interface Pin Mapping
The following table shows the functions of each Host Bus Interface signal.
Table 3-1: Host Bus Interface Pin Mapping

S1D13708
X39A-G-008-01

S1D13708
Pin Names

NEC VR4181A

AB[16:0]

A[16:0]

DB[15:0]

D[15:0]

WE1#

#UBE

CS#

#LCDCS

M/R#

A17

CLKI

SYSCLK

BS#

Connect to IO VDD

RD/WR#

Connect to IO VDD

RD#

#MEMRD

WE0#

#MEMWR

WAIT#

IORDY

RESET#

RESET#

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 11

3.2 Host Bus Interface Signals
The interface requires the following signals.
• CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source
for its internal bus and memory clocks. This clock is typically driven by the host CPU
system clock. For this example, SYSCLK from the NEC VR4181A is used for CLKI.
• The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the NEC
VR4181A address (A[16:0]) and data bus (D[15:0]), respectively. CNF4 must be set to
select little endian mode.
• Chip Select (CS#) must be driven low by #LCDCS whenever the S1D13708 is accessed
by the VR4181A.
• M/R# (memory/register) selects between memory or register accesses. This signal may
be connected to an address line, allowing system address A17 to be connected to the
M/R# line.
• WE1# connects to #UBE (the high byte enable signal from the NEC VR4181A) which
in conjunction with address bit 0 allows byte steering of read and write operations.
• WE0# connects to #MEMWR (the write enable signal from the NEC VR4181A) and
must be driven low when the NEC VR4181A is writing data to the S1D13708.
• RD# connects to #MEMRD (the read enable signal from the NEC VR4181A) and must
be driven low when the NEC VR4181A is reading data from the S1D13708.
• WAIT# connects to IORDY and is a signal which is output from the S1D13708 which
indicates the NEC VR4181A must wait until data is ready (read cycle) or accepted
(write cycle) on the host bus. Since VR4181A accesses to the S1D13708 may occur
asynchronously to the display update, it is possible that contention may occur in
accessing the S1D13708 internal registers and/or display buffer. The WAIT# line
resolves these contentions by forcing the host to wait until the resource arbitration is
complete.
• The Bus Status (BS#) and Read/Write (RD/WR#) signals are not used in this implementation of the NEC VR4181A interface using the Generic #2 Host Bus Interface. These
pins must be tied high (connected to IO VDD).

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

S1D13708
X39A-G-008-01

Page 12

Epson Research and Development
Vancouver Design Center

4 VR4181A to S1D13708 Interface
4.1 Hardware Description
The NEC VR4181A microprocessor is specifically designed to support an external LCD
controller by providing the internal address decoding and control signals necessary. By
using the Generic # 2 Host Bus Interface, no glue logic is required to interface the
S1D13708 to the NEC VR4181A.
A pull-up resistor is attached to WAIT# to speed up its rise time when terminating a cycle.
#MEMCS16 of the NEC VR4181A is connected to #LCDCS to signal that the S1D13708
is capable of 16-bit transfers.
BS# (bus start) and RD/WR# are not used by the Generic #2 Host Bus Interface and must
be tied high (connected to IO VDD).
The diagram below shows a typical implementation of the VR4181A to S1D13708
interface.
NEC VR4181A

S1D13708

#MEMWR

WE0#

#UBE

WE1#
RD#

#MEMRD

M/R#

A17
#LCDCS

CS#

IO VDD Pull-up

IORDY

WAIT#

#MEMCS16
System RESET

RESET#

A[16:0]

AB[16:0]

D[15:0]

DB[15:0]

SYSCLK
IO VDD

CLKI
BS#
RD/WR#

Note:
When connecting the S1D13708 RESET# pin, the system designer should be aware of all
conditions that may reset the S1D13708 (e.g. CPU reset can be asserted during wake-up
from power-down modes, or during debug states).

Figure 4-1: Typical Implementation of VR4181A to S1D13708 Interface

S1D13708
X39A-G-008-01

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 13

4.2 S1D13708 Hardware Configuration
The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other
configuration data on the rising edge of RESET#. For details on configuration, refer to the
S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
The following table shows the configuration required for this implementation of a
S1D13708 to NEC VR181A interface.
Table 4-1: Summary of Power-On/Reset Configuration Options
S1D13708
Pin Name

value on this pin at the rising edge of RESET# is used to configure: (1/0)
1

0

CNF[4, 2:0] 0100 = Generic #2 Little Endian Host Bus Interface
CNF3

GPIO pins as inputs at power on

GPIO pins as HR-TFT / D-TFT outputs

CNF5

Active high WAIT#

Active low WAIT#

CNF[7:6]

see Table “” for recommended setting
= configuration for NEC VR4181A

Table 4-2: CLKI to BCLK Divide Selection
CNF7
0
0
1
1

CNF6
0
1
0
1

CLKI to BCLK Divide
1:1
2:1
3:1
4:1

= recommended setting for NEC VR4181A

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

S1D13708
X39A-G-008-01

Page 14

Epson Research and Development
Vancouver Design Center

4.3 NEC VR4181A Configuration
The S1D13708 is a memory mapped device. The S1D13708 uses two 128K byte blocks
which are selected using A17 from the NEC VR181A (A17 is connected to the S1D13708
M/R# pin).The internal registers occupy the first 128K bytes block and the 80K byte
display buffer occupies the second 128K byte block.
When the VR4181A embedded LCD controller is disabled, the external LCD controller
chip select signal (#LCDCS) decodes either a 64K byte, 128K byte, 256K byte, or 512K
byte memory block in the VR4181A external ISA memory. The S1D13708 requires this
block of memory to be set to 256K bytes. With this configuration, the S1D13708 internal
registers starting address is located at physical memory location 133C_0000h and the
display buffer is located at memory location 133E_0000h.
The NEC VR4181A must be configured through its internal registers to map the S1D13708
to the external LCD controller space. The following register values must be set.
• Register LCDGPMD at address 0B00_032Eh must be set as follows.
• Bit 7 must be set to 1 to disable the internal LCD controller and enable the external
LCD controller interface. Disabling the internal LCD controller also maps pin
SHCLK to #LCDCS and pin LOCLK to #MEMCS16.
• Bits [1:0] must be set to 10b to reserve 256Kbytes of memory address range,
133C_0000h to 133F_FFFFh for the external LCD controller.
• Register GPMD2REG at address 0B00_0304h must be set as follows.
• Bits [9:8] (GP20MD[1:0]) must be set to 11’b to map pin GPIO20 to #UBE.
• Bits [5:4] (GP18MD[1:0]) must be set to 01’b to map pin GPIO18 to IORDY.

S1D13708
X39A-G-008-01

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 15

5 Software
Test utilities and display drivers are available for the S1D13708. Full source code is
available for both the test utilities and the drivers.
The test utilities are configurable for different panel types using a program called
13708CFG, or by directly modifying the source. The display drivers can be customized by
the OEM for different panel types, resolutions and color depths only by modifying the
source.
The S1D13708 test utilities and display drivers are available from your sales support
contact or www.erd.epson.com.

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

S1D13708
X39A-G-008-01

Page 16

Epson Research and Development
Vancouver Design Center

6 References
6.1 Documents
• NEC Electronics Inc., NEC VR4181A Target Specification, Revision 0.5, 9/11/98
• Epson Research and Development, Inc., S1D13708 Hardware Functional Specification,
document number X39A-A-001-xx.
• Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board
User Manual, document number X39A-G-004-xx.
• Epson Research and Development, Inc., S1D13708 Programming Notes and Examples,
document number X39A-G-003-xx.

6.2 Document Sources
• NEC Electronics Inc.website: http://www.necel.com.
• Epson Research and Development Website: http://www.erd.epson.com/.

S1D13708
X39A-G-008-01

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

Epson Research and Development
Vancouver Design Center

Page 17

7 Technical Support
7.1 Epson LCD Controllers (S1D13708)
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

7.2 NEC Electronics Inc.
NEC Electronics Inc. (U.S.A.)
Corporate Headquarters
2880 Scott Blvd.
Santa Clara, CA 95050-8062, USA
Tel: (800) 366-9782
Fax: (800) 729-9288
http://www.necel.com

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

S1D13708
X39A-G-008-01

Page 18

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-008-01

Interfacing to the NEC VR4181A™ Microprocessor
Issue Date: 01/11/05

S1D13708 Embedded Memory LCD Controller

Interfacing to the Motorola MPC821
Microprocessor
Document Number: X39A-G-009-01

Copyright © 2001 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 Trademarks are the property of their respective owners.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-009-01

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2

Interfacing to the MPC821 . . . . . . . . . . . . . . . .
2.1 The MPC8XX System Bus . . . . . . . . . . . .
2.2 MPC8XX Bus Overview . . . . . . . . . . . . .
2.2.1 Normal (Non-Burst) Bus Transactions . . . . . . .
2.2.2 Burst Cycles . . . . . . . . . . . . . . . . . . . . .
2.3 Memory Controller Module . . . . . . . . . . . .
2.3.1 General-Purpose Chip Select Module (GPCM) . . .
2.3.2 User-Programmable Machine (UPM) . . . . . . . .

3

S1D13708 Host Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.1 Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . 13
3.2 Host Bus Interface Signals . . . . . . . . . . . . . . . . . . . . . . . . . 14

4

MPC821 to S1D13708 Interface . . . . . . . . . . . . .
4.1 Hardware Description . . . . . . . . . . . . . .
4.2 MPC821ADS Evaluation Board Hardware Connections .
4.3 S1D13708 Hardware Configuration . . . . . . . . .
4.4 Register/Memory Mapping . . . . . . . . . . . .
4.5 MPC821 Chip Select Configuration . . . . . . . . .
4.6 Test Software . . . . . . . . . . . . . . . . .

5

Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21

6

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
6.1 Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
6.2 Document Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22

7

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
7.1 EPSON LCD/CRT Controllers (S1D13708) . . . . . . . . . . . . . . . . . . 23
7.2 Motorola MPC821 Processor . . . . . . . . . . . . . . . . . . . . . . . . 23

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.

. . . . . .
. . . . .
. . . . .
. . . . . . .
. . . . . . .
. . . . .
. . . . . . .
. . . . . . .

.
.
.
.
.
.
.

.
.
.
.
.
.
.

. . .
. .
. .
. .
. .
. .
. .

.
.
.
.
.
.
.

.
.
.
.
.
.
.
.

.
.
.
.
.
.
.

. . . . . . .
. . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .

.
.
.
.
.
.
.

. . .
. .
. .
. .
. .
. .
. .

.
.
.
.
.
.
.

.
.
.
.
.
.
.

.
.
.
.
.
.
.

. 8
.8
.8
. 9
10
11
11
12

15
15
16
18
18
19
20

S1D13708
X39A-G-009-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-009-01

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 5

List of Tables
Table 3-1: Host Bus Interface Pin Mapping . . . . . . . . . . . .
Table 4-1: List of Connections from MPC821ADS to S1D13708
Table 4-2: Summary of Power-On/Reset Configuration Options .
Table 4-3: CLKI to BCLK Divide Selection . . . . . . . . . . .

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

13
16
18
18

Power PC Memory Read Cycle . . . . . . . . . . . . . . .
Power PC Memory Write Cycle . . . . . . . . . . . . . . .
GPCM Memory Devices Timing . . . . . . . . . . . . . .
Typical Implementation of MPC821 to S1D13708 Interface

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

. 9
. 10
. 12
. 15

List of Figures
Figure 2-1:
Figure 2-2:
Figure 2-3:
Figure 4-1:

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

S1D13708
X39A-G-009-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-009-01

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 7

1 Introduction
This application note describes the hardware and software environment required to
interface the S1D13708 Embedded Memory LCD Controller and the Motorola MPC821
microprocessor.
The designs described in this document are presented only as examples of how such
interfaces might be implemented. This application note is updated as appropriate. Please
check the Epson Research and Development website at http://www.erd.epson.com for the
latest revision of this document before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

S1D13708
X39A-G-009-01

Page 8

Epson Research and Development
Vancouver Design Center

2 Interfacing to the MPC821
2.1 The MPC8XX System Bus
The MPC8xx family of processors feature a high-speed synchronous system bus typical of
modern RISC microprocessors. This section provides an overview of the operation of the
CPU bus in order to establish interface requirements.

2.2 MPC8XX Bus Overview
The MPC8xx microprocessor family uses a synchronous address and data bus. All IO is
synchronous to a square-wave reference clock called MCLK (Master Clock). This clock
runs at the machine cycle speed of the CPU core (typically 25 to 50 MHz). Most outputs
from the processor change state on the rising edge of this clock. Similarly, most inputs to
the processor are sampled on the rising edge.
Note

The external bus can run at one-half the CPU core speed using the clock control register.
This is typically used when the CPU core is operated above 50 MHz.
The MPC821 can generate up to eight independent chip select outputs, each of which may
be controlled by one of two types of timing generators: the General Purpose Chip Select
Module (GPCM) or the User-Programmable Machine (UPM). Examples are given using
the GPCM.
It should be noted that all Power PC microprocessors, including the MPC8xx family, use
bit notation opposite from the convention used by most other microprocessor systems. Bit
numbering for the MPC8xx always starts with zero as the most significant bit, and increments in value to the least-significant bit. For example, the most significant bits of the
address bus and data bus are A0 and D0, while the least significant bits are A31 and D31.
The MPC8xx uses both a 32-bit address and data bus. A parity bit is supported for each of
the four byte lanes on the data bus. Parity checking is done when data is read from external
memory or peripherals, and generated by the MPC8xx bus controller on write cycles. All
IO accesses are memory-mapped meaning there is no separate IO space in the Power PC
architecture.
Support is provided for both on-chip (DMA controllers) and off-chip (other processors and
peripheral controllers) bus masters. For further information on this topic, refer to Section
6, “References” on page 22.
The bus can support both normal and burst cycles. Burst memory cycles are used to fill
on-chip cache memory, and for certain on-chip DMA operations. Normal cycles are used
for all other data transfers.

S1D13708
X39A-G-009-01

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 9

2.2.1 Normal (Non-Burst) Bus Transactions
A data transfer is initiated by the bus master by placing the memory address on address
lines A0 through A31 and driving TS (Transfer Start) low for one clock cycle. Several
control signals are also provided with the memory address:
• TSIZ[0:1] (Transfer Size) — indicates whether the bus cycle is 8, 16, or 32-bit.
• RD/WR — set high for read cycles and low for write cycles.
• AT[0:3] (Address Type Signals) — provides more detail on the type of transfer being
attempted.
When the peripheral device being accessed has completed the bus transfer, it asserts TA
(Transfer Acknowledge) for one clock cycle to complete the bus transaction. Once TA has
been asserted, the MPC821 will not start another bus cycle until TA has been de-asserted.
The minimum length of a bus transaction is two bus clocks.
Figure 2-1: “Power PC Memory Read Cycle” illustrates a typical memory read cycle on
the Power PC system bus.

SYSCLK
TS
TA
A[0:31]
RD/WR
TSIZ[0:1], AT[0:3]
Sampled when TA low

D[0:31]
Transfer Start

Wait States

Transfer
Complete

Next Transfer
Starts

Figure 2-1: Power PC Memory Read Cycle

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

S1D13708
X39A-G-009-01

Page 10

Epson Research and Development
Vancouver Design Center

Figure 2-2: “Power PC Memory Write Cycle” illustrates a typical memory write cycle on
the Power PC system bus.

SYSCLK
TS
TA
A[0:31]
RD/WR
TSIZ[0:1], AT[0:3]
D[0:31]

Valid

Transfer Start

Wait States

Transfer
Complete

Next Transfer
Starts

Figure 2-2: Power PC Memory Write Cycle
If an error occurs, TEA (Transfer Error Acknowledge) is asserted and the bus cycle is
aborted. For example, a peripheral device may assert TEA if a parity error is detected, or
the MPC821 bus controller may assert TEA if no peripheral device responds at the
addressed memory location within a bus time-out period.
For 32-bit transfers, all data lines (D[0:31]) are used and the two low-order address lines
A30 and A31 are ignored. For 16-bit transfers, data lines D0 through D15 are used and
address line A31 is ignored. For 8-bit transfers, data lines D0 through D7 are used and all
address lines (A[0:31]) are used.
Note

This assumes that the Power PC core is operating in big endian mode (typically the case
for embedded systems).

2.2.2 Burst Cycles
Burst memory cycles are used to fill on-chip cache memory and to carry out certain on-chip
DMA operations. They are very similar to normal bus cycles with the following exceptions:
• Always 32-bit.
• Always attempt to transfer four 32-bit words sequentially.
• Always address longword-aligned memory (i.e. A30 and A31 are always 0:0).
• Do not increment address bits A28 and A29 between successive transfers; the addressed
device must increment these address bits internally.

S1D13708
X39A-G-009-01

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 11

If a peripheral is not capable of supporting burst cycles, it can assert Burst Inhibit (BI)
simultaneously with TA, and the processor reverts to normal bus cycles for the remaining
data transfers.
Burst cycles are mainly intended to facilitate cache line fills from program or data memory.
They are normally not used for transfers to/from IO peripheral devices such as the
S1D13708, therefore the interfaces described in this document do not attempt to support
burst cycles.

2.3 Memory Controller Module
2.3.1 General-Purpose Chip Select Module (GPCM)
The General-Purpose Chip Select Module (GPCM) is used to control memory and
peripheral devices which do not require special timing or address multiplexing. In addition
to the chip select output, it can generate active-low Output Enable (OE) and Write Enable
(WE) signals compatible with most memory and x86-style peripherals. The MPC821 bus
controller also provides a Read/Write (RD/WR) signal which is compatible with most 68K
peripherals.
The GPCM is controlled by the values programmed into the Base Register (BR) and Option
Register (OR) of the respective chip select. The Option Register sets the base address, the
block size of the chip select, and controls the following timing parameters:
• The ACS bit field allows the chip select assertion to be delayed with respect to the
address bus valid, by 0, ¼, or ½ clock cycle.
• The CSNT bit causes chip select and WE to be negated ½ clock cycle earlier than
normal.
• The TRLX (relaxed timing) bit inserts an additional one clock delay between assertion
of the address bus and chip select. This accommodates memory and peripherals with
long setup times.
• The EHTR (Extended hold time) bit inserts an additional 1-clock delay on the first
access to a chip select.
• Up to 15 wait states may be inserted, or the peripheral can terminate the bus cycle itself
by asserting TA (Transfer Acknowledge).
• Any chip select may be programmed to assert BI (Burst Inhibit) automatically when its
memory space is addressed by the processor core.

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

S1D13708
X39A-G-009-01

Page 12

Epson Research and Development
Vancouver Design Center

Figure 2-3: “GPCM Memory Devices Timing” illustrates a typical cycle for a memory
mapped device using the GPCM of the Power PC.

CLOCK

A[0:31]

TS

TA

CS

WE

OE
Valid

D[0:31]

Figure 2-3: GPCM Memory Devices Timing

2.3.2 User-Programmable Machine (UPM)
The UPM is typically used to control memory types, such as Dynamic RAMs, which have
complex control or address multiplexing requirements. The UPM is a general purpose
RAM-based pattern generator which can control address multiplexing, wait state generation, and five general-purpose output lines on the MPC821. Up to 64 pattern locations are
available, each 32 bits wide. Separate patterns may be programmed for normal accesses,
burst accesses, refresh (timer) events, and exception conditions. This flexibility allows
almost any type of memory or peripheral device to be accommodated by the MPC821.
In this application note, the GPCM is used instead of the UPM, since the GPCM has enough
flexibility to accommodate the S1D13708 and it is desirable to leave the UPM free to
handle other interfacing duties, such as EDO DRAM.

S1D13708
X39A-G-009-01

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 13

3 S1D13708 Host Bus Interface
The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit
Generic #1 Host Bus Interface which is most suitable for direct connection to the Motorola
MPC821 microprocessor. Generic #1 supports a Chip Select and an individual Read
Enable/Write Enable for each byte.
The Generic #1 Host Bus Interface is selected by the S1D13708 on the rising edge of
RESET#. After RESET# is released, the bus interface signals assume their selected configuration. For details on the S1D13708 configuration, see Section 4.3, “S1D13708 Hardware
Configuration” on page 18.

3.1 Host Bus Interface Pin Mapping
The following table shows the functions of each Host Bus Interface signal.
Table 3-1: Host Bus Interface Pin Mapping
S1D13708
Pin Names

Motorola MPC821

AB[16:0]

A[15:31]

DB[15:0]

D[0:15]

WE1#

WE0

CS#

CS4

M/R#

A14

CLKI

SYSCLK

BS#

Connect to IO VDD

RD/WR#

OE (see note)

RD#

OE (see note)

WE0#

WE1

WAIT#

TA

RESET#

System RESET

Note

The Motorola MPC821 chip select module only handles 16-bit read cycles. As the
S1D13708 uses the chip select module to generate CS#, only 16-bit read cycles are possible and both the high and low byte enables can be driven by the MPC821 signal OE.

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

S1D13708
X39A-G-009-01

Page 14

Epson Research and Development
Vancouver Design Center

3.2 Host Bus Interface Signals
The Host Bus Interface requires the following signals.
• CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source
for its internal bus and memory clocks. This clock is typically driven by the host CPU
system clock. For this example, SYSCLK from the Motorola MPC821 is used for CLKI.
• The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the
MPC821 address (A[15:31]) and data bus (D[0:15]), respectively. CNF4 must be set to
select big endian mode.
• Chip Select (CS#) must be driven low by CS4 whenever the S1D13708 is accessed by
the Motorola MPC821.
• M/R# (memory/register) selects between memory or register accesses. This signal may
be connected to an address line, allowing system address A14 to be connected to the
M/R# line.
• WE0# connects to WE1 (the low byte enable signal from the MPC821) and must be
driven low when the MPC821 is writing the low byte to the S1D13708.
• WE1# connects to WE0 (the high byte enable signal from the MPC821) and must be
driven low when the MPC821 is writing the high byte to the S1D13708.
• RD# and RD/WR# are read enables for the low-order and high-order bytes, respectively.
Both signals are driven low by OE when the Motorola MPC821 is reading data from the
S1D13708.
• WAIT# connects to TA and is a signal which is output from the S1D13708 which indicates the MPC821 must wait until data is ready (read cycle) or accepted (write cycle) on
the host bus. Since MPC821 accesses to the S1D13708 may occur asynchronously to the
display update, it is possible that contention may occur in accessing the S1D13708
internal registers and/or display buffer. The WAIT# line resolves these contentions by
forcing the host to wait until the resource arbitration is complete.
• The Bus Status (BS#) signal is not used in this implementation of the MPC821 interface
using the Generic #1 Host Bus Interface. This pin must be tied high (connected to
IO VDD).

S1D13708
X39A-G-009-01

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 15

4 MPC821 to S1D13708 Interface
4.1 Hardware Description
The interface between the S1D13708 and the MPC821 requires no external glue logic. The
polarity of the WAIT# signal must be selected as active high by connecting CNF5 to IO
VDD (see Table 4-2:, “Summary of Power-On/Reset Configuration Options,” on page 18).
BS# (bus start) is not used in this implementation and must be tied high (connected to IO
VDD).
The following diagram shows a typical implementation of the MPC821 to S1D13708
interface.
S1D13708

MPC821
A[15:31]

AB[16:0]

D[0:15]

DB[15:0]

CS4

CS#

A14

M/R#
IO VDD

BS#
TA

WAIT#

WE0

WE1#

WE1

WE0#

OE

RD/WR#
RD#

SYSCLK

CLKI
System RESET

RESET#

Note:
When connecting the S1D13708 RESET# pin, the system designer should be aware of all
conditions that may reset the S1D13708 (e.g. CPU reset can be asserted during wake-up
from power-down modes, or during debug states).

Figure 4-1: Typical Implementation of MPC821 to S1D13708 Interface
Table 4-1:, “List of Connections from MPC821ADS to S1D13708” on page 16 shows the
connections between the pins and signals of the MPC821 and the S1D13708.

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

S1D13708
X39A-G-009-01

Page 16

Epson Research and Development
Vancouver Design Center

Note

The interface was designed using a Motorola MPC821 Application Development
System (ADS). The ADS board has 5 volt logic connected to the data bus, so the
interface included two 74F245 octal buffers on D[0:15] between the ADS and the
S1D13708. In a true 3.3 volt system, no buffering is necessary.

4.2 MPC821ADS Evaluation Board Hardware Connections
The following table details the connections between the pins and signals of the MPC821
and the S1D13708.
Table 4-1: List of Connections from MPC821ADS to S1D13708

S1D13708
X39A-G-009-01

MPC821 Signal Name

MPC821ADS Connector and Pin Name

S1D13708 Signal Name

Vcc

P6-A1, P6-B1

-

A15

P6-D20

A16

A16

P6-B24

A15

A17

P6-C24

A14

A18

P6-D23

A13

A19

P6-D22

A12

A20

P6-D19

A11

A21

P6-A19

A10

A22

P6-D28

A9

A23

P6-A28

A8

A24

P6-C27

A7

A25

P6-A26

A6

A26

P6-C26

A5

A27

P6-A25

A4

A28

P6-D26

A3

A29

P6-B25

A2

A30

P6-B19

A1

A31

P6-D17

A0

D0

P12-A9

D15

D1

P12-C9

D14

D2

P12-D9

D13

D3

P12-A8

D12

D4

P12-B8

D11

D5

P12-D8

D10

D6

P12-B7

D9

D7

P12-C7

D8

D8

P12-A15

D7

D9

P12-C15

D6

D10

P12-D15

D5

D11

P12-A14

D4

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 17

Table 4-1: List of Connections from MPC821ADS to S1D13708 (Continued)
MPC821 Signal Name

MPC821ADS Connector and Pin Name

S1D13708 Signal Name

D12

P12-B14

D3

D13

P12-D14

D2

D14

P12-B13

D1

D15

P12-C13

D0

SRESET

P9-D15

RESET#

SYSCLK

P9-C2

CLKI

CS4

P6-D13

CS#

TA

P6-B6 to inverter enabled by CS#

WAIT#

WE0

P6-B15

WE1#

WE1

P6-A14

WE0#

OE

P6-B16

RD/WR#, RD#

GND

P12-A1, P12-B1, P12-A2, P12-B2,
P12-A3, P12-B3, P12-A4, P12-B4,
P12-A5, P12-B5, P12-A6, P12-B6,
P12-A7

Vss

Note

The bit numbering of the Motorola MPC821 bus signals is reversed from the normal
convention, e.g.: the most significant address bit is A0, the next is A1, A2, etc.

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

S1D13708
X39A-G-009-01

Page 18

Epson Research and Development
Vancouver Design Center

4.3 S1D13708 Hardware Configuration
The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other
configuration data on the rising edge of RESET#. For details on configuration, refer to the
S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
The following table shows the configuration required for this implementation of a
S1D13708 to Motorola MPC821 microprocessor.
Table 4-2: Summary of Power-On/Reset Configuration Options
S1D13708 Pin
Name
CNF[4, 2:0]
CNF3
CNF5
CNF[7:6]

value on this pin at the rising edge of RESET# is used to configure: (1/0)
1
0
1011 = Generic #1 Big Endian Host Bus Interface
GPIO pins as inputs at power on
GPIO pins as HR-TFT / D-TFT outputs
Active high WAIT#
Active low WAIT#
see Table 4-3: “CLKI to BCLK Divide Selection” for recommended settings
= configuration for MPC821 microprocessor

Table 4-3: CLKI to BCLK Divide Selection
CNF7
0
0
1
1

CNF6
0
1
0
1

CLKI to BCLK Divide
1:1
2:1
3:1
4:1

= recommended setting for MPC821 microprocessor

4.4 Register/Memory Mapping
The DRAM on the MPC821 ADS board extends from address 0 through 3F FFFFh, so the
S1D13708 is addressed starting at 40 0000h. The S1D13708 uses two 128K byte blocks
which are selected using A14 from the MPC821 (A14 is connected to the S1D13708 M/R#
pin). The internal registers occupy the first 128K bytes block and the 80K byte display
buffer occupies the second 128K byte block.

S1D13708
X39A-G-009-01

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 19

4.5 MPC821 Chip Select Configuration
Chip select 4 is used to control the S1D13708. The following options are selected in the
base address register (BR4).
• BA (0:16) = 0000 0000 0100 0000 0 – set starting address of S1D13708 to 40 0000h
• AT (0:2) = 0 – ignore address type bits.
• PS (0:1) = 1:0 – memory port size is 16 bits
• PARE = 0 – disable parity checking
• WP = 0 – disable write protect
• MS (0:1) = 0:0 – select General Purpose Chip Select module to control this chip select
• V = 1 – set valid bit to enable chip select
The following options were selected in the option register (OR4).
• AM (0:16) = 1111 1111 1100 0000 0 – mask all but upper 10 address bits; S1D13708
consumes 4M byte of address space
• ATM (0:2) = 0 – ignore address type bits
• CSNT = 0 – normal CS/WE negation
• ACS (0:1) = 1:1 – delay CS assertion by ½ clock cycle from address lines
• BI = 1 – assert Burst Inhibit
• SCY (0:3) = 0 – wait state selection; this field is ignored since external transfer
acknowledge is used; see SETA below
• SETA = 1 – the S1D13708 generates an external transfer acknowledge using the
WAIT# line
• TRLX = 0 – normal timing
• EHTR = 0 – normal timing

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

S1D13708
X39A-G-009-01

Page 20

Epson Research and Development
Vancouver Design Center

4.6 Test Software
The test software to exercise this interface is very simple. It configures chip select 4 (CS4)
on the MPC821 to map the S1D13708 to an unused 256K byte block of address space and
loads the appropriate values into the option register for CS4. Then the software runs a tight
loop reading the 13708 Revision Code Register REG[00h]. This allows monitoring of the
bus timing on a logic analyzer.
The following source code was entered into the memory of the MPC821ADS using the
line-by-line assembler in MPC8BUG (the debugger provided with the ADS board). Once
the program was executed on the ADS, a logic analyzer was used to verify operation of the
interface hardware.
It is important to note that when the MPC821 comes out of reset, its on-chip caches and
MMU are disabled. If the data cache is enabled, then the MMU must be set up so that the
S1D13708 memory block is tagged as non-cacheable, to ensure that accesses to the
S1D13708 occurs in proper order, and also to ensure that the MPC821 does not attempt to
cache any data read from or written to the S1D13708 or its display buffer.
The source code for this test routine is as follows:
BR4
OR4
MemStart
RevCodeReg

equ
equ
equ
equ

$120
$124
$42 0000
$40 0000

Start

mfspr
andis.
andis.
oris
ori
stw
andis.
oris
ori

r1,IMMR
r1,r1,$ffff
r2,r0,0
r2,r2,MemStart
r2,r2,$0801
r2,BR4(r1)
r2,r0,0
r2,r2,$ffc0
r2,r2,$0708

Loop

;
;
;
;

;
;
;
;
;
;
;
;
;
;
r2,OR4(r1)
;
r1,r0,0
;
r1,r1,MemStart
;
r0,RevCodeReg(r1) ;
Loop
;

stw
andis.
oris
lbz
b

CS4 base register
CS4 option register
address of S1D13708 display buffer
address of Revision Code Register
get base address of internal registers
clear lower 16 bits to 0
clear r2
write base address
port size 16 bits; select GPCM; enable
write value to base register
clear r2
address mask – use upper 10 bits
normal CS negation; delay CS ½ clock;
inhibit burst
write to option register
clear r1
point r1 to start of S1D13708 mem space
read revision code into r1
branch forever

end
Note

MPC8BUG does not support comments or symbolic equates. These have been added for
clarity only.

S1D13708
X39A-G-009-01

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 21

5 Software
Test utilities and display drivers are available for the S1D13708. Full source code is
available for both the test utilities and the drivers.
The test utilities are configurable for different panel types using a program called
13708CFG, or by directly modifying the source. The display drivers can be customized by
the OEM for different panel types, resolutions and color depths only by modifying the
source.
The S1D13708 test utilities and display drivers are available from your sales support
contact or www.erd.epson.com.

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

S1D13708
X39A-G-009-01

Page 22

Epson Research and Development
Vancouver Design Center

6 References
6.1 Documents
• Motorola Inc., Power PC MPC821 Portable Systems Microprocessor User’s Manual,
Motorola Publication no. MPC821UM/; available on the Internet at
http://www.motorola.com/.
• Epson Research and Development, Inc., S1D13708 Hardware Functional Specification,
Document Number X39A-A-001-xx.
• Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board
User Manual, Document Number X39A-G-004-xx.
• Epson Research and Development, Inc., Programming Notes and Examples, Document
Number X39A-G-003-xx.

6.2 Document Sources
• Motorola Inc. Literature Distribution Center: (800) 441-2447.
• Motorola Inc. Website: http://www.motorola.com/.
• Epson Research and Development Website: http://www.erd.epson.com/.

S1D13708
X39A-G-009-01

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 23

7 Technical Support
7.1 EPSON LCD/CRT Controllers (S1D13708)
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

7.2 Motorola MPC821 Processor
• Motorola Design Line, (800) 521-6274.
• Local Motorola sales office or authorized distributor.

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

S1D13708
X39A-G-009-01

Page 24

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-009-01

Interfacing to the Motorola MPC821 Microprocessor
Issue Date: 01/11/06

S1D13708 Embedded Memory LCD Controller

Interfacing to the Motorola MCF5307
"ColdFire" Microprocessor
Document Number: X39A-G-010-01

Copyright © 2001 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 Trademarks are the property of their respective owners.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-010-01

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2

Interfacing to the MCF5307 . . . . . . . . . . . .
2.1 The MCF5307 System Bus . . . . . . . . . .
2.1.1 Overview . . . . . . . . . . . . . . . . . . .
2.1.2 Normal (Non-Burst) Bus Transactions . . . .
2.1.3 Burst Cycles . . . . . . . . . . . . . . . . . .
2.2 Chip-Select Module . . . . . . . . . . . . .

3

S1D13708 Host Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . 11
3.2 Host Bus Interface Signals . . . . . . . . . . . . . . . . . . . . . . . . . 12

4

MCF5307 To S1D13708 Interface . .
4.1 Hardware Description . . . . . .
4.2 S1D13708 Hardware Configuration .
4.3 Register/Memory Mapping . . . .
4.4 MCF5307 Chip Select Configuration

5

Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

6

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.1 Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
6.2 Document Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

7

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
7.1 EPSON LCD Controllers (S1D13708) . . . . . . . . . . . . . . . . . . . . . 18
7.2 Motorola MCF5307 Processor . . . . . . . . . . . . . . . . . . . . . . . . 18

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

.
.
.
.
.

. . .
. .
. .
. .
. .

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

. . .
. .
. . .
. . .
. . .
. .

. . .
. .
. .
. .
. .

.
.
.
.
.
.

.
.
.
.
.

. . . . . .
. . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . .

.
.
.
.
.

.
.
.
.
.

. . .
. .
. .
. .
. .

.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.

. . . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . .

.
.
.
.
.

. . .
. .
. .
. .
. .

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

. 8
.8
. 8
. 8
. 9
10

13
13
14
15
15

S1D13708
X39A-G-010-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-010-01

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 5

List of Tables
Table 3-1: Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 4-1: Summary of Power-On/Reset Configuration Options . . . . . . . . . . . . . . . . . . . 14
Table 4-2: CLKI to BCLK Divide Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

List of Figures
Figure 2-1:
Figure 2-2:
Figure 2-3:
Figure 4-1:

MCF5307 Memory Read Cycle . . . . . . . . . . . . . . . .
MCF5307 Memory Write Cycle . . . . . . . . . . . . . . . .
Chip Select Module Outputs Timing . . . . . . . . . . . . .
Typical Implementation of MCF5307 to S1D13708 Interface

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

. 9
. 9
. 10
. 13

S1D13708
X39A-G-010-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-010-01

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 7

1 Introduction
This application note describes the hardware and software environment required to
interface the S1D13708 Embedded Memory LCD Controller and the Motorola MCF5307
Processor.
The designs described in this document are presented only as examples of how such
interfaces might be implemented. This application note is updated as appropriate. Please
check the Epson Research and Development website at http://www.erd.epson.com for the
latest revision of this document before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-010-01

Page 8

Epson Research and Development
Vancouver Design Center

2 Interfacing to the MCF5307
2.1 The MCF5307 System Bus
The MCF5200/5300 family of processors feature a high-speed synchronous system bus
typical of modern microprocessors. This section is an overview of the operation of the CPU
bus in order to establish interface requirements.

2.1.1 Overview
The MCF5307 microprocessor family uses a synchronous address and data bus, very
similar in architecture to the MC68040 and MPC8xx. All outputs and inputs are timed with
respect to a square-wave reference clock called BCLK0 (Master Clock). This clock runs at
a software-selectable divisor rate from the machine cycle speed of the CPU core (typically
20 to 33 MHz). Both the address and the data bus are 32 bits in width. All IO accesses are
memory-mapped; there is no separate IO space in the Coldfire architecture.
The bus can support two types of cycles, normal and burst. Burst memory cycles are used
to fill on-chip cache memories, and for certain on-chip DMA operations. Normal cycles are
used for all other data transfers.

2.1.2 Normal (Non-Burst) Bus Transactions
A data transfer is initiated by the bus master by placing the memory address on address
lines A31 through A0 and driving TS (Transfer Start) low for one clock cycle. Several
control signals are also provided with the memory address:
• BWE[1:0] (Transfer Size) — indicates whether the bus cycle is 8, 16, or 32-bit.
• R/W — set high for read cycles and low for write cycles.
• TT[1:0] (Transfer Type Signals) — provides more detail on the type of transfer being
attempted.
• TIP (Transfer In Progress) — asserts whenever a bus cycle is active.
When the peripheral device being accessed has completed the bus transfer, it asserts TA
(Transfer Acknowledge) for one clock cycle to complete the bus transaction. Once TA has
been asserted, the MCF5307 will not start another bus cycle until TA has been de-asserted.
The minimum length of a bus transaction is two bus clocks.

S1D13708
X39A-G-010-01

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 9

Figure 2-1: “MCF5307 Memory Read Cycle,” illustrates a typical memory read cycle on
the MCF5307 system bus.

BCLK0
TS
TA
TIP
A[31:0]
R/W
BWE[1:0], TT[1:0]
D[31:0]

Sampled when TA low

Transfer Start

Wait States

Transfer

Next Transfer

Complete

Starts

Figure 2-1: MCF5307 Memory Read Cycle
Figure 2-2: “MCF5307 Memory Write Cycle,” illustrates a typical memory write cycle on
the MCF5307 system bus.

BCLK0
TS
TA
TIP
A[31:0]
R/W
BWE[1:0], TT[1:0]
D[31:0]

Valid

Transfer Start

Wait States

Transfer

Next Transfer

Complete

Starts

Figure 2-2: MCF5307 Memory Write Cycle

2.1.3 Burst Cycles
Burst cycles are very similar to normal cycles, except that they occur as a series of four
back-to-back, 32-bit memory reads or writes. The TIP (Transfer In Progress) output is
asserted continuously through the burst. Burst memory cycles are mainly intended to fill

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-010-01

Page 10

Epson Research and Development
Vancouver Design Center

caches from program or data memory. They are typically not used for transfers to or from
IO peripheral devices such as the S1D13708. The MCF5307 chip selects provide a
mechanism to disable burst accesses for peripheral devices which are not burst capable.

2.2 Chip-Select Module
In addition to generating eight independent chip-select outputs, the MCF5307 Chip Select
Module can generate active-low Output Enable (OE) and Write Enable (BWE) signals
compatible with most memory and x86-style peripherals. The MCF5307 bus controller also
provides a Read/Write (R/W) signal which is compatible with most 68K peripherals.
Chip selects 0 and 1 can be programmed independently to respond to any base address and
block size. Chip select 0 can be active immediately after reset, and is typically used to
control a boot ROM. Chip select 1 is likewise typically used to control a large static or
dynamic RAM block.
Chip selects 2 through 7 have fixed block sizes of 2M bytes each. Each has a unique, fixed
offset from a common, programmable starting address. These chip selects are well-suited
to typical IO addressing requirements.
Each chip select may be individually programmed for:
• port size (8/16/32-bit).
• up to 15 wait states or external acknowledge.
• address space type.
• burst or non-burst cycle support.
• write protect.
Figure 2-3: “Chip Select Module Outputs Timing” illustrates a typical cycle for a memory
mapped device using the GPCM of the Power PC.

CLK
CS[7:0]

BE/BWE[3:0]

OE

Figure 2-3: Chip Select Module Outputs Timing

S1D13708
X39A-G-010-01

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 11

3 S1D13708 Host Bus Interface
The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit
Generic #1 Host Bus Interface which is most suitable for direct connection to the Motorola
MFC5307 microprocessor. Generic #1 supports a Chip Select and an individual Read
Enable/Write Enable for each byte.
The Generic #1 Host Bus Interface is selected by the S1D13708 on the rising edge of
RESET#. After RESET# is released, the bus interface signals assume their selected configuration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware
Configuration” on page 14.
The S1D13708 clock (CLKI) is taken from the system host bus. The system clock source
will drive all required internal clocks. If they are not used, the CLKI2 and XTAL inputs
should be tied to ground.

3.1 Host Bus Interface Pin Mapping
The following table shows the functions of each Host Bus Interface signal.
Table 3-1: Host Bus Interface Pin Mapping
S1D13708
Pin Names

Motorola MCF5307

AB[16:0]

A[16:0]

DB[15:0]

D[31:16]

WE1#

BWE1

CS#

CS4

M/R#

A17

CLKI

BCLK0

BS#

Connect to IO VDD

RD/WR#

OE

RD#

OE

WE0#

BWE0

WAIT#

TA

RESET#

system RESET

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-010-01

Page 12

Epson Research and Development
Vancouver Design Center

3.2 Host Bus Interface Signals
The Host Bus Interface requires the following signals.
• CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source
for its internal bus and memory clocks. This clock is typically driven by the host CPU
system clock. For this example, BCLK0 from the Motorola MCF5307 is used for CLKI.
• The address inputs AB[16:0] connect directly to the MCF5307 address bus (A[16:0]).
• DB[7:0] connects D[23:16] (the MCF5307 low order byte). DB[15:8] connects to
D[31:24] (the MCF5307 high order byte). CNF4 must be set to select big endian mode.
• Chip Select (CS#) must be driven low by CS4 whenever the S1D13708 is accessed by
the Motorola MCF5307.
• M/R# (memory/register) selects between memory or register accesses. This signal may
be connected to an address line, allowing system address A17 to be connected to the
M/R# line.
• WE0# connects to BWE0 (the low byte enable signal from the MCF5307) and must be
driven low when the MCF5307 is writing the low byte to the S1D13708.
• WE1# connects to BWE1 (the high byte enable signal from the MCF5307) and must be
driven low when the MCF5307 is writing the high byte to the S1D13708.
• RD# and RD/WR# are read enables for the low-order and high-order bytes, respectively.
Both signals are driven low by OE when the Motorola MCF5307 is reading data from
the S1D13708.
• WAIT# connects to TA and is a signal which is output from the S1D13708 that indicates the host CPU must wait until data is ready (read cycle) or accepted (write cycle) on
the host bus. Since host CPU accesses to the S1D13708 may occur asynchronously to
the display update, it is possible that contention may occur in accessing the S1D13708
internal registers and/or refresh memory. The WAIT# line resolves these contentions by
forcing the host to wait until the resource arbitration is complete. This signal is active
low and may need to be inverted if the host CPU wait state signal is active high.
• The Bus Status (BS#) signal is not used in the bus interface for Generic #1 mode and
must be tied high to IO VDD.

S1D13708
X39A-G-010-01

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 13

4 MCF5307 To S1D13708 Interface
4.1 Hardware Description
The interface between the S1D13708 and the MCF5307 requires no external glue logic.
The polarity of the WAIT# signal must be selected as active high by connecting CNF5 to
IO VDD (see Table 4-1:, “Summary of Power-On/Reset Configuration Options,” on
page 14).
The following diagram shows a typical implementation of the MCF5307 to S1D13708
interface.
S1D13708

MCF5307
A[16:0]

AB[16:0]

D[23:16]

DB[7:0]

D[31:24]

DB[15:8]

A17

M/R#

CS4

CS#
IO VDD

BS#
TA

WAIT#

BWE1

WE1#

BWE0

WE0#

OE

RD/WR#
RD#

BCLK0

CLKI
System RESET

RESET#

Note:
When connecting the S1D13708 RESET# pin, the system designer should be aware of all
conditions that may reset the S1D13708 (e.g. CPU reset can be asserted during wake-up
from power-down modes, or during debug states).

Figure 4-1: Typical Implementation of MCF5307 to S1D13708 Interface

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-010-01

Page 14

Epson Research and Development
Vancouver Design Center

4.2 S1D13708 Hardware Configuration
The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other
configuration data on the rising edge of RESET#. For details on configuration, refer to the
S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
The following table shows the configuration required for this implementation of a
S1D13708 to Motorola MFC5307 microprocessor.
Table 4-1: Summary of Power-On/Reset Configuration Options
value on this pin at the rising edge of RESET# is used to configure: (1/0)
1
0
CNF[4, 2:0] 1011 = Generic #1 Big Endian Host Bus Interface
CNF3
GPIO pins as inputs at power on
GPIO pins as HR-TFT / D-TFT outputs
CNF5
Active high WAIT#
Active low WAIT#
CNF[7:6]
See Table 4-2: “CLKI to BCLK Divide Selection” for recommended setting
S1D13708
Pin Name

= configuration for MFC5307 host bus interface

Table 4-2: CLKI to BCLK Divide Selection
CNF7
0
0
1
1

CNF6
0
1
0
1

CLKI to BCLK Divide
1:1
2:1
3:1
4:1

= recommended setting for MFC5307 host bus interface

S1D13708
X39A-G-010-01

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 15

4.3 Register/Memory Mapping
The S1D13708 uses two 128K byte blocks which are selected using A17 from the
MCF5307 (A17 is connected to the S1D13708 M/R# pin). The internal registers occupy the
first 128K bytes block and the 80K byte display buffer occupies the second 128K byte
block. These two blocks of memory are aliased over the entire 2M byte space.
Note

If aliasing is not desirable, the upper addresses must be fully decoded.

4.4 MCF5307 Chip Select Configuration
Chip Selects 0 and 1 have programmable block sizes from 64K bytes through 2G bytes.
However, these chip selects would normally be needed to control system RAM and ROM.
Therefore, one of the IO chip selects CS2 through CS7 is required to address the entire
address space of the S1D13708. These IO chip selects have a fixed, 2M byte block size. In
the example interface, chip select 4 is used to control the S1D13708. The CSBAR register
should be set to the upper 8 bits of the desired base address.
The following options should be selected in the chip select mask registers (CSMR4/5).
• WP = 0 – disable write protect
• AM = 0 - enable alternate bus master access to the S1D13708
• C/I = 1 - disable CPU space access to the S1D13708
• SC = 1 - disable Supervisor Code space access to the S1D13708
• SD = 0 - enable Supervisor Data space access to the S1D13708
• UC = 1 - disable User Code space access to the S1D13708
• UD = 0 - enable User Data space access to the S1D13708
• V = 1 - global enable (“Valid”) for the chip select
The following options should be selected in the chip select control registers (CSCR4/5).
• WS0-3 = 0 - no internal wait state setting
• AA = 0 - no automatic acknowledgment
• PS (1:0) = 1:0 – memory port size is 16 bits
• BEM = 0 – Byte enable/write enable active on writes only
• BSTR = 0 – disable burst reads
• BSTW = 0 – disable burst writes

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-010-01

Page 16

Epson Research and Development
Vancouver Design Center

5 Software
Test utilities and display drivers are available for the S1D13708. Full source code is
available for both the test utilities and the drivers.
The test utilities are configurable for different panel types using a program called
13708CFG, or by directly modifying the source. The display drivers can be customized by
the OEM for different panel types, resolutions and color depths only by modifying the
source.
The S1D13708 test utilities and display drivers are available from your sales support
contact or www.erd.epson.com.

S1D13708
X39A-G-010-01

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 17

6 References
6.1 Documents
• Motorola Inc., MCF5307 ColdFire® Integrated Microprocessor User’s Manual,
Motorola Publication no. MCF5307UM; available on the Internet at
http://www.motorola.com/.
• Epson Research and Development, Inc., S1D13708 Hardware Functional Specification,
document number X39A-A-001-xx.
• Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board
User Manual, document number X39A-G-004-xx.
• Epson Research and Development, Inc., S1D13708 Programming Notes and Examples,
document number X39A-G-003-xx.

6.2 Document Sources
• Motorola Inc. Literature Distribution Center: (800) 441-2447.
• Motorola Inc. Website: http://www.motorola.com/.
• Epson Research and Development Website: http://www.erd.epson.com/.

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-010-01

Page 18

Epson Research and Development
Vancouver Design Center

7 Technical Support
7.1 EPSON LCD Controllers (S1D13708)
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

7.2 Motorola MCF5307 Processor
• Motorola Design Line, (800) 521-6274.
• Local Motorola sales office or authorized distributor.

S1D13708
X39A-G-010-01

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor
Issue Date: 01/11/25

S1D13708 Embedded Memory LCD Controller

Connecting to the Sharp HR-TFT
Panels
Document Number: X39A-G-011-01

Copyright © 2001 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

S1D13708
X39A-G-011-01

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2

Connecting to the Sharp LQ039Q2DS01 HR-TFT .
2.1 External Power Supplies . . . . . . . . . . .
2.1.1 Gray Scale Voltages for Gamma Correction .
2.1.2 Digital/Analog Power Supplies . . . . . . . .
2.1.3 DC Gate Driver Power Supplies . . . . . . .
2.1.4 AC Gate Driver Power Supplies . . . . . . .
2.2 HR-TFT MOD Signal . . . . . . . . . . . .
2.3 S1D13708 to LQ039Q2DS01 Pin Mapping . . . .

. . .
. .
. . .
. . .
. . .
. . .
. .
. .

.
.
.
.
.
.
.
.

. . . . . .
. . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . .
. . . . .

.
.
.
.
.
.
.
.

. . . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . .
. . . . . .

. 8
.8
. 8
. 9
. 9
10
11
12

3

Connecting to the Sharp LQ031B1DDxx HR-TFT .
3.1 External Power Supplies . . . . . . . . . . .
3.1.1 Gray Scale Voltages for Gamma Correction .
3.1.2 Digital/Analog Power Supplies . . . . . . . .
3.1.3 DC Gate Driver Power Supplies . . . . . . .
3.1.4 AC Gate Driver Power Supplies . . . . . . .
3.2 HR-TFT MOD Signal . . . . . . . . . . . .
3.3 S1D13708 to LQ031B1DDxx Pin Mapping . . . .

. . .
. .
. . .
. . .
. . .
. . .
. .
. .

.
.
.
.
.
.
.
.

. . . . . .
. . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . . . .
. . . . .
. . . . .

.
.
.
.
.
.
.
.

. . . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .
. . . . . .
. . . . . .

14
14
14
15
15
15
15
16

4

Test Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

5

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.1 Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.2 Document Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19

6

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
6.1 EPSON LCD Controllers (S1D13708) . . . . . . . . . . . . . . . . . . . . . 20
6.2 Sharp HR-TFT Panel . . . . . . . . . . . . . . . . . . . . . . . . . . . 20

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

S1D13708
X39A-G-011-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-011-01

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 5

List of Tables
Table 2-1: HR-TFT Power-On/Off Sequence Timing . . . . . . . . . . . . . . . . . . . . . . . . . 11
Table 2-2: S1D13708 to LQ039Q2DS01 Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . 12
Table 3-1: S1D13708 to LQ031B1DDxx Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . 16

List of Figures
Figure 2-1:
Figure 2-2:
Figure 2-3:
Figure 2-4:
Figure 3-1:

Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generation
Panel Gate Driver DC Power Supplies . . . . . . . . . . . . . .
Panel Gate Driver AC Power Supplies . . . . . . . . . . . . . .
HR-TFT Power-On/Off Sequence Timing . . . . . . . . . . . .
Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generation

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

. 8
. 9
. 10
. 11
. 14

S1D13708
X39A-G-011-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-011-01

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 7

1 Introduction
This application note describes the hardware environment required to connect to the Sharp
HR-TFT panels directly supported by the S1D13708. These panels are:
• Sharp LQ031B1DDXX 160 x 160 HR-TFT panel.
• Sharp LQ039Q2DS01 320 x 240 HR-TFT panel.
The designs described in this document are presented only as examples of how such
interfaces might be implemented. This application note is updated as appropriate. Please
check the Epson Research and Development website at www.erd.epson.com for the latest
revision of this document before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

S1D13708
X39A-G-011-01

Page 8

Epson Research and Development
Vancouver Design Center

2 Connecting to the Sharp LQ039Q2DS01 HR-TFT
2.1 External Power Supplies
The S1D13708 provides all necessary data and control signals to connect to the Sharp
LQ039Q2DS01 320 x 240 HR-TFT panel. However, it does not provide any of the voltages
required for gray scaling, gate driving, or for the digital and analog supplies. Therefore,
external supplies must be designed for any device utilizing the LQ039Q2DS01.

2.1.1 Gray Scale Voltages for Gamma Correction
The standard gray scale voltages can be generated using a precise resistor divider network
that supplies two sets (A and B) of nine reference voltages to a National Semiconductor
9-Channel Buffer Amplifier (LMC6009). The LMC6009 buffers these nine reference
voltages and outputs them to the panel column drivers. The A/B inputs allow the two sets
of reference voltages to be alternated, compensating for asymmetrical gamma characteristics during row inversion. This input is controlled by the S1D13708 output signal REV
which toggles every time a horizontal sync signal is sent to the panel.

47.5K 1%

47.5K 1%

47.5K 1%

47.5K 1%

47.5K 1%

47.5K 1%

47.5K 1%

47.5K 1%

R2

R3

R4

R5

R6

R7

R8

R9
93.1K 1%
R18

U1
1
2
3
A1A
A1B
A2A
A2B
A3A
A3B
A4A
A4B
A5A
A5B
A6A
A6B
A7A
A7B
A8A
A8B
A9A
A9B

A1A

47.5K 1%

75.0K 1%
R17

4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

22
23
24

R27

R26

47.5K 1%

52.3K 1%
R16
R25

47.5K 1%

42.2K 1%
R15
R24

47.5K 1%

34.0K 1%
47.5K 1%
R23

47.5K 1%
R22

47.5K 1%
R21

47.5K 1%

R14

A2B

R31

R32

R33

R34

R35

R36

33.2K 1%

25.3K 1%

19.6K 1%

11.8K 1%

5.36K 1%

NC11
NC13
NC14
NC7
NC8
NC9
NC10
NC12

NC1
NC2
NC3
A1A
A1B
A2A
A2B
A3A
A3B
A4A
A4B
A5A
A5B
A6A
A6B
A7A
A7B
A8A
A8B
A9A
A9B

OUT_A1
OUT_A2
OUT_A3
OUT_A4
OUT_A5
OUT_A6
OUT_A7
OUT_A8
OUT_A9
AB_Switch

VCC1
VCC2
VCC3

NC4
NC5
NC6

GNDA
GNDB
GNDC

45
47
48
25
26
27
28
46
V[9:1]

V[9:1]

V1
V2
V3
V4
V5
V6
V7
V8
V9

42
41
40
39
36
35
34
33
32
29

V0
L1

44
38
30
43
37
31

+5V

0.1uH

C1
0.1uF

LMC6009

A1B

41.1K 1%

A3B

R30

A4B

53.6K 1%

A5B

R29

A6B

R28

A7B

178K 1%

A8B

90.9K 1%

A9B

R20

R19

47.5K 1%

28.7K 1%

A2A

R13

A3A

22.6K 1%

A4A

R12

A5A

14.3K 1%

A6A

6.04K 1%

A7A

R11

A8A

R10

A9A

CON_POWER

+5V
U2
8
7
6
5

VIN
FEEDBACK
VTAP
ERROR
LP2951

OUTPUT
SENSE
SHTDWN
GND

1
2
3
4

CON_POWER

+ C2

R37
11.8K 1%

47.5K 1%
R1

The REV signal is also used to generate the highest gray scale voltage (V0 or black) by
buffering REV and shifting its maximum level to the maximum gray scale voltage
(CON_POWER). CON_POWER is supplied by a National Semiconductor micropower
Voltage Regulator (LP2951). Figure 2-1: “Sharp LQ039Q2DS01 Gray Scale Voltage (V0V9) Generation” shows the schematic for gray scale voltage generation.

C3

220uF 25V

0.1uF

R38
5.38K 1%

U3A

R39
1

REV

U4

U3B
2

3

4

180
74ACT04

74ACT04

1
2
3
4

N-S
N-G
P-S
P-G

N-D1
N-D2
P-D1
P-D2

5
6
7
8

V0

F2C02E
CON_POWER

Figure 2-1: Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generation

S1D13708
X39A-G-011-01

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 9

2.1.2 Digital/Analog Power Supplies
The digital power supply (VSHD) must be connected to a 3.3V supply. The analog power
supply (VSHA) must be connected to a 5.0V supply.

2.1.3 DC Gate Driver Power Supplies
The gate driver high level power supply (VDD) and the gate driver logic low power supply
(VSS) have typical values of +15V and -15V respectively. These power supplies can be
provided by a Linear Technology high efficiency switching regulator (LT1172). The two
power supplies can be adjusted through their allowable ranges using the potentiometer
VR1.
The gate driver logic high power supply (VCC) is defined as VSS + VSHD. The typical VCC
voltage of -11.7V can be supplied from VSS using a 3.3V zener diode which provides the
necessary voltage change.
Figure 2-2: “Panel Gate Driver DC Power Supplies” shows the schematic for VSS, VDD and
VCC.
+5V

D1
SCHOTTKY 1A Vf=0.5V
3

L1

2

1

VDD

U1

1
6
8

C2
1uF

2

Vin
Vswitch
Vcomp
Vfb
Gnd
E1
E2

20K

3

4

R2
1K 5%

C3
N/C

10uF 25V

7
1

2

1

2

5

+ C1

VR1

+

R1

1K 5%

100uH 300mA

VSS

2

VSS

D2
22uF 16V

10uF 16V

1

SCHOTTKY
D3

C4

+

LT1172

SCHOTTKY

D4
VSS

2

1
3.3V Zener

VCC
R3
22K 5%

Figure 2-2: Panel Gate Driver DC Power Supplies

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

S1D13708
X39A-G-011-01

Page 10

Epson Research and Development
Vancouver Design Center

2.1.4 AC Gate Driver Power Supplies
The gate drive low level power supply (VEE) is an AC power supply with a DC offset
voltage (offset typically -9.0V). The AC component is the common electrode driving signal
(VCOM) which has a voltage of ±2.5V. VCOM must be alternated every horizontal period
and every vertical period. The S1D13708 output signal REV accomplishes this function
and generates the alternating VCOM signal which is superimposed onto VEE. Figure 2-3:
“Panel Gate Driver AC Power Supplies,” on page 10 shows the schematic for generating
VCOM and VEE.

1

REV
180

C1
22uF 16V

1
2
3
4

2

74ACT04

+

U2

U1A

R1

N-S
N-G
P-S
P-G

5
6
7
8

N-D1
N-D2
P-D1
P-D2

R3
22 5%
VSS

VEE
R2
15K 5%

F2C02E
+5V

R4

+

27K 5%

C2

3

3

22uF 16V

R5
VR1
100K

2

12K 5%

Q1

1

VCOM

1

2

2

NPN

R7

Q2
PNP

3

1
C3
0.1uF

R6
22 5%

120K 5%

Figure 2-3: Panel Gate Driver AC Power Supplies

S1D13708
X39A-G-011-01

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 11

2.2 HR-TFT MOD Signal
The HR-TFT panel uses an input signal (MOD) to control the power-on sequencing of the
panel. This HR-TFT signal should not be confused with the S1D13708 signal DRDY
(referred to as MOD for passive panels).
To power-on the HR-TFT panel, MOD must be held low until the power supply has been
turned on for more than two FRAMES. To power-off the HR-TFT panel, MOD must be
forced low before the power supply is turned off. This sequencing requires two software
controlled GPIO pins from the S1D13708 (see Figure 2-4: “HR-TFT Power-On/Off
Sequence Timing” ).
t1
GPIOx*
(VSHD power)

t2

t3

t4

GPIOy**
(other power)

t5

t6

MOD (GPO)
Power Save
Mode Enable***
(REG[A0h] bit 0)

t8

t7
Active

LCD Signals****

*It is recommended to use one of the general purpose IO pins GPIO[6:4] to control the digital power supply VSHD.
** It is recommended to use one of the general purpose IO pins GPIO[6:4] to control the other power supplies required
by the HR-TFT panel.
***The S1D13708 LCD power-on/off sequence is activated by programming the Power Save Mode Enable bit (REG[A0h] bit 0
****LCD Signals include: FPDAT[17:0], FPSHIFT, FPLINE, FPFRAME, and GPIO[3:0].

Figure 2-4: HR-TFT Power-On/Off Sequence Timing
Table 2-1: HR-TFT Power-On/Off Sequence Timing
Symbol

Parameter

Min

Max

Units

t1

LCD Power (VSHD) active to Power Save Mode disabled

0

ns

t2

LCD signals low to LCD Power (VSHD) inactive

0

ns

t3

Power Save Mode disabled to LCD Power (other) active

0

ns

t4

LCD Power (other) inactive to Power Save Mode enabled

0

ns

t5

LCD Power (other) active to MOD active

2

FRAME

t6

MOD inactive to LCD Power (other) inactive

0

t7
t8

ns

Power Save Mode disabled to LCD signals active

20

ns

Power Save Mode enabled to LCD signals low

20

ns

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

S1D13708
X39A-G-011-01

Page 12

Epson Research and Development
Vancouver Design Center

2.3 S1D13708 to LQ039Q2DS01 Pin Mapping
Table 2-2: S1D13708 to LQ039Q2DS01 Pin Mapping
LCD Pin LCD Pin
No.
Name

S1D13708
Pin Name

Description

Remarks

1

VDD

-

Power supply of gate driver (high level)

See Section 2.1, “External Power
Supplies” on page 8

2

VCC

-

Power supply of gate driver (logic high)

See Section 2.1, “External Power
Supplies” on page 8

3

MOD

-

Control signal of gate driver

See Section 2.2, “HR-TFT MOD Signal”
on page 11

4

MOD

-

Control signal of gate driver

See Section 2.2, “HR-TFT MOD Signal”
on page 11

5

U/L

-

Selection for vertical scanning direction

Connect to VSHD (top / bottom scanning)

6

SPS

FPFRAME

Start signal of gate driver

7

CLS

GPIO1

Clock signal of gate driver

8

VSS

-

Power supply of gate driver (logic low)

See Section 2.1, “External Power
Supplies” on page 8

9

VEE

-

Power supply of gate driver (low level)

See Section 2.1, “External Power
Supplies” on page 8

10

VEE

-

Power supply of gate driver (low level)

See Section 2.1, “External Power
Supplies” on page 8

11

VCOM

-

Common electrode driving signal

See Section 2.1, “External Power
Supplies” on page 8

12

VCOM

-

Common electrode driving signal

See Section 2.1, “External Power
Supplies” on page 8

13

SPL

GPIO3

14

R0

FPDAT11

Red data signal (LSB)

15

R1

FPDAT10

Red data signal

16

R2

FPDAT9

Red data signal

17

R3

FPDAT2

Red data signal

18

R4

FPDAT1

Red data signal

19

R5

FPDAT0

Red data signal (MSB)

20

G0

FPDAT14

Green data signal (LSB)

21

G1

FPDAT13

Green data signal

22

G2

FPDAT12

Green data signal

23

G3

FPDAT5

Green data signal

24

G4

FPDAT4

Green data signal

25

G5

FPDAT3

Green data signal (MSB)

S1D13708
X39A-G-011-01

Sampling start signal for left / right scanning

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 13

Table 2-2: S1D13708 to LQ039Q2DS01 Pin Mapping (Continued)
LCD Pin LCD Pin
No.
Name

S1D13708
Pin Name

Description

Remarks

26

B0

FPDAT17

Blue data signal (LSB)

27

B1

FPDAT16

Blue data signal

28

B2

FPDAT15

Blue data signal

29

B3

FPDAT8

Blue data signal

30

B4

FPDAT7

Blue data signal

31

B5

FPDAT6

Blue data signal (MSB)

32

VSHD

-

33

DGND

VSS

34

PS

GPIO0

Power save signal

35

LP

FPLINE

Data latch signal of source driver

36

DCLK

FPSHIFT

37

LBR

-

Selection for horizontal scanning direction

Connect to VSHD (left / right scanning)

38

SPR

-

Sampling start signal for right / left scanning

Right to left scanning not supported

39

VSHA

-

Analog power supply

See Section 2.1, “External Power
Supplies” on page 8

40

V0

-

Standard gray scale voltage (black)

See Section 2.1, “External Power
Supplies” on page 8

41

V1

-

Standard gray scale voltage

See Section 2.1, “External Power
Supplies” on page 8

42

V2

-

Standard gray scale voltage

See Section 2.1, “External Power
Supplies” on page 8

43

V3

-

Standard gray scale voltage

See Section 2.1, “External Power
Supplies” on page 8

44

V4

-

Standard gray scale voltage

See Section 2.1, “External Power
Supplies” on page 8

45

V5

-

Standard gray scale voltage

See Section 2.1, “External Power
Supplies” on page 8

46

V6

-

Standard gray scale voltage

See Section 2.1, “External Power
Supplies” on page 8

47

V7

-

Standard gray scale voltage

See Section 2.1, “External Power
Supplies” on page 8

48

V8

-

Standard gray scale voltage

See Section 2.1, “External Power
Supplies” on page 8

49

V9

-

Standard gray scale voltage (white)

See Section 2.1, “External Power
Supplies” on page 8

50

AGND

VSS

Analog ground

Ground pin of S1D13708

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

Digital power supply

See Section 2.1, “External Power
Supplies” on page 8

Digital ground

Ground pin of S1D13708

Data sampling clock signal

S1D13708
X39A-G-011-01

Page 14

Epson Research and Development
Vancouver Design Center

3 Connecting to the Sharp LQ031B1DDxx HR-TFT
3.1 External Power Supplies
The S1D13708 provides all necessary data and control signals to connect to the Sharp
LQ031B1DDxx 160x160 HR-TFT panel(s). However, it does not provide any of the
voltages required for the backlight, gray scaling, gate driving, or for the digital and analog
supplies. Therefore, external supplies must be designed for any device utilizing the
LQ031B1DDxx.
The LQ031B1DDxx (160x160) has the same voltage requirements as the LQ039Q2DS01
(320x240). All the circuits used to generate the various voltages for the LQ039Q2DS01
panel also apply to the LQ031B1DDxx panel. This section provides additional circuits for
generating some of these voltages.

3.1.1 Gray Scale Voltages for Gamma Correction
The standard gray scale voltages can be generated using a precise resistor divider network
as described in Section 2.1.1, “Gray Scale Voltages for Gamma Correction” on page 8.
Alternately, they can be generated using a Sharp gray scale IC. The Sharp IR3E203 eliminates the large resistor network used to provide the 10 gray scale voltages and combines
their function into a single IC.
The S1D13708 output signal REV is used to alternate the gray scale voltages and connects
to the SW input of the IR3E203 IC. The COM signal is used in generating the gate driver
panel AC voltage, VCOM and is explained in Section 3.1.4, “AC Gate Driver Power
Supplies” on page 15. Figure 3-1: “Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9)
Generation” shows the circuit that generates the gray scale voltages using the Sharp
IR3E203 IC.

REV

16
1
17
18
10

SW
NC
NC
NC
GND

C2
2.2uF

2
VDD

U1

GND

C1
4.7uF

3

5V

V0
V1
V2
V3
V4
V5
V6
V7
V8
V9
COM

V[9:0]
5
6
7
8
9
11
12
13
14
15
4

V0
V1
V2
V3
V4
V5
V6
V7
V8
V9

COM

SHARP IR3E203

Figure 3-1: Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generation

S1D13708
X39A-G-011-01

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 15

3.1.2 Digital/Analog Power Supplies
The digital power supply (VSHD) must be connected to a 3.3V supply. The analog power
supply (VSHA) must be connected to a 5.0V supply.

3.1.3 DC Gate Driver Power Supplies
See Section 2.1.3, “DC Gate Driver Power Supplies” on page 9 and Figure 2-2: “Panel Gate
Driver DC Power Supplies,” on page 9 for details on generating VSS, VDD, and VCC.

3.1.4 AC Gate Driver Power Supplies
See Section 2.1.4, “AC Gate Driver Power Supplies” on page 10 and Figure 2-3: “Panel
Gate Driver AC Power Supplies,” on page 10 for details on generating VEE and VCOM. If
the Sharp IR3E203 is used to generate the gray scale voltages, the COM signal can be
connected to the input of the F2C02E MOSFET instead of the buffered REV signal.

3.2 HR-TFT MOD Signal
See Section 2.2, “HR-TFT MOD Signal” on page 11 for details on controlling the MOD
signal through software.

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

S1D13708
X39A-G-011-01

Page 16

Epson Research and Development
Vancouver Design Center

3.3 S1D13708 to LQ031B1DDxx Pin Mapping
Table 3-1: S1D13708 to LQ031B1DDxx Pin Mapping
LCD Pin LCD Pin
No.
Name

S1D13708
Pin Name

Description

Remarks

1

VDD

-

Power supply of gate driver (high level)

See Section 3.1, “External Power
Supplies” on page 14

2

VCC

-

Power supply of gate driver (logic high)

See Section 3.1, “External Power
Supplies” on page 14

3

MOD

-

Control signal of gate driver

See Section 3.2, “HR-TFT MOD Signal”
on page 15

4

MOD

-

Control signal of gate driver

See Section 3.2, “HR-TFT MOD Signal”
on page 15

5

U/L

-

Selection for vertical scanning direction

Connect to VSHD (top / bottom scanning)

6

SPS

FPFRAME

Start signal of gate driver

7

CLS

GPIO1

Clock signal of gate driver

8

VSS

-

Power supply of gate driver (logic low)

See Section 3.1, “External Power
Supplies” on page 14

9

VEE

-

Power supply of gate driver (low level)

See Section 3.1, “External Power
Supplies” on page 14

10

VEE

-

Power supply of gate driver (low level)

See Section 3.1, “External Power
Supplies” on page 14

11

VCOM

-

Common electrode driving signal

See Section 3.1, “External Power
Supplies” on page 14

12

VCOM

-

Common electrode driving signal

See Section 3.1, “External Power
Supplies” on page 14

13

SPL

GPIO3

14

R0

FPDAT11

Red data signal (LSB)

15

R1

FPDAT10

Red data signal

16

R2

FPDAT9

Red data signal

17

R3

FPDAT2

Red data signal

18

R4

FPDAT1

Red data signal

19

R5

FPDAT0

Red data signal (MSB)

20

G0

FPDAT14

Green data signal (LSB)

21

G1

FPDAT13

Green data signal

22

G2

FPDAT12

Green data signal

23

G3

FPDAT5

Green data signal

24

G4

FPDAT4

Green data signal

25

G5

FPDAT3

Green data signal (MSB)

S1D13708
X39A-G-011-01

Sampling start signal for left / right scanning

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 17

Table 3-1: S1D13708 to LQ031B1DDxx Pin Mapping (Continued)
LCD Pin LCD Pin
No.
Name

S1D13708
Pin Name

Description

Remarks

26

B0

FPDAT17

Blue data signal (LSB)

27

B1

FPDAT16

Blue data signal

28

B2

FPDAT15

Blue data signal

29

B3

FPDAT8

Blue data signal

30

B4

FPDAT7

Blue data signal

31

B5

FPDAT6

Blue data signal (MSB)

32

VSHD

-

33

DGND

VSS

34

PS

GPIO0

Power save signal

35

LP

FPLINE

Data latch signal of source driver

36

DCLK

FPSHIFT

37

LBR

-

Selection for horizontal scanning direction

Connect to VSHD (left / right scanning)

38

SPR

-

Sampling start signal for right / left scanning

Right to left scanning not supported

39

VSHA

-

Analog power supply

See Section 3.1, “External Power
Supplies” on page 14

40

V0

-

Standard gray scale voltage (black)

See Section 3.1, “External Power
Supplies” on page 14

41

V1

-

Standard gray scale voltage

See Section 3.1, “External Power
Supplies” on page 14

42

V2

-

Standard gray scale voltage

See Section 3.1, “External Power
Supplies” on page 14

43

V3

-

Standard gray scale voltage

See Section 3.1, “External Power
Supplies” on page 14

44

V4

-

Standard gray scale voltage

See Section 3.1, “External Power
Supplies” on page 14

45

V5

-

Standard gray scale voltage

See Section 3.1, “External Power
Supplies” on page 14

46

V6

-

Standard gray scale voltage

See Section 3.1, “External Power
Supplies” on page 14

47

V7

-

Standard gray scale voltage

See Section 3.1, “External Power
Supplies” on page 14

48

V8

-

Standard gray scale voltage

See Section 3.1, “External Power
Supplies” on page 14

49

V9

-

Standard gray scale voltage (white)

See Section 3.1, “External Power
Supplies” on page 14

50

AGND

VSS

Analog ground

Ground pin of S1D13708

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

Digital power supply

See Section 3.1, “External Power
Supplies” on page 14

Digital ground

Ground pin of S1D13708

Data sampling clock signal

S1D13708
X39A-G-011-01

Page 18

Epson Research and Development
Vancouver Design Center

4 Test Software
Test utilities and display drivers are available for the S1D13708. Full source code is
available for both the test utilities and the drivers.
The test utilities are configurable for different panel types using a program called
13708CFG, or by directly modifying the source. The display drivers can be customized by
the OEM for different panel types, resolutions and color depths only by modifying the
source.
The S1D13708 test utilities and display drivers are available from your sales support
contact or www.erd.epson.com.

S1D13708
X39A-G-011-01

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 19

5 References
5.1 Documents
• Sharp Electronics Corporation, LQ039Q2DS01 Specification.
• Sharp Electronics Corporation, LQ031B1DDxx Specification.
• Epson Research and Development, Inc., S1D13708 Hardware Functional Specification,
Document Number X39A-A-001-xx.
• Epson Research and Development, Inc., S1D13708 Programming Notes and Examples,
Document Number X39A-G-003-xx.

5.2 Document Sources
• Sharp Electronics Corporation Website: http://www.sharpsma.com.
• Epson Research and Development Website: http://www.erd.epson.com/.

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

S1D13708
X39A-G-011-01

Page 20

Epson Research and Development
Vancouver Design Center

6 Technical Support
6.1 EPSON LCD Controllers (S1D13708)
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

6.2 Sharp HR-TFT Panel
http://www.sharpsma.com

S1D13708
X39A-G-011-01

Connecting to the Sharp HR-TFT Panels
Issue Date: 01/11/25

S1D13708 Embedded Memory LCD Controller

Interfacing to the Motorola RedCap2
Document Number: X39A-G-014-01

Copyright © 2001 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. Microsoft and Windows are registered trademarks of Microsoft Corporation.
All other trademarks are the property of their respective owners.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-014-01

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2

Interfacing to the REDCAP2 . . .
2.1 The REDCAP2 System Bus . .
2.2 Overview . . . . . . . . .
2.3 Bus Transactions . . . . . .

3

S1D13708 Host Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.1 Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . 10
3.2 Host Bus Interface Signals . . . . . . . . . . . . . . . . . . . . . . . . . 11

4

REDCAP2 to S1D13708 Interface . .
4.1 Hardware Description . . . . . .
4.2 Hardware Connections . . . . . .
4.3 S1D13708 Hardware Configuration .
4.4 Register/Memory Mapping . . . .
4.5 REDCAP2 Chip Select Configuration

5

Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

6

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.1 Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.2 Document Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

7

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.1 EPSON LCD/CRT Controllers (S1D13708) . . . . . . . . . . . . . . . . . . 19
7.2 Motorola REDCAP2 Processor . . . . . . . . . . . . . . . . . . . . . . . 19

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.
.
.

. . .
. .
. .
. .

. . .
. .
. .
. .
. .
. .

.
.
.
.

.
.
.
.
.
.

.
.
.
.

.
.
.
.
.
.

.
.
.
.

.
.
.
.
.
.

. . .
. .
. .
. .

. . .
. .
. .
. .
. .
. .

.
.
.
.

.
.
.
.
.
.

.
.
.
.

.
.
.
.
.
.

.
.
.
.

.
.
.
.
.
.

. . .
. .
. .
. .

. . .
. .
. .
. .
. .
. .

.
.
.
.

.
.
.
.
.
.

.
.
.
.

.
.
.
.
.
.

.
.
.
.

.
.
.
.
.
.

. . .
. .
. .
. .

. . .
. .
. .
. .
. .
. .

.
.
.
.

.
.
.
.
.
.

.
.
.
.

.
.
.
.
.
.

.
.
.
.

.
.
.
.
.
.

. 8
.8
.8
.8

12
12
13
15
15
16

S1D13708
X39A-G-014-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-014-01

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 5

List of Tables
Table 3-1: Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Table 4-1: List of Connections for REDCAP2 ADM . . . . . . . . . . . . . . . . . . . . . . . . . 13
Table 4-2: Summary of Power-On/Reset Options . . . . . . . . . . . . . . . . . . . . . . . . . . 15

List of Figures
Figure 2-1: REDCAP2 Memory Read Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 2-2: REDCAP2 Memory Write Cycle . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 4-1: Typical Implementation of REDCAP2 to S1D13708 Interface . . . . . . . . . . . . . . 12

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

S1D13708
X39A-G-014-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-014-01

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 7

1 Introduction
This application note describes the hardware and software environment required to provide
an interface between the S1D13708 Embedded Memory LCD Controller and the Motorola
REDCAP2 processor.
The designs described in this document are presented only as examples of how such
interfaces might be implemented. This application note is updated as appropriate. Please
check the Epson Research and Development Website at www.erd.epson.com for the latest
revision of this document before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

S1D13708
X39A-G-014-01

Page 8

Epson Research and Development
Vancouver Design Center

2 Interfacing to the REDCAP2
2.1 The REDCAP2 System Bus
REDCAP2 integrates a RISC microprocessor (MCU) and a general purpose digital signal
processor (DSP) on a single chip. The External Interface Module (EIM) handles the
interface to external devices. This section provides an overview of the operation of the
REDCAP2 bus in order to establish interface requirements.

2.2 Overview
REDCAP2 uses a 22-bit address bus (A[21:0]) and 16-bit data bus (D[15:0]). All IO is
synchronous to a square wave reference clock called CKO. The CKO source can be the
DSP clock or the MCU clock and is selected/disabled in the Clock Control Register
(CKCTL).
REDCAP2 can generate up to 6 independent chip select outputs. Each chip select has a
memory range of 16M bytes and can be independently programmed for wait-states and port
size.
Note

REDCAP2 does not provide a wait or termination acknowledge signal to external devices. Therefore, all external devices must guarantee a fixed cycle length.

2.3 Bus Transactions
The chip initiates a data transfer by placing the memory address on address lines A0
through A21. Several control signals are provided with the memory address.
• R/W — set high for read cycles and low for write cycles.
• EB0 — active low signal indicates access to data byte 0 (D[15:8]) during read or write
cycles.
• EB1 — active low signal indicates access to data byte 1 (D[7:0]) during read or write
cycles.
• OE — active low signal indicates read accesses and enables slave devices to drive the
data bus.

S1D13708
X39A-G-014-01

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 9

Figure 2-1: “REDCAP2 Memory Read Cycle” on page 9 illustrates a typical memory read
cycle on the REDCAP2 bus.

CLK
A[21:0]
CS
D[15:0]
R/W
OE, EB0-1

Figure 2-1: REDCAP2 Memory Read Cycle
Figure 2-2: “REDCAP2 Memory Write Cycle” on page 9 illustrates a typical memory
write cycle on the REDCAP2 bus.

CLK
A[21:0]
CS
D[15:0]
R/W
OE, EB0-1

Figure 2-2: REDCAP2 Memory Write Cycle

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

S1D13708
X39A-G-014-01

Page 10

Epson Research and Development
Vancouver Design Center

3 S1D13708 Host Bus Interface
The S1D13708 implements a 16-bit native REDCAP2 host bus interface which is used to
interface to the REDCAP2 processor.
The REDCAP2 host bus interface is selected by the S1D13708 on the rising edge of
RESET#. After releasing reset, the bus interface signals assume their selected configuration. For details on S1D13708 configuration, see Section 4.3, “S1D13708 Hardware
Configuration” on page 15.

3.1 Host Bus Interface Pin Mapping
The following table shows the functions of each Host Bus Interface signal.
Table 3-1: Host Bus Interface Pin Mapping
S1D13708 Pin Names

S1D13708
X39A-G-014-01

REDCAP2

AB[16:0]

A[16:0]

DB[15:0]

D[15:0]

WE1#

EB0

M/R#

A17

CS#

REDCAP2 Internal Chip
Select

CLKI

CKO

BS#

Connected to IO VDD

RD/WR#

R/W

RD#

OE

WE0#

EB1

WAIT#

N/A

RESET#

RST_OUT

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 11

3.2 Host Bus Interface Signals
The Host Bus Interface requires the following signals:
• CLKI is a clock input which is required by the S1D13708 host bus interface and
connects to CKO of the REDCAP2.
• The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the
REDCAP2 bus address (A[16:0]) and data bus (D[15:0]), respectively. CNF[2:0] and
CNF4 must be set to select the REDCAP2 host bus interface with big endian mode.
• M/R# (memory/register) selects between memory or register access. It may be
connected to an address line, allowing REDCAP2 bus address A17 to be connected to
the M/R# line.
• CS# (Chip Select) must be driven low whenever the S1D13708 is accessed by the
REDCAP2 bus.
• RD/WR# connects to R/W which indicates whether a read or a write access is being
performed on the S1D13708.
• WE1# and WE0# connect to EB0 and EB1 (Enable Byte 0 and 1) for byte steering.
• RD# connects to OE (Output Enable). This signal must be driven by the REDCAP2 bus
to indicate the bus access is a read and enables slave devices to drive the data bus with
read data.
• The BS# and WAIT# signals are not needed for this bus interface, they should be
connected to IO VDD.

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

S1D13708
X39A-G-014-01

Page 12

Epson Research and Development
Vancouver Design Center

4 REDCAP2 to S1D13708 Interface
4.1 Hardware Description
The interface between the S1D13708 and the REDCAP2 requires no external glue logic.
The information in this section describes the environment necessary to connect the
S5U13708B00C Evaluation Board and the Motorola DSP56654 Application Development
Module (ADM). For a list of connections for the pins and signals of the REDCAP2 see
Table 4-1:,“List of Connections for REDCAP2 ADM” on page 13.
The following figure demonstrates a typical implementation of the S1D13708 to the
REDCAP2 interface.
REDCAP2

S1D13708
IO VDD

BS#
M/R#

A17
A[16:0]

AB[16:0]

D[15:0]

DB[15:0]

CS1

CS#

R/W

RD/WR#

RD#

OE
EB1

WE0#

EB0

WE1#

CLK

CLKI
System RESET

RESET#

*Note: This example uses CS1. CSn can be any of CS0-CS4.
**Note: When connecting the S1D13708 RESET# pin, the system designer should be aware of all
conditions that may reset the S1D13708 (e.g. CPU reset can be asserted during wake-up
from power-down modes, or during debug states).

Figure 4-1: Typical Implementation of REDCAP2 to S1D13708 Interface

S1D13708
X39A-G-014-01

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 13

4.2 Hardware Connections
The following table details the connections for the pins and signals of the REDCAP2.
Table 4-1: List of Connections for REDCAP2 ADM
REDCAP2 Signal Name

REDCAP2ADS Connector and Pin Name

S1D13708 Signal Name

A17

P9-34

M/R#

A16

P9-33

AB20

A15

P9-32

AB19

A14

P9-31

AB18

A13

P9-30

AB17

A12

P9-29

AB16

A11

P9-28

AB15

A10

P9-27

AB14

A9

P9-26

AB13

A8

P9-25

AB12

A7

P9-24

AB11

A6

P9-23

AB10

A5

P9-22

AB9

A4

P9-21

AB8

A3

P9-20

AB7

A2

P9-19

AB6

A1

P9-18

AB5

A0

P9-17

AB4

D15

P9-16

DB15

D14

P9-15

DB14

D13

P9-14

DB13

D12

P9-13

DB12

D11

P9-12

DB11

D10

P9-11

DB10

D9

P9-10

DB9

D8

P9-9

DB8

D7

P9-8

DB7

D6

P9-7

DB6

D5

P9-6

DB5

D4

P9-5

DB4

D3

P9-4

DB3

D2

P9-3

DB2

D1

P9-2

DB1

D0

P9-1

DB0

RES_OUT

P24-6

RESET#

CLK0

P24-3

BUSCLK

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

S1D13708
X39A-G-014-01

Page 14

Epson Research and Development
Vancouver Design Center

Table 4-1: List of Connections for REDCAP2 ADM (Continued)
REDCAP2 Signal Name

REDCAP2ADS Connector and Pin Name

S1D13708 Signal Name

CS1

P9-40

CS#

R/W

P9-47

RD/WR#

OE

P9-48

RD#

EB1

P9-46

WE0#

EB0

P9-45

WE1#

Gnd

P24-20 / P9-50

Vss

Note

Pin 5 and pin 13 of U28 on the ADM must be connected to VDD. This ensures that the
DIR signal of transceivers U17 and U18 is low only during read access, even when EBC
in the CS1 Control Register is set to 0 when connecting to the S1D13708.

S1D13708
X39A-G-014-01

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 15

4.3 S1D13708 Hardware Configuration
The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other
configuration data on the rising edge of RESET#. For details on configuration, refer to the
S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
The following table shows the configuration required for this implementation of a
S1D13708 to Motorola REDCAP2 microprocessor.
Table 4-2: Summary of Power-On/Reset Options

CNF[4, 2:0]
CNF3

state of this pin at rising edge of RESET# is used to configure:(1/0)
1
0
1101 = REDCAP2 Big Endian Host Bus Interface
GPIO pins as inputs at power-on
GPIO pins as HR-TFT/ D-TFD outputs

CNF5

WAIT# is active high

S1D13708
Pin Name

WAIT# is active low

CLKI to BCLK divide select:
CNF[7:6]

CNF7
0
0
1
1

CNF6
0
1
0
1

CLKI to BCLK Divide Ratio
1:1
2:1
3:1
4:1

= configuration for REDCAP2 microprocessor

4.4 Register/Memory Mapping
The S1D13708 is a memory mapped device. The S1D13708 uses two 128K byte blocks
which are selected using A17 from the REDCAP2 bus (A17 is connected to the S1D13708
M/R# pin). The internal registers occupy the first 128K byte block and the 80K byte display
buffer occupies the second 128K byte block. In this example, the S1D13708 internal
registers are accessed starting at address 4100 0000h and the display buffer is accessed
starting at address 4102 0000h.
Each Chip Select on the REDCAP2 is allocated a 16M byte block. However, the S1D13708
only needs a 256K byte block of memory to accommodate its register set and 80K byte
display buffer. For this reason, only address bits A[17:0] are used while A[21:18] are
ignored. The S1D13708’s memory and register are aliased every 256K bytes in the 16M
byte CS1 address space.
Note

If aliasing is not desirable, the upper addresses must be fully decoded.

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

S1D13708
X39A-G-014-01

Page 16

Epson Research and Development
Vancouver Design Center

4.5 REDCAP2 Chip Select Configuration
In this example, Chip Select 1 controls the S1D13708. The following options are selected
in the CS1 Control Register.
• CSEN = 1 — Chip Select function enabled.
• WP = 0 — writes allowed.
• SP = 0 — user mode access allowed.
• DSZ = 10 — 16-bit Port.
• EBC = 0 — assert EB0-1 for both reads and writes.
• WEN = 1 — EB0-1 negated half a clock earlier during write cycle.
• OEA = 1 — OE asserted half a clock later during a read cycle.
• CSA = 0 — Chip Select asserted as early as possible. No idle cycle inserted between
back-to-back external transfers.
• EDC = 1 — an idle cycle is inserted after a read cycle for back-to-back external transfers, unless the next cycle is a read cycle to the same CS bank.
• WWS = 0 — same length for reads and writes.

S1D13708
X39A-G-014-01

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 17

5 Software
Test utilities and display drivers are available for the S1D13708. Full source code is
available for both the test utilities and the drivers.
The test utilities are configurable for different panel types using a program called
13708CFG, or by directly modifying the source. The display drivers can be customized by
the OEM for different panel types, resolutions and color depths only by modifying the
source.
The S1D13708 test utilities and display drivers are available from your sales support
contact or www.erd.epson.com.

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

S1D13708
X39A-G-014-01

Page 18

Epson Research and Development
Vancouver Design Center

6 References
6.1 Documents
• Motorola Inc., REDCAP2 Digital Signal Processor Integrated With MCU Product
Specifications Rev. 1.2ext.
• Epson Research and Development, Inc., S1D13708 Hardware Functional Specification,
Document Number X39A-A-001-xx.
• Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board
User Manual, Document Number X39A-G-004-xx.
• Epson Research and Development, Inc., S1D13708 Programming Notes and Examples,
Document Number X39A-G-003-xx.

6.2 Document Sources
• Motorola Inc. Literature Distribution Center: (800) 441-2447.
• Motorola Inc. Website: http://www.motorola.com/.
• Epson Research and Development Website: http://www.erd.epson.com/.

S1D13708
X39A-G-014-01

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

Epson Research and Development
Vancouver Design Center

Page 19

7 Technical Support
7.1 EPSON LCD/CRT Controllers (S1D13708)
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

7.2 Motorola REDCAP2 Processor
• Motorola Design Line, (800) 521-6274.
• Local Motorola sales office or authorized distributor.

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

S1D13708
X39A-G-014-01

Page 20

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-014-01

Interfacing to the Motorola RedCap2
Issue Date: 01/11/06

S1D13708 Embedded Memory LCD Controller

Interfacing to 8-bit Processors
Document Number: X39A-G-015-01

Copyright © 2001 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

S1D13708
X39A-G-015-01

Interfacing to 8-bit Processors
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2

Interfacing to an 8-bit Processor . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1 The Generic 8-bit Processor System Bus . . . . . . . . . . . . . . . . . . . . . 8

3

S1D13708 Host Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1 Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2 Host Bus Interface Signals . . . . . . . . . . . . . . . . . . . . . . . . . 10

4

8-Bit Processor to S1D13708 Interface
4.1 Hardware Connections . . . . . . .
4.2 S1D13708 Hardware Configuration . .
4.3 Register/Memory Mapping . . . . .

5

Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13

6

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.1 Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
6.2 Document Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

7

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
7.1 EPSON LCD Controllers (S1D13708) . . . . . . . . . . . . . . . . . . . . . 15

Interfacing to 8-bit Processors
Issue Date: 01/11/25

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

11
11
12
12

S1D13708
X39A-G-015-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-015-01

Interfacing to 8-bit Processors
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 5

List of Tables
Table 3-1: Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Table 4-1: Summary of Power-On/Reset Configuration Options . . . . . . . . . . . . . . . . . . . 12
Table 4-2: CLKI to BCLK Divide Selection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12

List of Figures
Figure 4-1: Typical Implementation of 8-bit Processor to S1D13708 Interface . . . . . . . . . . . . 11

Interfacing to 8-bit Processors
Issue Date: 01/11/25

S1D13708
X39A-G-015-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-015-01

Interfacing to 8-bit Processors
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 7

1 Introduction
This application note describes the hardware and software environment required to
interface the S1D13708 Embedded Memory LCD Controller and 8-bit processors. This
document is not intended to cover all possible implementation, but provides a generic
example of how such an interface can be accomplished.
The designs described in this document are presented only as examples of how such
interfaces might be implemented. This application note is updated as appropriate. Please
check the Epson Research and Development website at http://www.erd.epson.com for the
latest revision of this document before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Interfacing to 8-bit Processors
Issue Date: 01/11/25

S1D13708
X39A-G-015-01

Page 8

Epson Research and Development
Vancouver Design Center

2 Interfacing to an 8-bit Processor
2.1 The Generic 8-bit Processor System Bus
Although the S1D13708 does not directly support an 8-bit CPU, an 8-bit interface can be
achieved with minimal external logic.
Typically, the bus of an 8-bit microprocessor is straight forward with minimal CPU and
system control signals. To connect a memory mapped device such as the S1D13708, only
the write, read, and wait control signals, plus the data and address lines, need to be interfaced. Since the S1D13708 is a 16-bit device, some external logic is required.

S1D13708
X39A-G-015-01

Interfacing to 8-bit Processors
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 9

3 S1D13708 Host Bus Interface
The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit
Generic #2 Host Bus Interface which can be adapted for use with an 8-bit processor.
The Generic #2 Host Bus Interface is selected by the S1D13708 on the rising edge of
RESET#. After RESET# is released, the bus interface signals assume their selected configuration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware
Configuration” on page 12.
The S1D13708 clock (CLKI) is taken from the system host bus. The system clock source
will drive all required internal clocks. If they are not used, the CLKI2 and XTAL inputs
should be tied to ground.

3.1 Host Bus Interface Pin Mapping
The following table shows the functions of each Host Bus Interface signal.
Table 3-1: Host Bus Interface Pin Mapping
S1D13708
Pin Names

Generic #2

Comments

AB[16:0]

A[16:0]

—

DB[15:0]

D[15:0]

—

WE1#

Byte High Enable (BHE#)

External decode required

CS#

Chip Select

External decode required

M/R#

Memory/Register Select

External decode required

CLKI

BUSCLK

—

BS#

connect to IO VDD

—

RD/WR#

connect to IO VDD

—

RD#

RD#

—

WE0#

WE#

—

WAIT#

WAIT#

—

RESET#

Inverted RESET

—

Interfacing to 8-bit Processors
Issue Date: 01/11/25

S1D13708
X39A-G-015-01

Page 10

Epson Research and Development
Vancouver Design Center

3.2 Host Bus Interface Signals
The S1D13708 Generic #2 Host Bus Interface requires the following signals from an 8-bit
processor.
• CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source
for its internal bus and memory clocks. This clock is typically driven by the host CPU
system clock.
• The address inputs AB[16:0] connect directly to the 8-bit processor address lines
(A[16:0). If the specific 8-bit processor cannot implement all 17 address lines required
by the S1D13708, only a portion of the 80K byte S1D13708 display buffer is accessible.
For example, if only AB[15:0] are supported, only the first 64K byte of the display
buffer is available.
• The data bus DB[15:0] must be connected so that the 8-bit processor data lines (D[7:0])
are connected to both DB[15:8] and DB[7:0] of the S1D13708. CNF4 must be set to
select little endian mode.
• Chip Select (CS#) is driven by decoding the high-order address lines to select the proper
register and memory address space.
• M/R# (memory/register) selects between memory or register accesses. This signal may
be connected to an address line, allowing system address A17 to be connected to the
M/R# line.
Note

If A17 is unavailable on the 8-bit processor, an external decode must be used to generate the M/R# signal.
• BHE# is the high byte enable for both read and write cycles and connects to the high
byte chip select signal.
Note

In an 8-bit environment, this signal is driven by inverting address line A0 thus indicating that odd addresses are to be read/write on the high byte of the data bus.
• WE# connects to WE# (the write enable signal) and must be driven low when the 8-bit
processor is writing data to the S1D13708.
• RD# connects to RD# (the read enable signal) and must be driven low when the 8-bit
processor is reading data from the S1D13708.
• WAIT# is a signal output from the S1D13708 that indicates the 8-bit processor must
wait until data is ready (read cycle) or accepted (write cycle) on the host bus. Since host
CPU bus accesses to the S1D13708 may occur asynchronously to the display update, it
is possible that contention may occur in accessing the 13708 internal registers and/or
display buffer. The WAIT# line resolves these contentions by forcing the host to wait
until the resource arbitration is complete. This signal is active low and may need to be
inverted if the host CPU wait state signal is active high.
• The Bus Status (BS#) and Read/Write (RD/WR#) signals are not used in this implementation of a generic 8-bit processor using the Generic #2 Host Bus Interface. These pins
must be tied high (connected to IO VDD).

S1D13708
X39A-G-015-01

Interfacing to 8-bit Processors
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 11

4 8-Bit Processor to S1D13708 Interface
4.1 Hardware Connections
The interface between the S1D13708 and an 8-bit processor requires minimal glue logic. A
decoder is used to generate the chip select for the S1D13708 based on where the S1D13708
is mapped into memory. Alternatively, if the processor supports a chip select module, it can
be programmed to generate a chip select for the S1D13708 without the need of an address
decoder.
An inverter inverts A0 to generate the BHE# signal for the S1D13708. BS# (bus start) and
RD/WR# are not used by the Generic #2 Host Bus Interface and must be tied high
(connected to IO VDD).
In order to support an 8-bit processor with a 16-bit peripheral, the low and high order bytes
of the data bus must be connected together. The following diagram shows a typical implementation of an 8-bit processor to S1D13708 interface.
S1D13708

Generic 8-bit Bus
IO VDD

RD/WR#
BS#
M/R#

A17
A[16:0]

AB[15:0]

D[7:0]

DB[7:0]
DB[15:8]
Decoder

CS#

WE#

WE#

RD#

RD#
BHE#

A0

WAIT#

WAIT#

CLKI

BUSCLK
System RESET

RESET#

Note:
When connecting the S1D13708 RESET# pin, the system designer should be aware of all
conditions that may reset the S1D13708 (e.g. CPU reset can be asserted during wake-up
from power-down modes, or during debug states).

Figure 4-1: Typical Implementation of 8-bit Processor to S1D13708 Interface

Interfacing to 8-bit Processors
Issue Date: 01/11/25

S1D13708
X39A-G-015-01

Page 12

Epson Research and Development
Vancouver Design Center

4.2 S1D13708 Hardware Configuration
The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other
configuration data on the rising edge of RESET#. For details on configuration, refer to the
S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
The following table shows the configuration required for this implementation of a
S1D13708 to generic 8-bit processor.
Table 4-1: Summary of Power-On/Reset Configuration Options
S1D13708
Pin Name
CNF[4, 2:0]
CNF3
CNF5
CNF[7:6]

value on this pin at the rising edge of RESET# is used to configure: (1/0)
1
0
0100 = Generic #2 Little Endian Host Bus Interface
GPIO pins as inputs at power on
GPIO pins as HR-TFT / D-TFT outputs
Active high WAIT#
Active low WAIT#
see Table 4-2: “CLKI to BCLK Divide Selection” for recommended setting
= configuration for generic 8-bit processor

Table 4-2: CLKI to BCLK Divide Selection
CNF7
0
0
1
1

CNF6
0
1
0
1

CLKI to BCLK Divide
1:1
2:1
3:1
4:1

= recommended setting for generic 8-bit processor

4.3 Register/Memory Mapping
The S1D13708 is a memory mapped device. The S1D13708 uses two 128K byte blocks
which are selected using A17 from the 8-bit processor (A17 is connected to the S1D13708
M/R# pin). The internal registers occupy the first 128K byte block and the 80K byte display
buffer occupies the second 128K byte block.
An external decoder can be used to decode the address lines and generate a chip select for
the S1D13708 whenever the selected 128k byte memory block is accessed. If the processor
supports a general chip select module, its internal registers can be programmed to generate
a chip select for the S1D13708 whenever the S1D13708 memory block is accessed.

S1D13708
X39A-G-015-01

Interfacing to 8-bit Processors
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 13

5 Software
Test utilities and display drivers are available for the S1D13708. Full source code is
available for both the test utilities and the drivers.
The test utilities are configurable for different panel types using a program called
13708CFG, or by directly modifying the source. The display drivers can be customized by
the OEM for different panel types, resolutions and color depths only by modifying the
source.
The S1D13708 test utilities and display drivers are available from your sales support
contact or www.erd.epson.com.

Interfacing to 8-bit Processors
Issue Date: 01/11/25

S1D13708
X39A-G-015-01

Page 14

Epson Research and Development
Vancouver Design Center

6 References
6.1 Documents
• Epson Research and Development, Inc., S1D13708 Hardware Functional Specification,
document number X39A-A-001-xx.
• Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board
User Manual, document number X39A-G-004-xx.
• Epson Research and Development, Inc., S1D13708 Programming Notes and Examples,
Document Number X39A-G-003-xx.

6.2 Document Sources
• Epson Research and Development Website: http://www.erd.epson.com/.

S1D13708
X39A-G-015-01

Interfacing to 8-bit Processors
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 15

7 Technical Support
7.1 EPSON LCD Controllers (S1D13708)
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

Interfacing to 8-bit Processors
Issue Date: 01/11/25

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

S1D13708
X39A-G-015-01

Page 16

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-015-01

Interfacing to 8-bit Processors
Issue Date: 01/11/25

S1D13708 Embedded Memory LCD Controller

Interfacing to the Motorola
MC68VZ328 Dragonball
Microprocessor
Document Number: X39A-G-016-01

Copyright © 2001 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 Trademarks are the property of their respective owners.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-016-01

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2

Interfacing to the MC68VZ328 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1 The MC68VZ328 System Bus . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.2 Chip-Select Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

3

S1D13708 Host Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1 Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2 Host Bus Interface Signals . . . . . . . . . . . . . . . . . . . . . . . . . 10

4

MC68VZ328 to S1D13708 Interface . . . . . . . . . . .
4.1 Hardware Description . . . . . . . . . . . . . .
4.2 S1D13708 Hardware Configuration . . . . . . . . .
4.2.1 Register/Memory Mapping . . . . . . . . . . . . .
4.2.2 MC68VZ328 Chip Select and Pin Configuration . .

5

Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14

6

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.1 Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
6.2 Document Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15

7

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
7.1 EPSON LCD/CRT Controllers (S1D13708) . . . . . . . . . . . . . . . . . . 16
7.2 Motorola MC68VZ328 Processor . . . . . . . . . . . . . . . . . . . . . . . 16

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

.
.
.
.
.

. . . . . .
. . . . .
. . . . .
. . . . . . .
. . . . . . .

.
.
.
.
.

. . . . . . .
. . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .

11
11
12
13
13

S1D13708
X39A-G-016-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-016-01

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 5

List of Tables
Table 3-1:
Table 4-1:
Table 4-2:
Table 4-3:

Host Bus Interface Pin Mapping . . . . . . . . . . .
Summary of Power-On/Reset Configuration Options
CLKI to BCLK Divide Selection . . . . . . . . . .
WS Bit Programming . . . . . . . . . . . . . . . .

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.9
12
12
13

List of Figures
Figure 4-1: Typical Implementation of MC68VZ328 to S1D13708 Interface . . . . . . . . . . . . . 11

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-016-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-016-01

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 7

1 Introduction
This application note describes the hardware and software environment required to
interface the S1D13708 Embedded Memory LCD Controller and the Motorola
MC68VZ328 Dragonball VZ microprocessor.
The designs described in this document are presented only as examples of how such
interfaces might be implemented. This application note is updated as appropriate. Please
check the Epson Research and Development website at http://www.erd.epson.com for the
latest revision of this document before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-016-01

Page 8

Epson Research and Development
Vancouver Design Center

2 Interfacing to the MC68VZ328
2.1 The MC68VZ328 System Bus
The Motorola MC68VZ328 “Dragonball VZ” is the third generation in the Dragonball
microprocessor family. The Dragonball VZ is an integrated controller designed for
handheld products. It is based upon the FLX68000 microprocessor core and uses a 24-bit
address bus and 16-bit data bus. The Dragonball VZ is faster than its predecessors and the
DRAM controller now supports SDRAM. The bus interface consists of all the standard
MC68000 bus interface signals except AS, plus some new signals intended to simplify the
interface to typical memory and peripheral devices. The 68000 signals are multiplexed with
IrDA, SPI and LCD controller signals.
The MC68000 bus control signals are well documented in the Motorola user manuals, and
are not be described here. The new signals are as follows.
• Output Enable (OE) is asserted when a read cycle is in progress. It is intended to connect
to the output enable control signal of a typical static RAM, EPROM, or Flash EPROM
device.
• Upper Write Enable and Lower Write Enable (UWE / LWE) are asserted during
memory write cycles for the upper and lower bytes of the 16-bit data bus. They may be
directly connected to the write enable inputs of a typical memory device.

2.2 Chip-Select Module
The MC68VZ328 can generate up to 8 chip select outputs which are organized into four
groups (A through D).
Each chip select group has a common base address register and address mask register
allowing the base address and block size of the entire group to be set. In addition, each chip
select within a group has its own address compare and address mask register to activate the
chip select for a subset of the group’s address block. Each chip select may also be individually programmed to control an 8 or 16-bit device. Lastly, each chip select can either
generate from 0 through 6 wait states internally, or allow the memory or peripheral device
to terminate the cycle externally using the standard MC68000 DTACK signal.
Chip select groups A and B are used to control ROM, SRAM, and Flash memory devices
and have a block size of 128K bytes to 16M bytes. Chip select A0 is active immediately
after reset and is a global chip select so it is typically used to control a boot EPROM device.
A0 ceases to decode globally once its chip select registers are programmed. Groups C and
D are special in that they can also control DRAM interfaces. These last two groups have
block size of 32K bytes to 4M bytes.

S1D13708
X39A-G-016-01

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 9

3 S1D13708 Host Bus Interface
The S1D13708 directly supports multiple processors. The S1D13708 implements a
Dragonball Host Bus Interface which directly supports the Motorola MC68VZ328 microprocessor.
The Dragonball Host Bus Interface is selected by the S1D13708 on the rising edge of
RESET#. After RESET# is released, the bus interface signals assume their selected configuration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware
Configuration” on page 12.
The S1D13708 clock (CLKI) is taken from the system host bus. The system clock source
will drive all required internal clocks. If they are not used, the CLKI2 and XTAL inputs
should be tied to ground.

3.1 Host Bus Interface Pin Mapping
The following table shows the functions of each Host Bus Interface signal.
Table 3-1: Host Bus Interface Pin Mapping
S1D13708
Pin Names

Motorola MC68VZ328

AB[16:0]

A[16:0]

DB[15:0]

D[15:0]

WE1#

UWE

CS#

CSx

M/R#

External Decode

CLKI

CLKO

BS#

Connect to IOVDD from the
S1D13708

RD/WR#

Connect to IOVDD from the
S1D13708

RD#

OE

WE0#

LWE

WAIT#

DTACK

RESET#

System RESET

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-016-01

Page 10

Epson Research and Development
Vancouver Design Center

3.2 Host Bus Interface Signals
The Host Bus Interface requires the following signals.
• CLKI is a clock input required by the S1D13708 Host Bus Interface as a source for its
internal bus and memory clocks. This clock is typically driven by the host CPU system
clock. For this example, CLK0 from the Motorola MC68VZ328 is used for CLKI.
• The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the
MC68VZ328 address (A[16:0]) and data bus (D[15:0]), respectively. CNF4 must be set
to one to select big endian mode.
• Chip Select (CS#) must be driven low by one of the Dragonball VZ chip select outputs
from the chip select module whenever the S1D13708 is accessed by the MC68VZ328.
• M/R# (memory/register) selects between memory or register accesses. This signal is
generated by the external address decode circuitry. For this example, M/R# may be
connected to an address line, allowing system address A17 to be connected to the M/R#
line.
• WE0# connects to LWE (the low data byte write strobe enable of the MC68VZ328) and
is asserted when valid data is written to the low byte of a 16-bit device.
• WE1# connects to UWE (the upper data byte write strobe enable of the MC68VZ328)
and is asserted when valid data is written to the high byte of a 16-bit device.
• RD# connects to OE (the read output enable of the MC68VZ328) and is asserted during
a read cycle of the MC68VZ328 microprocessor.
• RD/WR# is not used for the Dragonball host bus interface and must be tied high to
IO VDD.
• WAIT# connects to DTACK and is a signal which is output from the S1D13708 indicating the MC68VZ328 must wait until data is ready (read cycle) or accepted (write
cycle) on the host bus. The MC68VZ328 accesses to the S1D13708 may occur asynchronously to the display update.
• BS# is not used for the Dragonball host bus interface and must be tied high to IO VDD.

S1D13708
X39A-G-016-01

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 11

4 MC68VZ328 to S1D13708 Interface
4.1 Hardware Description
The interface between the S1D13708 and the MC68VZ328 does not requires any external
glue logic. Chip select module B is used to provide the S1D13708 with a chip select and
A17 is used to select between memory and register accesses.
In this example, the DTACK signal is made available for the S1D13708. Alternately, the
S1D13708 can guarantee a maximum cycle length that the Dragonball VZ handles by
inserting software wait states (see Section 4.2.2, “MC68VZ328 Chip Select and Pin
Configuration” on page 13). A single resistor is used to speed up the rise time of the WAIT#
(DTACK) signal when terminating the bus cycle.
The following diagram shows a typical implementation of the MC68VZ328 to S1D13708
using the Dragonball host bus interface. For further information on the Dragonball Host
Bus interface and AC Timing, refer to the S1D13708 Hardware Functional Specification,
document number X39A-A-001-xx.
MC68VZ328

S1D13708

A[16:0]

AB[16:0]

D[15:0]

DB[15:0]

CSB1

CS#

A17

M/R#
IO VDD

IO VDD

BS#
1K

RD/WR#

DTACK

WAIT#

UWE

WE1#

LWE

WE0#

OE

RD#

CLK0

CLKI
System RESET

RESET#

Note:
When connecting the S1D13708 RESET# pin, the system designer should be aware of all
conditions that may reset the S1D13708 (e.g. CPU reset can be asserted during wake-up
from power-down modes, or during debug states).

Figure 4-1: Typical Implementation of MC68VZ328 to S1D13708 Interface

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-016-01

Page 12

Epson Research and Development
Vancouver Design Center

4.2 S1D13708 Hardware Configuration
The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other
configuration data on the rising edge of RESET#. For details on configuration, refer to the
S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
The following table shows the configuration required for this implementation of a
S1D13708 to Motorola MC68VZ328 microprocessor.
Table 4-1: Summary of Power-On/Reset Configuration Options
S1D13708 Pin
Name
CNF[4, 2:0]
CNF3
CNF5
CNF[7:6]

value on this pin at the rising edge of RESET# is used to configure: (1/0)
1
0
1110 = Dragonball Big Endian Host Bus Interface
GPIO pins as inputs at power on
GPIO pins as HR-TFT / D-TFT outputs
Active high WAIT#
Active low WAIT#
see Table 4-2: “CLKI to BCLK Divide Selection” for recommended settings
= configuration for MC68VZ328 microprocessor

Table 4-2: CLKI to BCLK Divide Selection
CNF7
0
0
1
1

CNF6
0
1
0
1

CLKI to BCLK Divide
1:1
2:1
3:1
reserved

= recommended setting for MC68VZ328 microprocessor

S1D13708
X39A-G-016-01

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 13

4.2.1 Register/Memory Mapping
The S1D13708 requires two 128K byte segments in memory for the display buffer and its
internal registers. To accommodate this block size, it is preferable (but not required) to use
one of the chip selects from groups A or B. Groups A and B can have a size range of 128K
bytes to 16M bytes and groups C and D have a size range of 32K bytes to 16M bytes.
Therefore, any chip select other than CSA0 would be suitable for the S1D13708 interface.
In the example interface, chip select CSB1 controls the S1D13708. A 256K byte address
space is used with the S1D13708 internal registers occupying the first 128K byte block and
the 80K byte display buffer located in the second 128K byte block. A17 from the
MC68VZ328 is used to select between these two 128K byte blocks.

4.2.2 MC68VZ328 Chip Select and Pin Configuration
The chip select used to map the S1D13708 (in this example CSB1) must have its RO (Read
Only) bit set to 0, its BSW (Bus Data Width) set to 1 for a 16-bit bus, and the WS (Wait
states) bits should be set to 111b to allow the S1D13708 to terminate bus cycles externally
with DTACK. The DTACK pin function must be enabled with Register FFFFF433, Port G
Select Register, bit 0.
If DTACK is not used, then the WS bits should be set to either 4, 6, 10, or 12 software wait
states depending on the divide ratio between the S1D13708 MCLK and BCLK. The WS
bits should be set as follows.
Table 4-3: WS Bit Programming
S1D13708 MCLK to BCLK Divide Ratio

WS Bits (wait states)

MCLK = BCLK

6

MCLK = BCLK ÷ 2

9

MCLK = BCLK ÷ 3

12

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-016-01

Page 14

Epson Research and Development
Vancouver Design Center

5 Software
Test utilities and display drivers are available for the S1D13708. Full source code is
available for both the test utilities and the drivers.
The test utilities are configurable for different panel types using a program called
13708CFG, or by directly modifying the source. The display drivers can be customized by
the OEM for different panel types, resolutions and color depths only by modifying the
source.
The S1D13708 test utilities and display drivers are available from your sales support
contact or www.erd.epson.com.

S1D13708
X39A-G-016-01

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 15

6 References
6.1 Documents
• Motorola Inc., MC68VZ328 DragonBall-VZ® Integrated Processor User’s Manual,
Motorola Publication no. MC683VZ28UM; available on the Internet at
http://www.motorola.com/.
• Epson Research and Development, Inc., S1D13708 Hardware Functional Specification,
Document Number X39A-A-001-xx.
• Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board
User Manual, Document Number X39A-G-004-xx.
• Epson Research and Development, Inc., Programming Notes and Examples, Document
Number X39A-G-003-xx.

6.2 Document Sources
• Motorola Inc. Literature Distribution Center: (800) 441-2447.
• Motorola Inc. Website: http://www.motorola.com/.
• Epson Research and Development Website: http://www.erd.epson.com/.

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-016-01

Page 16

Epson Research and Development
Vancouver Design Center

7 Technical Support
7.1 EPSON LCD/CRT Controllers (S1D13708)
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

7.2 Motorola MC68VZ328 Processor
• Motorola Design Line, (800) 521-6274.
• Local Motorola sales office or authorized distributor.

S1D13708
X39A-G-016-01

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor
Issue Date: 01/11/25

S1D13708 Embedded Memory LCD Controller

Interfacing to the Intel StrongARM
SA-1110 Microprocessor
Document Number: X39A-G-019-01

Copyright © 2001 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 Trademarks are the property of their respective owners.

Page 2

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-019-01

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2

Interfacing to the StrongARM SA-1110 Bus
2.1 The StrongARM SA-1110 System Bus . .
2.1.1 StrongARM SA-1110 Overview . . .
2.1.2 Variable-Latency IO Access Overview
2.1.3 Variable-Latency IO Access Cycles .

3

S1D13708 Host Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.1 Host Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . . . . 11
3.2 Host Bus Interface Signal Descriptions . . . . . . . . . . . . . . . . . . . . 12

4

StrongARM SA-1110 to S1D13708 Interface
4.1 Hardware Description . . . . . . . . .
4.2 S1D13708 Hardware Configuration . . . .
4.3 StrongARM SA-1110 Register Configuration
4.4 Register/Memory Mapping . . . . . . .

5

Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

6

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.1 Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.2 Document Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

7

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.1 EPSON LCD Controllers (S1D13708) . . . . . . . . . . . . . . . . . . . . . 19
7.2 Intel StrongARM SA-1110 Processor . . . . . . . . . . . . . . . . . . . . . 19

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

. . .
. . .
. . . .
. . . .
. . . .

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

. . .
. .
. . .
. . .
. . .

. . .
. .
. .
. .
. .

.
.
.
.
.

.
.
.
.
.

. . . . . .
. . . . .
. . . . . . .
. . . . . . .
. . . . . . .

.
.
.
.
.

.
.
.
.
.

. . .
. .
. .
. .
. .

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

. . . . . . .
. . . . . .
. . . . . . . .
. . . . . . . .
. . . . . . . .

.
.
.
.
.

. . .
. .
. .
. .
. .

.
.
.
.
.

.
.
.
.
.

.
.
.
.
.

. 8
.8
. 8
.8
. 9

13
13
14
15
16

S1D13708
X39A-G-019-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-019-01

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 5

List of Tables
Table 3-1:
Table 4-1:
Table 4-2:
Table 4-3:

Host Bus Interface Pin Mapping . . . . . . . . . . . . . .
Summary of Power-On/Reset Configuration Options . . .
CLKI to BCLK Divide Selection . . . . . . . . . . . . .
RDFx Parameter Value versus CPU Maximum Frequency

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

.
.
.
.

11
14
14
15

List of Figures
Figure 2-1: SA-1110 Variable-Latency IO Read Cycle . . . . . . . . . . . . . . . . . . . . . . . . 9
Figure 2-2: SA-1110 Variable-Latency IO Write Cycle . . . . . . . . . . . . . . . . . . . . . . . . 10
Figure 4-1: Typical Implementation of SA-1110 to S1D13708 Interface . . . . . . . . . . . . . . . 13

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-019-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-019-01

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 7

1 Introduction
This application note describes the hardware and software environment required to provide
an interface between the S1D13708 Embedded Memory LCD Controller and the Intel
StrongARM SA-1110 Microprocessor.
The designs described in this document are presented only as examples of how such
interfaces might be implemented. This application note is updated as appropriate. Please
check the Epson Research and Development website at www.erd.epson.com for the latest
revision of this document before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-019-01

Page 8

Epson Research and Development
Vancouver Design Center

2 Interfacing to the StrongARM SA-1110 Bus
2.1 The StrongARM SA-1110 System Bus
The StrongARM SA-1110 microprocessor is a highly integrated communications microcontroller that incorporates a 32-bit StrongARM RISC processor core. The SA-1110 is
ideally suited to interface to the S1D13708 LCD controller and provides a high performance, power efficient solution for embedded systems.

2.1.1 StrongARM SA-1110 Overview
The SA-1110 system bus can access both variable-latency IO and memory devices. The
SA-1110 uses a 26-bit address bus and a 32-bit data bus which can be used to access 16-bit
devices. A chip select module with six chip select signals (each accessing 64M bytes of
memory) allows selection of external devices. Only chip selects 3 through 5 (nCS[5:3])
may be used to select variable-latency devices which use RDY to extend access cycles.
These chip selects are individually programmed in the SA-1110 memory configuration
registers and can be configured for either a 16 or 32-bit data bus.
Byte steering is implemented using the four signals nCAS[3:0]. Each signal selects a byte
on the 32-bit data bus. For example, nCAS0 selects bits D[7:0] and nCAS3 selects bits
D[31:24]. For a 16-bit data bus, only nCAS[1:0] are used with nCAS0 selecting the low
byte and nCAS1 selecting the high byte. The SA-1110 can be configured to support little
or big endian mode.

2.1.2 Variable-Latency IO Access Overview
A data transfer is initiated when a memory address is placed on the SA-1110 system bus
and a chip select signal (nCS[5:3]) is driven low. If all byte enable signals (nCAS[3:0]) are
driven low, then a 32-bit transfer takes place. If only nCAS[1:0] are driven low, then a word
transfer takes place through a 16-bit bus interface. If only one byte enable is driven low,
then a byte transfer takes place on the respective data lines.
During a read cycle, the output enable signal (nOE) is driven low. A write cycle is specified
by driving nOE high and driving the write enable signal (nWE) low. The cycle can be
lengthened by driving RDY high for the time needed to complete the cycle.

S1D13708
X39A-G-019-01

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 9

2.1.3 Variable-Latency IO Access Cycles
The first nOE assertion occurs two memory cycles after the assertion of chip select (nCS3,
nCS4, or nCS5). Two memory cycles prior to the end of minimum nOE or nWE assertion
(RDF+1 memory cycles), the SA-1110 starts sampling the data ready input (RDY).
Samples are taken every half memory cycle until three consecutive samples (at the rising
edge, falling edge, and following rising edge of the memory clock) indicate that the IO
device is ready for data transfer. Read data is latched one-half memory cycle after the third
successful sample (on falling edge). Then nOE or nWE is deasserted on the next rising edge
and the address may change on the subsequent falling edge. Prior to a subsequent data
cycle, nOE or nWE remains deasserted for RDN+1 memory cycles. The chip select and
byte selects (nCAS[1:0] for 16-bit data transfers), remain asserted for one memory cycle
after the final nOE or nWE deassertion of the burst.
The SA-1110 is capable of burst cycles during which the chip select remains low while the
read or write command is asserted, precharged and reasserted repeatedly.
Figure 2-1: illustrates a typical variable-latency IO access read cycle on the SA-1110 bus.

A[25:0]

ADDRESS VALID

nCS4

nOE

nWE
RDY

D[31:0]

DATA VALID

nCAS[3:0]

Figure 2-1: SA-1110 Variable-Latency IO Read Cycle

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-019-01

Page 10

Epson Research and Development
Vancouver Design Center

Figure 2-2: illustrates a typical variable-latency IO access write cycle on the SA-1110 bus.

A[25:0]

ADDRESS VALID

nCS4

nWE

nOE
RDY

D[31:0]

DATA VALID

nCAS[3:0]

Figure 2-2: SA-1110 Variable-Latency IO Write Cycle

S1D13708
X39A-G-019-01

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 11

3 S1D13708 Host Bus Interface
The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit
Generic #2 Host Bus Interface which is most suitable for direct connection to the
SA-1110.
The Generic #2 Host Bus Interface is selected by the S1D13708 on the rising edge of
RESET#. After releasing reset the bus interface signals assume their selected configuration.
For details on S1D13708 configuration, see Section 4.2, “S1D13708 Hardware Configuration” on page 14.
The S1D13708 clock (CLKI) is taken from the system host bus. The system clock source
will drive all required internal clocks. If they are not used, the CLKI2 and XTAL inputs
should be tied to ground.

3.1 Host Bus Interface Pin Mapping
The following table shows the functions of each Host Bus Interface signal.
Table 3-1: Host Bus Interface Pin Mapping
S1D13708 Pin Name
AB[16:0]
DB[15:0]
WE1#
M/R#
CS#
CLKI
BS#
RD/WR#
RD#
WE0#
WAIT#
RESET#

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

SA-1110
A[16:0]
D[15:0]
nCAS1
A17
nCS4
SDCLK2
VDD
VDD
nOE
nWE
RDY
system RESET

S1D13708
X39A-G-019-01

Page 12

Epson Research and Development
Vancouver Design Center

3.2 Host Bus Interface Signal Descriptions
The S1D13708 Generic #2 Host Bus Interface requires the following signals.
• CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source
for its internal bus and memory clocks. This clock is typically driven by the host CPU
system clock. For this example, it is driven by one of the SA-1110 signals SDCLK1 or
SDCLK2 (The example implementation in this document uses SDCLK2). For further
information, see Section 4.3, “StrongARM SA-1110 Register Configuration” on page
15.
• The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the SA1110 address bus (A[16:0]) and data bus (D[15:0]), respectively. CNF4 must be set to
select little endian mode.
• M/R# (memory/register) selects between memory or register accesses. This signal may
be connected to an address line, allowing system address A17 to be connected to the
M/R# line.
• Chip Select (CS#) must be driven low by nCSx (where x is the SA-1110 chip select
used) whenever the S1D13708 is accessed by the SA-1110.
• WE1# connects to nCAS1 (the high byte enable signal from the SA-1110) which in
conjunction with address bit 0 allows byte steering of read and write operations.
• WE0# connects to nWE (the write enable signal from the SA-1110) and must be driven
low when the SA-1110 is writing data to the S1D13708.
• RD# connects to nOE (the read enable signal from the SA-1110) and must be driven low
when the SA-1110 is reading data from the S1D13708.
• WAIT# connects to RDY and is a signal output from the S1D13708 that indicates the
SA-1110 must wait until data is ready (read cycle) or accepted (write cycle) on the host
bus. Since SA-1110 accesses to the S1D13708 may occur asynchronously to the display
update, it is possible that contention may occur in accessing the S1D13708 internal
registers and/or display buffer. The WAIT# line resolves these contentions by forcing
the host to wait until the resource arbitration is complete.
• The Bus Start (BS#) and RD/WR# signals are not used for this Host Bus Interface and
should be tied high (connected to VDD).
• The RESET# (active low) input of the S1D13708 may be connected to the system
RESET.

S1D13708
X39A-G-019-01

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 13

4 StrongARM SA-1110 to S1D13708 Interface
4.1 Hardware Description
The SA-1110 microprocessor provides a variable latency I/O interface that can be used to
support an external LCD controller. By using the Generic # 2 Host Bus Interface, no glue
logic is required to interface the S1D13708 and the SA-1110.
A pull-up resistor is attached to WAIT# to speed up its rise time when terminating a cycle.
BS# (bus start) and RD/WR# are not used by the Generic #2 Host Bus Interface and must
be tied high (connected to IO VDD).
The following diagram shows a typical implementation of the SA-1110 to S1D13708
interface.

SA-1110

S1D13708

nWE

WE0#

nCAS1

WE1#
RD#

nOE

nCS4

CS#

IO VDD Pull-up

RDY

WAIT#

A17

M/R#
System RESET

RESET#

A[16:0]

AB[16:0]

D[15:0]

DB[15:0]

SDCLK2

CLKI
IO VDD

BS#
RD/WR#
Note:
When connecting the S1D13708 RESET# pin, the system designer should be aware of all
conditions that may reset the S1D13708 (e.g. CPU reset can be asserted during wake-up
from power-down modes, or during debug states).

Figure 4-1: Typical Implementation of SA-1110 to S1D13708 Interface

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-019-01

Page 14

Epson Research and Development
Vancouver Design Center

4.2 S1D13708 Hardware Configuration
The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other
configuration data on the rising edge of RESET#. For details on configuration, refer to the
S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
The following table shows the configuration required for this implementation of a
S1D13708 to SA-1110 interface.
Table 4-1: Summary of Power-On/Reset Configuration Options
S1D13708
Pin Name

value on this pin at the rising edge of RESET# is used to configure: (1/0)
1

0

CNF[4, 2:0]

0100 = Generic #2 Little Endian Host Bus Interface

CNF3

GPIO pins as inputs at power on

GPIO pins as HR-TFT / D-TFT outputs

CNF5

Active high WAIT#

Active low WAIT#

CNF[7:6]

see Table “” for recommended setting
= configuration for SA-1110

Table 4-2: CLKI to BCLK Divide Selection
CNF7
0
0
1
1

CNF6
0
1
0
1

CLKI to BCLK Divide
1:1
2:1
3:1
4:1

= recommended setting for SA-1110

S1D13708
X39A-G-019-01

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 15

4.3 StrongARM SA-1110 Register Configuration
The SA-1110 requires configuration of several of its internal registers to interface to the
S1D13708 Generic #2 Host Bus Interface.
• The Static Memory Control Registers (MSC[2:0]) are read/write registers containing
control bits for configuring static memory or variable-latency IO devices. These registers correspond to chip select pairs nCS[5:4], nCS[3:2], and nCS[1:0] respectively. Each
of the three registers contains two identical CNFG fields, one for each chip select within
the pair. Since only nCS[5:3] controls variable-latency IO devices, MSC2 and MSC1
should be programmed based on the chip select used.
Parameter RTx<1:0> should be set to 01b (selects variable-latency IO mode).
Parameter RBWx should be set to 1 (selects 16-bit bus width).
Parameter RDFx<4:0> should be set according to the maximum desired CPU
frequency as indicated in the table below.
Table 4-3: RDFx Parameter Value versus CPU Maximum Frequency
CPU Frequency (MHz)
57.3 - 85.9
88.5 - 143.2
147.5 - 200.5
206.4 - 221.2

RDFx
1
2
3
4

Parameter RDNx<4:0> should be set to 0 (minimum command precharge time).
Parameter RRRx<2:0> should be set to 0 (minimum nCSx precharge time).
• The S1D13708 endian mode is set to little endian. To program the SA-1110 for little
endian set bit 7 of the control register (register 1) to 0.
• The CLKI signal input to the S1D13708 from one of the SDCLK[2:1] pins is a derivative of the SA-1110 internal processor speed (either divide by 2 or 4). The S1D13708
Generic #2 Host Bus Interface has a maximum BCLK of 50MHz. Therefore, if the
processor clock is higher than 100MHz, either divide the BCLK input using the
S1D13708 configuration pins CNF[7:6] (see Table 4-2: “CLKI to BCLK Divide Selection” ) or set SDCLK1/SDCLK2 to CPU clock divided by four using the DRAM
Refresh Control Register (MDREFR bit 26 = 1 for SDCLK2, MDREFR bit 22 = 1 for
SDCLK1).

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-019-01

Page 16

Epson Research and Development
Vancouver Design Center

4.4 Register/Memory Mapping
The S1D13708 is a memory-mapped device. The SA-1110 uses the memory assigned to a
chip select (nCS4 in this example) to map the S1D13708 internal registers and display
buffer. The S1D13708 uses two 128K byte blocks which are selected using A17 from the
SA-1110 (A17 is connected to the S1D13708 M/R# pin).The internal registers occupy the
first 128K bytes block and the 80K byte display buffer occupies the second 128K byte
block.
Each variable-latency IO chip select is assigned 128M Bytes of address space. Therefore;
if nCS4 is used the S1D13708 registers will be located at 4000 0000h and the display buffer
will be located at 4002 0000h. These blocks are aliased over the entire 128M byte address
space.
Note

If aliasing is not desirable, the upper addresses must be fully decoded.

S1D13708
X39A-G-019-01

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 17

5 Software
Test utilities and display drivers are available for the S1D13708. Full source code is
available for both the test utilities and the drivers.
The test utilities are configurable for different panel types using a program called
13708CFG, or by directly modifying the source. The display drivers can be customized by
the OEM for different panel types, resolutions and color depths only by modifying the
source.
The S1D13708 test utilities and display drivers are available from your sales support
contact or www.erd.epson.com.

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-019-01

Page 18

Epson Research and Development
Vancouver Design Center

6 References
6.1 Documents
• Intel Corporation, StrongARM® SA-1110 Microprocessor Advanced Developer’s
Manual, Order Number 278240-001.
• Epson Research and Development, Inc., S1D13708 Hardware Functional Specification,
Document Number X39A-A-001-xx.
• Epson Research and Development, Inc., S1D13708 Programming Notes and Examples,
Document Number X39A-G-003-xx.
• Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 ISA Bus Evaluation
Board User Manual, Document Number X39A-G-004-xx.

6.2 Document Sources
• Intel Developers Website: http://developer.intel.com.
• Intel Literature contact: 1(800) 548-4725.
• Epson Research and Development Website: http://www.erd.epson.com/.

S1D13708
X39A-G-019-01

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

Epson Research and Development
Vancouver Design Center

Page 19

7 Technical Support
7.1 EPSON LCD Controllers (S1D13708)
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

7.2 Intel StrongARM SA-1110 Processor
INTEL
Intel Customer Support (ICS) for StrongARM: (800) 628-8686
Website for StrongARM Processor http://developer.intel.com/design/strong/

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

S1D13708
X39A-G-019-01

Page 20

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-019-01

Interfacing to the Intel StrongARM SA-1110 Microprocessor
Issue Date: 01/11/25

S1D13708 Embedded Memory LCD Controller

Connecting to a Micro-Controller via the
Indirect Interface
Document Number: X39A-G-020-01

Copyright © 2001 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

S1D13708
X39A-G-020-01

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

Epson Research and Development
Vancouver Design Center

Page 3

Table of Contents
1

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2

Interfacing to a Micro-Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
2.1 The Indirect Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8

3

S1D13708 Host Bus Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.1 Indirect Mode Bus Interface Pin Mapping . . . . . . . . . . . . . . . . . . . . 9
3.2 Host Bus Interface Signals . . . . . . . . . . . . . . . . . . . . . . . . . 12

4

Micro-Controller to S1D13708 Interface
4.1 Hardware Connections . . . . . . .
4.2 S1D13708 Hardware Configuration . .
4.3 Register/Memory Mapping . . . . .

5

Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16

6

References . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.1 Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
6.2 Document Sources . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18

7

Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
7.1 EPSON LCD Controllers (S1D13708) . . . . . . . . . . . . . . . . . . . . . 19

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

. . .
. .
. .
. .

.
.
.
.

.
.
.
.

.
.
.
.

13
13
14
15

S1D13708
X39A-G-020-01

Page 4

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-020-01

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

Epson Research and Development
Vancouver Design Center

Page 5

List of Tables
Table 3-1:
Table 3-2:
Table 3-3:
Table 3-4:
Table 4-1:
Table 4-2:

Mode 68 8-Bit Data Host Bus Interface Pin Mapping .
Mode 68 16-Bit Data Host Bus Interface Pin Mapping
Mode 80 8-Bit Data Host Bus Interface Pin Mapping .
Mode 80 16-Bit Data Host Bus Interface Pin Mapping
Summary of Power-On/Reset Configuration Options .
CLKI to BCLK Divide Selection . . . . . . . . . . .

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

.
.
.
.
.
.

. 9
10
10
11
14
14

List of Figures
Figure 4-1: Typical Implementation of Micro-Controller to S1D13708 Interface . . . . . . . . . . . 13

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

S1D13708
X39A-G-020-01

Page 6

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-020-01

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

Epson Research and Development
Vancouver Design Center

Page 7

1 Introduction
This application note describes the hardware and software routines required to interface the
S1D13708 Embedded Memory LCD Controller to a micro-controller via the Indirect
Interface. This document is not intended to cover all possible implementations, but
provides a generic example of how such an interface can be accomplished.
The designs described in this document are presented only as examples of how such
interfaces might be implemented. This application note is updated as appropriate. Please
check the Epson Research and Development website at http://www.erd.epson.com for the
latest revision of this document before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at
documentation@erd.epson.com.

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

S1D13708
X39A-G-020-01

Page 8

Epson Research and Development
Vancouver Design Center

2 Interfacing to a Micro-Controller
2.1 The Indirect Interface
Although the S1D13708 directly supports various CPU interfaces, the Indirect Interface
allows micro-controllers that do not have a true CPU interface to use the S1D13708. In
addition to being flexible and easy to implement on a micro-computer, this interface gives
two other advantages.
• Reduced bus signal count, since no address lines are needed. There are two Indirect
Interface modes, Mode 68 and Mode 80, both of which can handle 16-bit or 8-bit data
transfers.
• S1D13708 asynchronous operation from the CPU.
Using Indirect Mode 68, 8-bit data transfer, only 12 IO signals are required, four for control
and 8 for data. If 16-bit data transfers are required, an extra eight signals are needed for the
expanded data bus and one more control signal. The S1D13708 can be set to run in
asynchronous mode where the LCD controller runs independent of the CPU clock.
Indirect Mode 80 also allows 8-bit or 16-bit data transfers, but this mode requires one extra
control signal when configured for 16-bit data mode.

S1D13708
X39A-G-020-01

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

Epson Research and Development
Vancouver Design Center

Page 9

3 S1D13708 Host Bus Interface
The S1D13708 directly supports many microprocessor busses, of which two are Indirect
Interface modes, Mode 68 and Mode 80. Both modes can be used for micro-controllers
where IO lines are available for use as a bus to the S1D13708.
Actual bus cycles will typically be controlled by software unless the micro-controller
supports the Indirect Interface natively.
The Indirect Interface modes are selected by the S1D13708 based on the CNF[7:0] pin state
on the rising edge of RESET#. After RESET# is released, the bus interface signals assume
their selected configuration. For details on the S1D13708 configuration, please refer to
Section 4.2, “S1D13708 Hardware Configuration” on page 14.
The S1D13708 clock (CLKI) is taken from the micro-controller bus clock in synchronous
operation or from any other source for asynchronous bus operation. If the CLKI2 and
XTAL inputs are not used they should be tied to ground, as with all other unused inputs.
For more information on the Indirect Interface mode interface, please refer to the
S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

3.1 Indirect Mode Bus Interface Pin Mapping
The following table shows how the pins are connected in each of the Indirect modes.
Table 3-1: Mode 68 8-Bit Data Host Bus Interface Pin Mapping
S1D13708
Pin Names

Mode 68

AB[16:0]

connect to Vss

DB[15:8]

connect to Vss

DB[7:0]

D[7:0]

CS#

Chip Select

M/R#

A0

CLKI

BUSCLK

RD/WR#

R/W#

RD#

connect to Vss

WE0#

EBL

WAIT#

not connected

RESET#

RESET#

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

S1D13708
X39A-G-020-01

Page 10

Epson Research and Development
Vancouver Design Center

Table 3-2: Mode 68 16-Bit Data Host Bus Interface Pin Mapping
S1D13708
Pin Names

connect to Vss

AB[16:0]

connect to Vss

DB[15:0]

D[15:0]

CS#

Chip Select

M/R#

A0

CLKI

BUSCLK

RD/WR#

R/W#

RD#

connect to Vss

WE0#

EBL

WAIT#

not connected

RESET#

RESET#

Table 3-3: Mode 80 8-Bit Data Host Bus Interface Pin Mapping

S1D13708
X39A-G-020-01

S1D13708
Pin Names

connect to Vss

AB[16:0]

connect to Vss

DB[15:8]

connect to Vss

DB[7:0]

D[7:0]

CS#

Chip Select

M/R#

A0

CLKI

BUSCLK

RD/WR#

RDL#

RD#

connect to VDD

WE0#

WRL#

WAIT#

not connected

RESET#

RESET#

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

Epson Research and Development
Vancouver Design Center

Page 11

Table 3-4: Mode 80 16-Bit Data Host Bus Interface Pin Mapping
S1D13708
Pin Names

connect to Vss

AB[16:0]

connect to Vss

DB[15:0]

D[7:0]

CS#

Chip Select

M/R#

A0

CLKI

BUSCLK

RD/WR#

RDL#

RD#

RDU#

WE0#

WRL#

WAIT#

not connected

RESET#

RESET#

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

S1D13708
X39A-G-020-01

Page 12

Epson Research and Development
Vancouver Design Center

3.2 Host Bus Interface Signals
The S1D13708 Indirect Interface mode 68 and 80 host bus interface requires the following
signals from a micro-controller.
• CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source
for its internal bus and memory clocks. This clock is typically driven by the host CPU
system clock. CLKI for the S1D13708 Indirect Interface can also be asynchronous with
respect to the micro-controller bus clock, i.e. the clocks can be out of phase and/or
different speeds. The only consideration to take into account is the software routines that
control the bus cycles. The routines need to meet the bus interface timing requirements
according to the S1D13708 bus clock.
• The data bus, DB[15:0] or DB[7:0], must be connected to bi-directional pins of the
micro-controller lines.
• Chip Select (CS#) must be driven low when the S1D13708 is accessed by the microcontroller.
• M/R# [A0 (command signal)] selects between the signals on the data bus as being a
register address or memory/register data.
• The RESET# (active low) input of the S1D13708 may be connected to the system
RESET#.
The next three signals only apply to Mode 68:
• WE0# (EBL, active low) is the low byte enable input for both read and write cycles.
This signal needs to be tied to a general purpose output line of the micro-controller.
• WE1# (EBH, active low) is the high byte enable input for both read and write cycles.
This signal needs to be tied to a general purpose output line of the micro-controller for a
16-bit data bus, or to ground for an 8-bit data bus.
• RD/WR# (R/W#, active low) must be driven high for read accesses and low for write
accesses. This signal needs to be tied to a general purpose output line of the microcontroller.
Note

Mode 68 requires the S1D13708 BS# and RD# signal inputs be tied to VSS.
The next four signals only apply to Mode 80:
• RD/WR# (RDL#, active low) is the low byte enable for read cycles. This input signal
needs to be tied to a general purpose output line of the micro-controller.
• RD# (RDU#, active low) is the high byte enable for read cycles. This input signal needs
to be tied to a general purpose output line on the micro-controller for a 16-bit data bus,
or to ground for an 8-bit data bus.
• WE0# (WRL#, active low) is the low byte enable for write cycles. This input signal
needs to be tied to a general purpose output line of the micro-controller.
• WE1# (WRU#, active low) is the high byte enable for write cycles. This input signal
needs to be tied to a general purpose output line of the micro-controller for a 16-bit data
bus, or to ground for an 8-bit data bus.
Note

Mode 80 requires the S1D13708 BS# input signal be tied to VDD.

S1D13708
X39A-G-020-01

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

Epson Research and Development
Vancouver Design Center

Page 13

4 Micro-Controller to S1D13708 Interface
4.1 Hardware Connections
The interface between the S1D13708 and a micro-controller requires no external logic if
there are enough IO lines, and voltage levels are the same. As an example; the MicroChip
P18C452 micro-controller has 34 IO lines available for use as general input/output lines,
1536 bytes of RAM, and runs 20Mhz at 3.3 volts.
To interface the S1D13708 to the P18C452 using Indirect Mode 68 requires only four
output lines acting as control signals and eight bidirectional lines acting as the data bus.
Using only 12 IO lines, a fully functioning S1D13708 LCD controller can be attached to
the micro-controller. If a 16-bit data bus is desired, eight more bidirectional lines from the
P18C452 can be connected to DB[15:8] and one more output line, acting as EBH,
connected to the WE1# pin of the S1D13708.
The S1D13708 has 80K of embedded RAM which is used as the LCD display buffer.
Depending on the LCD panel size, some of this memory can be used to store data for the
micro-controller.
For example, using an Epson 160x160 ND-TFD panel in 8 bpp mode, the S1D13708 only
requires 25K bytes of display buffer memory and will have 55K bytes of memory available
for data storage which the P18C452 can use. If the bit-per-pixel setting is changed to 16
bpp, only 30K bytes of memory is available to the micro-controller for data storage.
MicroChip P18C452

S1D13708

CS (RD0)

CS#

A0 (RD1)

M/R#
RD/WR#

R/W# (RD2)

WE0#

EBL (RD3)
D[7:0] (RB[7:0])

DB[7:0]
System CLK
System RESET

CLKI
RESET#

DB[15:8]
WE1#
RD#
BS#
AB[16:0]
Note:
When connecting the S1D13708 RESET# pin, the system designer should be aware of all
conditions that may reset the S1D13708 (e.g. CPU reset can be asserted during wake-up
from power-down modes, or during debug states).

Figure 4-1: Typical Implementation of Micro-Controller to S1D13708 Interface

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

S1D13708
X39A-G-020-01

Page 14

Epson Research and Development
Vancouver Design Center

4.2 S1D13708 Hardware Configuration
The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other
configuration data on the rising edge of RESET#. For details on configuration, refer to the
S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
The following table shows the configuration required for this implementation of the
S1D13708 with the Indirect Interface. To select Mode 68, the BS# and RD# pins are tied
to VSS. To select Mode 80, only the BS# pin is tied to VDD.
Table 4-1: Summary of Power-On/Reset Configuration Options
S1D13708
Pin Name
CNF[4, 2:0]
CNF3
CNF5
CNF[7:6]

value on this pin at the rising edge of RESET# is used to configure: (1/0)
1
0
0111 = Indirect Mode Little Endian Host Bus Interface
GPIO pins as inputs at power on
GPIO pins as HR-TFT / D-TFT outputs
Active high WAIT#
Active low WAIT#
See Table 4-2: “CLKI to BCLK Divide Selection” for recommended setting
= configuration for generic 8-bit processor

Table 4-2: CLKI to BCLK Divide Selection
CNF7
0
0
1
1

CNF6
0
1
0
1

CLKI to BCLK Divide
1:1
2:1
3:1
4:1

= recommended setting for Indirect Mode

S1D13708
X39A-G-020-01

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

Epson Research and Development
Vancouver Design Center

Page 15

4.3 Register/Memory Mapping
When the S1D13708 is in Indirect mode it is not a memory mapped device. It uses the
protocol of first placing the register address on the data lines, then setting the register data
on the data lines for the next cycle. The data lines are a multipurpose data bus, they can
contain either the register address or the register data. The type of cycle, register address
(command) or register data (data), is controlled by the A0 command signal.
The 80K byte display buffer memory of the S1D13708 is accessed through the use of four
dedicated register sets. Registers REG[C0h], REG[C1h] and REG[C2h] contain the address
of the memory pointer, and register REG[C4h] is the ‘start’ register. To access memory,
REG[C2h], REG[C1h] and REG[C0h] are written with the desired memory address. Then,
a command access to register REG[C3h] will start the memory access. Subsequent
read/write data accesses will access the memory. The memory pointer address is automatically incremented after a memory data access.
The overhead for reading a large block of memory is the same as reading a small block of
memory. Reading a single byte of memory will still require setting three address registers
and a fourth access to the ‘start’ register.
For further information on the Indirect Interface bus cycles, please refer to the S1D13708
Hardware Functional Specification, document number X39A-A-001-xx.

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

S1D13708
X39A-G-020-01

Page 16

Epson Research and Development
Vancouver Design Center

5 Software
To implement the bus cycles in software, refer to the S1D13708 Hardware Functional
Specification, document number X39A-A-001-xx, for the bus timings. A minimum of three
steps must be implemented in software to use the Indirect Interface. The steps for an 8-bit
data transfer are:
• void command_write (char command_value)
• void data_write (char data_value)
• char data_read (void)
Example 1: The sequence for writing the S1D13708 register REG[7Ch] PIP+ Display Start
with a value of 28h is:
• command_write(0x7C);
• data_write(0x28);
Example 2: The sequence for reading the S1D13708 register REG[26h] FPFRAME Pulse
Start Register 0 is:
• command_write(0x26);
• value_returned= data_read();
Example 3: The sequence for writing to S1D13708 memory location 200h with two bytes
of data is:
•
•
•
•
•
•
•
•
•

command_write(0xC0);
data_write(0x00);
command_write(0xC1);
data_write(0x02);
command_write(0xC2);
data_write(0x00);
command_write(0xC3);
// note that no ‘data’ value is needed for the ‘start’ register
data_write(0xAA); // 1st byte of data written to 0x200
data_write(0x55); // 2nd byte of data written 20 0x201

To read memory, the same sequence as above is used except a ‘data_read()’ is called. Note
that the memory address is auto-incremented after a memory data access and the ‘start’
register REG[C3h] does not require a data value.

S1D13708
X39A-G-020-01

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

Epson Research and Development
Vancouver Design Center

Page 17

The following is a C implementation of the bus cycles:
// these are the simplified mode 68 bus cycles to mimic on the PIC general IO pins
#define CommandWriteStep1
0b10010100
// A0= low, RW=low
#define CommandWriteStep2
0b10011000
// CS=low, EBL= high
#define CommandWriteStep3
0b10010100
// EBL= low,CS=high
#define CommandWriteStep4
0b10110110
// a0= high, rw=high
#define DataWriteStep1
0b10010110
// rw=low
#define DataWriteStep2
0b10011010
// cs=low,ebl=high
#define DataWriteStep3
0b10010110
// cs=high,ebl=low
#define DataWriteStep4
0b10110110
// rw=high
#define DataReadStep1
0b10111010
// c78NORMAL & ~c78CS | c78EBL; CS=low, EBL= high
////////////////////////////////////////////////////////////////////////////
// routine to mimic a mode 68 command write cycle
//
void command_write (char command_value)
{
// command write cycle
PORTB= command_value;
// place the register onto the data bus
TRISB= 0;
// make port as output
LATD= CommandWriteStep1;
LATD= CommandWriteStep2;
Nop();
Nop();
Nop();
Nop();
Nop();
LATD= CommandWriteStep3;
LATD= CommandWriteStep4;
LATD= c78NORMAL;
TRISB= 0xff;
// set bus as Inputs
}
////////////////////////////////////////////////////////////////////////////
// routine to mimic a mode 68 data write cycle
//
void data_write (char data_value)
{
PORTB= data_value; // place the register onto the data bus
TRISB= 0;
// make port as output
LATD= DataWriteStep1;
LATD= DataWriteStep2;
Nop();
Nop();
Nop();
Nop();
Nop();
LATD= DataWriteStep3;
LATD= DataWriteStep4;
LATD= c78NORMAL;
// back to original state
TRISB= 0xff;
// set bus as Inputs
}
////////////////////////////////////////////////////////////////////////////
// routine to mimic a mode 68 data read cycle
//
char return_data_read;
char data_read (void)
{
TRISB= 0xff;
// make port as output
LATD= DataReadStep1;
Nop();
Nop();
Nop();
Nop();
Nop();
Nop();
Nop();
Nop();
return_data_read= PORTB;
// place the register onto the data bus
LATD= c78NORMAL;
// we can terminate cycle early for speed
return return_data_read;
}

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

S1D13708
X39A-G-020-01

Page 18

Epson Research and Development
Vancouver Design Center

6 References
6.1 Documents
• Epson Research and Development, Inc., S1D13708 Hardware Functional Specification,
document number X39A-A-001-xx.
• Epson Research and Development, Inc., S1D13708 Programming Notes and Examples,
Document Number X39A-G-003-xx.

6.2 Document Sources
• Epson Research and Development Website: http://www.erd.epson.com/.

S1D13708
X39A-G-020-01

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

Epson Research and Development
Vancouver Design Center

Page 19

7 Technical Support
7.1 EPSON LCD Controllers (S1D13708)
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp/

Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
http://www.epson.com.hk/

North America
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/

Taiwan
Epson Taiwan Technology
& Trading Ltd.
10F, No. 287
Nanking East Road
Sec. 3, Taipei, Taiwan
Tel: 02-2717-7360
Fax: 02-2712-9164
http://www.epson.com.tw/

Europe
Epson Europe Electronics GmbH
Riesstrasse 15
80992 Munich, Germany
Tel: 089-14005-0
Fax: 089-14005-110
http://www.epson-electronics.de/

Singapore
Epson Singapore Pte., Ltd.
No. 1
Temasek Avenue #36-00
Millenia Tower
Singapore, 039192
Tel: 337-7911
Fax: 334-2716
http://www.epson.com.sg/

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12

S1D13708
X39A-G-020-01

Page 20

Epson Research and Development
Vancouver Design Center

THIS PAGE LEFT BLANK

S1D13708
X39A-G-020-01

Connecting to a Micro-Controller via the Indirect Interface
Issue Date: 01/12/12



Source Exif Data:
File Type                       : PDF
File Type Extension             : pdf
MIME Type                       : application/pdf
PDF Version                     : 1.3
Linearized                      : Yes
Encryption                      : Standard V1.2 (40-bit)
User Access                     : Print, Copy, Fill forms, Extract, Assemble, Print high-res
Modify Date                     : 2002:08:13 18:49:58+02:00
Create Date                     : 2002:03:11 14:55:32Z
Page Count                      : 574
Creation Date                   : 2002:03:11 14:55:32Z
Mod Date                        : 2002:03:11 14:55:32Z
Producer                        : Acrobat Distiller 5.0.5 (Windows)
Author                          : dennis
Metadata Date                   : 2002:03:11 14:55:32Z
Creator                         : dennis
Title                           : S1D13708.book
Page Mode                       : UseOutlines
EXIF Metadata provided by EXIF.tools

Navigation menu