
S1D13708
TECHNICAL MANUAL
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.

S1D13708 TECHNICAL MANUAL X39A-Q-001-01 Issue Date: 01/10/09

EPSON provides the designer and manufacturer a complete set of resources and tools for the development of LCD Graphics Systems.
EPSON offers the following services through their Sales and Marketing Network:
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/
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/
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 TECHNICAL MANUAL X39A-Q-001-01 Issue Date: 01/10/09


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.



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).

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 Corpo- ration. All other trademarks are the property of their respective owners.

Hardware Functional Specification
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

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07



Table 6-25: TFT A.C. Timing 87 Table 6-26: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timing 89 Table 6-27: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing 91 Table 6-28: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing 93 Table 6-29: 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timing 93 Table 6-30: 160x240 Epson D-TFD Panel Horizontal Timing 95 Table 6-31: 160x240 Epson D-TFD Panel GCP Horizontal Timing 96 Table 6-32: 160x240 Epson D-TFD Panel Vertical Timing 97 Table 6-33: 320x240 Epson D-TFD Panel Horizontal Timing 99 Table 6-34: 320x240 Epson D-TFD Panel GCP Horizontal Timing 100 Table 6-35: 320x240 Epson D-TFD Panel Vertical Timing 101 Table 6-36: TFT Type 2 Horizontal Timing 103 Table 6-37: TFT Type 2 Vertical Timing 104 Table 6-38: TFT Type 3 Horizontal Timing 106 Table 6-39: TFT Type 3 Vertical Timing 108 Table 6-40: TFT Type 4 A.C. Timing 111 Table 7-1: BCLK Clock Selection 112 Table 7-2: MCLK Clock Selection 113 Table 7-3: PCLK Clock Selection 113 Table 7-4: Relationship between MCLK and PCLK 115 Table 7-5: PWMCLK Clock Selection 115 Table 7-6: S1D13708 Internal Clock Requirements 117 Table 8-1: S1D13708 Register Set 119 Table 8-2: MCLK Divide Selection 122 Table 8-3: PCLK Divide Selection 122 Table 8-4: PCLK Source Selection 123 Table 8-5: Panel Data Width Selection 126 Table 8-6: HRTFT/D-TFD Panel Resolution Selection 126 Table 8-7: LCD Panel Type Selection 127 Table 8-8: Inverse Video Mode Select Options 134 Table 8-9: LCD Bit-per-pixel Selection 135 Table 8-10: SwivelViewTM Mode Select Options 136 Table 8-11: 32-bit Address Increments for Color Depth 139 Table 8-12: 32-bit Address Increments for Color Depth 140 Table 8-13: 32-bit Address Increments for Color Depth 141 Table 8-14: 32-bit Address Increments for Color Depth 142 Table 8-15: PWM Clock Control 150 Table 8-16: CV Pulse Control 151 Table 8-17: PWM Clock Divide Select Options 152 Table 8-18: CV Pulse Divide Select Options 152
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Table 8-19: PWMOUT Duty Cycle Select Options 153 Table 8-20: Extended Panel Type Selection 155 Table 8-21: VCLK Hold 159 Table 8-22: VCLK Setup 159 Table 8-23: AP Pulse Width 160 Table 8-24: AP Rising Position 160 Table 8-25: GPO2 PCLK2 Divide Rate 164 Table 8-26: GPO1 PCLK1 Divide Rate 164 Table 8-27: Number of Source Driver ICs 170 Table 18-1: Power Save Mode Function Summary 214
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Figure 3-1 Typical System Diagram (Generic #1 Bus) 19 Figure 3-2 Typical System Diagram (Generic #2 Bus) 19 Figure 3-3 Typical System Diagram (Hitachi SH-4 Bus) 20 Figure 3-4 Typical System Diagram (Hitachi SH-3 Bus) 21 Figure 3-5 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000) 22 Figure 3-6 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030) 23 Figure 3-7 Typical System Diagram (Motorola REDCAP2 Bus) 24 Figure 3-8 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus) . . .25 Figure 3-9 Typical System Diagram (Indirect Interface, Mode 68) 25 Figure 3-10 Typical System Diagram (Indirect Interface, Mode 80) 26 Figure 4-1 Pinout Diagram - PFBGA 120-pin 27 Figure 6-1 Clock Input Requirements 42 Figure 6-2 Generic #1 Interface Timing 44 Figure 6-3 Generic #2 Interface Timing 46 Figure 6-4 Hitachi SH-4 Interface Timing 48 Figure 6-5 Hitachi SH-3 Interface Timing 50 Figure 6-6 Motorola MC68K #1 Interface Timing 52 Figure 6-7 Motorola MC68K #2 Interface Timing 54 Figure 6-8 Motorola REDCAP2 Interface Timing 56 Figure 6-9 Motorola DragonBall Interface with DTACK Timing 58 Figure 6-10 Motorola DragonBall Interface without DTACK# Timing 60 Figure 6-11 Indirect Interface Timing (Mode 68) 62 Figure 6-12 Indirect Interface Timing (Mode 80) 64 Figure 6-13 Passive/TFT Power-On Sequence Timing 66 Figure 6-14 Passive/TFT Power-Off Sequence Timing 67 Figure 6-15 Panel Timing Parameters 68 Figure 6-16 Generic STN Panel Timing 70 Figure 6-17 Single Monochrome 4-Bit Panel Timing 72 Figure 6-18 Single Monochrome 4-Bit Panel A.C. Timing 73 Figure 6-19 Single Monochrome 8-Bit Panel Timing 74 Figure 6-20 Single Monochrome 8-Bit Panel A.C. Timing 75 Figure 6-21 Single Color 4-Bit Panel Timing 76 Figure 6-22 Single Color 4-Bit Panel A.C. Timing 77 Figure 6-23 Single Color 8-Bit Panel Timing (Format 1) 78 Figure 6-24 Single Color 8-Bit Panel A.C. Timing (Format 1) 79 Figure 6-25 Single Color 8-Bit Panel Timing (Format 2) 80 Figure 6-26 Single Color 8-Bit Panel A.C. Timing (Format 2) 81
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Figure 6-27 Single Color 16-Bit Panel Timing 82 Figure 6-28 Single Color 16-Bit Panel A.C. Timing 83 Figure 6-29 Generic TFT Panel Timing 84 Figure 6-30 18-Bit TFT Panel Timing 85 Figure 6-31 TFT A.C. Timing 86 Figure 6-32 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing 88 Figure 6-33 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing 90 Figure 6-34 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing 92 Figure 6-35 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timing 93 Figure 6-36 160x240 Epson D-TFD Panel Horizontal Timing 94 Figure 6-37 160x240 Epson D-TFD Panel GCP Horizontal Timing 96 Figure 6-38 160x240 Epson D-TFD Panel Vertical Timing 97 Figure 6-39 320x240 Epson D-TFD Panel Horizontal Timing 98 Figure 6-40 320x240 Epson D-TFD Panel GCP Horizontal Timing 100 Figure 6-41 320x240 Epson D-TFD Panel Vertical Timing 101 Figure 6-42 TFT Type 2 Horizontal Timing 102 Figure 6-43 TFT Type 2 Vertical Timing 104 Figure 6-44 TFT Type 3 Horizontal Timing 105 Figure 6-45 TFT Type 3 Vertical Timing 107 Figure 6-46 TFT Type 4 Panel Timing 109 Figure 6-47 TFT Type 4 A.C. Timing 110 Figure 7-1 Clock Selection 116 Figure 8-1 Display Data Byte/Word Swap 136 Figure 8-2 PWM Clock/CV Pulse Block Diagram 150 Figure 10-1 4/8/16 Bit-Per-Pixel Display Data Memory Organization 172 Figure 11-1 1 Bit-per-pixel Monochrome Mode Data Output Path 173 Figure 11-2 2 Bit-per-pixel Monochrome Mode Data Output Path 173 Figure 11-3 4 Bit-per-pixel Monochrome Mode Data Output Path 174 Figure 11-4 8 Bit-per-pixel Monochrome Mode Data Output Path 174 Figure 11-5 1 Bit-Per-Pixel Color Mode Data Output Path 175 Figure 11-6 2 Bit-Per-Pixel Color Mode Data Output Path 176 Figure 11-7 4 Bit-Per-Pixel Color Mode Data Output Path 177 Figure 11-8 8 Bit-per-pixel Color Mode Data Output Path 178 Figure 12-1 Relationship Between The Screen Image and the Image Refreshed in 90× SwivelView. 179 Figure 12-2 Relationship Between The Screen Image and the Image Refreshed in 180× SwivelView.181 Figure 12-3 Relationship Between The Screen Image and the Image Refreshed in 270× SwivelView.182 Figure 13-1 Picture-in-Picture Plus with SwivelView disabled 184 Figure 13-2 Picture-in-Picture Plus with SwivelView 90° enabled 185 Figure 13-3 Picture-in-Picture Plus with SwivelView 180° enabled 185 Figure 13-4 Picture-in-Picture Plus with SwivelView 270° enabled 186
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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.
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 Communi- cations 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 appli- cation. 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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


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

Figure 3-2 Typical System Diagram (Generic #2 Bus)
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 3-3 Typical System Diagram (Hitachi SH-4 Bus)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

CLKI2
A[25:17]
M/R#
FPDAT[17:0]
D[17:0]
CS#
FPFRAME
FPFRAME
A[16:0]
AB[16:0]
FPLINE
FPLINE
D[15:0]
DB[15:0]
WE0#
FPSHIFT
FPSHIFT
WE0#
WE1#
WE1#
DRDY
DRDY
S1D13708
BS#
BS#
RD/WR#
RD/WR#
GPO0
RD#
RD#
WAIT#
WAIT#
CKIO
CLKI
RESET#
RESET#
Figure 3-4 Typical System Diagram (Hitachi SH-3 Bus)
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 3-5 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 3-6 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030)
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 3-7 Typical System Diagram (Motorola REDCAP2 Bus)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


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

Figure 3-9 Typical System Diagram (Indirect Interface, Mode 68)
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

XTAL0
XTAL1
BS#
FPDAT[7:4]
D[3:0]
AB[16:0] VSS
LCD
FPSHIFT
FPSHIFT
FPFRAME
FPFRAME
FPLINE
FPLINE
A[23:17]
CS#
DRDY
MOD
S1D13708
M/R#
A0
GPO0
D[15:0]
DB[15:0]
RD/WR# RDL#
RDU#
RD#
WE0# WRL#
WRU#
WE1#
BUSCLK
CLKI
RESET#
RESET#
Figure 3-10 Typical System Diagram (Indirect Interface, Mode 80)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


1 2 3 4 5 6 7 8 9 10 11
Figure 4-1 Pinout Diagram - PFBGA 120-pin
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
J AB10 AB9 AB8 AB1 DB6 DB2 BS# FPFRAME GPIO1 GPIO2 GPIO3
H AB14 AB13 AB11 AB0 DB5 DB1 RD# COREVDD PWMOUT GPIO0 DRDY
G XTAL0 IOVDD AB15 AB12 VSS VSS VSS GPO6 CLKI2 FPSHIFT CVOUT
F COREVDD CLKI XTAL1 AB16 VSS VSS GPO2 GPO5 GPO7 IOVDD
E DB11 DB10 DB8 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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

PWMOUT
COREVDD
TESTEN
FPSHIFT
CVOUT
IOVDD
CNF3
CNF4
CNF5
CNF6
CNF7
GPO0
GPO1
GPO2
GPO3
GPO4
GPO5
GPO6
GPO7
CLKI2
IOVDD
GPO0
GPIO0
GPIO1
GPIO2
GPIO3
GPIO4
GPIO5
VSS
VSS
VSS
VSS
COREVDD 99 65 VSS VSS 100
64 IOVDD CNF2 101 87 57 63 GPIO6 CNF1 102 88 56 62 FPLINE CNF0 103 89 55 61 FPFRAME FPDAT17 104 90 54 60 *CUT FPDAT16 105 91 53 59 VSS FPDAT15 106 92 52 58 IOVDD FPDAT14 107 93 51 57 WAIT# FPDAT13 108 94 50 56 RD# FPDAT12 109 95 49 55 BS# FPDAT11 110 96 48 54 M/R# FPDAT10 111 97 47 53 DB0 IOVDD 112 98 46 52 DB1 VSS 113 99 45 51 DB2 FPDAT9 114 100 44 50 DB3 FPDAT8 115 101 43 49 DB4 FPDAT7 116 102 42 48 DB5 FPDAT6 117 103 41 47 DB6 FPDAT5 118 104 40 46 DB7 COREVDD 119 105 39 45 VSS VSS 120 106 38 44 COREVDD FPDAT4 121 107 37 43 AB0 FPDAT3 122 108 36 42 AB1 FPDAT2 123 109 35 41 AB2 FPDAT1 124 110 34 40 AB3 FPDAT0 125 111 33 39 AB4 IOVDD 126 112 32 38 AB5 VSS 127 113 31 37 AB6 *CUT 128 114 30 36 AB7 IOVDD 129 35 VSS VSS 130
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
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

I = Input O = Output IO = Bi-Directional (Input/Output) P = Power pin PCLKI1 = CMOS/LVTTL schmitt input clock buffer PIC = CMOS/LVTTL input buffer PICS = CMOS/LVTTL input buffer with Schmitt input POC8 = CMOS/LVTTL 8mA low noise output buffer PBCC8 = CMOS/LVTTL bi-directional low noise buffer with 8mA CMOS output PBCC8C = CMOS/LVTTL high-speed bi-directional low noise buffer with 8mA CMOS output Hi-Z = High Impedance POSC1 = Crystal oscillator IO cell
Pin Name Type PFBGA
Pin # Cell IO Voltage
RESET # State Description
This input pin has multiple functions.
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.
System address bus bits 16-1.
J1,J2, J3,J4, K1,K2, K3,K4,
AB[16:1] I
PIC IOVDD 0
L3,L4
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Pin Name Type PFBGA
Pin # Cell IO Voltage
RESET # State Description
Input data from the system data bus.
DB[15:0] IO
J5,J6, K6,L5,
L6,L7
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.
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07
PBCC8 IOVDD Hi-Z

Pin Name Type PFBGA
Pin # Cell IO Voltage
RESET # State Description
This input pin has multiple functions.
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.
CS# I C2 PIC IOVDD 1 Chip select input. See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.
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.
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Pin Name Type PFBGA
Pin # Cell IO Voltage
RESET # State Description
This input pin has multiple functions.
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.
This input pin has multiple functions.
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Pin Name Type PFBGA
Pin # Cell IO Voltage
RESET # 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
See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.
RESET# I A2 PICS IOVDD 0 Active low input to set all internal registers to the default state and to force all signals to their inactive states.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Pin Name Type PFBGA
Pin # Cell IO Voltage
A4,A5, A6,A7, A8,B4, B6,B7, B8,C4, C5,C6, C8,C9, D5,D6,
FPDAT[17:0] O
PBCC8 IOVDD 0 Panel Data bits 17-0.
This output pin has multiple functions.
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.
This output pin has multiple functions.
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.
This output pin has multiple functions.
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.
This output pin has multiple functions.
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07
State Description

Pin Name Type PFBGA
Pin # Cell IO Voltage
This pin has multiple functions.
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.
This pin has multiple functions.
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.
This pin has multiple functions.
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.
This pin has multiple functions.
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.
This pin has multiple functions.
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02
State Description

Pin Name Type PFBGA
Pin # Cell IO Voltage
This pin has multiple functions.
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.
This pin has multiple functions.
See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.
This output pin has multiple functions.
This output pin has multiple functions.
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07
State Description

Pin Name Type PFBGA
Pin # Cell IO Voltage
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.
Pin Name Type PFBGA
Pin # Cell IO Voltage
A9, B9, B10, B11, C10, C11,
These inputs are used to configure the S1D13708 - see Table 4-8: “Summary of Power-On/Reset Options,” on page 38.
PIC IOVDD —
TESTEN I D10 PIC IOVDD 0 Test Enable input used for production test only (has type 1 pull- down resistor with a typical value of 50Ω at 3.3V).
Pin Name Type PFBGA
Pin # Cell IO Voltage
A1, A3, A11, C7, F11, G2,
IOVDD P
P — — IO VDD pins.
A10, B1,
COREVDD P
B5, F1, H8, K5, K11, L1
P — — Core VDD. pins.
VSS P
F5, F7, G5, G6,
P — — VSS pins.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02
State Description · State Description · State Description
![Page 44 of the Epson LCD Controller (S1D13708) user manual — CNF[7:6]](/cdn/reader/4a/4a92e08fe4afba097e7592bf622f11c0da6f1b1d18cd4de4c11a7125495752dd/images/page-44.webp?w=400)
Select host bus interface as follows:
CNF4 CNF2 CNF1 CNF0 Host Bus 1 0 0 0 SH-4/SH-3 interface, Big Endian 0 SH-4/SH-3 interface, Little Endian 1 0 0 1 MC68K #1, Big Endian 0 0 0 1 Reserved 1 0 1 0 MC68K #2, Big Endian 0 0 1 0 Reserved 1 0 1 1 Generic #1, Big Endian 0 0 1 1 Generic #1, Little Endian 1 1 0 0 Reserved 0 1 0 0 Generic #2, Little Endian 1 1 0 1 REDCAP2, Big Endian 0 1 0 1 Reserved 1 1 1 0 DragonBall (MC68EZ328/MC68VZ328), Big Endian 0 1 1 0 Reserved 1 Indirect Interface, Big Endian 0 1 1 1 Indirect Interface, Little Endian
Configure GPIO pins as outputs at power-on (for use by HR-TFT/D-TFD/TFT Type 2/TFT Type 3 when selected)
CNF3 Configure GPIO pins as inputs at power-on
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).
CNF7 CNF6 BCLK Divide Ratio 0 0 1 : 1 0 1 2 : 1 1 0 3 : 1 1 1 4 : 1
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07
S1D13708 Configuration · Power-On/Reset State · Input

Pin Name Generic #1 Generic #2 Hitachi SH-3 /SH-4
AB[16:1] A[16:1] Connected to VSS AB0 A01 A0 A01 LDS# A0 A01 A01 Connected to VSS DB[15:0] D[15:0]2 D[15:0]
CS# External Decode CSn# External Decode CSn CSn External Decode
M/R# External Decode A0 A0
CLKI BUSCLK BUSCLK CKIO CLKO BUSCLK BUSCLK
BS# Connected to IO VDD BS# AS# AS# Connected to IO VDD
to IO VDD
to IO VDD RD/WR# R/W# R/W# R/W Connected
to IO VDD R/W# RDL#
RD# RD0# RD# RD# Connected
Decode OE OE Connected
to VSS RDU#
to IO VDD
WE0# WE0# WE# WE0# Connected
to IO VDD SIZ0 EB1 LWE EBL WRL#
WE1# WE1# BHE# WE1# UDS# DS# EB0 UWE EBU WRU#
RDY# DTACK# DSACK1# N/A DTACK N/A N/A
RESET# RESET_OUT RESET RESET# RESET#
1 A0 for these busses is not used internally by the S1D13708. 2 If the target MC68K bus is 32-bit, then these signals should be connected to D[31:16].
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Panel Color Passive Panel Color TFT Panel
Single Single Generic TFT (TFT Type 1) Sharp HR-
Epson D-TFD1 TFT Type 2 TFT Type 3 TFT Type 4
8-bit 16-Bit 4-bit 8-bit 9-bit 12-bit 18-bit
FPLINE FPLINE LP LP STB LP FPLINE
FPSHIFT FPSHIFT DCLK XSCL CLK CPH FPSHIFT
DRDY MOD FPSHIFT2 MOD DRDY no connect GCP INV INV DRDY
FPDAT0 driven 0 D0 driven 0 D0 (B5)2 D0 (G3)2 D0 (R6)2 R2 R3 R5
FPDAT1 driven 0 D1 driven 0 D1 (R5)2 D1 (R3)2 D1 (G5)2 R1 R2 R4
FPDAT2 driven 0 D2 driven 0 D2 (G4)2 D2 (B2)2 D2 (B4)2 R0 R1 R3
FPDAT3 driven 0 D3 driven 0 D3 (B3)2 D3 (G2)2 D3 (R4)2 G2 G3 G5
FPDAT4 D0 D4 D0 (R2)2 D4 (R3)2 D4 (R2)2 D8 (B5)2 G1 G2 G4
FPDAT5 D1 D5 D1 (B1)2 D5 (G2)2 D5 (B1)2 D9 (R5)2 G0 G1 G3
FPDAT6 D2 D6 D2 (G1)2 D6 (B1)2 D6 (G1)2 D10 (G4)2 B2 B3 B5
FPDAT7 D3 D7 D3 (R1)2 D7 (R1)2 D7 (R1)2 D11 (B3)2 B1 B2 B4
FPDAT8 driven 0 driven 0 driven 0 driven 0 driven 0 D4 (G3)2 B0 B1 B3
FPDAT9 driven 0 driven 0 driven 0 driven 0 driven 0 D5 (B2)2 driven 0 R0 R2
FPDAT10 driven 0 driven 0 driven 0 driven 0 driven 0 D6 (R2)2 driven 0 driven 0 R1
FPDAT11 driven 0 driven 0 driven 0 driven 0 driven 0 D7 (G1)2 driven 0 driven 0 R0
FPDAT12 driven 0 driven 0 driven 0 driven 0 driven 0 D12 (R3)2 driven 0 G0 G2
FPDAT13 driven 0 driven 0 driven 0 driven 0 driven 0 D13 (G2)2 driven 0 driven 0 G1
FPDAT14 driven 0 driven 0 driven 0 driven 0 driven 0 D14 (B1)2 driven 0 driven 0 G0
FPDAT15 driven 0 driven 0 driven 0 driven 0 driven 0 D15 (R1)2 driven 0 B0 B2
FPDAT16 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 B1
FPDAT17 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 B0
GPIO0 PS XINH VCLK CPV GPIO0
GPIO1 CLS YSCL AP OE GPIO1
GPIO2 REV FR POL POL GPIO2
GPIO3 SPL FRS STH EIO GPIO3
GPIO4 (output only) RES GPIO4 (output only) VCOM GPIO4
GPIO5 (output only) DD_P1 GPIO5 (output only) XOEV GPIO5
GPIO6 (output only) YSCLD GPIO6 (output only) CMD GPIO6
GPO0 GPO0 (General Purpose Output) MOD GPO0
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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.
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
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
Symbol Parameter Condition Min Typ Max Units IDDS Quiescent Current Quiescent Conditions 170 µA IIZ Input Leakage Current -1 1 µA IOZ Output Leakage Current -1 1 µA
VOH High Level Output Voltage VDD = min. IOH = -8mA VDD - 0.4 V
VOL Low Level Output Voltage VDD = min. IOL = 8mA 0.4 V
VIH High Level Input Voltage LVTTL Level, VDD = max 2.0 V VIL Low Level Input Voltage LVTTL Level, VDD = min 0.8 V VT+ High Level Input Voltage LVTTL Schmitt 1.1 2.4 V VT- Low Level Input Voltage LVTTL Schmitt 0.6 1.8 V VH1 Hysteresis Voltage LVTTL Schmitt 0.1 V RPD Pull Down Resistance VI = VDD 20 50 120 kΩ CI Input Pin Capacitance 10 pF CO Output Pin Capacitance 10 pF CIO Bi-Directional Pin Capacitance 10 pF
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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.1 Input Clocks
VIL 10%
TOSC
Figure 6-1 Clock Input Requirements
Symbol Parameter Min Max Units
fOSC Input Clock Frequency (CLKI) 100 MHz
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
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Max Units
fOSC Input Clock Frequency (CLKI) 66 MHz
TOSC Input Clock period (CLKI) 1/fOSC ns
tPWH Input Clock Pulse Width High (CLKI) 3 ns
tPWL Input Clock Pulse Width Low (CLKI) 3 ns
tf Input Clock Fall Time (10% - 90%) 5 ns
tr Input Clock Rise Time (10% - 90%) 5 ns
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.
Symbol Parameter Min Max Units
fOSC Input Clock Frequency (CLKI2) 66 MHz
TOSC Input Clock period (CLKI2) 1/fOSC ns
tPWH Input Clock Pulse Width High (CLKI2) 3 ns
tPWL 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
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.
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
fXTAL XTAL Clock frequency 12 MHz
For further information on internal clocks, refer to Section 7, “Clocks” on page 112.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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

Figure 6-2 Generic #1 Interface Timing
The above diagram assumes that WAIT# is used and that MCLK = BCLK.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Max Unit fCLK Bus Clock frequency 50 MHz TCLK Bus Clock period 1/fCLK ns
t3 A[16:0], M/R# setup to first CLK rising edge where CS# = 0 and either RD0#, RD1# = 0 or WE0#, WE1# = 0 1 ns
t4 A[16:0], M/R# hold from either RD0#, RD1# or WE0#, WE1# rising edge 0 ns t5 CS# setup to CLK rising edge 1 ns t6 CS# hold from either RD0#, RD1# or WE0#, WE1# rising edge 0 ns t7a WAIT# asserted for MCLK = BCLK 8 TCLK t7b WAIT# asserted for MCLK = BCLK ÷ 2 13 TCLK t7c WAIT# asserted for MCLK = BCLK ÷ 3 17 TCLK t7d WAIT# asserted for MCLK = BCLK ÷ 4 20 TCLK t8 RD0#, RD1#, WE0#, WE1# setup to CLK rising edge 1 ns t9 Falling edge of either RD0#, RD1# or WE0#, WE1# to WAIT# driven low 5 12 ns t10 Rising edge of either RD0#, RD1# or WE0#, WE1# to WAIT# high impedance 3 8 ns
t11 D[15:0] setup to third CLK rising edge where CS# = 0 and WE0#, WE1# = 0 (write cycle) (see note 1) 1 ns
t12 D[15:0] hold from WAIT# rising edge (write cycle) 0 ns t13 RD0#, RD1# falling edge to D[15:0] driven (read cycle) 4 11 ns t14 WAIT# rising edge to D[15:0] valid (read cycle) 2 ns t15 RD0#, RD1# rising edge to D[15:0] high impedance (read cycle) 3 9 ns
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-3 Generic #2 Interface Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Max Unit fBUSCLK Bus Clock frequency 50 MHz TBUSCLK Bus Clock period 1/fBUSCLK ns
t3 A[16:0], M/R#, BHE# setup to first BUSCLK rising edge where CS# = 0 and either RD# = 0 or WE# = 0 1 ns
t4 A[16:0], M/R#, BHE# hold from either RD# or WE# rising edge 0 ns t5 CS# setup to BUSCLK rising edge 1 ns t6 CS# hold from either RD# or WE# rising edge 0 ns t7a WAIT# asserted for MCLK = BCLK 8 TBUSCLK t7b WAIT# asserted for MCLK = BCLK ÷ 2 13 TBUSCLK t7c WAIT# asserted for MCLK = BCLK ÷ 3 15 TBUSCLK t7d WAIT# asserted for MCLK = BCLK ÷ 4 21 TBUSCLK t8 RD# or WE# setup to BUSCLK rising edge 1 ns t9 Falling edge of either RD# or WE# to WAIT# driven low 5 12 ns t10 Rising edge of either RD# or WE# to WAIT# high impedance 3 8 ns
t11 D[15:0] setup to third BUSCLK rising edge where CS# = 0 and WE# = 0 (write cycle) (see note 1) 1 ns
t12 D[15:0] hold from WAIT# rising edge (write cycle) 0 ns t13 RD# falling edge to D[15:0] driven (read cycle) 5 11 ns t14 WAIT# rising edge to D[15:0] valid (read cycle) 2 ns t15 Rising edge of RD# to D[15:0] high impedance (read cycle) 3 9 ns
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-4 Hitachi SH-4 Interface Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Max Unit
fCKIO Clock frequency 66 MHz
TCKIO Clock period 1/fCKIO ns
t3 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 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) 7 TCKIO 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 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 2nd CKIO after BS# (write cycle) (see note 1) 0 ns
t16 D[15:0] hold (write cycle) 0 ns
t17 RDY# falling edge to D[15:0] valid (read cycle) 2 ns
t18 Rising edge RD# to D[15:0] high impedance (read cycle) 3 9 ns
Minimum one software WAIT state is required.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-5 Hitachi SH-3 Interface Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Max Unit
fCKIO Bus Clock frequency 66 MHz
TCKIO Bus Clock period 1/fCKIO ns
t3 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 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) 6 TCKIO 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 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
t14 D[15:0] setup to 2nd CKIO after BS# (write cycle) (see note 1) 0 ns
t15 D[15:0] hold (write cycle) 0 ns
t16 WAIT# rising edge to D[15:0] valid (read cycle) 2 ns
t17 Rising edge RD# to D[15:0] high impedance (read cycle) 3 9 ns
Minimum one software WAIT state is required.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-6 Motorola MC68K #1 Interface Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Max Unit
fCLK Bus Clock Frequency 50 MHz
TCLK Bus Clock period 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 10 ns
t13 R/W# setup to CLK rising edge before all CS#, AS#, UDS# and/or LDS# = 0 1 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 ns
t18 D[15:0] hold from DTACK# falling edge (write cycle) 0 ns
t19 UDS# = 0 and/or LDS# = 0 to D[15:0] driven (read cycle) 3 9 ns
t20 DTACK# falling edge to D[15:0] valid (read cycle) 0 ns
t21 UDS#, LDS# rising edge to D[15:0] high impedance (read cycle) 3 4 ns
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-7 Motorola MC68K #2 Interface Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Max Unit
fCLK Bus Clock frequency 50 MHz
TCLK Bus Clock period 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 28 ns
t13 R/W# setup to CLK rising edge before all CS# = 0, AS# = 0, and DS# = 0 1 ns
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 ns
t18 D[31:16] hold from falling edge of DSACK1# (write cycle) 0 ns
t19 DS# falling edge to D[31:16] driven (read cycle) 5 14 ns
t20 DSACK1# falling edge to D[31:16] valid (read cycle) 0 ns
t21 DS# rising edge to D[31:16] invalid/high impedance (read cycle) 3 10 ns
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-8 Motorola REDCAP2 Interface Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Max Units
fCLK Bus Clock frequency 17 MHz
TCLK Bus Clock period 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 11 ns
t13a 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) 3 9 ns
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-9 Motorola DragonBall Interface with DTACK Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter MC68EZ328 MC68VZ328 Unit Min Max Min Max
fCLKO Bus Clock frequency 16 33 MHz
TCLKO Bus Clock period 1/fCLKO 1/fCLKO ns
t3 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 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 22 TCLKO t6 CSX setup to CLKO rising edge 2 2 ns
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 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
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-10 Motorola DragonBall Interface without DTACK# Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter MC68EZ328 MC68VZ328 Unit Min Max Min Max
fCLKO Bus Clock frequency 16 33 MHz
TCLKO Bus Clock period 1/fCLKO 1/fCLKO ns
t3 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
CSX asserted for MCLK = BCLK (CPU wait state register should be programmed to 4 wait states)
CSX asserted for MCLK = BCLK ÷ 2 (CPU wait state register should be programmed to 8 wait states)
Not Supported 11 TCLKO
CSX asserted for MCLK = BCLK ÷ 3 (CPU wait state register should be programmed to 10 wait states)
Not Supported 13 TCLKO
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
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 11 5 11 ns
t15a 1st CLKO rising edge after OE and CSX asserted low to D[15:0] valid for MCLK = BCLK (read cycle)
6TCLKO + 6 6TCLKO + 6 ns
t15b 1st CLKO rising edge after OE and CSX asserted low to D[15:0] valid for MCLK = BCLK ÷ 2 (read cycle) Not Supported 9TCLKO + 6 ns
t15c 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
t16 CSX rising edge to D[15:0] output Hi-Z (read cycle) 3 9 3 9 ns
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02
t5a · t5b · t5c


Figure 6-11 Indirect Interface Timing (Mode 68)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Max Units
fBUSCLK Bus Clock frequency 50 MHz
TBUSCLK Bus Clock period 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 (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
Max frequency (fBUSCLK) when using crystal oscillator is 12MHz.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-12 Indirect Interface Timing (Mode 80)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Max Units
fBUSCLK Bus Clock frequency 50 MHz
TBUSCLK Bus Clock period 1/fBUSCLK ns
t3 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 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 t10a (CS# | WRn#) Low pulse width (write cycle) 4 TBUSCLK 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 t11b (CS# | WRn#) High pulse width for MCLK = BCLK (write turnaround) 2.5 TBUSCLK t11c (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
Max frequency (fBUSCLK) when using crystal oscillator is 12MHz.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

6.3.1 Passive/TFT Power-On Sequence
*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
Symbol Parameter Min Max Units
t1 LCD signals active to LCD bias active Note 1 Note 1
t2 Power Save Mode disabled to LCD signals active 0 20 ns
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

*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
Symbol Parameter Min Max Units
t1 LCD bias deactivated to LCD signals inactive Note 1 Note 1
t2 Power Save Mode enabled to LCD signals low 0 20 ns
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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.
HDPS
HPW HPS
VPS
VDPS VPW
HDP
VDP VT
Figure 6-15 Panel Timing Parameters
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Description Derived From Units HT Horizontal Total ((REG[12h] bits 6-0) + 1) x 8
HDP1 Horizontal Display Period1 ((REG[44h] bits 6-0) + 1) x 8
HDPS Horizontal Display Period Start Position For STN panels: ((REG[17h] bits 1-0, REG[16h] bits 7-0) + 22) For TFT panels: ((REG[17h] bits 1-0, REG[16h] bits 7-0) + 5) HPS FPLINE Pulse Start Position (REG[23h] bits 1-0, REG[22h] bits 7-0) + 1 HPW FPLINE Pulse Width (REG[20h] bits 6-0) + 1 VT Vertical Total (REG[19h] bits 1-0, REG[18h] bits 7-0) + 1
Lines (HT) VDP Vertical Display Period (REG[1Dh] bits 1-0, REG[1Ch] bits 7-0) + 1 VDPS Vertical Display Period Start Position REG[1Fh] bits 1-0, REG[1Eh] bits 7-0 VPS FPFRAME Pulse Start Position REG[27h] bits 1-0, REG[26h] bits 7-0 VPW FPFRAME Pulse Width (REG[24h] bits 6-0) + 1
HDPS + HDP < HT VDPS + VDP < VT
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02
Ts


Figure 6-16 Generic STN Panel Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02


* Diagram drawn with 2 FPLINE vertical blank period Example timing for a 320x240 panel
Figure 6-17 Single Monochrome 4-Bit Panel Timing
VDP = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = 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 HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-18 Single Monochrome 4-Bit Panel A.C. Timing
Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t5 MOD transition to FPLINE rising edge note 6 Ts t6 FPSHIFT falling edge to FPLINE rising edge note 7 Ts t7 FPSHIFT falling edge to FPLINE falling edge t6 + t4 Ts t8 FPLINE falling edge to FPSHIFT falling edge t14 + 2 Ts t9 FPSHIFT period 4 Ts t10 FPSHIFT pulse width low 2 Ts t11 FPSHIFT pulse width high 2 Ts t12 FPDAT[7:4] setup to FPSHIFT falling edge 1 Ts t13 FPDAT[7:4] hold to FPSHIFT falling edge 2 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


* Diagram drawn with 2 FPLINE vertical blank period Example timing for a 640x480 panel
Figure 6-19 Single Monochrome 8-Bit Panel Timing
VDP = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = 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 HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-20 Single Monochrome 8-Bit Panel A.C. Timing
Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t5 MOD transition to FPLINE rising edge note 6 Ts t6 FPSHIFT falling edge to FPLINE rising edge note 7 Ts t7 FPSHIFT falling edge to FPLINE falling edge t6 + t4 Ts t8 FPLINE falling edge to FPSHIFT falling edge t14 + 4 Ts t9 FPSHIFT period 8 Ts t10 FPSHIFT pulse width low 4 Ts t11 FPSHIFT pulse width high 4 Ts t12 FPDAT[7:0] setup to FPSHIFT falling edge 4 Ts t13 FPDAT[7:0] hold to FPSHIFT falling edge 4 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


.5Ts
- Ts = Pixel clock period (PCLK) - FPSHIFT uses extended low states in order to process 8 pixels in 6 FPSHIFT clocks
- Diagram drawn with 2 FPLINE vertical blank period - Example timing for a 320x240 panel
Figure 6-21 Single Color 4-Bit Panel Timing
VDP = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = 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 HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-22 Single Color 4-Bit Panel A.C. Timing
Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t5 MOD transition to FPLINE rising edge note 6 Ts t6 FPSHIFT falling edge to FPLINE rising edge note 7 Ts t7 FPSHIFT falling edge to FPLINE falling edge t6 + t4 Ts t8 FPLINE falling edge to FPSHIFT falling edge t14 + 0.5 Ts t9 FPSHIFT period 1 Ts t10 FPSHIFT pulse width low 0.5 Ts t11 FPSHIFT pulse width high 0.5 Ts t12 FPDAT[7:4] setup to FPSHIFT falling edge 0.5 Ts t13 FPDAT[7:4] hold to FPSHIFT falling edge 0.5 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


2Ts
- Ts = Pixel clock period (PCLK) - The duty cycle of FPSHIFT changes in order to process 16 pixels in 6 FPSHIFT/FPSHIFT2 rising edges
- 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 = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = 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 HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-24 Single Color 8-Bit Panel A.C. Timing (Format 1)
Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t6a FPSHIFT falling edge to FPLINE rising edge note 6 Ts t6b FPSHIFT2 falling edge to FPLINE rising edge note 7 Ts t7a FPSHIFT falling edge to FPLINE falling edge t6a + t4 Ts t7b FPSHIFT2 falling edge to FPLINE falling edge t6b + t4 Ts t8 FPLINE falling edge to FPSHIFT rising, FPSHIFT2 falling edge t14 + 2 Ts t9 FPSHIFT2, FPSHIFT period 4 6 Ts t10 FPSHIFT2, FPSHIFT pulse width low 2 Ts t11 FPSHIFT2, FPSHIFT pulse width high 2 Ts t12 FPDAT[7:0] setup to FPSHIFT2, FPSHIFT falling edge 1 Ts t13 FPDAT[7:0] hold from FPSHIFT2, FPSHIFT falling edge 1 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts
1. Ts = pixel clock period 2. t1min = HPS + t4min 3. t2min = t3min - (HPS + t4min) 4. t3min = HT 5. t4min = HPW 6. t6amin = HPS - (HDP + HDPS), if negative add t3min 7. t6bmin = HPS - (HDP + HDPS) + 2, if negative add t3min 8. t14min = HDPS - (HPS + t4min), if negative add t3min
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


- Ts = Pixel clock period (PCLK) - The duty cycle of FPSHIFT changes in order to process 8 pixels in 3 FPSHIFT rising clocks
- 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 = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = 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 HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-26 Single Color 8-Bit Panel A.C. Timing (Format 2)
Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t5 MOD transition to FPLINE rising edge note 6 Ts t6 FPSHIFT falling edge to FPLINE rising edge note 7 Ts t7 FPSHIFT falling edge to FPLINE falling edge t6 + t4 Ts t8 FPLINE falling edge to FPSHIFT falling edge t14 + 2 Ts t9 FPSHIFT period 2 Ts t10 FPSHIFT pulse width low 1 Ts t11 FPSHIFT pulse width high 1 Ts t12 FPDAT[7:0] setup to FPSHIFT falling edge 1 Ts t13 FPDAT[7:0] hold to FPSHIFT falling edge 1 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


- Ts = Pixel clock period (PCLK) - The duty cycle of FPSHIFT changes in order to process 16 pixels in 3 FPSHIFT rising clocks
- Diagram drawn with 2 FPLINE vertical blank period - Example timing for a 640x480 panel
Figure 6-27 Single Color 16-Bit Panel Timing
VDP = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = 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 HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-28 Single Color 16-Bit Panel A.C. Timing
Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t5 MOD transition to FPLINE rising edge note 6 Ts t6 FPSHIFT falling edge to FPLINE rising edge note 7 Ts t7 FPSHIFT falling edge to FPLINE falling edge t6 + t4 Ts t8 FPLINE falling edge to FPSHIFT falling edge t14 + 3 Ts t9 FPSHIFT period 5 Ts t10 FPSHIFT pulse width low 2 Ts t11 FPSHIFT pulse width high 2 Ts t12 FPDAT[15:0] setup to FPSHIFT rising edge 2 Ts t13 FPDAT[15:0] hold to FPSHIFT rising edge 2 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-29 Generic TFT Panel Timing
VT = Vertical Total = [(REG[19h] bits 1-0, REG[18h] bits 7-0) + 1] lines VPS = FPFRAME Pulse Start Position = (REG[27h] bits 1-0, REG[26h] bits 7-0) lines VPW = FPFRAME Pulse Width = [(REG[24h] bits 2-0) + 1] lines VDPS = Vertical Display Period Start Position = (REG[1Fh] bits 1-0, REG[1Eh] bits 7-0) lines 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= [(REG[17h] bits 1-0, REG[16h] bits 7-0) + 5] pixels HDP = 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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-30 18-Bit TFT Panel Timing
VDP = Vertical Display Period = VDP Lines VNDP = Vertical Non-Display Period = VNDP1 + VNDP2 = VT - VDP Lines VNDP1 = Vertical Non-Display Period 1 = VNDP - VNDP2 Lines VNDP2 = Vertical Non-Display Period 2 = VDPS - VPS Lines if negative add VT HDP = Horizontal Display Period = HDP Ts HNDP = Horizontal Non-Display Period = HNDP1 + HNDP2 = HT - HDP Ts HNDP1 = Horizontal Non-Display Period 1 = HDPS - HPS Ts if negative add HT HNDP2 = Horizontal Non-Display Period 2 = HPS - (HDP + HDPS) Ts if negative add HT
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-31 TFT A.C. Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Typ Max Units
t1 FPFRAME cycle time VT Lines
t2 FPFRAME pulse width low VPW Lines
t3 FPFRAME falling edge to FPLINE falling edge phase difference HPS Ts (note 1)
t4 FPLINE cycle time HT Ts
t5 FPLINE pulse width low HPW Ts
t6 FPLINE Falling edge to DRDY active note 2 250 Ts
t7 DRDY pulse width HDP Ts t8 DRDY falling edge to FPLINE falling edge note 3 Ts t9 FPSHIFT period 1 Ts t10 FPSHIFT pulse width high 0.5 Ts t11 FPSHIFT pulse width low 0.5 Ts t12 FPLINE setup to FPSHIFT falling edge 0.5 Ts t13 DRDY to FPSHIFT falling edge setup time 0.5 Ts t14 DRDY hold from FPSHIFT falling edge 0.5 Ts t15 Data setup to FPSHIFT falling edge 0.5 Ts t16 Data hold from FPSHIFT falling edge 0.5 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-32 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Typ Max Units
t1 FPLINE start position 13 (note 2) Ts (note 1)
t2 Horizontal total period 180 note 3 220 Ts
t3 FPLINE width 2 (note 4) Ts
t4 FPSHIFT period 1 Ts t5 Data setup to FPSHIFT rising edge 0.5 Ts t6 Data hold from FPSHIFT rising edge 0.5 Ts
t7 Horizontal display start position 5 (note 5) Ts
t8 Horizontal display period 160 (note 6) Ts
t9 FPLINE rising edge to GPIO3 rising edge 4 Ts t10 GPIO3 pulse width 1 Ts t11 GPIO1, GPIO0 pulse width 136 Ts t12 GPIO1 rising edge (GPIO0 falling edge) to FPLINE rise edge 4 Ts t13 GPIO2 toggle edge to FPLINE rise edge 10 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-33 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Typ Max Units
t1 Vertical total period 203 264 Lines
t2 Vertical display start position 40 Lines
t3 Vertical display period 160 Lines
t4 Vertical sync pulse width 2 Lines
t5 FPFRAME falling edge to GPIO1 alternate timing start 5 Lines
t6 GPIO1 alternate timing period 4 Lines
t7 FPFRAME falling edge to GPIO0 alternate timing start 40 Lines t8 GPIO0 alternate timing period 162 Lines t9 GPIO1 first pulse rising edge to FPLINE rising edge 4 Ts (note 1) t10 GPIO1 first pulse width 48 Ts t11 GPIO1 first pulse falling edge to second pulse rising edge 40 Ts t12 GPIO1 second pulse width 48 Ts t13 GPIO0 falling edge to FPLINE rising edge 4 Ts t14 GPIO0 low pulse width 24 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-34 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


t1 FPLINE start position 14 (note 2) Ts (note 1)
t2 Horizontal total period 400 note 3 440 Ts
t4 FPSHIFT period 1 Ts t5 Data setup to FPSHIFT rising edge 0.5 Ts t6 Data hold from FPSHIFT rising edge 0.5 Ts
t7 Horizontal display start position 60 (note 5) Ts
t9 FPLINE rising edge to GPIO3 rising edge 59 Ts t10 GPIO3 pulse width 1 Ts t11 GPIO1, GPIO0 pulse width 353 Ts t12 GPIO1 rising edge (GPIO0 falling edge) to FPLINE rise edge 5 Ts t13 GPIO2 toggle edge to FPLINE rise edge 11 Ts

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

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-36 160x240 Epson D-TFD Panel Horizontal Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Typ Max Units
t1 FPLINE pulse width 9 Ts (note 1)
t2 FPLINE falling edge to FPSHIFT start position 8.5 Ts
t3 FPSHIFT active period 167 Ts
t4 FPSHIFT start to first data 4 Ts
t5 Horizontal display period 160 Ts t6 Last data to FPSHIFT inactive 3 Ts
t7 FPLINE falling edge to GPIO4 first pulse falling edge 1 Ts
t8 Horizontal total period 400 Ts t9 GPIO4 first pulse falling edge to second pulse falling edge 200 Ts t10 GPIO4 pulse width 11 Ts t11 GPIO1 pulse width 100 Ts t12 GPIO1 low period 100) Ts t13 GPIO0 pulse width 200 Ts t14 GPIO6 low pulse width 90 Ts t15 GPIO6 rising edge to GPIO0 falling edge 10 Ts t16 GPIO2 toggle to GPIO3 toggle 1 Ts t17 GPIO5 low pulse width 7 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-37 160x240 Epson D-TFD Panel GCP Horizontal Timing
Symbol Parameter Min Typ Max Units
t1 Half of the horizontal total period 200 Ts (note 1)
t2 GCP clock period 1 Ts
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-38 160x240 Epson D-TFD Panel Vertical Timing

t2 Horizontal total period 400 Ts t3 Vertical display start 400 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-39 320x240 Epson D-TFD Panel Horizontal Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Typ Max Units
t1 FPLINE pulse width 9 Ts (note 1)
t2 FPLINE falling edge to FPSHIFT start position 8.5 Ts
t3 FPSHIFT active period 331 Ts
t4 FPSHIFT start to first data 6 Ts
t5 Horizontal display period 320 Ts t6 Last data to FPSHIFT inactive 5 Ts
t7 FPLINE falling edge to GPIO4 first pulse falling edge 1 Ts
t8 Horizontal total period 400 Ts t9 GPIO4 first pulse falling edge to second pulse falling edge 200 Ts t10 GPIO4 pulse width 11 Ts t11 GPIO1 pulse width 100 Ts t12 GPIO1 low period 100 Ts t13 GPIO0 pulse width 200 Ts t14 GPIO6 low pulse width 90 Ts t15 GPIO6 rising edge to GPIO0 falling edge 10 Ts t16 GPIO2 toggle to GPIO3 toggle 1 Ts t17 GPIO5 low pulse width 7 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-40 320x240 Epson D-TFD Panel GCP Horizontal Timing
Symbol Parameter Min Typ Max Units
t1 Half of the horizontal total period 200 Ts (note 1)
t2 GCP clock period 1 Ts
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-41 320x240 Epson D-TFD Panel Vertical Timing

t2 Horizontal total period 400 Ts t3 Vertical display start 400 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-42 TFT Type 2 Horizontal Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Typ Max Units
t1 Horizontal total period 1 note 2 1024 Ts (note 1)
t2 FPLINE pulse width 5 Ts
t3 GPIO0 rising edge to FPLINE rising edge 7 note 3 16 Ts
t4 FPLINE rising edge to GPIO0 falling edge 7 note 4 16 Ts
t5 FPLINE rising edge to GPIO3 rising edge note 5 Ts
t6 GPIO3 pulse width 1 Ts t7 Data setup time 0.5 Ts t8 Data hold time 0.5 Ts
t9 Horizontal display period 8 note 6 1024 Ts t10 FPLINE rising edge to GPIO1 rising edge 40 note 7 90 Ts t11 GPIO1 pulse width 20 note 8 270 Ts t12 FPLINE rising edge to GPIO2 toggle position 10 Ts
1. Ts = pixel clock period 2. t1typ = (REG[12h] bits 6-0) +1) x 8 3. t3typ = Selected from 7, 9, 12 or 16 Ts in REG[D0h] bits 1-0 4. t4typ = Selected from 7, 9, 12 or 16 Ts in REG[D0h] bits 4-3 5. t5typ = (REG[17h] bits 1-0, REG[16h] bits 7-0) + 3 6. t9typ = ((REG[14h] bits 6-0) +1) x 8 7. t10typ = Selected from 40, 52, 68 or 90 Ts in REG[D1h] bits 1-0 8. t11typ = Selected from 20, 40, 80, 120, 150, 190, 240 or 270 Ts in REG[D1h] bits 5-3
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-43 TFT Type 2 Vertical Timing

t1 Vertical total period 8 note 1 1024 Lines
t3 GPIO3 rising edge to FPFRAME rising edge 0 Ts (note 1)
t4 Vertical display start position 0 note 2 1024 Lines
t5 Vertical display period 1 note 3 1024 Ts
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-44 TFT Type 3 Horizontal Timing
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Symbol Parameter Min Typ Max Units
t1 Horizontal total period 8 note 2 1024 Ts (note 1)
t2 FPLINE pulse width 1 note 3 256 Ts
t3 FPLINE rising edge to GPIO3 rising edge note 4 Ts t4 GPIO3 pulse width Ts
t5 GPIO3 rising edge to 1st data 1 Ts
t6 Data setup time 0.5 Ts
t7 Data hold time 0.5 Ts
t8 Horizontal display period 8 note 5 1024 Ts t9 FPLINE rising edge to GPIO1 rising edge 0 note 6 512 Ts t10 GPIO1 pulse width 2 note 7 512 Ts t11 FPLINE rising edge to GPIO2 toggle position 0 note 8 512 Ts t12 FPLINE rising edge to GPIO4 toggle position 0 note 9 512 Ts t13 FPLINE rising edge to GPIO0 rising edge 0 Ts t14 GPIO0 pulse width 2 note 10 512 Ts
1. Ts = pixel clock period 2. t1typ = ((REG[12h] bits 6-0) + 1) x 8 3. t2typ = (REG[20h] bits 6-0) + 1 4. t3typ = (REG[17h] bits 1-0, REG[16h] bits 7-0) + 3 5. t8typ = (REG[14h] bits 6-0) x 8 6. t9typ = ((REG[D5h] bits 7-0) x 2 7. t10typ = ((REG[D6h] bits 7-0) x 2 8. t11typ = ((REG[D7h] bits 7-0) x 2 9. t12typ = ((REG[D8h] bits 7-0) x 2 10. t14typ = ((REG[D9h] bits 7-0) x 2
When TFT type 3 panel interface is selected, the following formula must be satisfied.
HTP - (HDS + HDP) > (Number of Source Driver IC * 3) + 3
When REG[D6h] = 0, GPIO1 (OE) pulse width equals FPLINE (LP) pulse width.
When REG[D9h] = 0, t13 = 4ns and GPIO0 (CPV) pulse width equals FPLINE (LP) pulse width.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-45 TFT Type 3 Vertical Timing
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Symbol Parameter Min Typ Max Units
t1 Vertical total period 1 1024 Lines
t2 FPFRAME pulse width 1 Lines
t3 GPIO0 rising edge to FPFRAME rising (falling) edge 0.5 Lines t4 Vertical display start position 1 note 2 Lines
t5 Vertical display period 1 note 3 1024 Lines
t6 GPIO5 rising edge to GPIO0 rising edge 0 note 4 512 Ts t7 GPIO0 rising edge to GPIO5 falling edge 0 note 5 512 Ts
When REG[DAh] = 0, GPIO5 (XOEV) stays HIGH.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


Figure 6-46 TFT Type 4 Panel Timing
VDP = Vertical Display Period = VDP Lines VNDP = Vertical Non-Display Period = VNDP1 + VNDP2 = VT - VDP Lines VNDP1 = Vertical Non-Display Period 1 = VNDP - VNDP2 Lines VNDP2 = Vertical Non-Display Period 2 = VDPS - VPS Lines if negative add VT HDP = Horizontal Display Period = HDP Ts HNDP = Horizontal Non-Display Period = HNDP1 + HNDP2 = HT - HDP Ts HNDP1 = Horizontal Non-Display Period 1 = HDPS - (HPS + 1) + 5 Ts if negative add HT HNDP2 = Horizontal Non-Display Period 2 = (HPS + 1) - (HDP + HDPS + 5) Ts if negative add HT
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 6-47 TFT Type 4 A.C. Timing
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Symbol Parameter Min Typ Max Units
t1 FPFRAME cycle time VT note 2 Lines
t2 FPFRAME pulse width low VPW note 3 Lines
t3 FPFRAME falling edge to FPLINE falling edge phase difference HPS note 4 Ts (note 1)
t4 FPLINE cycle time HT note 5 Ts
t5 FPLINE pulse width low HPW note 6 Ts
t6 FPLINE Falling edge to DRDY active note 7 250 Ts t7 DRDY active to data setup 8 Ts
t8 DRDY pulse width HDP note 8 Ts t9 DRDY falling edge to FPLINE falling edge note 9 Ts t10 FPSHIFT period 1 Ts t11 FPSHIFT pulse width high 0.5 Ts t12 FPSHIFT pulse width low 0.5 Ts t13 FPLINE setup to FPSHIFT falling edge 0.5 Ts t14 DRDY to FPSHIFT falling edge setup time 0.5 Ts t15 DRDY hold from FPSHIFT falling edge 0.5 Ts t16 Data setup to FPSHIFT falling edge 0.5 Ts t17 Data hold from FPSHIFT falling edge 0.5 Ts
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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.
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 ÷31 CNF[7:6] = 10, REG[CAh] bit 0 = 0
CLKI ÷41 CNF[7:6] = 11, REG[CAh] bit 0 = 0
XTAL2 CNF[7:6] = 00, REG[CAh] bit 0 = 1
XTAL2 ÷2 CNF[7:6] = 01, REG[CAh] bit 0 = 1
XTAL2 ÷31 CNF[7:6] = 10, REG[CAh] bit 0 = 1
XTAL2 ÷41 CNF[7:6] = 11, REG[CAh] bit 0 = 1
1 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.
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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
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.
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
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 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
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

There is a relationship between the frequency of MCLK and PCLK that must be maintained.
SwivelView Orientation Color Depth (bpp) MCLK to PCLK Relationship
16 fMCLK ≥ fPCLK 8 fMCLK ≥ fPCLK ÷ 2
4 fMCLK ≥ fPCLK ÷ 4
SwivelView 0° and 180°
2 fMCLK ≥ fPCLK ÷ 8
1 fMCLK ≥ fPCLK ÷16
SwivelView 90° and 270° 16/8/4/2/1 fMCLK ≥ 1.25fPCLK
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.
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.
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 back- light inverter.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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

Figure 7-1 Clock Selection
1 CNF[7:6] must be set at RESET#.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Table 7-6: “S1D13708 Internal Clock Requirements”, lists the internal clocks required for the following S1D13708 functions.
(MCLK)
(PCLK)
(PWMCLK)
Register Read/Write Required Not Required Not Required Not Required1
Memory Read/Write Required Required Not Required Not Required1
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
1PWMCLK is an optional clock (see Section 7.1.4, “PWMCLK” on page 115).
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

This section discusses how and where to access the S1D13708 registers. It also provides detailed information about the layout and usage of each register.
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

The S1D13708 register set is as follows.
Register Pg Register Pg
REG[00h] Revision Code Register 121 REG[01h] Display Buffer Size Register 121
REG[02h] Configuration Readback Register 121
REG[04h] Memory Clock Configuration Register 122 REG[05h] Pixel Clock Configuration Register 122
REG[08h] Look-Up Table Blue Write Data Register 123 REG[09h] Look-Up Table Green Write Data Register 123
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
REG[0Eh] Look-Up Table Red Read Data Register 125 REG[0Fh] Look-Up Table Read Address Register 125
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
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
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[90h] PIP+ Window Y End Position Register 0 142
REG[91h] PIP+ Window Y End Position Register 1 142
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07
Extended Registers

Unless specified otherwise, all register bits are set to 0 during power-on.
Revision Code Register REG[00h] Read Only
Product Code Bits 5-0 Revision Code Bits 1-0
7 6 5 4 3 2 1 0
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 5 4 3 2 1 0
bits 7-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] Read Only
CNF7 Status CNF6 Status CNF5 Status CNF4 Status CNF3 Status CNF2 Status CNF1 Status CNF0 Status
7 6 5 4 3 2 1 0
bits 7-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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Memory Clock Configuration Register REG[04h] Read/Write
n/a MCLK Divide Select Bits 1-0 n/a
7 6 5 4 3 2 1 0
bits 5-4 MCLK Divide Select Bits [1:0] These bits determine the divide used to generate the Memory Clock (MCLK) from the Bus Clock (BCLK).
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] Read/Write
n/a PCLK Divide Select Bits 2-0 n/a PCLK Source Select Bits 1-0
7 6 5 4 3 2 1 0
bits 6-4 PCLK Divide Select Bits [1:0] These bits determine the divide used to generate the Pixel Clock (PCLK) from the Pixel Clock Source.
PCLK Divide Select Bits PCLK Source to PCLK Frequency Ratio
000 1:1
001 2:1
010 3:1
011 4:1
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

bits 1-0 PCLK Source Select Bits [1:0] These bits determine the source of the Pixel Clock (PCLK).
PCLK Source Select Bits 1:0 PCLK Source
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).
Look-Up Table Blue Write Data Register REG[08h] Write Only
LUT Blue Write Data Bits 5-0 n/a
7 6 5 4 3 2 1 0
bits 7-2 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.
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 n/a
7 6 5 4 3 2 1 0
bits 7-2 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.
The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is written to.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Look-Up Table Red Write Data Register REG[0Ah] Write Only
LUT Red Write Data Bits 5-0 n/a
7 6 5 4 3 2 1 0
bits 7-2 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.
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 5 4 3 2 1 0
bits 7-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
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 n/a
7 6 5 4 3 2 1 0
bits 7-2 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 read- only register.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Look-Up Table Green Read Data Register REG[0Dh] Read Only
LUT Green Read Data Bits 5-0 n/a
7 6 5 4 3 2 1 0
bits 7-2 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 read- only register.
Look-Up Table Red Read Data Register REG[0Eh] Read Only
LUT Red Read Data Bits 5-0 n/a
7 6 5 4 3 2 1 0
bits 7-2 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 read- only register.
Look-Up Table Read Address Register REG[0Fh] Write Only
LUT Read Address Bits 7-0
7 6 5 4 3 2 1 0
bits 7-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.
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Panel Type Register REG[10h] Read/Write
Panel Data Format Select
Color/Mono. Panel Select Panel Data Width Bits 1-0
n/a Panel Type Select Bits 1-0
7 6 5 4 3 2 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.
Panel Data Width Bits [1:0] Passive Panel Data Width
Size Active Panel Data Width Size
bit 3 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.
HRTFT/D-TFD Control Bit HR-TFT Resolution D-TFD Resolution
This bit sets some internal non-configurable timing values for the selected panel. How- ever, all panel configuration registers (REG[12h] - REG[27h]) still require program- ming with the appropriate values for the selected panel. For panel AC timing, see Section 6.4, “Display Interface” on page 68.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

bits 1-0 Panel Type Select Bits[1:0] These bits select the panel type.
REG[10h] Bits[1:0] Panel Type Select
01 TFT
10 HR-TFT
11 D-TFD
MOD Rate Register REG[11h] Read/Write
n/a MOD Rate Bits 5-0
7 6 5 4 3 2 1 0
bits 5-0 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 Horizontal Total Bits 6-0
7 6 5 4 3 2 1 0
bits 6-0 Horizontal Total Bits [6:0] These bits specify the LCD panel Horizontal Total period, in 8 pixel resolution. The Hori- zontal 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 resolu- tion supported is 800x600.
Horizontal Total in number of pixels = ((REG[12h] bits 6:0) + 1) × 8
For TFT Type 3 panels this register must be programmed such that the following formula is valid. HT - HDPS - HDP < 11 PCLKs
This register must be programmed such that the following formula is valid. HDPS + HDP < HT
For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Horizontal Display Period Register REG[14h] Read/Write
n/a Horizontal Display Period Bits 6-0
7 6 5 4 3 2 1 0
bits 6-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
For passive panels, HDP must be a minimum of 32 pixels and can be increased by mul- tiples of 16. For TFT panels, HDP must be a minimum of 16 pixels and can be increased by multiples of 8.
For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” 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 0
Horizontal Display Period Start Position Register 1 REG[17h] Read/Write
n/a Horizontal Display Period
Start Position Bits 9-8
7 6 5 4 3 2 1 0
bits 9-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.
This register must be programmed such that the following formula is valid.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Vertical Total Register 0 REG[18h] Read/Write
Vertical Total Bits 7-0
7 6 5 4 3 2 1 0
Vertical Total Register 1 REG[19h] Read/Write
n/a Vertical Total Bits 9-8
7 6 5 4 3 2 1 0
bits 9-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
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 Inter- face” 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 0
Vertical Display Period Register 1 REG[1Dh] Read/Write
n/a Vertical Display Period
7 6 5 4 3 2 1 0
bits 9-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
For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02
Bits 9-8

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 0
Vertical Display Period Start Position Register 1 REG[1Fh] Read/Write
n/a Vertical Display Period Start
7 6 5 4 3 2 1 0
bits 9-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.
For passive LCD and TFT (non-HR-TFT/D-TFD) panels these bits must be set to 00h.
This register must be programmed such that the following formula is valid. VDPS + VDP < VT
For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.
FPLINE Pulse Width Register REG[20h] Read/Write
Polarity FPLINE Pulse Width Bits 6-0
7 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
For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07
Position Bits 9-8 · FPLINE Pulse

FPLINE Pulse Start Position Register 0 REG[22h] Read/Write
FPLINE Pulse Start Position Bits 7-0
7 6 5 4 3 2 1 0
FPLINE Pulse Start Position Register 1 REG[23h] Read/Write
n/a FPLINE Pulse Start Position
7 6 5 4 3 2 1 0
bits 9-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]
For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.
FPFRAME Pulse Width Register REG[24h] Read/Write
FPFRAME Pulse Polarity n/a FPFRAME Pulse Width Bits 2-0
7 6 5 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 ver- tical 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
For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02
Bits 9-8

FPFRAME Pulse Start Position Register 0 REG[26h] Read/Write
FPFRAME Pulse Start Position Bits 7-0
7 6 5 4 3 2 1 0
FPFRAME Pulse Start Position Register 1 REG[27h] Read/Write
n/a FPFRAME Pulse Start
7 6 5 4 3 2 1 0
bits 9-0 FPFRAME Pulse Start Position Bits [9:0] These bits specify the start position of the vertical sync signal, in 1 line resolution.
For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.
D-TFD GCP Index Register REG[28h] Read/Write
n/a D-TFD GCP Index Bits 4-0
7 6 5 4 3 2 1 0
bits 4-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 regis- ters.
D-TFD GCP Data Register REG[2Ch] Read/Write
D-TFD GCP Data Bits 7-0
7 6 5 4 3 2 1 0
bits 7-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]).
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07
Position Bits 9-8

Display Mode Register REG[70h] Read/Write
Software Video Invert n/a Bit-per-pixel Select Bits 2-0
7 6 5 4 3 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.
For a summary of the results of dithering for each color depth, see Table 8-9: “LCD Bit- per-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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

bit 5 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.
The S1D13708 requires some configuration before the hardware video invert feature can be enabled.
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.
Invert GPIO0 Video Data
0 0 X Normal
0 1 X Inverse
1 X 0 Normal
1 X 1 Inverse
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”.
Video data is inverted after the Look-Up Table
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07
Hardware Video · Software Video · Invert Enable

bits 2-0 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.
Maximum Number of Colors/Shades Max. No. Of Simultaneously
Bit-per-pixel Select Bits [2:0] Color Depth (bpp)
Passive Panel (Dithering On) TFT Panel
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
Byte Swap n/a PIP+ Window
Enable n/a SwivelView Mode Select
7 6 5 4 3 2 1 0
bit 7 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 dis- play. If the Display Data Byte Swap bit is also enabled, then the byte order of the fetched 32-bit data is reversed.
For further information on byte swapping for Big Endian mode, see Section 17, “Big- Endian Bus Interface” on page 212.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

bit 6 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.

Figure 8-1 Display Data Byte/Word Swap
For further information on byte swapping for Big Endian mode, see Section 17, “Big- Endian 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+ win- dow shares the same color depth and SwivelViewTM orientation as the main window.
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:

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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 0
Main Window Display Start Address Register 1 REG[75h] Read/Write
Main window Display Start Address Bits 15-8
7 6 5 4 3 2 1 0
Main Window Display Start Address Register 2 REG[76h] Read/Write
Main window Display Start
7 6 5 4 3 2 1 0
bits 16-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.
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 0
Main Window Line Address Offset Register 1 REG[79h] Read/Write
n/a Main window Line Address
7 6 5 4 3 2 1 0
bits 9-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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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 0
PIP+ Window Display Start Address Register 1 REG[7Dh] Read/Write
PIP+ Window Display Start Address Bits 15-8
7 6 5 4 3 2 1 0
PIP+ Window Display Start Address Register 2 REG[7Eh] Read/Write
7 6 5 4 3 2 1 0
bits 16-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.
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 0
PIP+ Window Line Address Offset Register 1 REG[81h] Read/Write
n/a PIP+ Window Line Address
7 6 5 4 3 2 1 0
bits 9-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.
These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is set to 1 (REG[71h] bit 4).
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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 0
PIP+ Window X Start Position Register 1 REG[85h] Read/Write
n/a PIP+ Window X Start Position
7 6 5 4 3 2 1 0
bits 9-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.
Color Depth Pixel Increment (x)
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.
These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is set to 1 (REG[71h] bit 4).
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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 0
PIP+ Window Y Start Position Register 1 REG[89h] Read/Write
n/a PIP+ Window Y Start Position
7 6 5 4 3 2 1 0
bits 9-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.
Color Depth Pixel Increment (y)
Depending on the color depth, some of the higher bits in this register are unused because the maximum vertical display height is 1024 pixels.
These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is set to 1 (REG[71h] bit 4).
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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 0
PIP+ Window X End Position Register 1 REG[8Dh] Read/Write
n/a PIP+ Window X End Position
7 6 5 4 3 2 1 0
bits 9-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.
Color Depth Pixel Increment (x)
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.
These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is set to 1 (REG[71h] bit 4).
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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 0
PIP+ Window Y End Position Register 1 REG[91h] Read/Write
n/a PIP+ Window Y End Position
7 6 5 4 3 2 1 0
bits 9-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.
Color Depth Pixel Increment (y)
Depending on the color depth, some of the higher bits in this register are unused because the maximum vertical display height is 1024 pixels.
These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is set to 1 (REG[71h] bit 4).
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Power Save Configuration Register REG[A0h] Read/Write
Memory Controller Power Save Status (RO)
n/a Power Save Mode Enable
7 6 5 4 3 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.
Memory writes are possible during power save mode because the S1D13708 dynamical- ly 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.
Memory writes are possible during power save mode because the S1D13708 dynamical- ly enables the memory controller for display buffer writes.
7 6 5 4 3 2 1 0
bit 0 Reserved. This bit must be set to 0.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

7 6 5 4 3 2 1 0
bit 7 Reserved. This bit must be set to 0.
bit 0 Reserved. This bit must be set to 0.
7 6 5 4 3 2 1 0
bit 7 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 0
Scratch Pad Register 1 REG[A5h] Read/Write
Scratch Pad Bits 15-8
7 6 5 4 3 2 1 0
bits 15-0 Scratch Pad Bits [15:0] This register contains general purpose read/write bits. These bits have no effect on hardware.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

General Purpose IO Pins Configuration Register 0 REG[A8h] Read/Write
n/a GPIO6 Pin IO
7 6 5 4 3 2 1 0
If CNF3 = 0 at RESET#, then all GPIO pins are configured as outputs only and this reg- ister 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.
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

General Purpose IO Pins Configuration Register 1 REG[A9h] Read/Write
GPIO Pin Input Enable n/a
7 6 5 4 3 2 1 0
bit 7 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] Read/Write
n/a GPIO6 Pin IO
7 6 5 4 3 2 1 0
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

bit 4 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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

bit 1 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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

General Purpose IO Pins Status/Control Register 1 REG[ADh] Read/Write
7 6 5 4 3 2 1 0
bit 7 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.
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02
GPO0 Control n/a

8.3.9 Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registers

frequency = Clock Source / (2m X 256)
frequency = Clock Source / (2x X 2)
x = CV Pulse Divide Select value y = Burst Length value
Figure 8-2 PWM Clock/CV Pulse Block Diagram
For further information on PWMCLK, see Section 7.1.4, “PWMCLK” on page 115.

PWM Clock / CV Pulse Control Register REG[B0h] Read/Write
bit 7 and bit 4 PWM Clock Force High (bit 7) and PWM Clock Enable (bit 4) These bits control the PWMOUT pin and PWM Clock circuitry as follows.

0 1 PWM Clock circuitry enabled (controlled by REG[B1h] and REG[B3h])
x = don’t care
When PWMOUT is forced low or forced high it can be used as a general purpose output.
The PWM Clock circuitry is disabled when Power Save Mode is enabled.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

bit 3 and bit 0 CV Pulse Force High (bit 3) and CV Pulse Enable (bit 0) These bits control the CVOUT pin and CV Pulse circuitry as follows.
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.
Bit 0 must be set to 1 before initiating a new burst using the CV Pulse Burst Start bit.
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.
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

PWM Clock / CV Pulse Configuration Register REG[B1h] Read/Write
PWM Clock Divide Select Bits 3-0 CV Pulse Divide Select Bits 2-0 PWMCLK Source Select
7 6 5 4 3 2 1 0
bits 7-4 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.
PWM Clock Divide Select Bits [3:0] PWM Clock Divide Amount
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.
CV Pulse Divide Select Bits [2:0] CV Pulse Divide Amount
This divided clock is further divided by 2 before it is output at the CVOUT.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

bit 0 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).
For further information on the PWMCLK source select, see Section 7.2, “Clock Selec- tion” on page 116.
CV Pulse Burst Length Register REG[B2h] Read/Write
CV Pulse Burst Length Bits 7-0
7 6 5 4 3 2 1 0
bits 7-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 6 5 4 3 2 1 0
bits 7-0 PWMOUT Duty Cycle Bits [7:0] This register determines the duty cycle of the PWMOUT output.
PWMOUT Duty Cycle [7:0] PWMOUT Duty Cycle
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
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02
00h Always Low

Memory Access Pointer 0 REG[C0h] Read/Write
Memory Access Pointer Bits 7-0
7 6 5 4 3 2 1 0
Memory Access Pointer 1 REG[C1h] Read/Write
Memory Access Pointer Bits 15-8
7 6 5 4 3 2 1 0
Memory Access Pointer 2 REG[C2h] Read/Write
7 6 5 4 3 2 1 0
bits 16-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.
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
7 6 5 4 3 2 1 0
bits 7-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.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Extended Panel Type Register REG[C5h] Read/Write
n/a Extended Panel Type Bits 1-0
7 6 5 4 3 2 1 0
bits 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.
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
n/a Memory Access Select
7 6 5 4 3 2 1 0
bit 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 indi- cate the transfer size. For Mode 80, WRU#, WRL#, RDU#, and RDL# indicate the trans- fer 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.
All word accesses must be byte aligned on even addresses.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Ink Layer Transparent Color Register 0 REG[C7h] Read/Write
Ink Layer Transparent Color Bits 7-0
7 6 5 4 3 2 1 0
Ink Layer Transparent Color Register 1 REG[C8h] Read/Write
Ink Layer Transparent Color Bits 15-8
7 6 5 4 3 2 1 0
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

bits 15-0 Ink Layer Transparent Color Bits [15:0] The Ink Layer requires a transparent color to be selected. This transparent color is com- pared 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
7 6 5 4 3 2 1 0
bit 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.
Picture-in-Picture Plus (PIP+) is not available when the Ink Layer is enabled.
BCLK Source Select Register REG[CAh] Read/Write
n/a XTAL Enable Bits 1-0 n/a
7 6 5 4 3 2 1 0
bits 5-4 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 Oscilla- tor” 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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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.
There must be a CLKI source initially for this bit to operate.
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
7 6 5 4 3 2 1 0
bit 0 Data Compare Invert Enable This bit can be used to lower power consumption for TFT Type 2 and TFT Type 3 Inter- faces. The Data Compare and Invert function reduces the amount of data toggled by count- ing 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.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07
n/a

TFT Type 2 VCLK Configuration Register REG[D0h] Read/Write
n/a VCLK Hold bits 1-0 n/a VCLK Setup bits 1-0
7 6 5 4 3 2 1 0
bits 4-3 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.
REG[D0h] bits 1-0 VCLK Hold (in PCLKs)
bits 1-0 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.
REG[D0h] bits 4-3 VCLK Setup (in PCLKs)
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

TFT Type 2 AP Configuration Register REG[D1h] Read/Write
POL Type n/a AP Pulse Width bits 2-0 n/a AP Rising Position bits 1-0
7 6 5 4 3 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.
REG[D1h] bits 5-3 AP Pulse Width (in PCLKs)
bits 1-0 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.
REG[D1h] bits 1-0 GPIO1 (AP) Rising Position (in PCLKs)
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

TFT Type 3 Signal Control Register REG[D4h] Read/Write
XSTBY Control XOHV Control XRESV
7 6 5 4 3 2 1 0
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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 5 4 3 2 1 0
bits 7-0 OE Rising Edge Position Bits [7:0] These bits specify the rising edge position of the OE signal in 2 pixel resolution. This reg- ister 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 5 4 3 2 1 0
bits 7-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 5 4 3 2 1 0
bits 7-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 6 5 4 3 2 1 0
bits 7-0 VCOM Toggle Position Bits [7:0] These bits specify the toggle position of the VCOM signal in 2 pixel resolution. This reg- ister is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

TFT Type 3 CPV Pulse Width Register REG[D9h] Read/Write
CPV Pulse Width bits 7-0
7 6 5 4 3 2 1 0
bits 7-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 5 4 3 2 1 0
bits 7-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 inter- faces. 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 6 5 4 3 2 1 0
bits 7-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 inter- faces.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

TFT Type 3 PCLK Divide Register REG[DCh] Read/Write
n/a PCLK2 Divide Rate PCLK1 Divide Rate
7 6 5 4 3 2 1 0
bit 5-4 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.
REG[DBh] bits 5-4 PCLK2 Divide Rate
bits 3-0 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.
REG[DBh] bits 3-0 GPO1 PCLK1 Divide Rate
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

TFT Type 3 Partial Mode Display Area Control Register REG[E0h] Read/Write
Partial Mode Display Type
7 6 5 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] Read/Write
n/a Partial Mode Display Refresh Cycle bits 5-0
7 6 5 4 3 2 1 0
bits 5-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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

TFT Type 3 Partial Area 0 X Start Position Register REG[E2h] Read/Write
n/a Partial Area 0 X Start Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-0 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] Read/Write
n/a Partial Area 0 Y Start Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-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] Read/Write
n/a Partial Area 0 X End Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-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] Read/Write
n/a Partial Area 0 Y End Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-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.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

TFT Type 3 Partial Area 1 X Start Position Register REG[E6h] Read/Write
n/a Partial Area 1 X Start Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-0 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] Read/Write
n/a Partial Area 1 Y Start Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-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] Read/Write
n/a Partial Area 1 X End Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-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] Read/Write
n/a Partial Area 1 Y End Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

TFT Type 3 Partial Area 2 X Start Position Register REG[EAh] Read/Write
n/a Partial Area 2 X Start Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-0 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] Read/Write
n/a Partial Area 2 Y Start Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-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] Read/Write
n/a Partial Area 2 X End Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-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] Read/Write
n/a Partial Area 2 Y End Position bits 5-0
7 6 5 4 3 2 1 0
bits 5-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.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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 0
TFT Type 3 Command 0 Store Register 1 REG[F1h] Read/Write
n/a Command 0 Store bits 11-8
7 6 5 4 3 2 1 0
bits 11-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 0
TFT Type 3 Command 1 Store Register 1 REG[F3h] Read/Write
n/a Command 1 Store bits 11-8
7 6 5 4 3 2 1 0
bits 11-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] Read/Write
n/a Command Send Request
7 6 5 4 3 2 1 0
bit 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 inter- faces.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

TFT Type 3 Source Driver IC Number Register REG[F5h] Read/Write
n/a Source Driver IC Number
7 6 5 4 3 2 1 0
bits 1-0 Source Driver IC Number Bits [1:0] These bits contain the number of Source Driver ICs.
REG[F5h] bits 1-0 Source Driver ICs
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07
Bits 1-0

The following formula is used to calculate the display frame rate.
HT ( ) VT ( ) × =
Where:
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
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02
FrameRate fPCLK

The following diagrams show the display mode data formats for a little-endian system.
1 bpp:
bit 7 bit 0
P0P1P2P3P4P5P6P7
A0 A1 A2 A3 A4 A5 A6 A7
A8 A9 A10 A11 A12 A13 A14 A15
Pn = RGB value from LUT
A16 A17 A18 A19 A20 A21 A22 A23
Index (An)
2 bpp:
bit 7 bit 0
P0P1P2P3P4P5P6P7
A0 B0 A1 B1 A2 B2 A3 B3
A4 B4 A5 B5 A6 B6 A7 B7
Pn = RGB value from LUT
A8 B8 A9 B9 A10 B10 A11 B11
Index (An, Bn)
4 bpp:
bit 7 bit 0
P0P1P2P3P4P5P6P7
A0 B0 C0 D0 A1 B1 C1 D1
A2 B2 C2 D2 A3 B3 C3 D3
Pn = RGB value from LUT
A4 B4 C4 D4 A5 B5 C5 D5
Index (An, Bn, Cn, Dn)
bit 7 bit 0 8 bpp:
P0P1P2P3P4P5P6P7
A0 B0 C0 D0 E0 F0 G0 H0
A1 B1 C1 D1 E1 F1 G1 H1
Pn = RGB value from LUT Index
(An, Bn, Cn, Dn, En, Fn, Gn, Hn)
A2 B2 C2 D2 E2 F2 G2 H2
16 bpp:
bit 7 bit 0
P0P1P2P3P4P5P6P7
2 G0 1 G00 B04 B0
G 0
3 B 0
2 B 0
R 0
R 0 3 R 0 2 R 0
1 R 0
0 G0 5 G0 4 G0 3
Pn = (Rn
4-0, Gn 5-0, Bn 4-0)
2 G 11 G 1 0 B 1
4 B 1
3 B 1
2 B 1 1 B 1 0
R 1 4 R 1 3 R 1
2 R 1 1 R 1
0 G 1 5 G 14 G 13
Host Address Display Buffer
Figure 10-1 4/8/16 Bit-Per-Pixel Display Data Memory Organization
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

The following figures are intended to show the display data output path only.
When Video Data Invert is enabled the video data is inverted after the Look-Up Table.
The green Look-Up Table (LUT) is used for all monochrome modes.

Figure 11-1 1 Bit-per-pixel Monochrome Mode Data Output Path

Figure 11-2 2 Bit-per-pixel Monochrome Mode Data Output Path
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
Figure 11-3 4 Bit-per-pixel Monochrome Mode Data Output Path

0000 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111
1111 1000 1111 1001 1111 1010 1111 1011 1111 1100 1111 1101 1111 1110 1111 1111
Figure 11-4 8 Bit-per-pixel Monochrome Mode Data Output Path
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

The LUT is bypassed and the green data is directly mapped for this color depth– See “Display Data Formats” on page 172..

Figure 11-5 1 Bit-Per-Pixel Color Mode Data Output Path
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


Figure 11-6 2 Bit-Per-Pixel Color Mode Data Output Path
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07


0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111
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
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
04 05 06 07 08 09 0A 0B 0C 0D 0E 0F
Figure 11-7 4 Bit-Per-Pixel Color Mode Data Output Path
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02


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 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111
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 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111
1111 1000 1111 1001 1111 1010 1111 1011 1111 1100 1111 1101 1111 1110 1111 1111
Figure 11-8 8 Bit-per-pixel Color Mode Data Output Path
The LUT is bypassed and the color data is directly mapped for this color depth– See “Display Data Formats” on page 172.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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.
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.
B A
D C
C D
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Set SwivelView™ Mode Select bits to 01.
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 320- pixel 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).
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 is achieved by changing the Display Start Address register:
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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.
(panel origin) physical memory
C D
C D
A B
image seen by programmer = image in display buffer
image refreshed by S1D13708
Figure 12-2 Relationship Between The Screen Image and the Image Refreshed in 180° SwivelView.
Set SwivelView™ Mode Select bits to 10.
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 480- pixel 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).
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Panning is achieved by changing the Display Start Address register:
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.
D C
B A
C D
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Set SwivelView™ Mode Select bits to 11.
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 320- pixel 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).
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 is achieved by changing the Display Start Address register:
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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.
PIP+ window y start position
PIP+ window y end position
PIP+ window x start position PIP+ window x end position
Figure 13-1 Picture-in-Picture Plus with SwivelView disabled
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

13.2.1 SwivelView 90°
90° SwivelView TM
PIP+ window x start position PIP+ window x end position
PIP+ window y start position
PIP+ window y end position
Figure 13-2 Picture-in-Picture Plus with SwivelView 90° enabled
PIP+ window x start position PIP+ window x end position 180° SwivelViewTM
PIP+ window y start position panel’s origin PIP+ window y end position
Figure 13-3 Picture-in-Picture Plus with SwivelView 180° enabled
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

270° SwivelView TM
PIP+ window y end position
PIP+ window y start position
PIP+ window x start position
PIP+ window x end position
Figure 13-4 Picture-in-Picture Plus with SwivelView 270° enabled
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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.
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)
40K Byte Ink Layer
80K Byte Display Buffer
40K Byte Display Buffer
Figure 14-1 Memory Mapping for Ink Layer
The Ink Layer is controlled using REG[C7h] through REG[C9h].
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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.
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
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.
40K Byte Ink Layer
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.
Pixel Value = 00h
Pixel Value = A0h
40K Byte Display Buffer
Figure 14-2 Transparent Color Example
There are certain limitations when the Ink Layer is enabled.
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

The following shows an example of a “register write” with Mode 68.

A0
R/W#
EBL
EBU
D[7:0]
D[15:8]
even number even number data write data write data write byte access byte access word access byte access
Figure 15-1 Sample timing of “register write” with Mode 68
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

The following shows an example of a “register read” with Mode 68.

A0
R/W#
EBL
EBU
D[7:0]
D[15:8]
even number even number data read data read data read
Figure 15-2 Sample timing of “register read” with Mode 68
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

The following shows an example of a “memory write” with Mode 68, Big Endian.

A0
R/W#
EBL
EBU
D[7:0]
D[15:8]
Data Write Data Write Data Write Data Write Data Write word access byte access byte access
REG[C4h] REG[C2h] even number
memory data even address even address odd address even address even address
memory data memory data memory data
1 2 3 4 5 6 STEP
Figure 15-3 Sample timing of “memory write” with Mode 68, Big Endian
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

The following shows an example of a “memory read” with Mode 68, Big Endian.

A0
R/W#
EBL
EBH
D[7:0]
D[15:8]
Data Read Data Read Data Read Data Read Data Read byte access word access word access
memory data odd address even address odd address even address even address
1 2 3 4 5 6 STEP
Figure 15-4 Sample timing of “memory read” with Mode 68, Big Endian
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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).

A0
R/W#
EBL
EBU
D[7:0]
D[15:8]
word access word access word access word access word access
1 2 STEP

Figure 15-5 Sample timing of “register write” for Mode 68 when Memory Access Select Enabled
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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”.
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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).

A0
R/W#
EBL
EBU
D[7:0]
D[15:8]
word access word access word access word access word access
1 2 STEP

Figure 15-6 Sample timing of “register read” for Mode 68 when Memory Access Select Enabled
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.
The S1D13708 indirect interface implements an auto increment function to allow
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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”.
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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.

A0
WRL#
WRU#
RDL#
RDU#
D[7:0]
D[15:8]
even number even number data write data write data write
Figure 15-7 Sample timing of “register write” with Mode 80
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

The following shows an example of a “register read” with Mode 80.

A0
WRL#
WRU#
RDL#
RDU#
D[7:0]
D[15:8]
even number even number data read data read data read
Figure 15-8 Sample timing of “register read” with Mode 80
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

The following shows an example of a “memory write” with Mode 80, little endian.

A0
WRL#
WRU#
RDL#
RDU#
D[7:0]
D[15:8]
Data Write Data Write Data Write Data Write Data Write word access byte access byte access
memory data even address even address odd address even address even address
1 2 3 4 5 6 STEP
Figure 15-9 Sample timing of “memory write” with mode 80, little endian
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

The following shows an example of a “memory read” with Mode 80, Little endian.

A0
WRL#
WRU#
RDL#
RDU#
D[7:0]
D[15:8]
Data Read Data Read Data Read Data Read Data Read byte access word access word access
memory data odd address even address odd address even address even address
1 2 3 4 5 6 STEP
Figure 15-10 Sample timing of “memory read” with mode 80, Little endian
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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).

A0
WRL#
WRU#
RDL#
RDU#
D[7:0]
D[15:8]
word access word access word access word access word access

1 2 STEP
Figure 15-11 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabled
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

upper and lower bytes). The bit/Little endian setting is used to determine the data ar- rangement 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”.
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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).

A0
WRL#
WRU#
RDL#
RDU#
D[7:0]
D[15:8]
word access word access word access word access word access
1 2 STEP

Figure 15-12 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabled
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.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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”.
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.
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

The S1D13708 includes an embedded crystal oscillator which is available when the Indirect Interface is selected.
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.
C 1 C 2
(12MHz Max.)
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.
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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02
Rfb · Crystal

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 -> REG[1Eh] REG[1Fh]
Word write 1122h to register address 1Eh-> REG[1Eh]
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

For 16 bpp color depth, the Display Data Byte Swap bit (REG[71h] bit 6) must be set to 1.

* 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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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.

* 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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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.
Software Power Save Normal
IO Access Possible? Yes Yes
Memory Writes Possible? Yes1 Yes
Memory Reads Possible? No1 Yes
Look-Up Table Registers Access Possible? Yes Yes
Display Active? No Yes
LCD Interface Outputs Forced Low Active
GPIO Pins configured for HR-TFT/D-TFD/TFT Type 2/32 Forced Low Active
GPIO Pins configured as GPIOs Access Possible? Yes3 Yes
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 Sta- tus 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 Power- On/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 S1D13708 Issue Date: 02/03/07 X39A-A-001-02
PWMCLK Stopped Active


1 2 3 4 5 6 7 8 9 10 11
Figure 19-1 Mechanical Data PFBGA 120-pin Package
S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

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.
Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

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/
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/
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 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

ADVANCED INFORMATION
Programming Notes and Examples
Subject to Change
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.

Subject to Change
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20


Subject to Change
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Figure 4-1: Pixel Storage for 1 Bpp in One Byte of Display Buffer 13 Figure 4-2: Pixel Storage for 2 Bpp in One Byte of Display Buffer 14 Figure 4-3: Pixel Storage for 4 Bpp in One Byte of Display Buffer 14 Figure 4-4: Pixel Storage for 8 Bpp in One Byte of Display Buffer 15 Figure 4-5: Pixel Storage for 16 Bpp in Two Bytes of Display Buffer 15 Figure 8-1: Picture-in-Picture Plus with SwivelView disabled 39 Figure 8-2: Picture-in-Picture Plus with SwivelView disabled 49 Figure 8-3: Picture-in-Picture Plus with SwivelView 90° enabled 52 Figure 8-4: Picture-in-Picture Plus with SwivelView 180° enabled 55 Figure 8-5: Picture-in-Picture Plus with SwivelView 270° enabled 59
Subject to Change
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Subject to Change
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
This document is updated as appropriate. Please check the Epson Research and Devel- opment website at www.erd.epson.com for the latest revision of this document and source before beginning any development.
We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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.
a. The product code for the S1D13708 is 0Dh (001101 binary) and can be found in
bits 7-2.
b. The revision code is 0h (00 binary) and can be found in bits 1-0.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

This section describes how to initialize the S1D13708. Sample code for performing initial- ization 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.
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 S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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.
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 signif- icant 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 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Pixel 0 Pixel 1 Pixel 2 Pixel 3 Pixel 4 Pixel 5 Pixel 6 Pixel 7
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.
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Pixel 0 Bits 1-0
Pixel 1 Bits 1-0
Pixel 2 Bits 1-0
Pixel 3 Bits 1-0
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 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Pixel 0 Bits 3-0
Pixel 1 Bits 3-0
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.
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Pixel 0 Bits 7-0
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 S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8
Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
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.
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 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
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.
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 n/a
7 6 5 4 3 2 1 0
bits 7-2 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.
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 n/a
7 6 5 4 3 2 1 0
bits 7-2 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 S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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 n/a
7 6 5 4 3 2 1 0
bits 7-2 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.
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 5 4 3 2 1 0
bits 7-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.
Look-Up Table Blue Read Data Register REG[0Ch] Read Only
LUT Blue Read Data Bits 5-0 n/a
7 6 5 4 3 2 1 0
bits 7-2 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 read- only register.
This register is updated only when the LUT Read Address Register (REG[0Fh]) is writ- ten to.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Look-Up Table Green Read Data Register REG[0Dh] Read Only
LUT Green Read Data Bits 5-0 n/a
7 6 5 4 3 2 1 0
bits 7-2 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 read- only register.
This register is updated only when the LUT Read Address Register (REG[0Fh]) is writ- ten to.
Look-Up Table Red Read Data Register REG[0Eh] Read Only
LUT Red Read Data Bits 5-0 n/a
7 6 5 4 3 2 1 0
bits 7-2 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 read- only register.
This register is updated only when the LUT Read Address Register (REG[0Fh]) is writ- ten to.
Look-Up Table Read Address Register REG[0Fh] Write Only
LUT Read Address Bits 7-0
7 6 5 4 3 2 1 0
bits 7-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 S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Color Depth Look-Up Table Indices Used Effective Gray Shades/Colors RED GREEN BLUE 1 bpp gray 2 2 gray shades 2 bpp gray 4 4 gray shades 4 bpp gray 16 16 gray shades 8 bpp gray 256 64 gray shades 16 bpp gray 64 gray shades 1 bpp color 2 colors 2 bpp color 4 colors 4 bpp color 16 colors 8 bpp color 256 colors 16 bpp color 65536 colors
= Indicates the Look-Up Table is not used for that display mode
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
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.
The 1 bpp gray shade mode uses the green component of the first 2 LUT entries. The remaining indices of the LUT are unused.
Index Red Green Blue 00 01 00 FF 00 02 00 00 00 ... 00 00 00 FF 00 00 00
The 2 bpp gray shade mode uses the green component of the first 4 LUT entries. The remaining indices of the LUT are unused.
Index Red Green Blue 00 01 00 55 00 02 00 AA 00 03 00 FF 00 04 00 00 00 ... 00 00 00 FF 00 00 00
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01
Unused entries · Unused entries

The 4 bpp gray shade mode uses the green component of the first 16 LUT entries. The remaining indices of the LUT are unused.
Index Red Green Blue 00 01 00 11 00 02 00 22 00 03 00 33 00 04 00 44 00 05 00 55 00 06 00 66 00 07 00 77 00 08 00 88 00 09 00 99 00 0A 00 AA 00 0B 00 BB 00 0C 00 CC 00 0D 00 DD 00 0E 00 EE 00 0F 00 FF 00 10 00 00 00 ... 00 00 00 FF 00 00 00
Subject to Change
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20
Unused entries

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).
Index Red Green Blue Index Red Green Blue 00 20 00 80 00 01 00 04 00 21 00 84 00 02 00 08 00 22 00 88 00 03 00 0C 00 23 00 8C 00 04 00 10 00 24 00 90 00 05 00 14 00 25 00 94 00 06 00 18 00 26 00 98 00 07 00 1C 00 27 00 9C 00 08 00 20 00 28 00 A0 00 09 00 24 00 29 00 A4 00 0A 00 28 00 2A 00 A8 00 0B 00 2C 00 2B 00 AC 00 0C 00 30 00 2C 00 B0 00 0D 00 34 00 2D 00 B4 00 0E 00 38 00 2E 00 B8 00 0F 00 3C 00 2F 00 BC 00 10 00 40 00 30 00 C0 00 11 00 44 00 31 00 C4 00 12 00 48 00 32 00 C8 00 13 00 4C 00 33 00 CC 00 14 00 50 00 34 00 D0 00 15 00 54 00 35 00 D4 00 16 00 58 00 36 00 D8 00 17 00 5C 00 37 00 DC 00 18 00 60 00 38 00 E0 00 19 00 64 00 39 00 E4 00 1A 00 68 00 3A 00 E8 00 1B 00 6C 00 3B 00 EC 00 1C 00 70 00 3C 00 F0 00 1D 00 74 00 3D 00 F4 00 1E 00 78 00 3E 00 F8 00 1F 00 7C 00 3F 00 FC 00 40 00 00 00 ... 00 00 00 FF 00 00 00
Subject to Change
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01
Unused entries

The Look-Up Table is bypassed at this color depth, therefore programming the LUT is not required.
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.
Subject to Change
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
The S1D13708 LUT uses only the six most-significant bits of the LUT. The 2 least-sig- nificant bits are ignored.
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.
Index Red Green Blue 00 01 FF FF FF 02 00 00 00 ... 00 00 00 FF 00 00 00
= Indicates unused entries in the LUT
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.
Index Red Green Blue 00 01 00 00 FF 02 FF 00 00 03 FF FF FF 04 00 00 00 ... 00 00 00 FF 00 00 00
= Indicates unused entries in the LUT
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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.
Index Red Green Blue 00 01 00 00 AA 02 00 AA 00 03 00 AA AA 04 AA 00 00 05 AA 00 AA 06 AA AA 00 07 AA AA AA 08 00 00 00 09 00 00 FF 0A 00 FF 00 0B 00 FF FF 0C FF 00 00 0D FF 00 FF 0E FF FF 00 0F FF FF FF 10 00 00 00 ... 00 00 00 FF 00 00 00
= Indicates unused entries in the LUT
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
Index R G B Index R G B Index R G B Index R G B 00 40 00 00 00 80 FF FF 00 C0 00 00 00 01 00 00 AA 41 00 00 11 81 FF EF 00 C1 00 11 11 02 00 AA 00 42 00 00 22 82 FF DE 00 C2 00 22 22 03 00 AA AA 43 00 00 33 83 FF CD 00 C3 00 33 33 04 AA 00 00 44 00 00 44 84 FF BC 00 C4 00 44 44 05 AA 00 AA 45 00 00 55 85 FF AB 00 C5 00 55 55 06 AA AA 00 46 00 00 66 86 FF 9A 00 C6 00 66 66 07 AA AA AA 47 00 00 77 87 FF 89 00 C7 00 77 77 08 55 55 55 48 00 00 89 88 FF 77 00 C8 00 89 89 09 00 00 FF 49 00 00 9A 89 FF 66 00 C9 00 9A 9A 0A 00 FF 00 4A 00 00 AB 8A FF 55 00 CA 00 AB AB 0B 00 FF FF 4B 00 00 BC 8B FF 44 00 CB 00 BC BC 0C FF 00 00 4C 00 00 CD 8C FF 33 00 CC 00 CD CD 0D FF 00 FF 4D 00 00 DE 8D FF 22 00 CD 00 DE DE 0E FF FF 00 4E 00 00 EF 8E FF 11 00 CE 00 EF EF 0F FF FF FF 4F 00 00 FF 8F FF 00 00 CF 00 FF FF 10 00 00 00 50 00 00 FF 90 FF 00 00 D0 FF 00 00 11 51 00 11 FF 91 FF 00 11 D1 FF 11 11 12 22 22 22 52 00 22 FF 92 FF 00 22 D2 FF 22 22 13 33 33 33 53 00 33 FF 93 FF 00 33 D3 FF 33 33 14 44 44 44 54 00 44 FF 94 FF 00 44 D4 FF 44 44 15 55 00 55 FF 95 FF 00 55 D5 FF 55 55 16 66 66 66 56 00 66 FF 96 FF 00 66 D6 FF 66 66 17 77 77 77 57 00 77 FF 97 FF 00 77 D7 FF 77 77 18 89 89 89 58 00 89 FF 98 FF 00 89 D8 FF 89 89 19 9A 9A 9A 59 00 9A FF 99 FF 00 9A D9 FF 9A 9A 1A AB AB AB 5A 00 AB FF 9A FF 00 AB DA FF AB AB 1B BC BC BC 5B 00 BC FF 9B FF 00 BC DB FF BC BC 1C CD CD CD 5C 00 CD FF 9C FF 00 CD DC FF CD CD 1D DE DE DE 5D 00 DE FF 9D FF 00 DE DD FF DE DE 1E EF EF EF 5E 00 EF FF 9E FF 00 EF DE FF EF EF 1F FF FF FF 5F 00 FF FF 9F FF 00 FF DF FF FF FF 20 00 00 00 60 00 FF FF A0 FF 00 FF E0 00 FF 00 21 11 00 00 61 00 FF EF A1 EF 00 FF E1 11 FF 11 22 22 00 00 62 00 FF DE A2 DE 00 FF E2 22 FF 22 23 33 00 00 63 00 FF CD A3 CD 00 FF E3 33 FF 33 24 44 00 00 64 00 FF BC A4 BC 00 FF E4 44 FF 44
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Index R G B Index R G B Index R G B Index R G B
25 55 00 00 65 00 FF AB A5 AB 00 FF E5 55 FF 55 26 66 00 00 66 00 FF 9A A6 9A 00 FF E6 66 FF 66 27 77 00 00 67 00 FF 89 A7 89 00 FF E7 77 FF 77 28 89 00 00 68 00 FF 77 A8 77 00 FF E8 89 FF 89 29 9A 00 00 69 00 FF 66 A9 66 00 FF E9 9A FF 9A 2A AB 00 00 6A 00 FF 55 AA 55 00 FF EA AB FF AB 2B BC 00 00 6B 00 FF 44 AB 44 00 FF EB BC FF BC 2C CD 00 00 6C 00 FF 33 AC 33 00 FF EC CD FF CD 2D DE 00 00 6D 00 FF 22 AD 22 00 FF ED DE FF DE 2E EF 00 00 6E 00 FF 11 AE 11 00 FF EE EF FF EF 2F FF 00 00 6F 00 FF 00 AF 00 00 FF EF FF FF FF 30 00 00 00 70 00 FF 00 B0 00 00 00 F0 00 00 FF 31 00 11 00 71 11 FF 00 B1 11 00 11 F1 11 11 FF 32 00 22 00 72 22 FF 00 B2 22 00 22 F2 22 22 FF 33 00 33 00 73 33 FF 00 B3 33 00 33 F3 33 33 FF 34 00 44 00 74 44 FF 00 B4 44 00 44 F4 44 44 FF 35 00 55 00 75 55 FF 00 B5 55 00 55 F5 55 55 FF 36 00 66 00 76 66 FF 00 B6 66 00 66 F6 66 66 FF 37 00 77 00 77 77 FF 00 B7 77 00 77 F7 77 77 FF 38 00 89 00 78 89 FF 00 B8 89 00 89 F8 89 89 FF 39 00 9A 00 79 9A FF 00 B9 9A 00 9A F9 9A 9A FF 3A 00 AB 00 7A AB FF 00 BA AB 00 AB FA AB AB FF 3B 00 BC 00 7B BC FF 00 BB BC 00 BC FB BC BC FF 3C 00 CD 00 7C CD FF 00 BC CD 00 CD FC CD CD FF 3D 00 DE 00 7D DE FF 00 BD DE 00 DE FD DE DE FF 3E 00 EF 00 7E EF FF 00 BE EF 00 EF FE EF EF FF 3F 00 FF 00 7F FF FF 00 BF FF 00 FF
Subject to Change
The Look-Up Table is bypassed at this color depth, therefore programming the LUT is not required.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
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.
1 Memory writes are possible during power save mode because the S1D13708 dynami- cally enables the memory controller for display buffer writes.
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

6.2.1 Power Save Mode Enable
Power Save Configuration Register REG[A0h] Read/Write
Memory Controller Power Save Status (RO)
n/a Power Save Mode Enable
7 6 5 4 3 2 1 0
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.
Subject to Change
Enabling/disabling Power Save Mode requires proper LCD Power Sequencing. See Sec- tion 6.3, “LCD Power Sequencing” on page 29.
Power Save Configuration Register REG[A0h] Read/Write
Memory Controller Power Save Status (RO)
n/a Power Save Mode Enable
7 6 5 4 3 2 1 0
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.
Memory writes are possible during power save mode because the S1D13708 dynamical- ly enables the memory controller for display buffer writes.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
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.
This section discusses LCD power sequencing for passive and TFT (non-HR-TFT) pan- els 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.
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 S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Power Save Mode must be enabled using the following steps.
The S5U13708B00B uses GPO0 to control the LCD bias power supplies. Your system design may vary.
Power Save Mode must be disabled using the following steps.
The S5U13708B00B uses GPO0 to control the LCD bias power supplies. Your system design may vary.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
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.
The following registers control the SwivelView feature.
Special Effects Register REG[71h] Read/Write
Byte Swap n/a PIP+ Window
Enable n/a SwivelView Mode Select
7 6 5 4 3 2 1 0
The SwivelView modes are selected using the SwivelView Mode Select Bits[1:0] (bits 1- 0). The combinations of these bits provide the following rotations:
SwivelView Mode Select Bits SwivelView Orientation
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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 0
Main Window Display Start Address Register 1 REG[75h] Read/Write
Main window Display Start Address Bits 15-8
7 6 5 4 3 2 1 0
Main Window Display Start Address Register 2 REG[76h] Read/Write
Main window Display Start
7 6 5 4 3 2 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
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
Truncate all fractional values before writing to the address registers.
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-pix- el. If this is not possible, refer to Section 7.3, “Limitations” .
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20
n/a · Address · Bit 16

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 0
Main Window Line Address Offset Register 1 REG[79h] Read/Write
n/a Main window Line Address
7 6 5 4 3 2 1 0
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
Image width can be larger than panel width (or panel height, for SwivelView 90° or 270°).
number of dwords per line = image width ÷ (32 ÷ bpp)
a 320x240 panel at a color depth of 4 bpp.
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 S1D13708 Issue Date: 01/11/20 X39A-G-003-01
Offset Bits 9-8

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.
Example 2:In SwivelView 90° mode, program the main window registers for a
320x240 panel at a color depth of 4 bpp.
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.
number of dwords per line
= image width ÷ (32 ÷ bpp) = 240 ÷ (32 ÷ 4) = 30 = 1Eh
Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are set to 001Eh.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

320x240 panel at a color depth of 4 bpp.
= image width × bpp ÷ 8 = 320 × 4 ÷ 8 = 160 = A0h
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.
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.
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01
Main Window Stride

Example 4:In SwivelView 270° mode, program the main window registers for a
320x240 panel at a color depth of 4 bpp.
= image width × bpp ÷ 8 = 240 × 4 ÷ 8 = 120 = 78h
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.
number of dwords per line
= image width ÷ (32 ÷ bpp) = 240 ÷ (32 ÷ 4) = 30 = 1Eh
Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are set to 001Eh.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20
Main Window Stride

7.3.1 SwivelView 0° and 180°
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).
Subject to Change
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 S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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.
The following diagram shows an example of a PIP+ window within a main window.
Subject to Change
The following registers control the Picture-In-Picture Plus feature.
Special Effects Register REG[71h] Read/Write
Byte Swap n/a PIP+ Window
Enable n/a SwivelView Mode Select
7 6 5 4 3 2 1 0
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

PIP+ Window Enable
The PIP+ Window Enable bit enables a PIP+ window within the main window. The loca- tion of the PIP+ window within the landscape window is determined by the PIP+ X Posi- tion 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] Read/Write
PIP+ Window Display Start Address Bits 7-0
7 6 5 4 3 2 1 0
PIP+ Window Display Start Address Register 1 REG[7Dh] Read/Write
PIP+ Window Display Start Address Bits 15-8
7 6 5 4 3 2 1 0
PIP+ Window Display Start Address Register 2 REG[7Eh] Read/Write
7 6 5 4 3 2 1 0
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 S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Truncate all fractional values before writing to the address registers.
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] Read/Write
PIP+ Window Line Address Offset Bits 7-0
7 6 5 4 3 2 1 0
PIP+ Window Line Address Offset Register 1 REG[81h] Read/Write
n/a PIP+ Window Line Address
7 6 5 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.
PIP+ Stride = image width × bpp ÷ 8
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
Image width can be larger than PIP+ width (or PIP+ height, for SwivelView 90° or 270°).
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20
Offset Bits 9-8

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 0
PIP+ Window X Start Position Register 1 REG[85h] Read/Write
n/a PIP+ Window X Start Position
7 6 5 4 3 2 1 0
PIP+ X Start Position
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.
Bits-per-pixel (Color Depth) Pixel Increment (X)
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)
Truncate the fractional part of the above equation.
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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
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-per- pixel) (see Table 8-2:, “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 = (panel width - x - 1) ÷ (32 ÷ bits-per-pixel)
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 coordi- nates start at line 0.
Program the PIP+ Window X Start Position so that
PIP+ Window X Start Position = panel width - y - 1
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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 0
PIP+ Window Y Start Position Register 1 REG[89h] Read/Write
n/a PIP+ Window Y Start Position
7 6 5 4 3 2 1 0
PIP+ Y Start Position
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.
Bits-Per-Pixel (Color Depth) Pixel Increment (Y)
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)
Truncate the fractional part of the above equation.
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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 coordi- nates start at line 0.
Program the PIP+ Window Y Start Position so that
PIP+ Window Y Start Position = panel height - y - 1
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.
Program the PIP+ Window Y Start Position so that
PIP+ Window Y Start Position = x ÷ (32 ÷ bits-per-pixel)
Truncate the fractional part of the above equation.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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 0
PIP+ Window X End Position Register 1 REG[8Dh] Read/Write
n/a PIP+ Window X End Position
7 6 5 4 3 2 1 0
PIP+ X End Position
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.
Bits-Per-Pixel (Color Depth) Pixel Increment (X)
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)
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 coordi- nates start at line 0.
Program the PIP+ Window X End Position so that
PIP+ Window X End Position = y
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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)
Truncate the fractional part of the above equation.
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 0
PIP+ Window Y End Position Register 1 REG[91h] Read/Write
n/a PIP+ Window Y End Position
7 6 5 4 3 2 1 0
PIP+ Y End Position
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.
Bits-Per-Pixel (Color Depth) Pixel Increment (Y)
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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 coordi- nates start at line 0.
Program the PIP+ Window Y End Position so that
PIP+ Window Y End Position = y
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.
Program the PIP+ Window Y End Position so that
PIP+ Window Y End Position = (panel height - x - 1) ÷ (32 ÷ bits-per-pixel)
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-per- pixel) (see Table 8-4:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start at pixel 0.
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.
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

8.3.1 SwivelView 0° (Landscape Mode)
0° SwivelView TM
PIP+ window y start position
PIP+ window y end position
Subject to Change
PIP+ window x start position PIP+ window x end position
SwivelView 0° (or landscape) is a mode in which both the main and PIP+ window are non- rotated. 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).
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 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
The required values are calculated as follows:
= x1 ÷ (32 ÷ bpp) = 80 ÷ (32 ÷ 4) = 10 = 0Ah
= y1 = 60 = 3Ch
= x2 ÷ (32 ÷ bpp) = (80 + 160 - 1) ÷ (32 ÷ 4) = 29.875 = 1Dh (truncated fractional part)
= y2 = 60 + 120 - 1 = 179 = B3h
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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
= (REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1 = B3h - 3Ch + 1 = 120 lines
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
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.
Program the PIP+ Window Enable bit. REG[71h] bit 4 is set to 1.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20
PIP Height

90° SwivelView TM
PIP+ window x start position PIP+ window x end position
PIP+ window y start position
PIP+ window y end position
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 dword- aligned (the last two bits of the starting address must be 0).
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 S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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° coor- dinates (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 horizon- tal coordinates of the PIP+ window’s top right and bottom left corners.
The required values are calculated as follows:
= y1 = 80 = 50h
= (panel height - x2 - 1) ÷ (32 ÷ bpp) = (240 - (60 + 120 - 1) - 1) ÷ (32 ÷ 4) = 7.5 = 07h (truncated fractional part)
= y2 = 80 + 160 - 1 = 239 = EFh
= (panel height - x1 - 1) ÷ (32 ÷ bpp) = (240 - 60 - 1) ÷ (32 ÷ 4) = 22.375 = 16h (truncated fractional part)
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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)
= (REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1 = EFh - 50h + 1 = 160 lines
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
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.
Program the PIP+ Window Enable bit. REG[71h] bit 4 is set to 1.
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01
PIP+ Height

PIP+ window x start position PIP+ window x end position 180° SwivelViewTM
PIP+ window y start position panel’s origin PIP+ window y end position
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 dword- aligned (the last two bits of the starting address must be 0).
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 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

panel at 4 bpp, with the PIP+ window positioned at SwivelView 180° co- ordinates (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 verti- cal coordinates of the PIP+ window’s bottom right and top left corner.
The required values are calculated as follows:
= (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
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01
X Start Position

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
= (REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1 = B3h - 3Ch + 1 = 120 lines
= 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
Program the PIP+ Display Start Address registers. REG[7Ch]=DFh REG[7Dh]=2Eh REG[7Eh]=00h
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20
PIP Height · PIP+ Stride

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.
Program the PIP+ Window Enable bit. REG[71h] bit 4 is set to 1.
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

270° SwivelView TM
PIP+ window y end position
PIP+ window y start position
PIP+ window x start position
PIP+ window x end position
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 dword- aligned (the last two bits of the starting address must be 0).
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 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

panel at 4 bpp, with the PIP+ window positioned at SwivelView 270° co- ordinates (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.
The required values are calculated as follows:
= panel width - y2 - 1 = 320 - (80 + 160 - 1) - 1 = 80 = 50h
= x1 ÷ (32 ÷ bpp) = 60 ÷ (32 ÷ 4) = 7.5 = 07h (truncated fractional part)
= panel width - y1 - 1 = 320 - 80 - 1 = 239 = EFh
= x2 ÷ (32 ÷ bpp) = (60 + 120 - 1) ÷ (32 ÷ 4) = 22.375 = 16h (truncated fractional part)
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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)
= (REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1 = EFh - 50h + 1 = 160 lines
= 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
Program the PIP+ Display Start Address registers. REG[7Ch]=70h REG[7Dh]=2Fh REG[7Eh]=00h
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20
PIP+ Height · PIP+ Stride

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.
Program the PIP+ Window Enable bit. REG[71h] bit 4 is set to 1.
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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.
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 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
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” .
Subject to Change
The following table lists the functions provided by the S1D13708 HAL library.
halAcquireController This routine loads the driver required to access the S1D13708, locates the and returns the address of the controller.
halInitController 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.
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
halWriteDisplay16 Writes on word to display memory
halWriteDisplay32 Writes on double word to display memory
halReadReg8 Reads one byte from a control register
halReadReg16 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
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 S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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.
Description: This routine initializes data structures and initiates the link between the application soft- ware and the hardware. When the S1D13708 HAL is used this routine must be the first HAL function called.
The display buffer and register addresses, configured by 13708CFG, are used by halAc- quireController(). When both addresses are set to 0, the software assumes an Intel plat- form, 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, halAcquire- Controller() 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, halAcquire- Controller() will return these addresses via pMem and pReg.
Parameters: pMem 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.
Return Value: TRUE (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().
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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 initial- ization.
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.
Parameters: Flags contains initialization specific information. The default action of the HAL is to per- form all initialization steps. Flags contain specific instructions for bypassing certain ini- tialization steps. Flags can be combined with the ’|’ symbol, such as fDONT_SET_CLOCKS | fDONT_INIT_REGS. The values for Flags are:
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.
Bypass register initialization. Normally the init process sets the register values to a known state. Setting this flag bypasses this step.
Bypass look-up table initialization.
The final step of the initialization process is to clear display buffer memory. Setting this flag will bypass this step.
Return Value: TRUE (non-zero) if the initialization was successful.
FALSE (zero) if the HAL was unable to initialize the S1D13708 If additional error information is required call halGetLastError()
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

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.
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 inter- face functions are all found in the file indirect.c in the HAL source code.
Description: Reads and returns the value of one byte of display memory.
Parameters: Offset A 32 bit offset to the byte to be read from display memory.
Return Value: The value of the byte at the requested offset.
Description: Reads and returns the value of one word of display memory.
Parameters: 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.
Return Value: The value of the word at the requested offset.
Description: Reads and returns the value of one dword of display memory.
Parameters: Offset 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.
Return Value: The value of the dword at the requested offset.
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: Nothing.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
Return Value: Nothing.
Description: Writes a dword 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 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.
Return Value: Nothing.
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.
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:
Read word from reg[index] val16 = (halReadReg8(index+1)
val32 =(halReadReg8(index+3)
(halReadReg8(index+2)
Read dword from reg[index]
Write word (val16) to reg[index] halWriteReg8(index, (val16 & 0xff)); halWriteReg8(index+1, (val16 >> 8) & 0xff);
halWriteReg8(index, (val32 & 0xff)); halWriteReg8(index+1, (val32 >> 8) & 0xff); halWriteReg8(index+2, (val32 >> 16) & 0xff); halWriteReg8(index+3, (val32 >> 24) & 0xff);
Write dword (val32) to reg[index]
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01
halReadReg8(index);

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 inter- face functions are all found in the file indirect.c in the HAL source code.
Description: Reads and returns the contents of one byte of an S1D13708 register at the requested offset. No S1D13708 registers are changed.
Parameters: Index 32 bit offset to the register to read. Index is zero-based from the beginning of register address space.
Return Value: The value read from the register.
Subject to Change
Description: Reads and returns the contents of one word of an S1D13708 register at the requested off- set. No S1D13708 register are changed.
Parameters: Index 32 bit offset to the register to read. Index is zero-based from the beginning of register address space.
Return Value: The word value read from the register.
Description: Reads and returns the dword value of an S1D13708 register at the requested offset. No S1D13708 register are changed.
Parameters: Index 32 bit offset to the register to read. Index is zero-based from the beginning of register address space.
Return Value: The dword value read from the register.
Description: Writes an 8 bit value to the register at the requested offset.
Parameters: 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.
Return Value: Nothing.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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.
ADVANCED INFORMATION
Description: Writes a 32 bit value (dword) to the 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 dword value to write to the register.
Return Value: Nothing.
To maximize flexibility, S5U13708B00B evaluation boards include a programmable clock. The following HAL routines provide support for the programmable clock.
Description: This routine program the ICD2061A programmable clock generator to the specified fre- quency.
Parameters: ClkiFreq The desired frequency, in Hz, for CLKI.
Clki2Freq The desired frequency, in Hz, for CLKI2.
Return Value: TRUE (non-zero) if the function was successful in setting the clock.
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 S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Description: Returns the frequency of the clock input identified by 'Clock'.
Parameters: Clock Indicates which clock to read. This value can be CLKI or CLKI2.
Return Value: The frequency, in Hz, of the requested clock.
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.
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.
Parameters: 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.
Length 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.
Return Value: Nothing.
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Description: This routine retrieves the last error detected by the HAL.
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.
Return Value:The numerical value of the internal error number.
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.
Return Value: Nothing.
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Example source code demonstrating programming the S1D13708 using the HAL library is available on the internet at www.erd.epson.com
Subject to Change
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

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/
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/
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
Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Subject to Change
S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20



S1D13708 Register Summary X39A-R-001-01
FFh High for 255 out of 256 clock periods
01h High for 1 out of 256 clock periods
02h High for 2 out of 256 clock periods
PWM Clock Divide Select Bits [3:0] PWM Clock Divide Amount
CV Pulse Divide Select Bits [2:0] CV Pulse Divide Amount
PWMOUT Duty Cycle [7:0] PWMOUT Duty Cycle
Ch 4096 Dh-Fh Reserved
0h 1 1h 2 2h 4 3h 8
0h 1 1h 2 2h 4 3h 8
9 REG[B1h] PWM Clock / CV Pulse Configuration Register
10 REG[B1h] PWM Clock / CV Pulse Configuration Register
11 REG[B3h] PWMOUT Duty Cycle Register
Maximum Number of Colors/Shades Max. No. Of
Size Active Panel Data Width Size
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
PCLK Divide Select Bits PCLK Source to PCLK Frequency Ratio
00 4-bit 9-bit 01 8-bit 12-bit 10 16-bit 18-bit 11 Reserved Reserved
SwivelViewTM Mode Select Bits SwivelViewTM Orientation
PCLK Source Select Bits PCLK Source
(Dithering On) TFT Panel
REG[10h] Bits[1:0] Panel Type
01 BCLK
10 CLKI
11 CLKI2
00 STN
01 TFT
10 HR-TFT
11 D-TFD
01 90° 10 180° 11 270°
000 1:1 001 2:1 010 3:1 011 4:1 1XX 8:1
Panel Data Width Bits [1:0] Passive LCD Panel Data Width
3 REG[05h] Pixel Clock Configuration Register
4 REG[05h] Pixel Clock Configuration Register
Select Bits [1:0] Color Depth (bpp)
7 REG[70h] Display Mode Register
8 REG[71h] Special Effects Register
5 REG[10h] Panel Type Register
6 REG[10h] Panel Type Register

S1D13708 Register Summary X39A-R-001-01
Page 4 01/01/25

13708CFG Configuration Program
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.

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

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.
13708CFG runs on PC system running Windows 9x/ME/NT/2000 and can modify Win32.exe files and .s9 format files.
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.
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:
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 S1D13708 Issue Date: 01/11/16 X39A-B-001-01

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.

The General tab contains settings that define the S1D13708 operating environment.
Decode Addresses Selecting one of the listed evaluation platforms changes the values for the “Register address” and “Display buffer address” fields. The values used for each evalu- ation platform are examples of possible implementa- tions 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”.
S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

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 S1D13708 Issue Date: 01/11/16 X39A-B-001-01


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 Look- Up 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 Sets the initial color depth on the LCD panel.
S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

PCLK Source PCLK 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-A- 001-xx.
It is the responsibility of the system designer to ensure that the correct clock frequencies are supplied to the S1D13708.
Changing clock values may modify or invalidate Panel settings. Confirm all settings on the Panel tab after modifying any clock settings.
13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

The S1D13708 may use one or two clock sources. Two clock sources allow greater flexi- bility 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 These settings select the clock frequency for the Crystal Oscillator Input (XTAL).
Timing This field selects the actual XTAL frequency used by the configuration process.
PCLK 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 configu- ration 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 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Timing This field shows the actual PCLK used by the configu- ration process.
BCLK 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 This field shows the actual MCLK frequency used by the configuration process.
13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

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.
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 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.
S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

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.
13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01


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/D- TFD/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 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

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.
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 It is recommended that the automatically generated Display Total values be used. However, manual adjustment may be used to improve the quality of the
13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

displayed image by fine tuning the horizontal and vertical display totals.
The display total equals the display period plus the non- display period. Refer to S1D13708 Hardware Functional Specification, document number X39A-A- 001-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 Specifi- cation, 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.
Pixel Clock Select the desired Pixel Clock (in MHz) from the drop- down 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).
S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

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 S1D13708 Issue Date: 01/11/16 X39A-B-001-01


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 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16


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 configu- ration 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.
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 S1D13708 Issue Date: 01/11/16 X39A-B-001-01

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 identifi- cation 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.
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 ver- sion 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 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

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.
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).
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.
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 S1D13708 Issue Date: 01/11/16 X39A-B-001-01

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 config- urations exist and are being tested.
S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

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:

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:

selects the mode number for use in the header file
selects the type of cursor support enabled in the header file
enables software BitBLT emulation in the header file
13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01
Mode Number · Cursor Support · SW Blit Emulation

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.
Tooltips are enabled by default.
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.
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.
S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

13708PLAY Diagnostic Utility
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.

S1D13708 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

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.
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 S1D13708 Issue Date: 01/11/16 X39A-B-002-01

Copy the file 13708play.exe to a directory in the path (e.g. PATH=C:\S1D13708).
Download the program 13708play to the system.
At the prompt, type:
Where:
/? displays copyright and program version information.
Execute 13708play and at the prompt, type the command line argument /?.
Where:
/? displays copyright and program version information.
S1D13708 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

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).
If the host platform is big endian, reading/writing words and dwords to/from the regis- ters 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 Sets the base address to the beginning of system memory. Without the “S” option, the base address is the beginning of display buffer memory. 8|16|32 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. startaddr 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. endaddr|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.
13708PLAY Diagnostic Utility S1D13708 Issue Date: 01/11/16 X39A-B-002-01

F[S][8|16|32] startaddr endaddr|len data1 [data2 data3 ...] Fills a specified address range in the display buffer.
Where:
S Sets the base address to the beginning of system memory. Without the “S” option, the base address is the beginning of display buffer memory. 8|16|32 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. startaddr The starting address to begin filling at. Specifying a period (.) uses the same starting address as the last Fill command performed. endaddr|len 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. data 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.
If the “I” command is used before 13708PLAY is configured, an error message is dis- played and no action is taken.
S1D13708 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

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 Index into the LUT (hex). red Red component of the LUT (hex). green Green component of the LUT (hex). blue Blue component of the LUT (hex).
Only bits 7-2 of each color are used in the LUT. The least significant two bits of the col- ors 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).
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 Sets the base address to the beginning of system memory. Without the ‘S’ option, the base address is the beginning of display buffer memory. 8|16|32 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. addr The address to read data from. Multiple addresses can be given.
13708PLAY Diagnostic Utility S1D13708 Issue Date: 01/11/16 X39A-B-002-01

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 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. cycles 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 Sets the base address to the beginning of system memory. Without the “S” option, the base address is the beginning of display buffer memory. 8|16|32 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. startaddr The starting address to begin the search from. Specifying a period (.) uses the same starting address as the last Search command performed. endaddr|len 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. data 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.
S1D13708 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

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 Sets the base address the beginning of system memory. Without the “S” option, the base address is the beginning of display buffer memory. 8|16|32 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. startaddr The starting address to write data to. Specifying a period (.) uses the same starting address as the last Write command performed. data 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 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. data Values to write to the display buffer.
XA Reads and displays the contents of all the S1D13708 registers.
13708PLAY Diagnostic Utility S1D13708 Issue Date: 01/11/16 X39A-B-002-01

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 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 Index into the registers (hex). data 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 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

13708PLAY Diagnostic Utility S1D13708 Issue Date: 01/11/16 X39A-B-002-01

13708PLAY can be controlled by a script file. This is useful when:
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:
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 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

13708BMP Demonstration Program
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.

S1D13708 13708BMP Demonstration Program X39A-B-003-01 Issue Date: 01/11/16

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.
13708BMP supports the following S1D13708 evaluation platforms:
The 13708BMP source code may be modified by the OEM to support other evaluation platforms.
Copy the file 13708bmp.exe to a directory in the path (e.g. PATH=C:\S1D13708).
13708BMP Demonstration Program S1D13708 Issue Date: 01/11/16 X39A-B-003-01

At a command prompt, type:
Where:
bmpfile Specifies filename of the windows format bmp image to be
displayed.
/? Displays the help message.
13708BMP displays the bmpfile image and returns to the prompt.
To display a .bmp image in the main window on an LCD, type the following: 13708bmp bmpfile.bmp
To display a bmpfile using SwivelView, configure 13708bmp.exe for the selected Swiv- elView mode using the configuration program 13708CFG. For further information on 13708CFG, see the 13708CFG User Manual, document number X39A-B-001-xx.
S1D13708 13708BMP Demonstration Program X39A-B-003-01 Issue Date: 01/11/16

Wind River WindML v2.0 Display
Drivers
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.

S1D13708 Wind River WindML v2.0 Display Drivers X39A-E-002-01 Issue Date: 01/11/14

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.
The WindML display drivers are provided as “reference” source code only. They are in- tended 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 appro- priate. 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 S1D13708 Issue Date: 01/11/14 X39A-E-002-01

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.
For the example steps where the drive letter is given as “x:”. Substitute “x” with the drive letter that your development environment is on.
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”.
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 modifica- tions 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.
Rather than simply replacing the original config.h file, rename it so the file can be kept for reference purposes.
From the Tornado tool bar, select Build -> Build Boot ROM. Select “pcPentium” as the BSP and “bootrom_uncmp” as the image.
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\tar- get\config\pcPentium” and type:
The file mode0.h contains the register values required to set the screen resolution, col- or 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 pro- gram 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 Wind River WindML v2.0 Display Drivers X39A-E-002-01 Issue Date: 01/11/14

Mode0.h should be created using the configuration utility 13708CFG. For more infor- mation on 13708CFG, see the 13708CFG Configuration Program User Manual, docu- ment number X39A-B-001-xx available at www.erd.epson.com
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\tar- get\src\ugl” and type the command:
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”).
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)
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.
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.
Boot the target PC with the VxWorks bootable diskette to run the UGL demo program automatically.
Wind River WindML v2.0 Display Drivers S1D13708 Issue Date: 01/11/14 X39A-E-002-01

S1D13708 Wind River WindML v2.0 Display Drivers X39A-E-002-01 Issue Date: 01/11/14

Linux Console Driver
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.

S1D13708 Linux Console Driver X39A-E-004-01 Issue Date: 01/11/14

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.
The Linux console driver is provided as “reference” source code only. The driver is in- tended 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 appro- priate. 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 S1D13708 Issue Date: 01/11/14 X39A-E-004-01

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 devel- opment environment is installed and the user is familiar with GNU and the Linux operating system.
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
Before continuing with modifications for the S1D13708, you should ensure that you can build and start the Linux operating system.
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
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 replac- ing 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 Linux Console Driver X39A-E-004-01 Issue Date: 01/11/14

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 configura- tion you are building for then s1d13708.h must be regenerated with the correct infor- mation.
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.
From the command prompt in the directory /usr/src/linux run the command:
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.
Build the kernel with the following sequence of commands.
make dep make clean make bzImage /sbin/lilo (if running lilo)
Linux Console Driver S1D13708 Issue Date: 01/11/14 X39A-E-004-01

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 com- mand prompt run:
and reboot your system.
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 Linux Console Driver X39A-E-004-01 Issue Date: 01/11/14
lilo

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 devel- opment environment is installed and the user is familiar with GNU and the Linux operating system.
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
Before continuing with modifications for the S1D13708, you should ensure that you can build and start the Linux operating system.
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).
/tmp/epson/s1d13xxxfb.c /tmp/epson/s1d13708.h /tmp/epson/Makefile to the directory /usr/src/linux/drivers/video/epson.
Linux Console Driver S1D13708 Issue Date: 01/11/14 X39A-E-004-01
Copy the files

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.
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 configura- tion 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.
From the command prompt in the directory /usr/src/linux run the command:
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
“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 Linux Console Driver X39A-E-004-01 Issue Date: 01/11/14
make menuconfig · “Frame-buffer support”

Build the kernel with the following sequence of commands:
make dep make clean make bzImage /sbin/lilo (if running lilo)
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 com- mand prompt run:
and reboot your system.
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 in- structions on this process is on the Internet at www.xfree86.org
Linux Console Driver S1D13708 Issue Date: 01/11/14 X39A-E-004-01
lilo

S1D13708 Linux Console Driver X39A-E-004-01 Issue Date: 01/11/14

QNX Photon v2.0 Display Driver
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.

S1D13708 QNX Photon v2.0 Display Driver X39A-E-005-01 Issue Date: 01/11/14

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.
The QNX display drivers are provided as “reference” source code only. They are intend- ed 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 S1D13708 Issue Date: 01/11/14 X39A-E-005-01

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.
For information about the Drivers Development Kit contact QNX directly.
#tar –xvf S1D13708.tar
This unpacks the files into the directory Project/gddk_1.0/devg/S1D13708.
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.
S1d13708.h should be created using the configuration utility 13708CFG. For more in- formation on 13708CFG, see the 13708CFG Configuration Program User Manual, document number X39A-B-001-xx available at www.erd.epson.com
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.
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 QNX Photon v2.0 Display Driver X39A-E-005-01 Issue Date: 01/11/14

The build step produces two library images:
For the loader to locate them, the files need to be renamed and copied to the lib directory.
To locate the file devg-S1D13708.so, watch the output of the ‘true’ command during the makefile build.
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
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 S1D13708 Issue Date: 01/11/14 X39A-E-005-01

S1D13708 QNX Photon v2.0 Display Driver X39A-E-005-01 Issue Date: 01/11/14

Windows® CE 3.x Display Drivers
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.

S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

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.
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 Win- dows CE v3.0.
This document and the source code for the Windows CE v3.0 driver is updated as appro- priate. Before beginning any development, please check the Epson Research and Devel- opment 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 S1D13708 Issue Date: 01/11/14 X39A-E-006-01

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
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.
a. From the Build menu, select “Set Active Configuration”.
b. Select “MYPLATFORM - Win32 (WCE x86) Release”.
c. Click the OK button.
S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

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.
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.
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 S1D13708 Issue Date: 01/11/14 X39A-E-006-01

a. Insert the following text after the line “IF ODO_NODISPLAY !”:
ddi.dll $(_FLATRELEASEDIR)\S1D13708.dll NK SH
b. Find the section shown below, and insert the lines as marked:
IF DDI_S1D13708! ;Insert this line
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 ;Insert this line
S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

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 configura- tion you are building for then mode0.h will have to be regenerated with the correct in- formation.
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 con- figuration file.
For example, the display driver section of platform.reg should be as follows when us- ing 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
“Width”=dword:140
“Height”=dword:F0
“Bpp”=dword:8
“Rotation”=dword:0
Windows® CE 3.x Display Drivers S1D13708 Issue Date: 01/11/14 X39A-E-006-01
[HKEY_LOCAL_MACHINE\Drivers\Display\S1D13708]

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.
a. Create a bootable floppy disk.
b. Copy himem.sys to the floppy disk and edit config.sys on the floppy disk to con- tain 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.
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 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

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.
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.
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.
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.
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.
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.
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 S1D13708 Issue Date: 01/11/14 X39A-E-006-01

This option should remain disabled unless you are performing specific debugging tasks that require the debug monitor.
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.
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.
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:
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:
S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14
[HKEY_LOCAL_MACHINE\Drivers\Display\S1D13708]

“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 appli- cation 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.
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”.
The following are some issues to consider when configuring the display driver to work with Windows CE:
If power-off/power-on features are required, the OEM has several options:
Windows® CE 3.x Display Drivers S1D13708 Issue Date: 01/11/14 X39A-E-006-01

a. PORepaint=0
b. PORepaint=1
S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14
CDEFINES=$(CDEFINES) -DEnablePreferVmem

c. PORepaint=2
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.
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 S1D13708 Issue Date: 01/11/14 X39A-E-006-01
CDEFINES=$(CDEFINES) -DEnablePreferVmem · to · #CDEFINES=$(CDEFINES) -DEnablePreferVmem

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.
S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

Power Consumption
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.

S1D13708 Power Consumption X39A-G-006-01 Issue Date: 01/11/25

The S1D13708 power consumption can be affected by many system design variables. Some of the variables to consider are:
There is a power save mode in the S1D13708 where the power consumption is affected by various system design variables.
All unused input pins are tied to ground or as specified in the Hardware Functional Speci- fication, document number X39A-A-001-xx.

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:
Test Condition CORE VDD = 1.8V and IO VDD = 3.3V
Active Power Save Mode
Rate Clocks (MHz) Color Depth CORE IO CORE1 IO1 CORE2 IO2
8 1.51 4.13 0.86 0.57 0.56 0.34
18-Bit HR-TFT 84 CLKI= 33MHz MCLK= BCLK= CLKI PCLK= CLKI/4
4 1.33 3.79 —
2 1.24 3.76 —
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 —
160x160 18-Bit HR-TFT 93 CLKI= 33MHz MCLK= BCLK= CLKI PCLK= CLKI/8
4 1.02 2.40 —
2 0.98 2.37 —
1 0.97 2.41 —
S1D13708 Power Consumption X39A-G-006-01 Issue Date: 01/11/25

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.

S1D13708 Power Consumption X39A-G-006-01 Issue Date: 01/11/25

Interfacing to the NEC VR4102 /
VR4111 Microprocessors
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.

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

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
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 S1D13708 Issue Date: 01/11/05 X39A-G-007-01

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

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 S1D13708 Issue Date: 01/11/05 X39A-G-007-01

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.
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 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

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.

Interfacing to the NEC VR4102 / VR4111 Microprocessors S1D13708 Issue Date: 01/11/05 X39A-G-007-01

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 config- uration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware Configuration” on page 13.
The following table shows the functions of each Host Bus Interface signal.
S1D13708 Pin Names NEC VR4102/4111
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
WE0# WR#
LCDRDY WAIT#
S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05
RESET# system RESET

The Host Bus Interface requires the following signals:
Interfacing to the NEC VR4102 / VR4111 Microprocessors S1D13708 Issue Date: 01/11/05 X39A-G-007-01

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.
S1D13708
WR#
WE0#
SHB#
WE1#
RD#
RD#
LCDCS#
CS#
IO V DD
LCDRDY
WAIT#
M/R# ADD17
RESET#
ADD[16:0]
AB[16:0]
DAT[15:0]
DB[15:0]
BUSCLK
CLKI
IO V DD
BS#
RD/WR#
S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05
Pull-up · System RESET

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.
value on this pin at the rising edge of RESET# is used to configure: (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
CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1
= recommended setting for NEC VR4102/VR4111
Interfacing to the NEC VR4102 / VR4111 Microprocessors S1D13708 Issue Date: 01/11/05 X39A-G-007-01
Pin Name

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.
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 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

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 S1D13708 Issue Date: 01/11/05 X39A-G-007-01

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

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/
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/
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/
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 S1D13708 Issue Date: 01/11/05 X39A-G-007-01

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

Interfacing to the NEC VR4181A™
Microprocessor
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.

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

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
Figure 4-1: Typical Implementation of VR4181A to S1D13708 Interface 12
Interfacing to the NEC VR4181A™ Microprocessor S1D13708 Issue Date: 01/11/05 X39A-G-008-01

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

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 S1D13708 Issue Date: 01/11/05 X39A-G-008-01

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.
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 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

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.
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 S1D13708 Issue Date: 01/11/05 X39A-G-008-01

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 config- uration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware Configuration” on page 13.
The following table shows the functions of each Host Bus Interface signal.
S1D13708 Pin Names NEC VR4181A
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
WE0# #MEMWR
WAIT# IORDY
RESET# RESET#
S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

The interface requires the following signals.
Interfacing to the NEC VR4181A™ Microprocessor S1D13708 Issue Date: 01/11/05 X39A-G-008-01

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.
S1D13708
#MEMWR
WE0#
#UBE
WE1#
#MEMRD
RD#
M/R# A17
#LCDCS
CS#
IO V DD
IORDY
WAIT#
RESET#
A[16:0]
AB[16:0]
D[15:0]
DB[15:0]
IO V DD SYSCLK
CLKI
BS#
RD/WR#
S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05
Pull-up · System RESET #MEMCS16

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.
value on this pin at the rising edge of RESET# is used to configure: (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
CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1
= recommended setting for NEC VR4181A
Interfacing to the NEC VR4181A™ Microprocessor S1D13708 Issue Date: 01/11/05 X39A-G-008-01
Pin Name

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.
S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

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 S1D13708 Issue Date: 01/11/05 X39A-G-008-01

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

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/
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/
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/
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 S1D13708 Issue Date: 01/11/05 X39A-G-008-01

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

Interfacing to the Motorola MPC821
Microprocessor
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.

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

Table 3-1: Host Bus Interface Pin Mapping 13 Table 4-1: List of Connections from MPC821ADS to S1D13708 16 Table 4-2: Summary of Power-On/Reset Configuration Options 18 Table 4-3: CLKI to BCLK Divide Selection 18
Figure 2-1: Power PC Memory Read Cycle 9 Figure 2-2: Power PC Memory Write Cycle 10 Figure 2-3: GPCM Memory Devices Timing 12 Figure 4-1: Typical Implementation of MPC821 to S1D13708 Interface 15
Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

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 S1D13708 Issue Date: 01/11/06 X39A-G-009-01

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.
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.
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 incre- ments 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 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

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:
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.

Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

Figure 2-2: “Power PC Memory Write Cycle” illustrates a typical memory write cycle on the Power PC system bus.

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.
This assumes that the Power PC core is operating in big endian mode (typically the case for embedded systems).
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:
S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

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.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:
Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

Figure 2-3: “GPCM Memory Devices Timing” illustrates a typical cycle for a memory mapped device using the GPCM of the Power PC.

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 gener- ation, 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 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

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 config- uration. For details on the S1D13708 configuration, see Section 4.3, “S1D13708 Hardware Configuration” on page 18.
The following table shows the functions of each Host Bus Interface signal.
S1D13708 Pin Names Motorola MPC821
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)
WAIT# TA
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 pos- sible and both the high and low byte enables can be driven by the MPC821 signal OE.
Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01
RESET# System RESET

The Host Bus Interface requires the following signals.
S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

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.
A[15:31]
AB[16:0]
D[0:15]
DB[15:0]
CS4
CS#
M/R# A14
IO V DD
BS#
TA
WAIT#
WE0
WE1#
WE1
WE0#
OE
RD/WR#
RD#
SYSCLK
CLKI
RESET#
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 S1D13708 Issue Date: 01/11/06 X39A-G-009-01
System RESET

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.
The following table details the connections between the pins and signals of the MPC821 and the S1D13708.
MPC821 Signal Name MPC821ADS Connector and Pin Name S1D13708 Signal Name
Vcc P6-A1, P6-B1 -
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
S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

MPC821 Signal Name MPC821ADS Connector and Pin Name S1D13708 Signal Name
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#
WE1 P6-A14 WE0#
OE P6-B16 RD/WR#, RD#
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
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 S1D13708 Issue Date: 01/11/06 X39A-G-009-01
Vss

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.
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-3: “CLKI to BCLK Divide Selection” for recommended settings
= configuration for MPC821 microprocessor
CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1
= recommended setting for MPC821 microprocessor
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 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06
S1D13708 Pin · Name

Chip select 4 is used to control the S1D13708. The following options are selected in the base address register (BR4).
The following options were selected in the option register (OR4).
Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

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 equ $120 ; CS4 base register OR4 equ $124 ; CS4 option register MemStart equ $42 0000 ; address of S1D13708 display buffer RevCodeReg equ $40 0000 ; address of Revision Code Register
Start mfspr r1,IMMR ; get base address of internal registers andis. r1,r1,$ffff ; clear lower 16 bits to 0 andis. r2,r0,0 ; clear r2 oris r2,r2,MemStart ; write base address ori r2,r2,$0801 ; port size 16 bits; select GPCM; enable stw r2,BR4(r1) ; write value to base register andis. r2,r0,0 ; clear r2 oris r2,r2,$ffc0 ; address mask – use upper 10 bits ori r2,r2,$0708 ; normal CS negation; delay CS ½ clock; ; inhibit burst stw r2,OR4(r1) ; write to option register andis. r1,r0,0 ; clear r1 oris r1,r1,MemStart ; point r1 to start of S1D13708 mem space Loop lbz r0,RevCodeReg(r1) ; read revision code into r1 b Loop ; branch forever
MPC8BUG does not support comments or symbolic equates. These have been added for clarity only.
S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06
end

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 S1D13708 Issue Date: 01/11/06 X39A-G-009-01

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

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/
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/
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 the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

Interfacing to the Motorola MCF5307
"ColdFire" Microprocessor
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.

S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

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
Figure 2-1: MCF5307 Memory Read Cycle 9 Figure 2-2: MCF5307 Memory Write Cycle 9 Figure 2-3: Chip Select Module Outputs Timing 10 Figure 4-1: Typical Implementation of MCF5307 to S1D13708 Interface 13
Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01

S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

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 S1D13708 Issue Date: 01/11/25 X39A-G-010-01

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.
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.
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:
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 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

Figure 2-1: “MCF5307 Memory Read Cycle,” illustrates a typical memory read cycle on the MCF5307 system bus.

Figure 2-2: “MCF5307 Memory Write Cycle,” illustrates a typical memory write cycle on the MCF5307 system bus.

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 S1D13708 Issue Date: 01/11/25 X39A-G-010-01

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.
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:
Figure 2-3: “Chip Select Module Outputs Timing” illustrates a typical cycle for a memory mapped device using the GPCM of the Power PC.
CS[7:0]
BE/BWE[3:0]
OE
S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

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 config- uration. 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.
The following table shows the functions of each Host Bus Interface signal.
S1D13708 Pin Names Motorola MCF5307
DB[15:0] D[31:16]
WE1# BWE1
CS# CS4
M/R# A17
CLKI BCLK0
BS# Connect to IO VDD
RD# OE
WE0# BWE0
WAIT# TA
Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01
RESET# system RESET

The Host Bus Interface requires the following signals.
S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

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.
A[16:0]
AB[16:0]
D[23:16]
DB[7:0]
D[31:24] DB[15:8]
M/R# A17
CS4
CS#
IO V DD
BS#
TA
WAIT#
BWE1
WE1#
BWE0
WE0#
OE
RD/WR#
RD#
BCLK0
CLKI
RESET#
Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01
System RESET

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.
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
= configuration for MFC5307 host bus interface
CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1
= recommended setting for MFC5307 host bus interface
S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25
Pin Name

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.
If aliasing is not desirable, the upper addresses must be fully decoded.
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).
The following options should be selected in the chip select control registers (CSCR4/5).
Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01

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 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01

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/
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/
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 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

Connecting to the Sharp HR-TFT
Panels
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.

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

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
Figure 2-1: Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generation 8 Figure 2-2: Panel Gate Driver DC Power Supplies 9 Figure 2-3: Panel Gate Driver AC Power Supplies 10 Figure 2-4: HR-TFT Power-On/Off Sequence Timing 11 Figure 3-1: Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generation 14
Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

This application note describes the hardware environment required to connect to the Sharp HR-TFT panels directly supported by the S1D13708. These panels are:
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 S1D13708 Issue Date: 01/11/25 X39A-G-011-01

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.
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 character- istics 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.
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 (V0- V9) Generation” shows the schematic for gray scale voltage generation.

4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
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
42 41 40 39 36 35 34 33 32
1 2 3 4 5 6 7 8 OUTPUT
S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

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.
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.

Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

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.

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

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” ).

*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].

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 ns
t7 Power Save Mode disabled to LCD signals active 20 ns
t8 Power Save Mode enabled to LCD signals low 20 ns
Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

Pin Name Description Remarks
No.
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 Sampling start signal for left / right scanning
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 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25
LCD Pin · LCD Pin · Name

Pin Name Description Remarks
No.
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 - Digital power supply See Section 2.1, “External Power Supplies” on page 8
33 DGND VSS Digital ground Ground pin of S1D13708
34 PS GPIO0 Power save signal
35 LP FPLINE Data latch signal of source driver
36 DCLK FPSHIFT Data sampling clock signal
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 S1D13708 Issue Date: 01/11/25 X39A-G-011-01
LCD Pin · LCD Pin · Name

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.
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 elimi- nates 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.

5 6 7 8 9 11 12 13 14 15 10
V0 V1 V2 V3 V4 V5 V6 V7 V8 V9
V0 V1 V2 V3 V4 V5 V6 V7 V8 V9 GND
S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

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.
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.
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.
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 S1D13708 Issue Date: 01/11/25 X39A-G-011-01

Pin Name Description Remarks
No.
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 Sampling start signal for left / right scanning
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 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25
LCD Pin · LCD Pin · Name

Pin Name Description Remarks
No.
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 - Digital power supply See Section 3.1, “External Power Supplies” on page 14
33 DGND VSS Digital ground Ground pin of S1D13708
34 PS GPIO0 Power save signal
35 LP FPLINE Data latch signal of source driver
36 DCLK FPSHIFT Data sampling clock signal
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 S1D13708 Issue Date: 01/11/25 X39A-G-011-01
LCD Pin · LCD Pin · Name

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 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

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/
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/
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 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

Interfacing to the Motorola RedCap2
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.

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

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
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 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

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 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

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.
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.
REDCAP2 does not provide a wait or termination acknowledge signal to external devic- es. Therefore, all external devices must guarantee a fixed cycle length.
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.
S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

Figure 2-1: “REDCAP2 Memory Read Cycle” on page 9 illustrates a typical memory read cycle on the REDCAP2 bus.

Figure 2-2: “REDCAP2 Memory Write Cycle” on page 9 illustrates a typical memory write cycle on the REDCAP2 bus.

Interfacing to the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

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 configu- ration. For details on S1D13708 configuration, see Section 4.3, “S1D13708 Hardware Configuration” on page 15.
The following table shows the functions of each Host Bus Interface signal.
S1D13708 Pin Names REDCAP2
DB[15:0] D[15:0]
WE1# EB0
M/R# A17
CS# REDCAP2 Internal Chip
BS# Connected to IO VDD RD/WR# R/W
WE0# EB1
WAIT# N/A
RESET# RST_OUT
S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06
Select

The Host Bus Interface requires the following signals:
Interfacing to the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

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.
IO V DD
BS#
A17 M/R#
A[16:0]
AB[16:0]
D[15:0]
DB[15:0]
CS1
CS#
R/W
RD/WR#
RD#
OE
EB1
WE0#
WE1# EB0
CLK
CLKI
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).
S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06
System

The following table details the connections for the pins and signals of the REDCAP2.
REDCAP2 Signal Name REDCAP2ADS Connector and Pin Name S1D13708 Signal Name
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 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

REDCAP2 Signal Name REDCAP2ADS Connector and Pin Name S1D13708 Signal Name
R/W P9-47 RD/WR#
OE P9-48 RD#
EB1 P9-46 WE0#
EB0 P9-45 WE1#
Gnd P24-20 / P9-50 Vss
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 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

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.
state of this pin at rising edge of RESET# is used to configure:(1/0)
1 0 CNF[4, 2:0] 1101 = REDCAP2 Big Endian Host Bus Interface CNF3 GPIO pins as inputs at power-on GPIO pins as HR-TFT/ D-TFD outputs
CNF5 WAIT# is active high WAIT# is active low
CLKI to BCLK divide select:
CNF7 CNF6 CLKI to BCLK Divide Ratio 0 0 1 : 1 0 1 2 : 1 1 0 3 : 1 1 1 4 : 1
= configuration for REDCAP2 microprocessor
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.
If aliasing is not desirable, the upper addresses must be fully decoded.
Interfacing to the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01
Pin Name

In this example, Chip Select 1 controls the S1D13708. The following options are selected in the CS1 Control Register.
S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

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 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

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/
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/
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 the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

Interfacing to 8-bit Processors
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.

S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

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
Figure 4-1: Typical Implementation of 8-bit Processor to S1D13708 Interface 11
Interfacing to 8-bit Processors S1D13708 Issue Date: 01/11/25 X39A-G-015-01

S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

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 S1D13708 Issue Date: 01/11/25 X39A-G-015-01

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 inter- faced. Since the S1D13708 is a 16-bit device, some external logic is required.
S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

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 config- uration. 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.
The following table shows the functions of each Host Bus Interface signal.
S1D13708 Pin Names Generic #2 Comments
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
BS# connect to IO VDD —
RD/WR# connect to IO VDD —
WE0# WE# —
WAIT# WAIT# —
RESET# Inverted RESET —
Interfacing to 8-bit Processors S1D13708 Issue Date: 01/11/25 X39A-G-015-01

The S1D13708 Generic #2 Host Bus Interface requires the following signals from an 8-bit processor.
If A17 is unavailable on the 8-bit processor, an external decode must be used to gen- erate the M/R# signal.
In an 8-bit environment, this signal is driven by inverting address line A0 thus indi- cating that odd addresses are to be read/write on the high byte of the data bus.
S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

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 imple- mentation of an 8-bit processor to S1D13708 interface.
Generic 8-bit Bus S1D13708
RD/WR#
BS#
A17 M/R#
A[16:0]
AB[15:0]
D[7:0]
DB[7:0]
DB[15:8]
CS#
WE#
WE#
RD#
RD#
A0
BHE#
WAIT#
WAIT#
BUSCLK
CLKI
RESET#
Interfacing to 8-bit Processors S1D13708 Issue Date: 01/11/25 X39A-G-015-01
Decoder · System RESET

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.
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 generic 8-bit processor
CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1
= recommended setting for generic 8-bit processor
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 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25
Pin Name

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 S1D13708 Issue Date: 01/11/25 X39A-G-015-01

S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

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/
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/
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 S1D13708 Issue Date: 01/11/25 X39A-G-015-01

S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

Interfacing to the Motorola
MC68VZ328 Dragonball Microprocessor
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.

S1D13708 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

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 Table 4-3: WS Bit Programming 13
Figure 4-1: Typical Implementation of MC68VZ328 to S1D13708 Interface 11
Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-016-01

S1D13708 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

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 S1D13708 Issue Date: 01/11/25 X39A-G-016-01

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.
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 individ- ually 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 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

The S1D13708 directly supports multiple processors. The S1D13708 implements a Dragonball Host Bus Interface which directly supports the Motorola MC68VZ328 micro- processor.
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 config- uration. 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.
The following table shows the functions of each Host Bus Interface signal.
S1D13708 Pin Names Motorola MC68VZ328
DB[15:0] D[15:0]
WE1# UWE
CLKI CLKO
BS# Connect to IOVDD from the
RD/WR# Connect to IOVDD from the
RD# OE
WE0# LWE
WAIT# DTACK
Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-016-01
CS# CSx · M/R# External Decode · RESET# System RESET

The Host Bus Interface requires the following signals.
S1D13708 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

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.
A[16:0]
AB[16:0]
D[15:0]
DB[15:0]
CSB1
CS#
A17 M/R#
IO V DD
IO V DD
BS#
1K
RD/WR#
DTACK
WAIT#
UWE
WE1#
LWE
WE0#
OE
RD#
CLK0
CLKI
RESET#
Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-016-01
System RESET

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.
value on this pin at the rising edge of RESET# is used to configure: (1/0)
1 0 CNF[4, 2:0] 1110 = Dragonball 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 settings
= configuration for MC68VZ328 microprocessor
CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 reserved
= recommended setting for MC68VZ328 microprocessor
S1D13708 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25
S1D13708 Pin · Name

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.
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.
S1D13708 MCLK to BCLK Divide Ratio WS Bits (wait states)
MCLK = BCLK ÷ 2 9
MCLK = BCLK ÷ 3 12
Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-016-01

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 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-016-01

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/
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/
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 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

Interfacing to the Intel StrongARM
SA-1110 Microprocessor
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.

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

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 Table 4-3: RDFx Parameter Value versus CPU Maximum Frequency 15
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 S1D13708 Issue Date: 01/11/25 X39A-G-019-01

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

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 S1D13708 Issue Date: 01/11/25 X39A-G-019-01

The StrongARM SA-1110 microprocessor is a highly integrated communications micro- controller 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 perfor- mance, power efficient solution for embedded systems.
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.
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 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25
![Page 543 of the Epson LCD Controller (S1D13708) user manual — A[25:0]](/cdn/reader/4a/4a92e08fe4afba097e7592bf622f11c0da6f1b1d18cd4de4c11a7125495752dd/images/page-543.webp?w=400)
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.
ADDRESS VALID
RDY
DATA VALID D[31:0]
nCAS[3:0]
Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01
nCS4 · nOE · nWE
![Page 544 of the Epson LCD Controller (S1D13708) user manual — A[25:0]](/cdn/reader/4a/4a92e08fe4afba097e7592bf622f11c0da6f1b1d18cd4de4c11a7125495752dd/images/page-544.webp?w=400)
Figure 2-2: illustrates a typical variable-latency IO access write cycle on the SA-1110 bus.
ADDRESS VALID
RDY
DATA VALID D[31:0]
nCAS[3:0]
S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25
nCS4 · nWE · nOE

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 Configu- ration” 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.
The following table shows the functions of each Host Bus Interface signal.
S1D13708 Pin Name SA-1110 AB[16:0] A[16:0] DB[15:0] D[15:0] WE1# nCAS1 M/R# A17 CS# nCS4 CLKI SDCLK2 BS# VDD RD/WR# VDD RD# nOE WE0# nWE WAIT# RDY RESET# system RESET
Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01

The S1D13708 Generic #2 Host Bus Interface requires the following signals.
S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

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.
S1D13708
WE0#
WE1#
RD#
CS#
IO V DD
RDY
WAIT#
M/R# A17
RESET#
A[16:0]
AB[16:0]
D[15:0]
DB[15:0]
SDCLK2
CLKI
IO V DD
BS#
RD/WR#
Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01

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.
value on this pin at the rising edge of RESET# is used to configure: (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
CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1
= recommended setting for SA-1110
S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25
Pin Name

The SA-1110 requires configuration of several of its internal registers to interface to the S1D13708 Generic #2 Host Bus Interface.
Parameter RTx should be set to 01b (selects variable-latency IO mode).
Parameter RBWx should be set to 1 (selects 16-bit bus width).
Parameter RDFx should be set according to the maximum desired CPU frequency as indicated in the table below.
CPU Frequency (MHz) RDFx 57.3 - 85.9 1 88.5 - 143.2 2 147.5 - 200.5 3 206.4 - 221.2 4
Parameter RDNx should be set to 0 (minimum command precharge time).
Parameter RRRx should be set to 0 (minimum nCSx precharge time).
Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01

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.
If aliasing is not desirable, the upper addresses must be fully decoded.
S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

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 S1D13708 Issue Date: 01/11/25 X39A-G-019-01

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

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/
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/
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/
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 S1D13708 Issue Date: 01/11/25 X39A-G-019-01

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

Connecting to a Micro-Controller via the
Indirect Interface
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.

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

Table 3-1: Mode 68 8-Bit Data Host Bus Interface Pin Mapping 9 Table 3-2: Mode 68 16-Bit Data Host Bus Interface Pin Mapping 10 Table 3-3: Mode 80 8-Bit Data Host Bus Interface Pin Mapping 10 Table 3-4: Mode 80 16-Bit Data 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
Figure 4-1: Typical Implementation of Micro-Controller to S1D13708 Interface 13
Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

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 S1D13708 Issue Date: 01/12/12 X39A-G-020-01

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.
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 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

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.
The following table shows how the pins are connected in each of the Indirect modes.
S1D13708 Pin Names Mode 68
AB[16:0] connect to Vss
DB[15:8] connect to Vss
M/R# A0
CLKI BUSCLK
RD/WR# R/W#
RD# connect to Vss
RESET# RESET#
Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01
CS# Chip Select · WAIT# not connected

S1D13708 Pin Names connect to Vss
AB[16:0] connect to Vss
M/R# A0
CLKI BUSCLK
RD/WR# R/W#
RD# connect to Vss
RESET# RESET#
S1D13708 Pin Names connect to Vss
AB[16:0] connect to Vss
DB[15:8] connect to Vss
M/R# A0
CLKI BUSCLK
RD/WR# RDL#
RD# connect to VDD
RESET# RESET#
S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12
![Page 565 of the Epson LCD Controller (S1D13708) user manual — DB[15:0] D[7:0]](/cdn/reader/4a/4a92e08fe4afba097e7592bf622f11c0da6f1b1d18cd4de4c11a7125495752dd/images/page-565.webp?w=400)
S1D13708 Pin Names connect to Vss
AB[16:0] connect to Vss
M/R# A0
CLKI BUSCLK
RD/WR# RDL#
RD# RDU#
WE0# WRL#
RESET# RESET#
Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01
CS# Chip Select · WAIT# not connected

The S1D13708 Indirect Interface mode 68 and 80 host bus interface requires the following signals from a micro-controller.
The next three signals only apply to Mode 68:
Mode 68 requires the S1D13708 BS# and RD# signal inputs be tied to VSS.
The next four signals only apply to Mode 80:
Mode 80 requires the S1D13708 BS# input signal be tied to VDD.
S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

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.
CS#
A0 (RD1)
M/R#
R/W# (RD2) RD/WR#
EBL (RD3)
WE0#
D[7:0] (RB[7:0])
DB[7:0]
CLKI
RESET#
DB[15:8]
WE1#
RD#
BS#
AB[16:0]
Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01
MicroChip P18C452 S1D13708 · System CLK · System RESET

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.
value on this pin at the rising edge of RESET# is used to configure: (1/0)
1 0 CNF[4, 2:0] 0111 = Indirect Mode 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 generic 8-bit processor
CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1
= recommended setting for Indirect Mode
S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12
Pin Name

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 automat- ically 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 S1D13708 Issue Date: 01/12/12 X39A-G-020-01

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:
Example 1: The sequence for writing the S1D13708 register REG[7Ch] PIP+ Display Start with a value of 28h is:
Example 3: The sequence for writing to S1D13708 memory location 200h with two bytes of data is:
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 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

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(); 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(); 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(); 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 S1D13708 Issue Date: 01/12/12 X39A-G-020-01

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

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/
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/
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/
Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12
Pages referenced in this manual — manufacturer, support and downloads.
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.