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 law s .
EPSON is a registered trademark of Seiko Epson Corporation. All other Trademarks are the property of their respective owners
Seiko Epson Corp. provides to the system designer and computer OEM manufacturer a
complete set of resources and tools for the development of graphics systems.
Evaluation / Demonstration Board
• Assembled and fully tested graphics evaluation board with installation guide and schematics.
• To borrow an evaluation board, pl ease cont act your local Seiko Epson Corp. sales representative.
Chip Documentation
• Technical manual includes Data Sheet, Application Notes, and Programmer’s Reference.
Software
• OEM Utilities.
• User Utilities.
• Evaluation Software.
• To obtain these programs, contact Applicat ion Engineering Support.
Application Engineering Support
Engineering and Sales Support is provided by:
Japan
Seiko Epson Corporation
Electronic Devices Marketing Division
421-8, Hino, Hino-shi
Tokyo 191-8501, Japan
Tel: 042-587-5812
Fax: 042-587-5564
http://www.epson.co.jp
Hong Kong
Epson Hong Kong Ltd.
20/F., Harbour Centre
25 Harbour Road
Wanchai, Hong Kong
Tel: 2585-4600
Fax: 2827-4346
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
S1D13704 Embedded Memory Color LCD Controller Product Brief
SPECIFICATION
S1D13704 Hardware Functiona l Specification
PROGRAMMER’S REFERENCE
S1D13704 Programming Notes and Examples
S1D13704 Register Summary
UTILITIES
13704CFG.EXE File Configuration Program
13704SHOW Demonstration Program
13704SPLT Display Utility
13704VIRT Display Utility
13704PLAY Diagnostic Utility
13704BMP Demonstration Program
13704PWR Power Save Utility
DRIVERS
S1D13704 Windows® CE Display Drivers
EVALUATION
S5U13704B00C Rev. 1 ISA Bus Evaluation Board User Manual
APPLICATION NOTES
Interfacing to the Toshiba MIPS TX3912 Processor
Power Consumption
Interfacing to the Mo tor ola MC68328 Microprocessor
Interfacing to the NEC VR4102 Micr opr ocessor
Interfacing the S1D13704 to the PC Card Bus
Interfacing to the Mo tor ola MPC821 Microprocessor
Interfacing to the Mo tor ola MCF5307 Microprocessor
Interfacing to the Philips MIPS PR31500/PR31700 Processor
S5U13704/5-TMPR3912/22U CPU Module
Interfacing to an 8-Bi t Processor
The S1D13704 is a color/monochrome LCD graphics controller with an embedded 40K Byte SRAM display buffer.
The high integration of the S1D13704 provides a low cost, low power, single chip solution to meet the requirements of embedded markets such as Office Automation equipment, Mobile Communications devices, and Palmsize PCs where board size and battery life are major concerns.
Products requiring a “Portrait” display can take advantage of the Hardware Portrait Mode feature of the S1D13704.
Virtual and Split Screen are just some of the display modes supported. The above features, combined with the
Operating System independence of the S1D13704, make it the ideal s olution for a wide variety of applications .
■
FEATURES
Memory Interface
Embedded 40K byte SR AM dis pl ay bu ffer .
•
CPU Interface
Direct support of the following interfaces:
•
Hitachi SH-3.
Hitachi SH-4.
Motorola M68K.
MPU bus interface with programmable READY.
Direct memory mapping of internal registers.
•
CPU write buffer.
•
Display Support
4/8-bit monochrome LCD interface.
•
4/8-bit color LCD interface.
•
Single-panel, single-drive passive displays.
•
Dual-panel, dual-drive passive displays.
•
Active Matrix TFT / TFD in terface.
•
Register level suport for EL panels.
•
Example resolu tio ns :
•
640x480 at a color depth of 1 bpp
640x240 at a color depth of 2 bpp
320x240 at a color depth of 4 bpp
240x160 at a color depth of 8 bpp
Po wer Down Modes
Hardware and software Suspend modes.
•
LCD power-down sequencing.
•
Display Modes
Hardware Portrait Mode: direct ha rdware rotation
•
of display image for portrait mode display.
1/2/4 bit-per-pixel (bpp), 2/4/16-level grayscale
•
display.
1/2/4/8 bit-per-pixel, 2/4/16/256-level color display.
•
Up to 16 shades of gray by FRM on monochrome
•
passive LCD panels.
256 simultaneous of 4096 colors on color passive
•
and active matrix LCD panels.
Split screen display for all panel modes allows two
•
different images to be simultaneously displayed.
Virtual display support (displays images larger
•
than the panel size through the use of panning).
Clock Source
Single clock input f or bo th pix e l and memory clocks.
•
The S1D13704 clock source can be internally
•
divided down for a higher frequency clock input.
Dynamic switching of memory clocks in portrait
•
mode.
General Purpose IO Pins
Five General Purpose Input / Output pins available.
•
Operating Voltage
2.7 volts to 5.5 volts.
•
Package
80-pin QFP14 surface mount package.
•
X26A-C-001-07 1
Page 8
GRAPHICS
*
S1D13704
■
SYSTEM BLOCK DIAGRAM
CPU
Data and
Control Signals
S1D13704
CONTACT YOUR SALES REPRESENTATIVE FOR THESE
COMPREHENSIVE DESIGN TOOLS:
• S1D13704 Technical Manual
• S5U13704 Evaluation Boards
• Windows
CE Display Driver
• CPU Independent Software Utilities
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
Digital Out
Flat Panel
Actual Size
FOR SYSTEM INT EGRATION SERVICES
FOR WINDOWS® CE CONTACT:
Epson Research & Development, Inc.
Suite #320 - 11120 Horseshoe Way
Richmond, B.C., Canada V7A 5H7
Tel: (604) 275-5151
Fax: (604) 275-2167
Email: wince@erd.epson.com
http://www.erd.epson.com
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 law s .
EPSON is a registered trademark of Seiko Epson Corporation. All other Trademarks are the property of their respective owners
This is the Functiona l Specification f or the S1D13704 Embed ded Memory LCD Controlle r
Chip. Included in this document are timing diagrams, AC and DC characteristics, register
descriptions, and power management descriptions. This document is intended for two
audiences: Video Subsystem Designers and Software Developers.
Please check the Epson Electronics America website at http://www.eea.epson.com for the
latest revision of this document before beginning any development.
We appreciate your commen ts on our documentation. Please contact us via email at
techpubs@erd.epson.com.
1.2 Overview Description
The S1D13704 is a color / monochrome LCD graphics controller with an embedded 40K
Byte SRAM display buffer. The hig h integration of the S1D137 04 provides a low cost, low
power, single chip solution to meet the requirements of embedded markets such as Office
Automation equipment, Mobile Communic at ions devices, and Hand-Held PCs where
board size and battery life are major concerns.
Products requiring a “Portrait” display can take advantage of the Swivelview™ (90°
Hardware Rotate) feature of the S 1D13704. Virtual and Split Screen are just some of the
display modes supported. The above features, combined with the Operating System
independence of the S1D13704, make it the ideal solution for a wide variety of applications.
• SwivelView™: direct 90° hardware rotation of display image for portrait mode display.
• 1/2/4 bit-p er-pixel (bpp), 2/ 4/16-level grayshade d i s play.
• 1/2/4/8 bit-per-pixel, 2/4/16/256-level color display.
• Up to 16 shades of gray by FRM on monochrome passive LCD panels; a 16x4 LookUp-Table is used to map 1/2/4-bpp modes into these shades.
• 256 simultaneous of 4096 colors on color passive and active matrix LCD panels; three
16x4 Look-Up Tables are used to map 1/2/4/8-bpp modes into these colors.
• Split screen display for all landscape panel modes allows two different images to be
simultaneously displayed.
• Virtual display support (displays images larger than the panel size through the use of
panning).
2.5 Clock Source
• Maximum operating clock (CLK) frequency of 25MHz.
• Operating clock (CLK) is derived from CLKI input.
• Pixel Clock (PCLK) and Memory Clock (MCLK) are derived from CLK.
2.6 Miscellaneous
• Hardware/Software Video Invert.
• Software Power Save mode.
• Hardware Power Save mode.
• LCD power-down sequencing.
• 5 General Purpose Input/Out put pins are available.
• IO Operates from 3.0 volts to 5.5 volts
CLK = CLKI
or
CLK = CLKI/2
• GPIO0 is available if Hardware Power Save is not required.
• GPIO[4:1] are available if upper LCD data pins (FPDAT[11:8]) are not required for
Figure 4-1: System Block Diagram Showing Data Paths
4.1 Functional Block Descriptions
Power Save
Clocks
Look-Up
Table
Sequence Controller
LCD
I/F
LCD
4.1.1 Host Interface
The Host Interface provides the means for the CPU/MPU to communicate with the display
memory and internal re gisters.
4.1.2 Memory Controller
The Memory Controller arbitrates between CPU accesses and display refresh accesses. It
also generates the necessary signals to control the SRAM frame buffer.
4.1.3 Sequence Controller
The Sequence Controller controls data flow from the Memory Controller throug h the LookUp Table and to the LCD Interf ace. It als o generate s memory addr esses for display re fresh
accesses.
The Look-Up Table c ontain s thr ee 16x 4 Look- Up Table s or palet tes, one fo r each p rimary
color. In monochrome mode only one of these Look-Up Tables is used.
4.1.5 LCD Interface
The LCD Interface perfo rms fra me rate modulation for passive LCD panels. It also
generates the correct data format and timing control signa ls for various LCD and
TFT/D-TFD panels.
4.1.6 Power Save
Power Save contains the power save mode circuitry.
Supply VoltageVSS - 0.3 to 4.6V
Supply VoltageVSS - 0.3 to 6.0V
Input VoltageVSS - 0.3 to IO VDD + 0.5V
Output VoltageVSS - 0.3 to IO VDD + 0.5V
Storage Temperature-65 to 150° C
Solder Temperature/Time260 for 10 sec. max at lead° C
The SH-4 Wait State Control Register for the area in which the S1D13704 resides must be set to
a non-zero value. The SH-4 read-to-write cycle transition must be set to a non-zero value (with
reference to BUSCLK).
CKIO after BS# (write cycle)
DB[15:0] hold (write cycle)
DB[15:0] valid to RDY# fallin g edge setup ti me (read c ycle)
Rising edge RD# to DB[15: 0] high impedance (read cycle)
050MHz
1/f
CKIO
17ns
16ns
0ns
0ns
5ns
5ns
0ns
25ns
t1ns
20ns
20ns
20ns
0ns
0ns
0ns
10ns
Note
CKIO may be turned off (held low) between accesses - see Section 13.5, “Turning Off
BCLK Between Accesses” on page 86
Clock pulse wid th high
Clock pulse wid th lo w
A[15:0], RD/WR# setup to CKIO
A[15:0], RD/WR# hold from CS#
BS# setup
BS# hold
CSn# setup
Falling edge RD# to DB[15:0] driven
Rising edge CSn# to WAIT# high impedance
Falling edge CSn# to WAIT# dri ve n
CKIO to WAIT# delay
nd
DB[15:0] setup to 2
CKIO after BS# (write cycle)
DB[15:0] hold from rising edge of WEn# (write cycle)
DB[15:0] valid to RDY# fallin g edge s etup ti me (read cycle)
Rising edge RD# to DB[15: 0] high impedance (read cycle)
a
One Software WAIT State Required
050MHz
1/f
CKIO
17ns
16ns
0ns
0ns
5ns
5ns
0ns
0ns
0ns
0ns
a
Units
25ns
10ns
15ns
20ns
10ns
Note
CKIO may be turned off (held low) between accesses - see Section 13.5, “Turning Off
BCLK Between Accesses” on page 86
t1A[15:1], CS# valid before AS# falling ed ge0ns
t2A[15:1], CS# hold from AS# rising edge0ns
t3AS# low to DTACK# driven high16ns
t4CLK to DTACK# low15ns
t5AS# high to DTACK# high20ns
t6AS# high to DTACK# high impedanceT
t7UDS#, LDS# falling edge to D[15:0] valid (write cycle)T
t8D[15:0] hold from AS# rising edge (write cycle)0ns
t9UDS#, LDS# falling edge to D[15:0] driven (read cycle)15ns
t10D[15:0] valid to DTACK# falling edge (read cycle)0ns
t11UDS#, LDS# rising edge to D[15:0] high impedance10ns
Bus Clock Frequency033MHz
Bus Clock period1/f
CLK
CLK
CLK
Note
CLK may be turned off (held low) between accesses - see Section 13.5, “Turning Off
BCLK Between Accesses” on page 86
t1A[15:0], CS#, SIZ0, SIZ1 valid before AS# falling edge0ns
t2A[15:0], CS#, SIZ0, SIZ1 hold from AS#, DS# rising edge0ns
t3AS# low to DSACK1# driven high22ns
t4CLK to DSACK1# low18ns
t5AS# high to DSACK1# high26ns
t6AS# high to DSACK1# high impedanceT
t7DS# falling edge to D[31:16] valid (write cycle)T
CLK
CLK
/ 2
t8AS#, DS# rising edge to D[31:16] invalid (write cycle)0ns
t9D[31:16] valid to DSACK1# low (read cycle)0ns
t10AS#, DS# rising edge to D[31:16] high impedance20ns
Note
CLK may be turned off (held low) be tween accesses - see Section 13.5, “Turning Off
BCLK Between Accesses” on page 86
t2
t3WE0#, WE1# low to D[15:0] valid (write cycle)T
Bus Clock frequency050MHz
Bus Clock pe riod1/f
A[15:0], CS# valid to WE0#, WE1# low (write cyc le) or RD0#, RD1# low (read
cycle)
WE0#, WE1# high (write cycle) or RD0#, R D1# high (r e ad cy cl e) to A[15 :0],
CS# invalid
BCLK
0ns
0ns
BCLK
MHz
t4RD0#, RD1# low to D[15:0] driven (read cycle)17ns
t5WE0#, WE1# high to D[15:0] invalid (write cycle)0ns
t6D[15:0] valid to WAIT# high (read cycle)0ns
t7RD0#, RD1# high to D[15:0] high impedance (read cycle)10ns
t8
WE0#, WE1# low (write cycle) or RD0#, RD1# low (read cy c le) to WAIT#
driven low
16ns
t9BCLK to WAIT# high16ns
t10
WE0#, WE1# high (write cycle) or RD0#, RD1# high (read cycl e) to WAIT#
high impedance
11ns
Note
BCLK may be turned off (held low) between accesses - see Section 13.5, “Turning Off
BCLK Between Accesses” on page 86
t1A[15:0], BHE#, CS# valid to WE#, RD# low0ns
t2WE#, RD# high to A[15:0], BHE#,
t3WE# low to D[15:0] valid (write cycle)T
CS# invalid0ns
BCLK
t4WE# high to D[15:0] invalid (write cy cl e)0ns
t5RD# low to D[15:0] driven (read cycle)16ns
t6D[15:0] valid to WAIT# high (read cycle)0ns
t7RD# high to D[15:0] high impedance (read cycle)10ns
t8WE#, RD# low to WAIT# driven low14ns
t9BCLK to WAIT# high16ns
t10WE#, RD# high to WAIT# high impedance11ns
Note
BCLK may be turned off (held low) between accesses - see Section 13.5, “Turning Off
BCLK Between Accesses” on page 86
* Diagram drawn with 2 FPLINE vertical blank period
Example timing for a 320x240 panel
For this timing diag ram Mask FPSHIFT, REG[01h] bit 3, is set to 1
1-11-5
1-21-61-318
1-3
1-7
1-41-8
VDP
HDPHNDP
VNDP
1-317
1-319
1-320
LINE1 LINE2
Figure 7-10: Single Monoch rome 4-Bi t Panel Timing
VDP = V er ti cal Di splay Period = (REG[06h] bits 1-0, REG [05h] bits 7-0) + 1 Lines
VNDP =Vertical Non-Display Period = REG[0Ah] bits 5-0 Lines
HDP =Horizontal Displa y Period = ((REG[04h] bits 6-0) + 1) x 8Ts
HNDP =Horizonta l Non-Dis pl ay P er iod = (REG[08h] + 4) x 8Ts
* Diagram drawn with 2 FPLINE vertical blank period
Example timing for a 640x480 panel
For this t iming diagram Mask FPSH IFT, REG[01h] bit 3, is set to 1
Figure 7-12: Single Monoch rome 8-Bi t Panel Timing
VDP = V er ti cal Di splay Period = (REG[06h] bits 1-0, REG [05h] bits 7-0) + 1 Lines
VNDP =Vertical Non-Display Period = REG[0Ah] bits 5-0 Lines
HDP =Horizontal Displa y Period = ((REG[04h] bits 6-0) + 1) x 8Ts
HNDP =Horizonta l Non-Displ ay Per iod = (REG[08h] + 4) x 8Ts
Note: For this timing diagram Mask FPSHIFT, REG[01h] bit 3, is set to 1
t1
t2
t4
t8t9
t14
t3
t12t13
12
t10t11
Figure 7-13: Single Monoc hrome 8-Bit Panel A.C. Timing
SymbolParameterMinTypMaxUnits
t1Frame Pulse setup to Line Pulse falling edgenote 2(note 1)
t2Frame Pulse hold from Line Pulse fall ing ed ge9Ts
t3Line Pulse periodnote 3
t4Line Pulse pulse width9Ts
t5MOD delay from Line Pulse risin g edge1Ts
t6Shift Pulse falling edge to Line Pulse risin g edgenote 4
t7Shift Pulse falling edge to Line Pulse fallin g edgenote 5
t8Line Pulse falling edge to Shift Pul se fal lin g edget14 + 4Ts
t9Shift Pulse period8Ts
t10Shift Pulse puls e width low4Ts
t11Shift Pulse puls e width high4Ts
t12FPDAT[7:0] setup to Shift Pulse falling edge4Ts
t13FPDAT[7:0] hold to Shift Pulse falling edge4Ts
t14Line Pulse fal lin g edge to Shift Pulse rising edge23Ts
1. Ts= pixel clock period
2. t1
3. t3
4. t6
5. t7
= t3
min
= [((REG[04h] bits 6-0)+1) x 8 + ((REG[0 8h] bits 4-0) + 4) x 8]Ts
* Diagram d rawn with 2 FPLINE vertical blank period
Example timing for a 640x480 pane l
1-R1
1-G1
1-B1
1-R2
VDP
LINE1LINE2 LINE3LINE4
1-G2
1-B3
1-B2
1-R4
1-R3
1-G4
1-G3
1-B4
HDP
LINE479 LINE480
VNDP
LINE1 LINE2
HNDP
1-B319
1-R320
1-G320
1-B320
Figure 7-14: Single Color 4-Bit Panel Timing
VDP = V er ti cal Di splay Period = (REG[06h] bits 1-0, REG [05h] bits 7-0) + 1 Lines
VNDP =Vertical Non-Display Period = REG[0Ah] bits 5-0 Lines
HDP =Horizontal Displa y Period = ((REG[04h] bits 6-0) + 1) x 8Ts
HNDP =Horizonta l Non-Displ ay Per iod = (REG[08h] + 4) x 8Ts
* Diagram drawn with 2 FPLINE vertical blank period
Example timing for a 640x480 panel
Figure 7-16: Single Color 8-Bit Panel Timing (Format 1)
VDP = V er ti cal Di splay Period = (REG[06h] bits 1-0, REG [05h] bits 7-0) + 1 Lines
VNDP =Vertical Non-Display Period = REG[0Ah] bits 5-0 Lines
HDP =Horizontal Displa y Period = ((REG[04h] bits 6-0) + 1) x 8Ts
HNDP =Horizonta l Non-Displ ay Per iod = (REG[08h] + 4) x 8Ts
* Diagram drawn with 2 FPLINE vertical blank period
Example timing for a 640x480 panel
Figure 7-18: Single Color 8-Bit Panel Ti ming (Format 2)
VDP = V er ti cal Di splay Period = (REG[06h] bits 1-0, REG [05h] bits 7-0) + 1 Lines
VNDP =Vertical Non-Display Period = REG[0Ah] bits 5-0 Lines
HDP =Horizontal Displa y Period = ((REG[04h] bits 6-0) + 1) x 8Ts
HNDP =Horizonta l Non-Displ ay Per iod = (REG[08h] + 4) x 8Ts
Figure 7-19: Single Color 8-Bit Panel A.C. Timing (Format 2)
SymbolParameterMinTypMaxUnits
t1Frame Pulse setup to Line Pulse falling edgenote 2(note 1)
t2Frame Pulse hold from Line Pulse fal lin g edge9Ts
t3Line Pulse periodnote 3
t4Line Pulse pulse width9Ts
t5MOD delay from Line Pulse rising edge1Ts
t6Shift Pulse falling edge to Line Pulse rising edgenote 4
t7Shift Pulse falling edge to Line Pulse falling edgenote 5
t8Line Pulse falling edge to Shift Pulse falling edget14 + 2Ts
t9Shift Pulse period2Ts
t10Shift Pulse pulse width low1Ts
t11Shift Pulse pulse width high1Ts
t12FPDAT[7:0] setup to Shift Pulse falling edge1Ts
t13FPDAT[7:0] hold to Shift Pulse falling edge1Ts
t14Line Pulse falling edge to Shift Pulse rising edge23Ts
1. Ts= pixel clock period
2. t1
3. t3
4. t6
5. t7
= t3
min
= [((REG[04h] bits 6-0)+1) x 8 + ((REG[0 8h] bits 4-0) + 4) x 8]Ts
LINE 1/241 LINE 2/242 LINE 3/243 LINE 4/244LINE 239/479 LINE 240/480LINE 1/241 LINE 2/242
HDP
1-11-5
1-21-61-638
1-3
1-7
1-41-8
241-1 241-5
241-2 241-6
241-3 241-7
241-4 241-8
VNDP
HNDP
1-637
1-639
1-640
241-637
241-638
241-639
241-640
* Diagram drawn with 2 FPLINE verti cal blank period
Example timing for a 640x480 panel
Figure 7-20: Dual Monochrome 8-Bit Panel Timing
VDP = V er ti cal Di splay Period = (REG[06h] bits 1-0, REG [05h] bits 7-0) + 1 Lines
VNDP =Vertical Non-Display Period = REG[0Ah] bits 5-0 Lines
HDP =Horizontal Displa y Period = ((REG[04h] bits 6-0) + 1) x 8Ts
HNDP =Horizonta l Non-Displ ay Per iod = (REG[08h] + 4) x 8Ts
Figure 7-21: Dual Monochrome 8-Bit Panel A.C. Timing
t1t2
t4
t5
t6
t8t9
t7
t14t10t11
t3
t12t13
12
SymbolParameterMinTypMaxUnits
t1Frame Pulse setup to Line Pulse falling edgenote 2(note 1)
t2Frame Pulse hold from Line Pulse falling edge9Ts
t3Line Pulse periodnote 3
t4Line Pulse pulse width9Ts
t5MOD delay from Line Pulse fall ing edge1Ts
t6Shift Pulse falling edge to Line Pulse rising edgenote 5
t7Shift Pulse falling edge to Lin e Pulse falling edgenote 6
t8Line Pulse falling edge to Shi ft Pulse falling edget14 + 4Ts
t9Shift Pulse period8Ts
t10S hift Pul se pul se w idt h low4Ts
t11S hift Pul se pul se w idt h high4Ts
t12FPDAT[7:0] setup to Shift Pulse falling edge4Ts
t13FPDAT[7 :0] hold to Shift Pulse falling edge4Ts
t14Lin e Pulse fal li ng edge to Shift Pulse rising edge39Ts
1. Ts= pixel clock period
2. t1
3. t3
5. t6
6. t7
= t3
min
= [(((REG[04h] bits 6-0)+1) x 8 + ((REG[08h] bits 4-0) + 4) x 8) x 2]Ts
LINE 1/241 LINE 2/242LINE 239/479 LINE 240/480LINE 1/241
VNDP
HDP
1-R1
1-G1
1-B1
1-R2
241-R1
241-G1
241-B1
241-R2
1-G2
1-B2
1-R3
1-G3
241-G2
241-B2
241-R3
241-G3
1-B3
1-R4
1-G4
1-B4
241-B3
241-R4
241-G4
241-B4
1-R5
1-G5
1-B5
1-R6
241-R5
241-G5
241-B5
241-R6
1-G6
1-B6
1-R7
1-G7
241-G6
241-B6
241-R7
241-G7
1-B7
1-R8
1-G8
1-B8
241-B7
241-R8
241-G8
241-B8
1-B639
1-R640
1-G640
1-B640
241B639
241R640
241-
G640
241-
B640
HNDP
* Diagram drawn with 2 FPLINE verti cal blank period
Example timing for a 640x480 panel
Figure 7-22: Dual Color 8-Bit Panel Timing
VDP = V er ti cal Di splay Period = (REG[06h] bits 1-0, REG [05h] bits 7-0) + 1 Lines
VNDP =Vertical Non-Display Period = REG[0Ah] bits 5-0 Lines
HDP =Horizontal Displa y Period = ((REG[04h] bits 6-0) + 1) x 8Ts
HNDP =Horizonta l Non-Displ ay Per iod = (REG[08h] + 4) x 8Ts
t1Frame Pulse setup to Line Pulse fallin g edgenote 2(note 1)
t2Frame Pulse hold from Line Pulse falling edge9Ts
t3Line Pulse periodnote 3
t4Line Pulse pulse width9Ts
t5MOD delay from Line Pulse falling ed ge1Ts
t6Shift Pulse falling edge to Line Pulse rising edgenote 5
t7Shift Pulse falling edge to Line Pulse falling edgenote 6
t8Line Pulse falling edge to Shift Pulse falling edget14 + 1Ts
t9Shift Pulse period2Ts
t10Shift Pulse pulse width low1Ts
t11Shift Pulse pulse width high1Ts
t12FPDAT[7:0] setup to Shift Pulse falling edge1Ts
t13FPDAT[7:0] hold to Shift Pulse falling edge1Ts
t14Line Pulse falling edge to Shift Pulse rising edge39Ts
1. Ts= pixel clock period
2. t1
3. t3
5. t6
6. t7
= t3
min
= [(((REG[04h] bits 6-0)+1) x 8 + ((REG[08h] bits 4-0) + 4) x 8) x 2]Ts
t12
t13DRDY to Shift Pulse falling edge setup time0.5Ts
t14DRDY pulse widthnote 5
t15DRDY falling edge to Line Pulse falling edgenote 6
t16DRDY hold from Shift Pulse falling edge0.5Ts
t17Line Pulse Falling edge to DRDY activenote 7250
Shift Pulse period1(note 1)
Shift Pulse pulse width high0.5Ts
Shift Pulse pulse width low0.5Ts
Data setup to Shift Pulse fallin g edge0.5Ts
Data hold from Shift Pulse falling edge0.5Ts
Line Pulse cycle timenote 2
Line Pulse pulse width low9Ts
Frame Pulse falling edge to Lin e Pulse falling
edge phase differenc e
t6 - 18Ts
1. Ts = pixel clock period
2. t6min = [((REG[04h] bits 6-0)+1) x 8 + ((REG[08h] bits 4-0)+4) x 8] Ts
The S1D13704 registers are located in the upper 32 bytes of the 64K byte S1D13704
address range. The registers are accessible when CS# = 0 and AB[15:0] are in the range
FFE0h through FFFFh.
8.2 Register Descriptions
Unless specified otherwise, all register bits are reset to 0 during power up.
REG[00h] Revision Code Register
Address = FFE0hRead Only
Product Code
Bit 5
Product Code
Bit 4
Product Code
Bit 3
Product Code
Bit 2
Product Code
Bit 1
Product Code
Bit 0
Revision
Code Bit 1
Revision
Code Bit 0
bits 7-2Product Code
This is a read-only register that indicates the product code of the chi p. The pro duct co de i s
000110.
bits 1-0Revision Code
This is a read-only regis ter that indic ates the re vision code of the chip. The re vision code is
00.
REG[01h] Mode Register 0
Address = FFE1hRead/Write.
TFT/STNDual/SingleColor/Mono
FPLine
Polarity
FPFrame
Polarity
Mask
FPSHIFT
Data Width
Bit 1
Data Width
Bit 0
bit 7TFT/STN
When this bit = 0, STN (passive) panel mode is selected. When this bit = 1, TFT/D-TFD
panel mode is selected. If TFT/D- TFD panel mode is s elected , Dual/Si ngle ( REG[01h] bit
6) and Color/Mono (REG[01h] bit5) are ignored. See Table 8-1: “Panel Data Format”
below.
bit 6Dual/Single
When this bit = 0, Single LCD pane l drive is selected. When this bit = 1, Dual LCD panel
drive is selected. See Table 8-1: “Panel Data Format” below.
bit 5Color/Mono
When this bit = 0, Monochrome LCD panel drive is selected. When this bit = 1, Color
LCD panel drive is selected. See Table 8-1: “Panel Data Format” below.
This bit controls the polarity of FPLINE in TFT/D-TFD mode (no effect in passive panel
mode). When this bit = 0, FPLINE is ac tive low. When this bit = 1, FPLINE is active high.
bit 3FPFRAME Polarity
This bit controls the polarity of FPFRAME in TFT/D-TF D mode (no effect in passive
panel mode). When this bit = 0, FPFRAME is active low. When this bit = 1, FPFRAME is
activ e high.
bit 2Mask FPSHIFT
FPSHIFT is masked during non-display periods if either of the following two criteria is
met:
1. Color passive panel is selected (REG[01h] bit 5 = 1)
2. This bit (REG[01h] bit 2) = 1
bits 1-0Data Width Bits [1:0]
These bits select the display data format. See Table 8-1: “Panel Data Format” below.
Table 8-1: Panel Data Format
TFT/STN
REG[01h] bit 7
0
1X (don’t care)
Color/Mono
REG[01h] bit 5
0
1
Dual/Single
REG[01h] bit 6
0
1
0
1
Data Width
Bit 1
REG[01h] bit 1
0
1
0
1
0
1
0
1
Data Width
Bit 0
REG[01h] bit 0
0Mono Sing le 4-bi t pass iv e LCD
1Mono Sing le 8-bi t pass iv e LCD
0reserved
1reserved
0reserved
1Mono Dual 8-bit passive LCD
0reserved
1reserved
0Color Single 4-bit passive LCD
1Color Single 8-bit passive LCD format 1
0reserved
1Color Single 8-bit passive LCD format 2
0reserved
1Color Dual 8-bit passive LCD
0reserved
1reserved
09-bit TFT/D-TFD panel
112-bit TFT/D-TFD panel
These bits select the color or gray-shade depth (Display Mode).
Table 8-2: Gray Shade/Color Mode Selection
Color/Mono
REG[01h] bi t 6
0
1
Bit-Per -Pix el Bit 1
REG[02h] bi t 7
0
1
0
1
Bit-Per-Pixel Bit 0
REG[02h] bit 6
bit 5High Performance (Landscape Modes Only)
When this bit = 0, the internal Memory clock (MCLK) is a divided-down version of the
Pixel clock (PCLK). The denominator is dependent on the bit-per-pixel mode - see the
table below.
0MClk = PClk/ 81 bit-per-pix el
1MClk = PClk/ 42 bit-per-pix el
0MClk = PClk/ 24 bit-per-pix el
1MClk = PClk8 bit-per-pixel
When this bit = 1, MCLK is fix ed to the same frequency as PCLK for all bit-per-pixel
modes. This pro vides a f aster s creen u pdate per formance in 1 , 2, 4 bit-pe r- pixel modes , b ut
also increases power consumption. This bit can be set to 1 just before a major screen
update, then set back to 0 to save power after the update. This bit has no effect in SwivelView mode. Refer to REG[1Bh] SwivelView Mode Register on page 68 for SwivelView
mode clock selection.
When this bit = 0, the operating clock(CLK) is same as the input clock (CLKI). When this
bit = 1, CLK = CLKI/2.
In landscape mode PCLK=CLK and MCLK is selected as per Table 8-3: “High Performance Selection”.
In SwivelView mode MCLK and PCLK are derived from CLK as shown in Table 8-9:
“Selection of PCLK and MCLK in SwivelView Mode,” on page 69.
bit 3Display Blank
This bit blanks the display image. When this bit = 1, the display is blanked (FPDAT lines
to the panel ar e driven low). When this bit = 0, the display is enabled.
bit 2Frame Repeat (EL support)
This feature is used to improve Frame Rate Modulation of EL panels. When this bit = 1,
an internal fram e counter runs from 0 to 3FFFFh. When the frame counter rolls over, the
modulated image pattern is repeated (every 1 hour when the frame rate is 72Hz). When
this bit = 0, the modulated image pattern is never repeated.
bit 1Hardware Video Invert Ena ble
In passive panel modes (REG[01h] bit 7 = 0) FPDAT11 is available as either GPIO4 or
hardware video invert. When this bit = 1, Hardware Video Invert is enabled via the
FPDAT11 pin. When this bit = 0, FPDAT11 operates as GPIO4. See Table 8-4: “Inverse
Video Mode Select Options” below.
Note
Video data is inverted after the Look-Up Table.
bit 0Software Video Invert
When this bit = 1, Inverse video mode is selected. When this bit = 0, standard video mode
is selected. See Table 8-4: “Inverse Video Mode Select Opt ions” below .
When the Look-Up Table Bypass bit = 0, the Green Look-Up Table is used for display
data output in gray shade modes. When this bit = 1, the Look -Up Table is bypassed for display data output in gray shade modes (for power save purposes). See “Look-Up Table
Architecture” on pag e72.
There is no effect on changi ng this bit in color mo des. In color display mode the Look-Up
Table cannot be bypassed.
bit 3LCDPWR Override
This bit is used to o v erride t he panel on /of f seque ncing logi c. When this bi t = 0, LCDPWR
and the panel interface signals are controlled by the sequencing logic. When this bit 1,
LCDPWR is forced to of f and t he pan el inte rf ace si gnals a re fo rced l ow immediately upon
entering power save mode. See Section 7.3.2, “Power Down/Up Timing” on page 36 for
further information.
bit 2Hardware Power Save Enable
When this bit = 1 GPIO0 i s us ed a s t he Ha rd ware Power Save input pin. When this bit = 0
GPIO0 operates normally.
Table 8-5: Hardware Power Save/GPIO0 Operation
RESET#
State
0XXX
100reads pin status
1010GPIO0 Output = 0
1011GPIO0 Output = 1
11XX
Hardware Power
Save Enable
REG[03h] bit 2
bits 1-0So ftware Power Save Bits [1: 0]
These bits select the Power Save Mode as shown in the fol lowing table.
Table 8-6: Software Power Save Mode Selection
Bit 1Bit 0Mode
00Software Power Save
01reserved
10reserved
11Normal Operation
This register must not be set to a value le ss than 03h.
REG[05h] Vertical Panel Size Register (LSB)
Address = FFE5hRead/Write
Vertical Panel
Size
Bit 7
Vertical Panel
Size
Bit 6
Vertical Panel
Size
Bit 5
Vertical Panel
Size
Bit 4
Vertical Panel
Size
Bit 3
Vertical Panel
Size
Bit 2
Vertical Panel
Size
Bit 1
Vertical Panel
Size
Bit 0
.
REG[06h] Vertical Panel Size Register (MSB)
Address = FFE6hRead/Write
n/an/an/an/an/an/a
Vertical Panel
Size
Bit 9
Vertical Panel
Size
Bit 8
REG[05h] bits 7-0Ve rt i c al Panel Size Bits [9 :0]
REG[06h] bits 1-0This 10-bit register determines the vertical resolution of the panel. This regist er must be
programmed with a value cal cul at ed as fol lows:
These bits are used in TFT/D-TFD mode to specify the position of the FPLINE pulse.
These bits specify the delay, in 8-pixel resolution, from the end of a line of di splay data
(FPDAT) to the leading edge of FPLINE. This register is effective in TFT/D-TFD mode
only (REG[01h] bit 7 = 1). This register is programmed as follows:
FPLINEposition pixels()REG 07h[]2+()8×=
The following constraint must be satisfied:
REG 07h[]REG 08h[]≤
REG[08h] Horizontal Non-Display Period
Address = FFE8hRead/Write
n/an/an/a
Horizontal
Non-Display
Period Bit 4
Horizontal
Non-Display
Period Bit 3
Horizontal
Non-Display
Period Bit 2
Horizontal
Non-Display
Period Bit 1
Horizontal
Non-Display
Period Bit 0
bits 4-0Horizontal Non-Display Period
These bits specify the horizontal non-display period in 8-pixel resolution.
These bits are used in TFT/D-TFD mode to specify the position of the FPFRAME pulse.
These bits specify the number of lines between the last line of display data (FPDAT) and
the leading edge of FPFRAME. This reg ister is effective in TFT/D-TFD mode only
(REG[01h] bit 7 = 1).
FPFRAMEposition lines()REG 09h[]=
The contents of this re giste r must be great er than zero and less t han or equal to the Vertical
Non-Display Period Regis te r, i.e.
This bit =1 during the Vertical Non-Display period.
bits 5-0Vertical Non-Display Period
These bits specify the vertic al non-displa y period.
VerticalNonDisplayPeriod lines()REG 0Ah[]=
Note
This register should be set only once, on power-up during initialization.
.
REG[0Bh] MOD Rate Register
Address = FFEBhRead/Write
n/an/a
MOD Rate
Bit 5
MOD Rate
Bit 4
MOD Rate
Bit 3
MOD Rate
Bit 2
MOD Rate
Bit 1
MOD Rate
Bit 0
bits 5-0MOD Rate Bits [5:0]
When the valu e of this register is 0, the MOD output signal toggles every FPFRAME. For
a non-zero value, the value in this register + 1 specifies the number of FPLINEs between
toggles of the MOD output sig nal. These bits are for passi ve LCD panels only.
REG[0Ch] Screen 1 Start Address Register (LSB)
Address = FFEChRead/Write
Screen 1 Start
Address
Bit 7
Screen 1 Start
Address
Bit 6
Screen 1 Start
Address
Bit 5
Screen 1 Start
Address
Bit 4
Screen 1 Start
Address
Bit 3
Screen 1 Start
Address
Bit 2
Screen 1 Start
Address
Bit 1
Screen 1 Start
Address
Bit 0
REG[0Dh] Screen 1 Start Address Register (MSB)
Address = FFEDhRead/Write
Screen 1 Start
Address
Bit 15
Screen 1 Start
Address
Bit 14
Screen 1 Start
Address
Bit 13
Screen 1 Start
Address
Bit 12
Screen 1 Start
Address
Bit 11
Screen 1 Start
Address
Bit 10
Screen 1 Start
Address
Bit 9
Screen 1 Start
Address
Bit 8
REG[0Dh] bit 6-0Screen 1 Start Address Bits [14:0]
REG[0Ch] bit 7-0These bits determine the word address of the start of Screen 1 in landscape modes or the
byte address of the start of Screen 1 in SwivelView modes.
REG[0Dh] bit 7Screen 1 Start Address Bit 15
This bit is for SwivelView mode only and has no effec t in Landscape mode.
REG[10h] bit 6-0Screen 2 Start Address Bits [14:0]
REG[0Fh] bit 7-0These bits determine the word address of the start of Screen 2 in landscape modes or the
byte address of the start of Screen 2 in SwivelView modes.
REG[10h] bit 7Screen 2 Start Address Bit 15
This bit is for SwivelVi ew mode only and has no effect in Landscape mode.
REG[12h] Memory Address Offset Register
Address = FFF2hRead/Write
Memory
Address
Offset Bit 7
bits 7-0
Memory
Address
Offset Bit 6
Memory Address Offset
Memory
Address
Offset Bit 5
Memory
Address
Offset Bit 4
Memory
Address
Offset Bit 3
Memory
Address
Offset Bit 2
Bits [7:0] (Landscape Modes Only)
Memory
Address
Offset Bit 1
Memory
Address
Offset Bit 0
This registe r is used to creat e a virtual imag e by setting a word offset be tw een the last
address of one line and the f irs t addr ess of the fo ll o wing l ine. I f thi s register is not equal to
zero, then a virtual image is formed. The displayed image is a window into the larger virtual image. See Figure 8-1: “Screen-Register Relationship, Split Screen,” on page 64.
This register has no effect in SwivelView modes. See “REG[1Ch] Line Byte Count Register for SwivelView Mode” on page69.
REG[14h] bits 1-0Screen 1 Vertical Size Bits [9:0]
REG[13h] bits 7-0This register is use d to implement the Split Screen feature of the S1D13704. These bits
determine the height (in lines) of Screen 1. On reset this register is set to 0h.
In landscape modes, if this r e gis ter i s progr ammed with a value, n, where n is less than the
Vertical Panel Si ze (REG[06 h], REG[05h] ), then l ines 0 to n of the panel con tain Scr een 1
and lines n+1 to REG[06h], REG[05h] of the panel contain Screen 2. See Figure 8-1:
“Screen-Register Relationship, Split Screen,” on page 64. If Split Screen is not desired,
this register must be programmed greater than, or equal to the Vertical Panel Size,
REG[06h] and REG[05h].
In Swivel View modes this regi ster must be programmed gr eater than, or equal to the Vertical Panel Size, REG[06h] and REG[05h]. See “Swivel View™” on page 79.
Where:
(REG[0Dh], REG[0Ch]) is the Screen 1 Start Word Address
BPP is Bits-per-Pixel as set by REG[02h] bits 7:6
REG[12h] is the Address Pitch Adjustment in Words
(REG[10h], REG[0Fh]) is the Screen 2 Start Word Address
(REG[14h], REG[13h]) is the Screen 1 Vertical Size
(REG[06h], REG[05h]) is the Vertical Panel Size
Consider an example wher e REG[14h], REG[13h]= 0CEh for a 320x240 display system.
The upper 207 lines (CEh + 1) of the panel show an image from the Screen 1 Start Word
Address. The remaining 33 lines show an image from the Screen 2 Start Word Address.
The S1D13704 has three 16-p osition, 4 -bit wi de Look- Up Tables, one each for re d, green ,
and blue. Refer to “Look-Up Table Architecture” for details. This register selects which
Look-Up Table position is read/ write ac cessible through t he Look-Up Table Data Register
(REG[17h]).
bits 5-4RGB Index Bits [1:0]
These bits select between the Red, Green, and Blue Look-Up Tables, and Auto-Increment
mode. The Green Look-Up Table is used in monochrome mode with these bits set to 10b.
See Note below.
bits 3-0Look-Up Table Address Bits [3:0]
These 4 bits select one of the 16 positions in the selected Look-Up Table. These bits are
automatically changed as the Look-Up Table Data Register is accessed. See Note below.
Note
Accesses to the Look-Up Table Data Register automatically increment a pointer into the
RGB Look-Up Tables. The pointer sequence varies as shown in the table below.
101Red Look-Up Ta ble R[n], R[n+1], R[n+2],...
110
111Blue Look-Up Table B[n], B[n+1], B[n+2],...
Look-Up Table
Selected
Green/Gray Look-Up
Table
Green/Gray Look-Up
Table
Pointer Sequence
G[n], G[n+1], G[n+2],...
G[n], G[n+1], G[n+2],...
In Auto-Increment mode, writing the Look-Up Table Address Register automatically
sets the pointer to the Red Look-Up Table. For exam ple, writing a value 03 into the
Look-Up Table Address Register selects Auto-Increment mode and sets the pointer to
R[3]. Subsequent accesses to the Look-Up Table Data Register move the point er onto
G[3], B[3], R[4], etc.
In 1 bit-per-pixel (bpp) color mode the lowe r 8 positions of the Red Look-Up T a ble is
arranged into four banks, each with two positions. These two bits select which bank is
used for display data.
In 2 bpp color mode the 16 position Red Look-Up Table is arranged into four banks, each
with four positions. These two bits select which bank is used for display data.
These bits hav e no effect in 4 bpp color/gray modes.
In 8 bpp color mode the 16 positio n, Red Look-Up Table is arranged into two banks, each
with eight positions. R ed Bank Select bit 0 selects which bank is used for display data.
bits 3-2Green Bank Select Bits [1:0]
In 1 bit-per-pi xel ( bpp) color /gray mode th e lo wer 8 posit ions of t he Green Look-Up Table
is arranged into four banks, each with two positions. These two bits select which bank is
used for display data.
In 2 bpp color/gray mode, the 16 position Green Look-Up Table is arranged into four
banks, each with four positions. These two bits select which bank is used for display data.
These bits hav e no effect in 4 bpp color/gray modes.
In 8 bpp color mode, the 16 position Green Look-Up Table is arranged into two banks,
each with eight positions. Green Bank Select bit 0 selects which bank is used for display
data.
bit 1-0Blue Bank Select Bits [1:0]
In 1 bit-per-pixel (bpp) color mode the lower 8 positions of the Blue Look-Up Table is
arranged into four banks, each with two positions. These two bits select which bank is
used for display data.
In 2 bpp color mode, the 1 6 posi tion Blue Look- Up Table is arranged i nto four banks, eac h
with four positions. These two bits select which bank is used for display data.
These bits hav e no effect in 4 bpp color/gray modes.
In 8 bpp color mode, the 1 6 posi tion Blue Look- Up Table is arranged i nto four banks, eac h
with four positions. These two bits select which bank is used for display data.
This register is used to read/write the RGB Look-Up Tables. This register is an apert ure
into the three 16-position Look-Up Tables. The Look-Up Table Address Register
(REG[16h]) selects whi ch Look- Up Table position is accessible. See REG[16h] Look-Up
Table Bank Select Register on page 66.
REG[18h] GPIO Configuration Control Register
Address = FFF8hRead/Write
n/an/an/a
GPIO4 Pin IO
Configuration
GPIO3 Pin IO
Configuration
GPIO2 Pin IO
Configuration
GPIO1 Pin IO
Configuration
GPIO0 Pin IO
Configuration
bits 4-0GPIO[4:0] Pin IO Configuration
These bits determine the direction of the GPIO[4:0] pins.
When GPIOn Pin IO Conf iguration bit = 0, the corresponding GPIOn pi n is configured as
an input. The input can be read at the GPIOn Status/Control Register bit. See REG[19h]
below.
When GPIOn Pin IO Conf iguration bit = 1, the corresponding GPIOn pi n is configured as
an output. The output can be controlled by writing the GPIOn Status/Control Register bit.
Note
These bits have no effect when the GPIOn pin is configured for a specific function (i.e.
as FPDAT[11:8] for TFT/D-TFD operation). All unused GPIO pins must be tied to
DD
.
GPIO4 Pin IO
Status
GPIO3 Pin IO
Status
GPIO2 Pin IO
Status
GPIO1 Pin IO
Status
GPIO0 Pin IO
Status
IO V
REG[19h] GPIO Status/Control Register
Address = FFF9hRead/Write
n/an/an/a
bits 4-0GPIO[4:0] Status
When the GPIOn pin is conf i gur ed as an input, the corresponding GPIO Status bit is us ed
to read the pin input. See REG[18h] above.
When the GPIOn pin is c onf igured as an output , the corr esponding GPIO Status bit is us ed
to control the pin output.
Scratch bit 7Scratch bit 6Scratch bit 5Scratch bit 4Scratch bit 3Scratch bit 2Scratch bi t 1Scratch bit 0
bits 7-0Scratch Pad Register
This register contains general use read/write bits. These bits have no effect on hardware.
REG[1Bh] SwivelView Mode Register
Address = FFFBhRead/Write
SwivelView
Mode Enable
SwivelView
Mode Select
n/an/an/areserved
SwivelView
Mode Pixel
Clock Select
Bit 1
SwivelView
Mode Pixel
Clock Select
Bit 0
bit 7SwivelView Mode Enable
When this bit = 1, SwivelView Mode is enabled. Whe n this bit = 0, Landscape Mode is
enabled.
bit 6SwivelView Mode Select
When this bit = 0, Default SwivelView Mode is selected. When this bit = 1, Alternate
SwivelView Mode is selected. See Section 12, “SwivelView™” on page 79 for further
information on SwivelView Mode.
The following table shows the selection of SwivelView Mode.
These two bits select the Pixel Clock (PCLK) source in SwivelView Mode - these bi ts
have no effect in Landscape Mode. The following table shows the selection of PCLK and
MCLK in SwivelView Mode - see Section 12, “SwivelView™” on page 79 for details.
Where CLK is CLKI (REG[02h] bit 4 = 0) or CLKI/2 (REG[02h] bit 4 = 1)
PCLK =MCLK =
REG[1Ch] Line Byte Count Register for SwivelView Mode
Address = FFFChRead/Write
Line Byte
Count bit 7
Line Byte
Count bit 6
Line Byte
Count bit 5
Line Byte
Count bit 4
Line Byte
Count bit 3
Line Byte
Count bit 2
Line Byte
Count bit
1
Line Byte
Count bit
0
bits 7-0Line Byte Count Bits [7:0]
This register is the byte count from the beginning of one line to the beginning of the next
consecutiv e line (common ly called “stride ” by programmers). This re gister may be used to
create a virtual image in SwivelView mode.
REG[1Eh] and REG[1Fh]
REG[1Eh] and REG[1Fh] are reserved for factory S1D13704 testing and should not be
written. Any value wri tten to t hese regis ters may r esult i n damage to t he S1D1 3704 and/o r
any panel connected to the S1D13704.
REDGREENBLUE
2-level gray
4-level gray4 banks of 4
16-level gray1 bank of 16
2 color4 bank of 24 bank of 24 bank of 2
4 color4 banks of 44 banks of 44 banks of 4
16 color1 bank of 161 bank of 161 bank of 16
256 color2 banks of 82 banks of 84 banks of 4
Indicates the Lo ok-Up Table is not used for that display mode
The following figures are inte nded to show the display data output path only. The CPU
R/W access to the individual Look-Up Tables is not affected by the vari ous ‘banking’
configurations.
Many of todays applications use the LCD panel in a portrait orientation. In this case it
becomes necessary to “ rot at e” the displayed image. This rotation can be done by software
at the expense of performance or, as with the S1D13704, it can be done by hardware with
no CPU penalty.
There are tw o SwivelView modes: Default SwivelView and Alter nate SwivelView.
12.1 Default SwivelView Mode
Default SwivelView Mode requir es the po rtra it image width be a power of tw o, e.g. a 240line panel requires a minimum virtual image width of 256. This mode should be used
whenever the required virtual image can be contained within the integrated display buffer
(i.e. virtual image size ≤ 40k bytes), as it consumes less power than th e Alternate
SwivelView mode.
physical
memory
start
address
For example, the panel size is 320 x240 and the display mode is 4 bit-per- pixel. The vi rtual
image size is 320x256 which can be contained within the 40k Byte display buffer.
Default SwivelView Mode also requi res memory clock (MCLK) ≥ pixel clock (PCLK).
The following figure sho ws how the programmer sees a 240x320 image and how the image
is displayed. The application image is written to the S1D13704 in the following sense:
A–B–C–D. The display is refreshed by the S1D13704 in the following sense: B-D-A-C.
256
AB
SwivelView
320
C
window
D
240
E
display
start
address
E
B
window
A
SwivelView
320
D
256
240
C
image seen by programmer
= image in display buffer
image refreshed by S1D13704
Figure 12-1: Relationship Between The Screen Image and the Image Refreshed by S1D13704
The following describes the register settings needed to set up Default SwivelView Mode
for a 240x320x4 bpp image:
• Select Default SwivelView Mode: REG[1Bh] bit 7 = 1 and bit 6 = 0
• The display refresh circuitry starts at pixel “B”, therefore the Screen 1 Start Address
register must be programmed with the address of pixel “B”, i.e.
REG 0Dh[]REG 0Ch[]AddressOfPixelB=,
AddressOfPixelA ByteOffset+()=
240pixels 4bpp×
AddressOfPixelA
AddressOfPixelA 77h+=
Where bpp is bits- per-p ixel and bpb is bits-per-byte.
• The Line Byte Count Register for SwivelView Mode must be set to the virtual-image
width in bytes, i.e.
REG 1Ch[]
256
----------------------------------------- -
8bpb()4bpp()÷
256
-------- -12880h====
2
--------------------------------------------
8bpb
1–+=
Where bpb is bits-per-b yte an d bpp is bits -pe r-pi xe l.
• Panning is achieved by changing the Screen 1 Start Address register:
• Increment the register by 1 to pan horizontally by one byte, e.g. two pixels in 4 bpp
mode
• Increment the register by twice the value in the Line Byte Count register to pan vertically by two lines, e.g. add 100h to pan by two lines in the example above.
Note
Vertical panning by a single line is not supported in Default SwivelView Mode.
Alternate SwivelView Mode may be used when the virtual image size of Default
SwivelView Mode cannot be contained in the 40kByte integrated frame buffer. For
example, the panel size is 240x160 and the display mode is 8 bit-per-pixel. The minimum
virtual image size for Default SwivelView Mode would be 240x256 which requires 60K
bytes. Alternate Swive lView Mode requir es a panel si ze of only 240x1 60 which needs only
38,400 bytes.
Alternate SwivelView Mode requires the memory clock (MCLK) to be at least twice the
frequency of the pixel cl ock (PCLK), i.e. MCLK ≥ 2 x PCLK. Because of this, the power
consumption in Altern at e SwivelView Mode is higher than in De fault SwivelView Mode.
The following figure sho ws how the programmer sees a 240x160 image and how the image
is being displayed. The appl ic ation image is written to the S1D13704 in the following
sense: A–B–C–D. The display is refreshed by the S1D13704 in the following sense: B-DA-C.
physical
memory
start
address
AB
SwivelView
240
window
C
160
image seen by programmer
= image in display buffer
D
display
start
address
B
window
A
image refreshed by S1D13704
SwivelView
240
D
160
C
Figure 12-2: Relationship Between The Screen Image and the Image Refreshed by S1D13704
The following descri bes the regi ster sett ings needed to set up Alter nate Swivel View Mode
for a 160x240x8 bpp image.
• Select Alternate SwivelView Mode:
REG[1Bh] bit 7 = 1 and bit 6 = 1
• The display refresh circuitry starts at pixel “B”, therefore the Screen 1 Start Address
register must be programmed with the address of pixel “B”, or
REG 0Dh[]REG 0Ch[]AddressOfPixelB=,
AddressOfPixelA ByteOffset+()=
160pixels 8bpp×
AddressOfPixelA
AddressOfPixelA 9Fh+=
Where bpp is bits-per-pixel and bpb is bi ts-p er-by te .
• The Line Byte Count Register for SwivelView Mode must be set to the image width in
bytes, i.e.
REG 1 Ch[]
160
----------------------------------------- -
8bpb()8bpp()÷
160
-------- -160A0h====
1
--------------------------------------------
8bpb
1–+=
Where bpb is bits-per-b yte an d bpp is bits-per-pixel.
• Panning is achieved by changing the Screen 1 Start Address register:
• Increment the register by 1 to pan horizontally by one byte, e.g. one pixel in 8 bpp
mode
• Increment the regist er by the value in the Line Byte Count regi ster to pan ve rticall y by
one line, e.g. add A0h to pan by one line in the example above
The width of the rotated image must be
a power of 2. In most cases, a virtual
image is required where the right-hand
side of the virtual image is unused and
memory is wasted. For exam ple, a
Memory Requirements
Clock Requirements
Power ConsumptionLowest power consumption.Higher than Default Mode.
PanningVertical panning in 2 line increments.Vertical panning in 1 line increments.
PerformanceNominal pe rform an ce. Higher performance th an De fau lt Mod e.
160x240x8bpp image would normally
require only 38,400 bytes - possible
within the 40K byte addres s s pa ce, but
the virtual image is 256x240x8bpp
which needs 61,440 bytes - not
possible.
CLK need only be as fast as the
required PCLK.
Does not require a virtual imag e.
MCLK, and hence CLK, need to be 2x
PCLK. For example, if the panel requires a
3MHz PCLK, then CLK must be 6MHz.
Note that 25MHz is the maximum CLK, so
PCLK cannot be higher than 12.5MHz in
this mode.
12.4 SwivelView Mode Limitations
The only limitation to using SwivelView mode on the S1D13705. is that split screen
operation is not supported.
Two Power Save Modes have been incorporated into the S1D13704 to accommodate the
need for power reduction in the hand-held devices market. These modes are enabled as
follows:
Table 13-1: Power Save Mode Select ion
Hardware Power
Save
Not Configured or 000Software Power Save Mode
Not Configured or 001reserved
Not Configured or 010reserved
Not Configured or 011Normal Operation
Configured and 1XXHardware P ower Save Mode
Software Power
13.1 Software Power Save Mode
Software Power Save Mode sav es power by powering down the pa nel and stopping dis play
refresh accesses to the display buffer.
Table 13-2: Software Power Save Mode Summary
• Registers read/write accessib le
• Memory read/write accessible
• LCD outputs are forced low
13.2 Hardware Power Save Mode
Save Bit 1
Software Power
Save Bit 0
Mode
Hardware Power Save Mode saves power by powering down the panel, stopping accesses
to the display buffer and registers, and disabling the Host Bus Interface.
FPDAT[11:0], FPSHIFT (see note )Forced LowForced LowActive
FPLINE, FPFRAME, DRDYForced LowForced LowActive
Note
When FPDAT[11:8] are designated as GPIO outputs, the output state prior to enabling
the Power Save Mode is maintained. When FPDAT[11:8] are designated as GPIO inputs, unused inputs must be tied to either IO V
face Pin Mapping,” on page 23.
13.4 Panel Power Up/Down Sequence
After chip re s et or when ent ering/exitin g a power save mode, the Panel Interface sign als
follow a power o n/off sequenc e shown belo w. This sequenc e is essent ial to prev ent damage
to the LCD panel.
After chip reset, LCDPWR is inactive and the rest of the panel interface output signals are
held ‘low’. Software initializes the chip (i.e. programs the registers) and then - as a last step
set - programs REG[03h] bits [1:0] to 11. This starts t he power-up sequence as sh own. The
power-up/power-down sequence delay is 127 frames.
The power-up/power-down sequence also occurs when exiting/entering Software Power
Save Mode.
13.5 Turning Off BCLK Between Accesses
BCLK may be turned off (held low) betwee n acces ses if the following rules are obser ved:
1. BCLK must be turned off/on in a glitch free manner
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 law s .
EPSON is a registered trademark of Seiko Epson Corporation. All other Trademarks are the property of their respective owners
Page 98
Page 2Epson Research and Development
*
Vancouver Design Center
THIS PAGE LEFT BLANK
S1D13704Programming Notes and Examples
X26A-G-002-03Issue Date: 01/02/12