S1D13705
Document No. X27A-Q-001-04
This page Left Blank
Customer Support Information
This page Left Blank
S1D13705 Embedded Memory LCD Controller
February
Software Suspend mode LCD power-down sequencing
Embedded 80K byte Sram display buffer
Hardware Functional Specification
Document Number X27A-A-001-10
This page Left Blank
Table of Contents
Power Save Modes
Registers
SwivelView
Mechanical Data
List of Tables
This page Left Blank
List of Figures
2 Bit-per-pixel Monochrome Mode Data Output Path
Overview Description
Introduction
Scope
Features
Integrated Frame Buffer
CPU Interface
Display Support
Display Modes
Clock Source
Miscellaneous
Package
Typical System Implementation Diagrams
Typical System Diagram SH-4 Bus
Typical System Diagram M68K #1 Bus
Typical System Diagram Generic #1 Bus
Functional Block Diagram
Functional Block Descriptions
Host Interface
Memory Controller
Power Save
Power Save contains the power save mode circuitry
Look-Up Table
LCD Interface
Package type 80 pin surface mount QFP14
Pins
Pinout Diagram
Pin Description
Key
Pin Names Type Pin # Cell
Description
For SH-3/SH-4 mode, this pin inputs the write enable signal
Input This pin inputs the chip select signal
For MC68K #1, this pin inputs the R/W# signal
For the lower data byte WE0#
Pin Name Type Pin # Cell
Power Supply
Clock Input
Miscellaneous
Pin Name Type Pin # Driver Description
Summary of Configuration Options
Summary of Power On/Reset Options
Host Bus Interface Pin Mapping
Host Bus Interface Pin Mapping
Bit Pin Name Bit Dual Single 12-bit Format
LCD Interface Pin Mapping
LCD Interface Pin Mapping
C. Characteristics
Input Specifications
Absolute Maximum Ratings
Recommended Operating Conditions for Core VDD = 3.3V ± 10%
Output Specifications
Bus Interface Timing
1 SH-4 Interface Timing
Symbol Parameter Min Max Units
Bus Clock frequency MHz
Bus Clock period
T11 Rising edge CSn# to RDY# high impedance
2 SH-3 Interface Timing
T12 T13
T14 T15 D150
Write T16 T17 D150
Symbol Parameter Min Maxa Units
UDS#, LDS# falling edge to D150 valid write cycle
Motorola MC68K #1 Interface Timing
AS# high to DTACK# high AS# high to DTACK# high impedance
Motorola MC68K #2 Interface Timing
AS# high to DSACK1# high AS# high to DSACK1# high impedance
DS# falling edge to D3116 valid write cycle
AS#, DS# rising edge to D3116 high impedance
Generic #1 Interface Timing
Generic #1 Timing
Generic #2 Interface Timing
Generic #2 Timing
Clock Input Requirements
Input Clock Frequency Clki MHz
Input Clock period Clki
Input Clock Pulse Width High Clki
Input Clock Pulse Width High Bclk
Input Clock Frequency Bclk MHz
Input Clock period Bclk
Power On/Reset Timing
Symbol Parameter Min Typ Max Units
Display Interface
REG03h to FPLINE, FPFRAME, FPSHIFT, FPDAT, Drdy
Power Down/Up Timing
Lcdpwr Override REG03h bit HW Power Save
REG03h bits FP Signals Active Inactive
Active Inactive
Single Monochrome 4-Bit Panel Timing
11 Single Monochrome 4-Bit Panel Timing
Sync Timing
Data Timing
Single Monochrome 8-Bit Panel Timing
13 Single Monochrome 8-Bit Panel Timing
= REG08h bits 4-0 x 8 + 4Ts
Single Color 4-Bit Panel Timing
15 Single Color 4-Bit Panel Timing
= REG08h bits 4-0 x 8 + 1.5Ts
Single Color 8-Bit Panel Timing Format
17 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
Dual Monochrome 8-Bit Panel Timing
21 Dual Monochrome 8-Bit Panel Timing
= REG04h bits 6-0+1 x 8 + REG08h bits 4-0 + 4 x 8 x 2Ts
Dual Color 8-Bit Panel Timing
23 Dual Color 8-Bit Panel Timing
= REG08h bits 4-0 x 2x 8 + 17Ts
10 9/12-Bit TFT/D-TFD Panel Timing
25 12-Bit TFT/D-TFD Panel Timing
26 TFT/D-TFD A.C. Timing
18 TFT/D-TFD A.C. Timing
Registers
Register Mapping
Register Descriptions
Bit
Active high
Panel Data Format
Color/Mono Dual/Single Data Width Bit Function
Don’t care
Gray Scale/Color Mode Selection
Color/Mono Bit-Per-Pixel Bit Display Mode
High Performance Selection
High Performance BPP Bit Display Modes
Video data is inverted after the Look-Up Table
Video Mode Select Options below
Inverse Video Mode Select Options
Hardware Power Save/GPIO0 Operation
Software Power Save Mode Selection
Size Bit
This register must not be set to a value less than 03h
Vertical Panel
Following constraint must be satisfied
Fpline Start
Vertical Non
MOD Rate Bit
Screen 1 Start
Screen 2 Start
Vertical Size Bit
Memory
Offset Bit
Screen-Register Relationship, Split Screen
LUT Address
REG18h Gpio Configuration Control Register
LUT Data Bit
Selection of SwivelView Mode
SwivelView Mode Enable Mode Select
Selection of Pclk and Mclk in SwivelView Mode
Create a virtual image 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 =
TFT/D-TFD and Passive Single-Panel modes
Passive Dual-Panel mode
Frame Rate Calculation
Display Data Formats
1/2/4/8 Bit-Per-Pixel Display Data Memory Organization
Bit-per-pixel Monochrome mode
Look-Up Table Architecture
Monochrome Modes
Green Look-Up Table LUT is used for all monochrome modes
4 Bit-per-pixel Monochrome Mode Data Output Path
Bit-per-pixel Color Mode
Color Modes
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
Default SwivelView Mode
SwivelView
Where bpb is bits-per-byte and bpp is bits-per-pixel
How to Set Up Default SwivelView Mode
Where bpp is bits-per-pixel and bpb is bits-per-byte
Alternate SwivelView Mode
Start Address 480 Image refreshed by S1D13705
How to Set Up Alternate SwivelView Mode
Comparison Between Default and Alternate SwivelView Modes
SwivelView Mode Limitations
Default and Alternate SwivelView Mode Comparison
Default SwivelView Mode Alternate SwivelView Mode
Hardware Power Save Mode
Power Save Modes
Software Power Save Mode
Power Save Mode Function Summary
Panel Power Up/Down Sequence
Power Save Mode Function Summary
Hardware Software Normal
Turning Off Bclk Between Accesses
Software Power Save
Clock Requirements
S1D13705 Internal Clock Requirements
Mechanical Data
QFP14 80 pin Unit mm
14.0 ± 12.0 ± Index
125
Sales and Technical Support
Japan North America Taiwan
This page Left Blank
Programming Notes and Examples
Document Number X27A-G-002-03
This page Left Blank
LCD Power Sequencing and Power Save Modes
Introduction Initialization
Memory Models
Look-Up Table LUT
Identifying the S1D13705 Hardware Abstraction Layer HAL
Sample Code
S1D13705 Initialization Sequence
This page Left Blank
Introduction
Register Values
Initialization
Display Buffer Location
Register Value hex See Also
Frame Rate Calculation
S1D13705 Initialization Sequence
Where Pclk = Pixel clock in Hz
For a dual passive panel the formula is
= Horizontal Display Period in pixels
= Horizontal Non-Display Period in pixels
Epson Research and Development
Bit Pixel
Memory Models
1 Bit-Per-Pixel 2 Colors/Gray Shades
Pixel Bit
2 Bit-Per-Pixel 4 Colors/Gray Shades
4 Bit-Per-Pixel 16 Colors/Gray Shades
Eight Bit-Per-Pixel 256 Colors
Green bit
Look-Up Table LUT
Look-Up Table Registers
LUT Data
Look-Up Table Organization
Color Modes
Index Red Green Blue
Unused entries
Example LUT Values for 2 Bpp Color Mode
Indicates unused entries
Bpp color
Index
Index
Address Red Green Blue
Gray Shade Modes
Recommended LUT Values for 1 Bpp Gray Shade
Suggested Values for 2 Bpp Gray Shade
Suggested LUT Values for 4 Bpp Gray Shade
Advanced Techniques
Virtual Display
Registers
Examples
REG11h Memory Address Offset Register
Offset
Panning and Scrolling
Number of Pixels Panned Using Start Address
REG0Ch Screen 1 Display Start Address 0 LSB
REG0Dh Screen 1 Display Start Address 1 MSB
REG10h Screen 1 Display Start Address 2 MSB
Panning to the left
To scroll down
Split Screen
320x240 Single Panel For Split Screen
REG12 Screen 1 Vertical Size LSB
REG13 Screen 1 Vertical Size MSB
REG0Eh Screen 2 Display Start Address 0 LSB
REG0Fh Screen 2 Display Start Address 1 MSB
Examples
LCD Power Sequencing and Power Save Modes
LCD Power Sequencing
REG03h Mode Register
Hardware Software Power Save Override Enable Bit
LCD Enable/Disable
Introduction To Hardware Rotation
Default Portrait Mode
Hardware Rotation
Portrait
Alternate Portrait Mode
REG1Bh Portrait Mode Register
REG0Ch Screen 1 Start Word Address LSB
REG0Dh Screen 1 Start Word Address MSB
REG0Eh Screen 1 Start Word Address MSB
Epson Research and Development
Default and Alternate Portrait Mode Comparison
Default Portrait Mode Alternate Portrait Mode
Power of 2. In most cases, a virtual
Limitations
Examples
Vancouver Design Center
16 , 000 FrameRate
Vancouver Design Center
Identifying the S1D13705
Introduction
Contents of the Halstruct
Hardware Abstraction Layer HAL
Function Description
Using the HAL library
API for 13705HAL
Register / Memory Access
SeSetInit
Initialization
Int seRegisterDeviceconst Lphalstruc lpHalInfo
General HAL Support
Int seGetIdint * pId
Int seGetBytesPerScanlineint * pBytes
Int seSetBitsPerPixelint BitsPerPixel
Int seGetBitsPerPixelint * pBitsPerPixel
Int seGetLastUsableBytelong * plLastByte
Int seDelayint MilliSeconds
Int seGetScreenSizeint * Width, int * Height
Advanced HAL Functions
Int seSetHighPerformanceBOOL OnOff
Int seSetPortraitMethod int Style
Int seSetHWRotateint Rotate
Int seSplitInitWORD Scrn1Addr, Word Scrn2Addr
Int seSplitScreenint Screen, int VisibleScanlines
SeVirtInit must be been called before calling seVirtMove
Int seVirtInitDWORD VirtX, Dword * VirtY
Int seVirtMoveint Screen, int x, int y
Register / Memory Access
Int seGetRegint Index, Byte * pValue
Int seSetRegint Index, Byte Value
Int seReadDisplayByteDWORD Offset, Byte *pByte
Int seReadDisplayDwordDWORD Offset, Dword *pDword
Int seWriteDisplayBytesDWORD Offset, Byte Value, Dword Count
Int seSetPowerSaveModeint PwrSaveMode
Drawing
Int seSetPixellong x, long y, Dword Color
Int seGetPixellong x, long y, Dword *pColor
Int seDrawLineint x1, int y1, int x2, int y2, Dword Color
Int seGetLutBYTE *pLUT, int Count
LUT Manipulation
Int seSetLutBYTE *pLut, int Count
Int seSetLutEntryint Index, Byte *pEntry
Int seGetLutEntryint index, Byte *pEntry
Porting Libse to a new target platform
Building the Libse library for SH3 target example
Building the HAL library for the target example
Sample code using the S1D13705 HAL API
Sample Code
Epson Research and Development
Sample code without using the S1D13705 HAL API
Purple
Pbyte
Vancouver Design Center
Pclk
Vancouver Design Center
Epson Research and Development
Vancouver Design Center
NULL, OPENEXISTING,FILEATTRIBUTENORMAL, Null
Vancouver Design Center
Header Files
Bool
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
13705CFG Configuration Program
Document Number X27A-B-001-03
This page Left Blank
13705CFG
This page Left Blank
13705CFG
S1D13705 Supported Evaluation Platforms
Installation
Usage
13705CFG Configuration Tabs
General Tab
Decode Addresses
Values for the Register address and Display
Ation platform are examples of possible implementa
If your hardware implementation differs from
Display which requires more memory but uses less
Power
Preferences Tab
For details see the S1D13705 Hardware Functional
Specification, document number X27A-A-001-xx
Clocks Tab
Actual Clki frequency used for configuration is
Source for both Pclk and Mclk
Clki frequency must be selected from the drop
Down list or by entering the desired frequency in MHz
Panel Tab
Ically for configuring 8-bit color STN panels
8 bit. When an active panel type is selected
When the panel type is TFT, Single is automatically
These settings define the polarity of the Fpline
Refer to S1D13705 Hardware Functional Specifi
Complete description of the Fpframe pulse settings
Panel manufacturers recommended settings. If the file
Settings contained in the file
Cation, document number X27A-A-001-xx, for a
Hardware Power Save function is not available
Panel Power Tab
GPIO0 is enabled. When this box is unchecked,
Registers Tab
13705CFG Menus
Open
Save
Save As
Configure Multiple
Host Bus Interface Pin Mapping
DB150 D150 WE1#
Technical Description
Embedded Memory Support
ISA Bus Support
Non-ISA Bus Support
Display Adapter Card Support
Expanded Memory Manager Support
Decoding Logic
Clock Input Support
LCD Panel Voltage Setting
Power Save Modes
Monochrome LCD Panel Support
Color Passive LCD Panel Support
13 CPU/Bus Interface Header Strips
Adjustable LCD Panel Negative Power Supply
Adjustable LCD Panel Positive Power Supply
Parts List
Item # Qty/board Designation Part Value Description
Schematic Diagrams
S1D13705B00C Schematic Diagram 1
S1D13705B00C
Vancouver Epson Research
S1D13705B00C Schematic Diagram 4
This page Left Blank
Document Number X27A-G-014-02
S1D13705 X27A-G-014-02 Issue Date 2002/09/16
Introduction Features Installation and Configuration
Parts List Schematics Board Layout Technical Support
CPU Interface
LCD Interface Pin Mapping Technical Description
This page Left Blank
Configuration DIP Switch SW1 Location
This page Left Blank
Introduction
Features
Configuration DIP Switches
Configuration DIP Switch SW1 Location
SH-4
SH-3
Big Endian bus interface Little Endian bus interface SW1-5
Not Used SW1-6
Configuration Jumpers
Jumper Summary
Jumper Function Position No Jumper
PCI Bridge Fpga
Configuration Jumper JP2 Location
Configuration Jumper JP4 Location
Configuration Jumper JP6 Location
CPU Interface Pin Mapping
CPU Interface
CPU Interface Pin Mapping
Connector Comments Pin No
CPU Bus Connector Pin Mapping
CPU Bus Connector H1 Pinout
CPU Bus Connector H2 Pinout
Dual
LCD Signal Connector J5
2LCDPWR on J5 can be inverted by setting JP6 to
Adjustable LCD Panel Positive Power Supply Vddh
PCI Bus Support
Direct Host Bus Interface Support
S1D13705 Embedded Memory
Adjustable LCD Panel Negative Power Supply Vlcd
Passive/Active LCD Panel Support
Clock Options
Software
Document Sources
References
Documents
Quantity Reference Part Description
RD-0412 Xentek RD-0412, positive power Supply
EPN001 Xentek EPN001, negative power Supply
EPF6016TC144-2 Altera EPF6016TC144-2
Pin DIP socket Machined socket, 8-pin
Schematics
S1D13705B00C Schematics 1
Schematics 2
S1D13705B00C
S1D13705B00C Schematics 3
S1D13705B00C Schematics 4
S1D13705B00C Schematics 5
Board Layout
Technical Support
Epson LCD Controllers S1D13705
Windows CE 3.x Display Drivers
Document Number X27A-E-006-01
X27A-E-006-01
Windows CE 3.x Display Drivers
Example Driver Builds
If CEPCDDIS1D13X0X
Ddi.dll $FLATRELEASEDIR\ddiflat.dll NK SH