Document No. X27A-Q-001-04
S1D13705
This page Left Blank
Customer Support Information
This page Left Blank
February
S1D13705 Embedded Memory LCD Controller
Embedded 80K byte Sram display buffer
Software Suspend mode LCD power-down sequencing
Document Number X27A-A-001-10
Hardware Functional Specification
This page Left Blank
Table of Contents
Registers
Power Save Modes
SwivelView
Mechanical Data
List of Tables
This page Left Blank
List of Figures
2 Bit-per-pixel Monochrome Mode Data Output Path
Introduction
Scope
Overview Description
Integrated Frame Buffer
Features
CPU Interface
Display Support
Clock Source
Display Modes
Miscellaneous
Package
Typical System Diagram SH-4 Bus
Typical System Implementation Diagrams
Typical System Diagram M68K #1 Bus
Typical System Diagram Generic #1 Bus
Functional Block Descriptions
Functional Block Diagram
Host Interface
Memory Controller
Power Save contains the power save mode circuitry
Power Save
Look-Up Table
LCD Interface
Pins
Pinout Diagram
Package type 80 pin surface mount QFP14
Key
Pin Description
Pin Names Type Pin # Cell
Description
Input This pin inputs the chip select signal
For SH-3/SH-4 mode, this pin inputs the write enable signal
For MC68K #1, this pin inputs the R/W# signal
For the lower data byte WE0#
Pin Name Type Pin # Cell
Clock Input
Power Supply
Miscellaneous
Pin Name Type Pin # Driver Description
Summary of Power On/Reset Options
Summary of Configuration Options
Host Bus Interface Pin Mapping
Host Bus Interface Pin Mapping
LCD Interface Pin Mapping
LCD Interface Pin Mapping
Bit Pin Name Bit Dual Single 12-bit Format
Input Specifications
C. Characteristics
Absolute Maximum Ratings
Recommended Operating Conditions for Core VDD = 3.3V ± 10%
Output Specifications
1 SH-4 Interface Timing
Bus Interface Timing
Bus Clock frequency MHz
Symbol Parameter Min Max Units
Bus Clock period
T11 Rising edge CSn# to RDY# high impedance
T12 T13
2 SH-3 Interface Timing
T14 T15 D150
Write T16 T17 D150
Symbol Parameter Min Maxa Units
Motorola MC68K #1 Interface Timing
AS# high to DTACK# high AS# high to DTACK# high impedance
UDS#, LDS# falling edge to D150 valid write cycle
AS# high to DSACK1# high AS# high to DSACK1# high impedance
Motorola MC68K #2 Interface Timing
DS# falling edge to D3116 valid write cycle
AS#, DS# rising edge to D3116 high impedance
Generic #1 Timing
Generic #1 Interface Timing
Generic #2 Timing
Generic #2 Interface Timing
Input Clock Frequency Clki MHz
Clock Input Requirements
Input Clock period Clki
Input Clock Pulse Width High Clki
Input Clock Frequency Bclk MHz
Input Clock period Bclk
Input Clock Pulse Width High Bclk
Symbol Parameter Min Typ Max Units
Power On/Reset Timing
Display Interface
REG03h to FPLINE, FPFRAME, FPSHIFT, FPDAT, Drdy
Lcdpwr Override REG03h bit HW Power Save
Power Down/Up Timing
REG03h bits FP Signals Active Inactive
Active Inactive
11 Single Monochrome 4-Bit Panel Timing
Single Monochrome 4-Bit Panel Timing
Data Timing
Sync Timing
13 Single Monochrome 8-Bit Panel Timing
Single Monochrome 8-Bit Panel Timing
= REG08h bits 4-0 x 8 + 4Ts
15 Single Color 4-Bit Panel Timing
Single Color 4-Bit Panel Timing
= REG08h bits 4-0 x 8 + 1.5Ts
17 Single Color 8-Bit Panel Timing Format
Single Color 8-Bit Panel Timing Format
T6a T6b T7a T14 T11
19 Single Color 8-Bit Panel Timing Format
= REG08h bits 4-0 x 8 + 1Ts
21 Dual Monochrome 8-Bit Panel Timing
Dual Monochrome 8-Bit Panel Timing
= REG04h bits 6-0+1 x 8 + REG08h bits 4-0 + 4 x 8 x 2Ts
23 Dual Color 8-Bit Panel Timing
Dual Color 8-Bit Panel Timing
= REG08h bits 4-0 x 2x 8 + 17Ts
25 12-Bit TFT/D-TFD Panel Timing
10 9/12-Bit TFT/D-TFD Panel Timing
26 TFT/D-TFD A.C. Timing
18 TFT/D-TFD A.C. Timing
Register Mapping
Registers
Register Descriptions
Bit
Panel Data Format
Active high
Color/Mono Dual/Single Data Width Bit Function
Don’t care
Color/Mono Bit-Per-Pixel Bit Display Mode
Gray Scale/Color Mode Selection
High Performance Selection
High Performance BPP Bit Display Modes
Video Mode Select Options below
Inverse Video Mode Select Options
Video data is inverted after the Look-Up Table
Software Power Save Mode Selection
Hardware Power Save/GPIO0 Operation
This register must not be set to a value less than 03h
Vertical Panel
Size Bit
Fpline Start
Following constraint must be satisfied
MOD Rate Bit
Vertical Non
Screen 2 Start
Screen 1 Start
Memory
Offset Bit
Vertical Size Bit
LUT Address
Screen-Register Relationship, Split Screen
LUT Data Bit
REG18h Gpio Configuration Control Register
SwivelView Mode Enable Mode Select
Selection of SwivelView Mode
Create a virtual image in SwivelView mode
Selection of Pclk and Mclk in SwivelView Mode
Pixel Clock Pclk Select Mode Enable Mode Select
Where CLK is Clki REG02h bit 4 = 0 or CLKI/2 REG02h bit 4 =
Passive Dual-Panel mode
Frame Rate Calculation
TFT/D-TFD and Passive Single-Panel modes
1/2/4/8 Bit-Per-Pixel Display Data Memory Organization
Display Data Formats
Look-Up Table Architecture
Bit-per-pixel Monochrome mode
Monochrome Modes
Green Look-Up Table LUT is used for all monochrome modes
4 Bit-per-pixel Monochrome Mode Data Output Path
Color Modes
Bit-per-pixel Color Mode
2 Bit-per-pixel Color Mode Data Output Path
4 Bit-per-pixel Color Mode Data Output Path
8 Bit-per-pixel Color Mode Data Output Path
SwivelView
Default SwivelView Mode
How to Set Up Default SwivelView Mode
Where bpp is bits-per-pixel and bpb is bits-per-byte
Where bpb is bits-per-byte and bpp is bits-per-pixel
Start Address 480 Image refreshed by S1D13705
Alternate SwivelView Mode
How to Set Up Alternate SwivelView Mode
SwivelView Mode Limitations
Comparison Between Default and Alternate SwivelView Modes
Default and Alternate SwivelView Mode Comparison
Default SwivelView Mode Alternate SwivelView Mode
Power Save Modes
Software Power Save Mode
Hardware Power Save Mode
Panel Power Up/Down Sequence
Power Save Mode Function Summary
Power Save Mode Function Summary
Hardware Software Normal
Software Power Save
Turning Off Bclk Between Accesses
S1D13705 Internal Clock Requirements
Clock Requirements
QFP14 80 pin Unit mm
Mechanical Data
14.0 ± 12.0 ± Index
125
Japan North America Taiwan
Sales and Technical Support
This page Left Blank
Document Number X27A-G-002-03
Programming Notes and Examples
This page Left Blank
Introduction Initialization
LCD Power Sequencing and Power Save Modes
Memory Models
Look-Up Table LUT
Sample Code
Identifying the S1D13705 Hardware Abstraction Layer HAL
S1D13705 Initialization Sequence
This page Left Blank
Introduction
Initialization
Display Buffer Location
Register Values
Frame Rate Calculation
S1D13705 Initialization Sequence
Register Value hex See Also
For a dual passive panel the formula is
Where Pclk = Pixel clock in Hz
= Horizontal Display Period in pixels
= Horizontal Non-Display Period in pixels
Epson Research and Development
Memory Models
1 Bit-Per-Pixel 2 Colors/Gray Shades
Bit Pixel
2 Bit-Per-Pixel 4 Colors/Gray Shades
4 Bit-Per-Pixel 16 Colors/Gray Shades
Pixel Bit
Green bit
Eight Bit-Per-Pixel 256 Colors
Look-Up Table LUT
LUT Data
Look-Up Table Registers
Color Modes
Look-Up Table Organization
Index Red Green Blue
Unused entries
Indicates unused entries
Example LUT Values for 2 Bpp Color Mode
Bpp color
Index
Index
Gray Shade Modes
Recommended LUT Values for 1 Bpp Gray Shade
Address Red Green Blue
Suggested Values for 2 Bpp Gray Shade
Suggested LUT Values for 4 Bpp Gray Shade
Virtual Display
Advanced Techniques
Examples
Registers
REG11h Memory Address Offset Register
Offset
Panning and Scrolling
REG0Ch Screen 1 Display Start Address 0 LSB
Number of Pixels Panned Using Start Address
REG0Dh Screen 1 Display Start Address 1 MSB
REG10h Screen 1 Display Start Address 2 MSB
Panning to the left
To scroll down
320x240 Single Panel For Split Screen
Split Screen
REG13 Screen 1 Vertical Size MSB
REG12 Screen 1 Vertical Size LSB
REG0Fh Screen 2 Display Start Address 1 MSB
REG0Eh Screen 2 Display Start Address 0 LSB
Examples
LCD Power Sequencing
LCD Power Sequencing and Power Save Modes
REG03h Mode Register
Hardware Software Power Save Override Enable Bit
LCD Enable/Disable
Default Portrait Mode
Hardware Rotation
Introduction To Hardware Rotation
Portrait
Alternate Portrait Mode
REG0Ch Screen 1 Start Word Address LSB
REG1Bh Portrait Mode Register
REG0Dh Screen 1 Start Word Address MSB
REG0Eh Screen 1 Start Word Address MSB
Epson Research and Development
Default Portrait Mode Alternate Portrait Mode
Default and Alternate Portrait Mode Comparison
Power of 2. In most cases, a virtual
Limitations
Examples
Vancouver Design Center
16 , 000 FrameRate
Vancouver Design Center
Identifying the S1D13705
Contents of the Halstruct
Hardware Abstraction Layer HAL
Introduction
Using the HAL library
API for 13705HAL
Function Description
Register / Memory Access
Initialization
Int seRegisterDeviceconst Lphalstruc lpHalInfo
SeSetInit
Int seGetIdint * pId
General HAL Support
Int seSetBitsPerPixelint BitsPerPixel
Int seGetBitsPerPixelint * pBitsPerPixel
Int seGetBytesPerScanlineint * pBytes
Int seDelayint MilliSeconds
Int seGetScreenSizeint * Width, int * Height
Int seGetLastUsableBytelong * plLastByte
Int seSetHighPerformanceBOOL OnOff
Advanced HAL Functions
Int seSetPortraitMethod int Style
Int seSetHWRotateint Rotate
Int seSplitScreenint Screen, int VisibleScanlines
Int seSplitInitWORD Scrn1Addr, Word Scrn2Addr
Int seVirtInitDWORD VirtX, Dword * VirtY
Int seVirtMoveint Screen, int x, int y
SeVirtInit must be been called before calling seVirtMove
Int seGetRegint Index, Byte * pValue
Register / Memory Access
Int seSetRegint Index, Byte Value
Int seReadDisplayByteDWORD Offset, Byte *pByte
Int seWriteDisplayBytesDWORD Offset, Byte Value, Dword Count
Int seReadDisplayDwordDWORD Offset, Dword *pDword
Int seSetPowerSaveModeint PwrSaveMode
Int seSetPixellong x, long y, Dword Color
Drawing
Int seGetPixellong x, long y, Dword *pColor
Int seDrawLineint x1, int y1, int x2, int y2, Dword Color
LUT Manipulation
Int seSetLutBYTE *pLut, int Count
Int seGetLutBYTE *pLUT, int Count
Int seGetLutEntryint index, Byte *pEntry
Int seSetLutEntryint Index, Byte *pEntry
Porting Libse to a new target platform
Building the HAL library for the target example
Building the Libse library for SH3 target example
Sample Code
Sample code using the S1D13705 HAL API
Epson Research and Development
Purple
Sample code without using the S1D13705 HAL API
Pbyte
Vancouver Design Center
Pclk
Vancouver Design Center
Epson Research and Development
Vancouver Design Center
NULL, OPENEXISTING,FILEATTRIBUTENORMAL, Null
Vancouver Design Center
Bool
Header Files
Sizeversion
Errfailed
Function PROTO-TYPES
HAL EXE
Vancouver Design Center
Epson Research and Development
This page Left Blank
X27A-R-001-03
S1D13705 Register Summary X27A-R-001-03 01/02/13
Document Number X27A-B-001-03
13705CFG Configuration Program
This page Left Blank
13705CFG
This page Left Blank
S1D13705 Supported Evaluation Platforms
13705CFG
Usage
Installation
General Tab
13705CFG Configuration Tabs
Values for the Register address and Display
Decode Addresses
Ation platform are examples of possible implementa
If your hardware implementation differs from
Power
Preferences Tab
Display which requires more memory but uses less
Specification, document number X27A-A-001-xx
Clocks Tab
For details see the S1D13705 Hardware Functional
Source for both Pclk and Mclk
Actual Clki frequency used for configuration is
Clki frequency must be selected from the drop
Down list or by entering the desired frequency in MHz
Panel Tab
8 bit. When an active panel type is selected
Ically for configuring 8-bit color STN panels
When the panel type is TFT, Single is automatically
These settings define the polarity of the Fpline
Refer to S1D13705 Hardware Functional Specifi
Panel manufacturers recommended settings. If the file
Complete description of the Fpframe pulse settings
Settings contained in the file
Cation, document number X27A-A-001-xx, for a
Panel Power Tab
GPIO0 is enabled. When this box is unchecked,
Hardware Power Save function is not available
Registers Tab
Open
13705CFG Menus
Save As
Save
Configure Multiple
Export
Comments
Enable Tooltips
ERD on the Web
About 13705CFG
Document No. X27A-B-002-02
13705SHOW Demonstration Program
This page Left Blank
13705SHOW
Use alternate portrait mode
Download the program 13705SHOW to the system
Continuously update display memory
PC platform at the prompt, type
Program Messages
Error Did not find a 13705 device
This page Left Blank
Document No. X27A-B-003-02
13705SPLT Display Utility
This page Left Blank
13705SPLT
Enables automatic split screen operation
Enables manual split screen operation
Timer is used to move screen
Manual mode Move Screen 2 up Move Screen 2 down
13705SPLT Example
This page Left Blank
Document No. X27A-B-004-02
13705VIRT Display Utility
This page Left Blank
13705VIRT
Force landscape display mode to be set
Defaults to virtual width = = physical width x
Force portrait display mode to be set
Enable alternate portrait mode. Selecting this
Virtual screen shows in the upper right
13705VIRT Example
Display
Virtual screen shows in the lower left
Unable to use virtual mode at xx BPP
Document No. X27A-B-005-04
13705PLAY Diagnostic Utility
This page Left Blank
13705PLAY
Download the program 13705PLAY to the system
Writes data to the LUT index when data is
Reads/writes the registers
Writes data to the register specified by the index
13705PLAY Example
Scripting
Program Messages
This page Left Blank
Document No. X27A-B-006-03
13705BMP Demonstration Program
This page Left Blank
13705BMP
At the prompt, type
13705BMP currently views only Windows BMP format images
Error Did not find an S1D13705 device
This error message should never bee seen. Contact ERD
Document No. X27A-B-007-03
13705PWR Power Save Utility
This page Left Blank
13705PWR
Sets enables hardware power save mode REG03h bit
Download the program 13705PWR to the system
Displays this usage message
Error Did not find a 13705 device
This page Left Blank
Document Number X27A-E-001-03
Windows CE 2.x Display Drivers
X27A-E-001-03
Windows CE 2.x Display Drivers
Example Driver Builds
Ddi.dll $FLATRELEASEDIR\ddivga8.dll NK SH
Ddi.dll $FLATRELEASEDIR\ddivga2.dll NK SH
Ddi.dll $FLATRELEASEDIR\ddis364.dll
With this line Ddi.dll $FLATRELEASEDIR\EPSON.dll
Vancouver Design Center
If CEPCDDIS1D13705
Find the section shown below, and insert the lines as marked
Endif
Ddi.dll $FLATRELEASEDIR\ddis364.dll NK SH
Epson Research and Development
Copy NK.BIN and HIMEM.SYS to c\ Boot the system
Installation for Cepc Environment
Compile Switches
Configuration
Mode File