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
Mechanical Data
Power Save Modes
Registers
SwivelView
List of Tables
This page Left Blank
List of Figures
2 Bit-per-pixel Monochrome Mode Data Output Path
Scope
Introduction
Overview Description
Display Support
Features
Integrated Frame Buffer
CPU Interface
Package
Display Modes
Clock Source
Miscellaneous
Typical System Diagram SH-4 Bus
Typical System Implementation Diagrams
Typical System Diagram M68K #1 Bus
Typical System Diagram Generic #1 Bus
Memory Controller
Functional Block Diagram
Functional Block Descriptions
Host Interface
LCD Interface
Power Save
Power Save contains the power save mode circuitry
Look-Up Table
Pinout Diagram
Pins
Package type 80 pin surface mount QFP14
Description
Pin Description
Key
Pin Names Type Pin # Cell
For the lower data byte WE0#
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
Pin Name Type Pin # Cell
Pin Name Type Pin # Driver Description
Power Supply
Clock Input
Miscellaneous
Host Bus Interface Pin Mapping
Summary of Configuration Options
Summary of Power On/Reset Options
Host Bus Interface Pin Mapping
LCD Interface Pin Mapping
LCD Interface Pin Mapping
Bit Pin Name Bit Dual Single 12-bit Format
Recommended Operating Conditions for Core VDD = 3.3V ± 10%
C. Characteristics
Input Specifications
Absolute Maximum Ratings
Output Specifications
1 SH-4 Interface Timing
Bus Interface Timing
T11 Rising edge CSn# to RDY# high impedance
Symbol Parameter Min Max Units
Bus Clock frequency MHz
Bus Clock period
Write T16 T17 D150
2 SH-3 Interface Timing
T12 T13
T14 T15 D150
Symbol Parameter Min Maxa Units
AS# high to DTACK# high AS# high to DTACK# high impedance
Motorola MC68K #1 Interface Timing
UDS#, LDS# falling edge to D150 valid write cycle
AS#, DS# rising edge to D3116 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
Generic #1 Timing
Generic #1 Interface Timing
Generic #2 Timing
Generic #2 Interface Timing
Input Clock Pulse Width High Clki
Clock Input Requirements
Input Clock Frequency Clki MHz
Input Clock period Clki
Input Clock period Bclk
Input Clock Frequency Bclk MHz
Input Clock Pulse Width High Bclk
REG03h to FPLINE, FPFRAME, FPSHIFT, FPDAT, Drdy
Power On/Reset Timing
Symbol Parameter Min Typ Max Units
Display Interface
Active Inactive
Power Down/Up Timing
Lcdpwr Override REG03h bit HW Power Save
REG03h bits FP Signals 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
Bit
Registers
Register Mapping
Register Descriptions
Don’t care
Active high
Panel Data Format
Color/Mono Dual/Single Data Width Bit Function
High Performance BPP Bit Display Modes
Gray Scale/Color Mode Selection
Color/Mono Bit-Per-Pixel Bit Display Mode
High Performance Selection
Inverse Video Mode Select Options
Video Mode Select Options below
Video data is inverted after the Look-Up Table
Software Power Save Mode Selection
Hardware Power Save/GPIO0 Operation
Vertical Panel
This register must not be set to a value less than 03h
Size Bit
Fpline Start
Following constraint must be satisfied
MOD Rate Bit
Vertical Non
Screen 2 Start
Screen 1 Start
Offset Bit
Memory
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
Where CLK is Clki REG02h bit 4 = 0 or CLKI/2 REG02h bit 4 =
Selection of Pclk and Mclk in SwivelView Mode
Create a virtual image in SwivelView mode
Pixel Clock Pclk Select Mode Enable Mode Select
Frame Rate Calculation
Passive Dual-Panel mode
TFT/D-TFD and Passive Single-Panel modes
1/2/4/8 Bit-Per-Pixel Display Data Memory Organization
Display Data Formats
Green Look-Up Table LUT is used for all monochrome modes
Bit-per-pixel Monochrome mode
Look-Up Table Architecture
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
Where bpp is bits-per-pixel and bpb is bits-per-byte
How to Set Up Default SwivelView Mode
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
Default SwivelView Mode Alternate SwivelView Mode
Comparison Between Default and Alternate SwivelView Modes
SwivelView Mode Limitations
Default and Alternate SwivelView Mode Comparison
Software Power Save Mode
Power Save Modes
Hardware Power Save Mode
Hardware Software Normal
Power Save Mode Function Summary
Panel Power Up/Down Sequence
Power Save Mode Function Summary
Software Power Save
Turning Off Bclk Between Accesses
S1D13705 Internal Clock Requirements
Clock Requirements
125
Mechanical Data
QFP14 80 pin Unit mm
14.0 ± 12.0 ± Index
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
Look-Up Table LUT
LCD Power Sequencing and Power Save Modes
Introduction Initialization
Memory Models
Sample Code
Identifying the S1D13705 Hardware Abstraction Layer HAL
S1D13705 Initialization Sequence
This page Left Blank
Introduction
Display Buffer Location
Initialization
Register Values
S1D13705 Initialization Sequence
Frame Rate Calculation
Register Value hex See Also
= Horizontal Non-Display Period in pixels
Where Pclk = Pixel clock in Hz
For a dual passive panel the formula is
= Horizontal Display Period in pixels
Epson Research and Development
1 Bit-Per-Pixel 2 Colors/Gray Shades
Memory Models
Bit Pixel
4 Bit-Per-Pixel 16 Colors/Gray Shades
2 Bit-Per-Pixel 4 Colors/Gray Shades
Pixel Bit
Green bit
Eight Bit-Per-Pixel 256 Colors
Look-Up Table LUT
LUT Data
Look-Up Table Registers
Unused entries
Look-Up Table Organization
Color Modes
Index Red Green Blue
Indicates unused entries
Example LUT Values for 2 Bpp Color Mode
Bpp color
Index
Index
Recommended LUT Values for 1 Bpp Gray Shade
Gray Shade Modes
Address Red Green Blue
Suggested Values for 2 Bpp Gray Shade
Suggested LUT Values for 4 Bpp Gray Shade
Virtual Display
Advanced Techniques
Offset
Registers
Examples
REG11h Memory Address Offset Register
Panning and Scrolling
REG10h Screen 1 Display Start Address 2 MSB
Number of Pixels Panned Using Start Address
REG0Ch Screen 1 Display Start Address 0 LSB
REG0Dh Screen 1 Display Start Address 1 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
Hardware Software Power Save Override Enable Bit
LCD Power Sequencing and Power Save Modes
LCD Power Sequencing
REG03h Mode Register
LCD Enable/Disable
Hardware Rotation
Default Portrait Mode
Introduction To Hardware Rotation
Portrait
Alternate Portrait Mode
REG0Eh Screen 1 Start Word Address MSB
REG1Bh Portrait Mode Register
REG0Ch Screen 1 Start Word Address LSB
REG0Dh Screen 1 Start Word Address MSB
Epson Research and Development
Limitations
Default and Alternate Portrait Mode Comparison
Default Portrait Mode Alternate Portrait Mode
Power of 2. In most cases, a virtual
Examples
Vancouver Design Center
16 , 000 FrameRate
Vancouver Design Center
Identifying the S1D13705
Hardware Abstraction Layer HAL
Contents of the Halstruct
Introduction
API for 13705HAL
Using the HAL library
Function Description
Register / Memory Access
Int seRegisterDeviceconst Lphalstruc lpHalInfo
Initialization
SeSetInit
Int seGetIdint * pId
General HAL Support
Int seGetBitsPerPixelint * pBitsPerPixel
Int seSetBitsPerPixelint BitsPerPixel
Int seGetBytesPerScanlineint * pBytes
Int seGetScreenSizeint * Width, int * Height
Int seDelayint MilliSeconds
Int seGetLastUsableBytelong * plLastByte
Int seSetHWRotateint Rotate
Advanced HAL Functions
Int seSetHighPerformanceBOOL OnOff
Int seSetPortraitMethod int Style
Int seSplitScreenint Screen, int VisibleScanlines
Int seSplitInitWORD Scrn1Addr, Word Scrn2Addr
Int seVirtMoveint Screen, int x, int y
Int seVirtInitDWORD VirtX, Dword * VirtY
SeVirtInit must be been called before calling seVirtMove
Int seReadDisplayByteDWORD Offset, Byte *pByte
Register / Memory Access
Int seGetRegint Index, Byte * pValue
Int seSetRegint Index, Byte Value
Int seWriteDisplayBytesDWORD Offset, Byte Value, Dword Count
Int seReadDisplayDwordDWORD Offset, Dword *pDword
Int seSetPowerSaveModeint PwrSaveMode
Int seDrawLineint x1, int y1, int x2, int y2, Dword Color
Drawing
Int seSetPixellong x, long y, Dword Color
Int seGetPixellong x, long y, Dword *pColor
Int seSetLutBYTE *pLut, int Count
LUT Manipulation
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
If your hardware implementation differs from
Decode Addresses
Values for the Register address and Display
Ation platform are examples of possible implementa
Preferences Tab
Power
Display which requires more memory but uses less
Clocks Tab
Specification, document number X27A-A-001-xx
For details see the S1D13705 Hardware Functional
Down list or by entering the desired frequency in MHz
Actual Clki frequency used for configuration is
Source for both Pclk and Mclk
Clki frequency must be selected from the drop
Panel Tab
These settings define the polarity of the Fpline
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
Refer to S1D13705 Hardware Functional Specifi
Cation, document number X27A-A-001-xx, for a
Complete description of the Fpframe pulse settings
Panel manufacturers recommended settings. If the file
Settings contained in the file
GPIO0 is enabled. When this box is unchecked,
Panel Power Tab
Hardware Power Save function is not available
Registers Tab
Open
13705CFG Menus
Save As
Save
Configure Multiple
Export
About 13705CFG
Enable Tooltips
Comments
ERD on the Web
Document No. X27A-B-002-02
13705SHOW Demonstration Program
This page Left Blank
13705SHOW
PC platform at the prompt, type
Download the program 13705SHOW to the system
Use alternate portrait mode
Continuously update display memory
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
Manual mode Move Screen 2 up Move Screen 2 down
Enables manual split screen operation
Enables automatic split screen operation
Timer is used to move screen
13705SPLT Example
This page Left Blank
Document No. X27A-B-004-02
13705VIRT Display Utility
This page Left Blank
13705VIRT
Enable alternate portrait mode. Selecting this
Defaults to virtual width = = physical width x
Force landscape display mode to be set
Force portrait display mode to be set
Virtual screen shows in the lower left
13705VIRT Example
Virtual screen shows in the upper right
Display
Unable to use virtual mode at xx BPP
Document No. X27A-B-005-04
13705PLAY Diagnostic Utility
This page Left Blank
13705PLAY
Writes data to the register specified by the index
Writes data to the LUT index when data is
Download the program 13705PLAY to the system
Reads/writes the registers
13705PLAY Example
Scripting
Program Messages
This page Left Blank
Document No. X27A-B-006-03
13705BMP Demonstration Program
This page Left Blank
At the prompt, type
13705BMP
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
Download the program 13705PWR to the system
Sets enables hardware power save mode REG03h bit
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
With this line Ddi.dll $FLATRELEASEDIR\EPSON.dll
Ddi.dll $FLATRELEASEDIR\ddivga2.dll NK SH
Ddi.dll $FLATRELEASEDIR\ddivga8.dll NK SH
Ddi.dll $FLATRELEASEDIR\ddis364.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
If Cepcddiflat If CEPCDDIS1D13X0X
Endif
Epson Research and Development
Installation for Cepc Environment
EnablePreferVmem
GrayPalette
Resource Management Issues
Vancouver Design Center
Simple Display Driver Configuration
Comments
Document Number X27A-G-004-02
Interfacing to the Toshiba Mips TMPR3912 Microprocessor
This page Left Blank
Direct Connection to the Toshiba TMPR3912
Using the ITE IT8368E PC Card Buffer
Software Technical Support
This page Left Blank
S1D13705 to TMPR3912 Direct Connection
S1D13705 to TMPR3912 Connection Using an IT8368E
This page Left Blank
Introduction
Interfacing to the TMPR3912
AB151 A151
S1D13705 Host Bus Interface
Host Bus Pin Connection
S1D13705 Generic #1 Generic #2 Pin Names
Generic #1 Interface Mode
Generic #2 Interface Mode
General Description
Direct Connection to the Toshiba TMPR3912
Big Endian
S1D13705 Configuration
S1D13705 Configuration for Direct Connection
Memory Mapping and Aliasing
Hardware Description
Using the ITE IT8368E PC Card Buffer
S1D13705 to TMPR3912 Connection Using an IT8368E
At 128K byte intervals
IT8368E Configuration
16M byte Card 1 IO
16M byte
32M byte Card 2 Attribute
S1D13705 Configuration Using the IT8368E
= configuration for connection using ITE IT8368E
16M byte Card 2 IO
Software
Integrated Technology Express, Inc
Toshiba Mips TMPR3912 Processor ITE IT8368E
Japan North America Taiwan, R.O.C
Europe Hong Kong Singapore
This page Left Blank
Document Number X27A-G-006-02
S1D13705 Power Consumption
S1D13705 Power Consumption X27A-G-006-02
S1D13705 Power Consumption
Conditions
S1D13705 Total Power Consumption
Summary
This page Left Blank
Document Number X27A-G-007-04
X27A-G-007-04 Issue Date 01/02/13
Interfacing to the MC68EZ328
Introduction Interfacing to the MC68328
Interfacing to the MC68VZ328
Technical Support
List of Tables
This page Left Blank
Introduction
MC68328 System Bus
Interfacing to the MC68328
Chip-Select Module
WE0# Connect to IO V DD
S1D13705 Host Bus Interface
Host Bus Pin Connection
S1D13705 MC68K #1 Generic #1 Pin Names
Generic #1 Interface Mode
3 MC68K #1 Interface Mode
MC68328 To S1D13705 Interface
Using The MC68K #1 Host Bus Interface
Hardware Description
Using The Generic #1 Host Bus Interface
Host Bus Interface Selection
2 S1D13705 Hardware Configuration
3 MC68328 Chip Select Configuration
Summary of Power-On/Reset Options