Page 2
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 TECHNICAL MANUAL X23A-Q-001-12 Issue Date: 01/04/18...
Page 4
Page 4 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 TECHNICAL MANUAL X23A-Q-001-12 Issue Date: 01/04/18...
Page 5
S1D13505 EMBEDDED RAMDAC LCD/CRT CONTROLLER DESCRIPTION The S1D13505 is a color/monochrome LCD/CRT graphics controller interfacing to a wide range of CPUs and display devices. The S1D13505 architecture is designed to meet the low cost, low power requirements of the embedded markets, such as Mobile Communications, Hand-Held PCs, and Office Automation.
S1D13505 SYSTEM BLOCK DIAGRAM Data and Control Signals CONTACT YOUR SALES REPRESENTATIVE FOR THESE COMPREHENSIVE DESIGN TOOLS • S1D13505 Technical • Linux Console Driver Manual • S5U13505 Evaluation Boards • Windows CE Display Driver • CPU Independent Software • VXWorks Tornado...
Page 8
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Hardware Functional Specification X23A-A-001-14 Issue Date: 01/02/02...
Page 12
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Hardware Functional Specification X23A-A-001-14 Issue Date: 01/02/02...
The S1D13505 is a color/monochrome LCD/CRT graphics controller interfacing to a wide range of CPUs and display devices. The S1D13505 architecture is designed to meet the low cost, low power requirements of the embedded markets, such as Mobile Communications, Hand-Held PCs, and Office Automation.
• Memory clock can be input clock or (input clock/2), providing flexibility to use CPU bus clock as input. • Pixel clock can be the memory clock, (memory clock/2), (memory clock/3) or (memory clock/4). Hardware Functional Specification Issue Date: 01/02/02 Page 13 S1D13505 X23A-A-001-14...
Output that can be used to control the LCD backlight. Power-on polarity is selected by an MD configuration pin. • Operating voltages from 2.7 volts to 5.5 volts are supported • 128-pin QFP15 surface mount package S1D13505 X23A-A-001-14 Epson Research and Development Vancouver Design Center...
4.2.3 CPU R/W The CPU R/W block synchronizes the CPU requests for display buffer access. If SwivelView is enabled, the data is rotated in this block. S1D13505 X23A-A-001-14 16-bit FPM/EDO-DRAM Memory...
The DAC is the Digital to Analog converter for analog CRT support. 4.2.11 Power Save The Power Save block contains the power save mode circuitry. 4.2.12 Clocks The Clocks module is the source of all clocks in the chip. Hardware Functional Specification Issue Date: 01/02/02 Page 21 S1D13505 X23A-A-001-14...
• For MC68K Bus 2, this pin inputs system address bit 0 (A0). • For Generic Bus, this pin inputs system address bit 0 (A0). • For MIPS/ISA Bus, this pin inputs system address bit 0 (SA0). • For Philips PR31500/31700 Bus, this pin inputs system address bit 0 (A0). Hi-Z •...
RESET# Cell State • For Philips PR31500/31700 Bus, these pins are connected to V • For Toshiba TX3912 Bus, these pins are connected to V • For PowerPC Bus, these pins input the system address bits 15 through 18 (A[15:18]).
• For MIPS/ISA Bus, this pin inputs the system byte high enable signal (SBHE#). CS/TS Hi-Z • For Philips PR31500/31700 Bus, this pin inputs the odd byte access enable signal (/CARDxCSH). • For Toshiba TX3912 Bus, this pin inputs the odd byte access enable signal (CARDxCSH*).
This is a multi-purpose pin: • For SH-3/SH-4 Bus, this pin inputs the read write signal (RD/WR#). The S1D13505 needs this signal for early decode of the bus cycle. • For MC68K Bus 1, this pin inputs the read write signal (R/W#).
• For Generic Bus, this pin inputs the read command for the lower data byte (RD0#). • For MIPS/ISA Bus, this pin inputs the memory read signal (MEMR#). • For Philips PR31500/31700 Bus, this pin inputs the memory read Hi-Z command (/RD).
Hi-Z (IOCHRDY); MD5 must be pulled low during reset by the internal pull- down resistor. • For Philips PR31500/31700 Bus, this pin outputs the wait state signal (/CARDxWAIT); MD5 must be pulled low during reset by the internal pull-down resistor.
Configuration Options. Internal pull-down resistors (typical values of 100K at 5V/3.3V respectively) pull the reset states to 0. External pull-up resistors can be used to pull the reset states to 1. See Memory Interface Timing for detailed functionality. Page 29 Description S1D13505 X23A-A-001-14...
Analog output for CRT color Red Analog output for CRT color Green Analog output for CRT color Blue Current reference for DAC - see Analog Pins. This pin must be left unconnected if the DAC is not needed. Page 31 Description Description S1D13505 X23A-A-001-14...
• When MD9 = 0 at rising edge of RESET#, this pin is an Hi-Z if MD[9]=0 active-low Schmitt input used to put the S1D13505 into High if Hardware Suspend mode - see Section 15, “Power Save CS/TS1 MD[10:9]=01 Modes”...
R/W# WE0# WE0# WE0# WAIT# WAIT# DTACK# DSACK1# RESET# RESET# RESET# RESET# Note The bus signal A0 is not used by the S1D13505 internally. S1D13505 X23A-A-001-14 Table 5-6: CPU Interface Pin Mapping Philips MC68K Generic MIPS/ISA PR31500 Bus 2 /PR31700...
Epson Research and Development Vancouver Design Center S1D13505 Sym 256Kx16 Pin Names 2-CAS# 2-WE# MD[15:0] MA[8:0] GPIO3 MA10 MA11 UCAS# UCAS# UWE# LCAS# LCAS# CAS# LWE# RAS# Note All GPIO pins default to input on reset and unless programmed otherwise, should be connected...
DAC V = 3.3V 1.5k 4.6 mA 2N2222 DAC V DAC V DAC V To CRT DAC V Figure 5-3: External Circuitry for CRT Interface DAC V = 2.7V to 5.5V 4.6 mA LM334 1N457 DAC V Page 37 S1D13505 X23A-A-001-14...
Output Voltage Storage Temperature Solder Temperature/Time Symbol Parameter Supply Voltage Input Voltage Operating Temperature S1D13505 X23A-A-001-14 Table 6-1: Absolute Maximum Ratings - 0.3 to 6.0 - 0.3 to 6.0 - 0.3 to V + 0.5 - 0.3 to V + 0.5 -65 to 150 260 for 10 sec.
D[15:0](read) Note The above timing diagram is not applicable if the BUSCLK divided by 2 configuration option is selected. S1D13505 X23A-A-001-14 = 3.0V ± 10% and V = 5.0V ± 10% for all inputs must be 5 nsec (10% ~ 90%)
Vancouver Design Center Note The SH-4 Wait State Control Register for the area in which the S1D13505 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).
The above timing diagram is not applicable if the BUSCLK divided by 2 configuration option is selected. Note The SH-3 Wait State Control Register for the area in which the S1D13505 resides must be set to a non-zero value. S1D13505...
Rising edge RD# to D[15:0] tri-state (read cycle) If the S1D13505 host interface is disabled, the timing for WAIT# driven is relative to the fall- ing edge of CSn# or the first positive edge of CKIO after A[20:0], M/R# becomes valid, whichever one is later.
DTACK# D[15:0](write) D[15:0](read) Note The above timing diagram is not applicable if the BUSCLK divided by 2 configuration option is selected. S1D13505 X23A-A-001-14 Figure 7-3: MC68000 Timing Epson Research and Development Vancouver Design Center Hardware Functional Specification Issue Date: 01/02/02...
If the S1D13505 host interface is disabled, the timing for D[15:0] driven is relative to the fall- ing edge of UDS#, LDS# or the first positive edge of CLK after A[20:1], M/R# becomes valid, whichever one is later.
DSACK1# D[31:16](write) D[31:16](read) Note The above timing diagram is not applicable if the BUSCLK divided by 2 configuration option is selected. S1D13505 X23A-A-001-14 Figure 7-4: MC68030 Timing Epson Research and Development Vancouver Design Center Hardware Functional Specification Issue Date: 01/02/02...
AS# high setup to CLK If the S1D13505 host interface is disabled, the timing for DSACK1# driven high is relative to the falling edge of CS#, AS# or the first positive edge of CLK after A[20:0], M/R# becomes valid, whichever one is later.
-WAIT D[15:0](write) D[15:0](read) Note The above timing diagram is not applicable if the BUSCLK divided by 2 configuration option is selected. S1D13505 X23A-A-001-14 Figure 7-5: PC Card Timing Epson Research and Development Vancouver Design Center Hardware Functional Specification Issue Date: 01/02/02...
Rising edge of -OE to D[15:0] tri-state (read cycle) If the S1D13505 host interface is disabled, the timing for -WAIT driven low is relative to the falling edge of -OE, -WE or the first positive edge of CLK after A[20:0], M/R# becomes valid, whichever one is later.
WAIT# D[15:0](write) D[15:0](read) Note The above timing diagram is not applicable if the BUSCLK divided by 2 configuration option is selected. S1D13505 X23A-A-001-14 Figure 7-6: Generic Timing Epson Research and Development Vancouver Design Center Hardware Functional Specification Issue Date: 01/02/02...
Rising edge of RD0#,RD1# to D[15:0] tri-state (read cycle) If the S1D13505 host interface is disabled, the timing for WAIT# driven low is relative to the falling edge of RD0#, RD1#, WE0#, WE1# or the first positive edge of CLK after A[20:0], M/R# becomes valid, whichever one is later.
IOCHRDY SD[15:0](write) SD[15:0](read) Note The above timing diagram is not applicable if the BUSCLK divided by 2 configuration option is selected. S1D13505 X23A-A-001-14 Figure 7-7: MIPS/ISA Timing Epson Research and Development Vancouver Design Center Hardware Functional Specification Issue Date: 01/02/02...
SD[15:0] setup to rising edge IOCHRDY# (read cycle) Rising edge of MEMR# toSD[15:0] tri-state (read cycle) If the S1D13505 host interface is disabled, the timing for IOCHRDY driven low is relative to the falling edge of MEMR#, MEMW# or the first positive edge of BUSCLK after LatchA20, SA[19:0], M/R# becomes valid, whichever one is later.
DCLKOUT after ADDR[12:0] becomes valid, whichever one is later. If the S1D13505 host interface is disabled, the timing for D[31:16] driven is relative to the falling edge of chip select or the second positive edge of DCLKOUT after ADDR[12:0] be- comes valid, whichever one is later.
DCLKOUT after ADDR[12:0] becomes valid, whichever one is later. If the S1D13505 host interface is disabled, the timing for D[31:16] driven is relative to the falling edge of chip select or the second positive edge of DCLKOUT after ADDR[12:0] be- comes valid, whichever one is later.
TSIZ[0:1], M/R# D[0:15](write) D[0:15](read) Note The above timing diagram is not applicable if the BUSCLK divided by 2 configuration option is selected. S1D13505 X23A-A-001-14 Figure 7-12: Power PC Timing Epson Research and Development Vancouver Design Center t15 t16 Hardware Functional Specification...
Input Clock Fall Time (10% - 90%) Input Clock Rise Time (10% - 90%) Note When CLKI is more than 40MHz, REG[19h] bit 2 must be set to 1 (MCLK = CLKI/2). S1D13505 X23A-A-001-14 Figure 7-13: Clock Input Requirement Parameter...
FPDATA, DRDY active FPLINE, FPSHIFT, FPDATA, DRDY active to LCDPWR, on and FPFRAME active CLKI active to SUSPEND# inactive Note Where T S1D13505 X23A-A-001-14 Table 7-21: LCD Panel Power Off/ Power On Parameter is the period of FPFRAME and T FPFRAME...
Note It is recommended that memory access not be performed after a Power Save Mode has been initiated. Hardware Functional Specification Issue Date: 01/02/02 not allowed Parameter Page 75 allowed Units Frames MCLK MCLK S1D13505 X23A-A-001-14...
Example timing for a 640x480 panel Figure 7-28: 4-Bit Single Color Passive LCD Panel Timing = Vertical Display Period VNDP = Vertical Non-Display Period = Horizontal Display Period HNDP = Horizontal Non-Display Period S1D13505 X23A-A-001-14 LINE1 LINE2 LINE3 LINE4 LINE479 LINE480 1-G2...
Example timing for a 640x480 panel Figure 7-30: 8-Bit Single Color Passive LCD Panel Timing (Format 1) = Vertical Display Period VNDP = Vertical Non-Display Period = Horizontal Display Period HNDP = Horizontal Non-Display Period S1D13505 X23A-A-001-14 LINE1 LINE2 LINE3 LINE4 LINE479 LINE480 1-R1...
Example timing for a 640x480 panel Figure 7-32: 8-Bit Single Color Passive LCD Panel Timing (Format 2) = Vertical Display Period VNDP = Vertical Non-Display Period = Horizontal Display Period HNDP = Horizontal Non-Display Period S1D13505 X23A-A-001-14 LINE1 LINE2 LINE3 LINE4 LINE479 LINE480 1-B3...
Example timing for a 640x480 panel Figure 7-34: 16-Bit Single Color Passive LCD Panel Timing = Vertical Display Period VNDP = Vertical Non-Display Period = Horizontal Display Period HNDP = Horizontal Non-Display Period S1D13505 X23A-A-001-14 LINE1 LINE2 LINE3 LINE4 LINE479 LINE480 1-R1...
Figure 7-36: 8-Bit Dual Monochrome Passive LCD Panel Timing = Vertical Display Period VNDP = Vertical Non-Display Period = Horizontal Display Period HNDP = Horizontal Non-Display Period S1D13505 X23A-A-001-14 LINE 1/241 LINE 2/242 LINE 3/243 LINE 4/244 LINE 239/479 LINE 240/480...
* Diagram drawn with 2 FPLINE vertical blank period Example timing for a 640x480 panel = Vertical Display Period VNDP = Vertical Non-Display Period = Horizontal Display Period HNDP = Horizontal Non-Display Period S1D13505 X23A-A-001-14 LINE 1/241 LINE 2/242 LINE 3/243 LINE 4/244 1-G2 1-R 1...
Figure 7-40: 16-Bit Dual Color Passive LCD Panel Timing = Vertical Display Period VNDP = Vertical Non-Display Period = Horizontal Display Period HNDP = Horizontal Non-Display Period S1D13505 X23A-A-001-14 LINE 1/241 LINE 2/242 LINE 3/243 LINE 4/244 LINE 239/479 LINE 240/480...
Epson Research and Development Vancouver Design Center FPFRAME FPLINE FPLINE DRDY FPSHIFT R[5:1] G[5:0] B[5:1] Note: DRDY is used to indicate the first pixel Hardware Functional Specification Issue Date: 01/02/02 Figure 7-43: TFT/D-TFD A.C. Timing X23A-A-001-14 Page 95 S1D13505...
8 Registers 8.1 Register Mapping The S1D13505 registers are memory mapped. The system addresses the registers through the CS#, M/R#, and AB[5:0] input pins. When CS# = 0 and M/R# = 0, the registers are mapped by address bits AB[5:0], e.g. REG[00h] is mapped to AB[5:0] = 000000, REG[01h] is mapped to AB[5:0] = 000001.
Frame Buffer is disabled (REG[1Bh] bit 0 = 1), and the Ink/Cursor is inactive (Reg[27h] bits 7-6 = 00). This condition also occurs when the CRT and LCD enable bits (Reg[0Dh] bits 1-0) have remained 0 since chip reset. For further programming information, see S1D13505 Programming Notes and Examples, document number X23A-G-003-xx.
TFT/D-TFD Panel Data Width Width Size 4-bit 8-bit 16-bit Reserved MOD Rate Bit MOD Rate Bit MOD Rate Bit Page 101 TFT/ Passive Dual/Single LCD Panel Panel Select Select Size 9-bit 12-bit 16-bit Reserved MOD Rate Bit MOD Rate Bit S1D13505 X23A-A-001-14...
The recommended minimum value which should be programmed into this register is 3 (32 pixels). The maximum value which can be programmed into this register is 1Fh, which gives a horizontal non-display period of 256 pixels. Note This register must be programmed such that REG[05h] S1D13505 X23A-A-001-14 Horizontal Horizontal Display Width Display Width...
(REG[06h] + 1) + (REG[07h] bits [3:0] +1) Page 103 HRTC/ HRTC/ FPLINE Start FPLINE Start Position Bit 1 Position Bit 0 HRTC/ HRTC/ FPLINE Pulse FPLINE Pulse Width Bit 1 Width Bit 0 active low active high S1D13505 X23A-A-001-14...
Vertical Non-Display Period Bits [5:0] These bits specify the vertical non-display period. Vertical non-display period (lines) = Vertical Non-Display Period Bits [5:0] + 1 Note This register must be programmed such that REG[0Ah] S1D13505 X23A-A-001-14 Vertical Vertical Vertical Display Display...
(REG[0Bh] + 1) + (REG[0Ch] bits [2:0] + 1) Page 105 VRTC/ VRTC/ FPFRAME FPFRAME Start Position Start Position Bit 1 Bit 0 VRTC/ VRTC/ FPFRAME FPFRAME Pulse Width Pulse Width Bit 1 Bit 0 TFT/D-TFD FPFRAME Polarity active low active high S1D13505 X23A-A-001-14...
Simultaneous Display, the Half Frame Buffer Disable, REG[1Bh] bit 0, must be set to 1. This results in a lower contrast on the LCD panel, which may require adjustment. 2. The Line doubling option is not supported with dual panel. S1D13505 X23A-A-001-14 Bit-per-pixel...
8 bpp 15 bpp 16 bpp Reserved Screen 1 Line Screen 1 Line Screen 1 Line Compare Bit 2 Compare Bit 1 Compare Bit 0 Screen 1 Line Screen 1 Line Compare Bit 9 Compare Bit 8 X23A-A-001-14 Page 107 S1D13505...
A combination of this register and the Pixel Panning register (REG[18h]) can be used to uniquely identify the start (top left) pixel within the Screen 2 image stored in the display buffer. See “Display Configuration” for details. S1D13505 X23A-A-001-14 Start Address...
When this bit = 0, the chip is either powered up, in transition of powering up, or in transition of powering down. See Section 15 Power Save Modes for details. S1D13505 X23A-A-001-14 MCLK Divide...
1 GPIO1 Pin IO Configuration When this bit = 1, the GPIO1 pin is configured as an output pin. When this bit = 0 (default), the GPIO1 pin is configured as an input pin. S1D13505 X23A-A-001-14 MD[4] Status MD[3] Status...
GPO output is set to the inverse of the reset state. For information on the reset state of this pin see “Miscellaneous Interface Pin Descriptions“ on page 32 and “Summary of Power On/Reset Options“ on page 33. Hardware Functional Specification Issue Date: 01/02/02 GPIO3 Pin GPIO2 Pin IO Status IO Status Page 113 GPIO1 Pin IO Status S1D13505 X23A-A-001-14...
(REG[1Bh] bit 0 = 1), and the Ink/Cursor is inactive (Reg[27h] bits 7-6 = 00). This condition also occurs when the CRT and LCD enable bits (Reg[0Dh] bits 1-0) have remained 0 since chip reset. For further programming information, see S1D13505 Programming Notes and Examples, docu- ment number X23A-G-003-xx.
FPM and N = 1 or 2 if FPM and N = 1.5 = 1 or 2 = 1.5 = 1 or 2 = 1.5 RAS#-to-CAS# Delay (t . These bits specify the number = 1 or 2 X23A-A-001-14 Page 115 S1D13505...
When this bit = 0 the display FIFO is enabled. Note For further performance increase in dual panel mode disable the half frame buffer (see section 8.2.7) and disable the cursor (see section 8.2.9). S1D13505 X23A-A-001-14 Table 8-14: RAS Precharge Timing Select Reserved...
7-0 LUT Address Bits [7:0] These 8 bits control a pointer into the Look-Up Tables (LUT). The S1D13505 has three 256-posi- tion, 4-bit wide LUTs, one for each of red, green, and blue – refer to “Look-Up Table Architecture”...
Position Bit 6 Position Bit 5 Cursor X Position Register 1 REG[29h] Reserved REG[29] bit 7 Reserved This bit must be set to 0. S1D13505 X23A-A-001-14 LUT Data Bit 0 Cursor High Threshold Bit 3 Table 8-17: Ink/Cursor Selection REG[27h]...
Cursor Y Position Bit 1 Position Bit 0 Cursor Y Cursor Y Position Bit 9 Position Bit 8 Cursor Color Cursor Color 0 Bit 1 0 Bit 0 Cursor Color Cursor Color 0 Bit 9 0 Bit 8 S1D13505 X23A-A-001-14...
The Ink/Cursor image is stored contiguously. The address offset from the starting word of line n to the starting word of line n+1 is calculated as follows: Ink Address Offset (words) = REG[04h] + 1 Cursor Address Offset (words) = 8 S1D13505 X23A-A-001-14 Cursor Color Cursor Color...
Bit 4 Bit 3 Table 8-19: Recommended Alternate FRM Scheme Panel Mode Single Passive Alternate Alternate Alternate Bit 2 Bit 1 Bit 0 Register Value 0000 0000 or 1111 1111 0000 0000 or 1111 1010 1111 1111 X23A-A-001-14 Page 121 S1D13505...
6D400h to 7FFFFh. In a 2M byte display buffer, the half-frame buffer resides from 1ED400h to 1FFFFFh. Hardware Functional Specification Issue Date: 01/02/02 = 4 for color panel = 1 for monochrome panel Page 123 S1D13505 X23A-A-001-14...
Green Look-Up Table 256x4 Blue Look-Up Table 256x4 1 bit-per-pixel data from Image Buffer Figure 11-4: 1 Bit-per-pixel Color Mode Data Output Path Hardware Functional Specification Issue Date: 01/02/02 4-bit Red Data 4-bit Green Data 4-bit Blue Data Page 129 S1D13505 X23A-A-001-14...
Red Look-Up Table 256x4 Green Look-Up Table 256x4 Blue Look-Up Table 256x4 2 bit-per-pixel data from Image Buffer Figure 11-5: 2 Bit-per-pixel Color Mode Data Output Path S1D13505 X23A-A-001-14 Epson Research and Development 4-bit Red Data 4-bit Green Data 4-bit Blue Data...
Figure 11-7: 8 Bit-per-pixel Color Mode Data Output Path 15/16 Bit-per-pixel Color Modes The LUT is bypassed and the color data is directly mapped for this color mode – See “Display Configuration” on page 124. S1D13505 X23A-A-001-14 Epson Research and Development 0000 0000...
• position an Ink buffer between the image and half-frame buffers; • position a Cursor buffer between the image and half-frame buffers; • select from a multiple of Cursor buffers. = (A Panel Display S1D13505 X23A-A-001-14 Page 133...
Note There is no means to set a negative cursor position. If a cursor must be set to a negative position, this must be dealt with through software. S1D13505 X23A-A-001-14 ), selects the color for pixel n as follows: Table 12-2: Ink/Cursor Color Select...
The display is refreshed in the following sense: C–A–D–B. The application image is written to the S1D13505 in the following sense: A–B–C–D. The S1D13505 rotates and stores the application image in the following sense: C–A–D–B, the same sense as display refresh.
The following table summarizes the DRAM size requirement for SwivelView using different panel sizes and display modes. Note that DRAM size for the S1D13505 is limited to either 512K byte or 2M byte. The calculation is based on the minimum required image buffer size. The calculated minimum display buffer size is based on the image buffer and the half-frame buffer only;...
• Hardware cursor and ink layer images are not rotated – software rotation must be used. Swivel- View must be turned off when the programmer is accessing the sprite or the ink layer. • Split screen images appear side-by-side, i.e. the portrait display is split vertically. • Pixel panning works vertically. S1D13505 X23A-A-001-14 Display Half-Frame...
• Simultaneous CRT + Dual Monochrome Panel with Half Frame Buffer Enable. • Dual Color with Half Frame Buffer Enabled. • Simultaneous CRT + Dual Color Panel with Half Frame Buffer Enable. S1D13505 X23A-A-001-14 Epson Research and Development Maximum PCLK allowed 1 bpp...
Page 148
800x600 @ 16 bpp requires 2M bytes of display buffer for all display types. 800x600 @ 8 bpp on a dual color panel requires 2M bytes of display buffer if the half frame buffer is enabled. S1D13505 X23A-A-001-14 Color Depth...
Percentage of non display period for dual panel = (680*242 - 640*240)/680*242) = 6.6% Average Bandwidth = Percentage of non display period * Bandwidth during non display period + (1- Percentage of non display period) * Bandwidth during display period S1D13505 X23A-A-001-14 Table 14-5: Total # MCLKs taken for Display refresh Display...
Page 152
MCLK = 25MHz Enabled. • Simultaneous CRT + Dual Monochrome Panel with Half Frame Buffer Enable. • Dual Color Panel with Half Frame Buffer Enabled. S1D13505 X23A-A-001-14 Epson Research and Development Vancouver Design Center Max. Pixel Maximum Bandwidth (M byte/sec)
Epson Research and Development Vancouver Design Center 15 Power Save Modes Three power save modes are incorporated into the S1D13505 to meet the important need for power reduction in the hand-held device market. Function Display Active? Register Access Possible? Memory Access Possible?
Page 148 16 Mechanical Data 128-pin QFP15 surface mount package S1D13505 X23A-A-001-14 16.0 ± 0.4 14.0 ± 0.1 Index 0.16 ± 0.1 0.5 ± 0.2 Figure 16-1: Mechanical Drawing QFP15 Epson Research and Development Vancouver Design Center Unit: mm 0~10°...
Page 156
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Programming Notes and Examples X23A-G-003-07 Issue Date: 01/02/05...
Page 159
12.1 Introduction ....... 84 12.1.1 Sample code using the S1D13505 HAL API ..... 84 12.1.2 Sample code without using the S1D13505 HAL API .
Page 160
Page 6 Epson Research and Development Vancouver Design Center S1D13505 Programming Notes and Examples X23A-G-003-07 Issue Date: 01/02/05...
Page 161
Vancouver Design Center Table 2-1: S1D13505 Initialization Sequence ......12 Table 4-1: Look-Up Table Configurations ......21 Table 4-2: Recommended LUT Values for 1 Bpp Color Mode .
Page 162
Page 8 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Programming Notes and Examples X23A-G-003-07 Issue Date: 01/02/05...
Page 163
Figure 11-1: Components needed to build 13505 HAL application ....78 Programming Notes and Examples Issue Date: 01/02/05 List of Figures Page 9 S1D13505 X23A-G-003-07...
Page 164
Page 10 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Programming Notes and Examples X23A-G-003-07 Issue Date: 01/02/05...
Vancouver Design Center 1 Introduction This guide describes how to program the S1D13505 Embedded RAMDAC LCD/CRT Controller. The guide presents the basic concepts of the LCD/CRT controller and provides methods to directly program the registers. It explains some of the advanced techniques used and the special features of the S1D13505.
2 Initialization This section describes how to initialize the S1D13505. Sample code for performing initialization of the S1D13505 is provided in the file init13505.c which is available on the internet at http://www.eea.epson.com. S1D13505 initialization can be broken into three steps. First, enable the S1D13505 controller (if necessary identify the specific controller).
Page 167
Epson Research and Development Vancouver Design Center Table 2-1: S1D13505 Initialization Sequence (Continued) Register Value [06] 0000 0000 FPLINE start position - only required for CRT or TFT/D-TFD [07] 0000 0000 FPLINE polarity set to active high [08] 1110 1111...
Page 168
Page 14 Table 2-1: S1D13505 Initialization Sequence (Continued) Register Value [24] 0000 0000 [26] 0000 0000 [27] 0000 0000 [28] 0000 0000 [29] 0000 0000 The remaining register control operation of the LUT and [2A] 0000 0000 hardware cursor/ink layer. During the chip initialization none of these registers needs to be set.
Alternate FRM Register (REG[31h]) with the recommended value of FFh may produce more visually appealing output. For further information on the half frame buffer and the Alternate FRM Register see the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx. Programming Notes and Examples Issue Date: 01/02/05...
3.1 Display Buffer Location The S1D13505 supports either a 512k byte or 2M byte display buffer. The display buffer is memory mapped and can be accessed directly by software. The memory location allocated to the S1D13505 display buffer varies with each individual hardware platform, and is determined by the OEM.
Pixel 0 Pixel 1 Pixel 1 Bit 0 Bit 3 Bit 2 Page 17 Bit 1 Bit 0 Pixel 3 Pixel 3 Bit 1 Bit 0 Bit 1 Bit 0 Pixel 1 Pixel 1 Bit 1 Bit 0 S1D13505 X23A-G-003-07...
At this color depth the read-modify-write cycles of the lessor pixel depths are eliminated. Each byte indexes into one of the 256 positions of the Look-Up Table. The S1D13505 LUT supports four bits per primary color, therefore this translates into 4096 possible colors when color mode is selected.
Figure 3-6: Pixel Storage for 16 Bpp (65536 Colors/16 Gray Shades) in Two Bytes of Display Buffer In 16 bit-per-pixel mode the S1D13505 is capable of generating 65536 colors. The 65536 color pixel is divided into three parts: five bits for red, six bits for green, and five bits for blue.
LUT. Refer to the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx for more detail. The S1D13505 Look-Up Table is used for both the CRT and panel interface and consists of 256 indexed red/green/blue entries. Each entry is 4 bits wide. Two registers, at offsets 24h and 26h, control access to the LUT.
This intensity can range in value between 0 and 0Fh. • The S1D13505 Look-Up Table is linear; increasing the LUT entry number results in a lighter color or gray shade. For example, a LUT entry of 0Fh into the red LUT entry will result in a bright red output while a LUT entry of 5 would result in a dull red.
Page 176
The selection of which entries are used is automatic. 1 bpp color When the S1D13505 is configured for 1 bpp color mode, the LUT is limited to the first two entries. The two LUT entries can be any two RGB values but are typically set to black-and- white.
Page 177
Vancouver Design Center 4 bpp color When the S1D13505 is configured for 4 bpp color mode the first 16 entries in the LUT are used. Each byte in the display buffer contains two adjacent pixels. The upper and lower nibbles of the byte are used as indices into the LUT.
Page 178
VGA RAMDAC and the S1D13505 LUT. (i.e. VGA levels 0 - 3 map to LUT level 0, VGA levels 4 - 7 map to LUT level 1...). Additionally, the significant bits of the color tables are located at different offsets within their respective bytes.
Page 179
The Look-Up Table is bypassed at this color depth, hence programming the LUT is not necessary. 16 bpp color The Look-Up Table is bypassed at this color depth, hence programming the LUT is not necessary. Programming Notes and Examples Issue Date: 01/02/05 Index Index S1D13505 X23A-G-003-07 Page 25...
Page 180
In 2 bpp gray shade mode the first four green elements are used to provide values to the panel. The remaining indices are unused. Table 4-7: Suggested Values for 2 Bpp Gray Shade Index S1D13505 X23A-G-003-07 Address Green = Required to match CRT to panel...
Page 181
Four bits of green resolves to 16 colors. Now however, each pixel requires two bytes. Programming Notes and Examples Issue Date: 01/02/05 Index Green Blue Required to match CRT to panel Unused entries Page 27 S1D13505 X23A-G-003-07...
Page 182
As with 8 bpp there are limitations to the colors which can be displayed. In this mode the four most significant bits of green are used to set the absolute intensity of the image. Four bits of green resolves to 16 colors. Now however, each pixel requires two bytes. S1D13505 X23A-G-003-07 Epson Research and Development...
In addition to the calculated limit the virtual vertical size is limited by the size and location of the half frame buffer and the ink/cursor if present. Programming Notes and Examples Issue Date: 01/02/05 Page 29 or 2048 words. S1D13505 X23A-G-003-07...
To maintain a constant virtual width as color depth changes, the memory address offset must also change. At 1 bpp each word contains 16 pixels, at 16 bpp each word contains one pixel. The formula to determine the value for these registers is: offset = pixels_per_line / pixels_per_word S1D13505 X23A-G-003-07 320x240 Viewport 640x480 “Virtual”...
“virtual” image. After determining the amount of memory used by each line, do a calculation to see if there is enough memory to support the desired number of lines. 1. Initialize the S1D13505 registers for a 320x240 panel. (See Introduction on page 11). 2. Determine the offset register value.
At color depths less than 15 bpp a second register, the pixel pan register, is required for smooth pixel level panning. Internally, the S1D13505 latches different signals at different times. Due to this internal sequence, there is an order in which the start address and pixel pan registers should be accessed during scrolling operations to provide the smoothest scrolling.
Table 5-2: Active Pixel Pan Bits Color Depth (bpp) Pixel Pan bits used bits [3:0] bits [2:0] bits [1:0] bit 0 15/16 Screen 1 Screen 1 Screen 1 Pixel Pan Bit Pixel Pan Bit Pixel Pan Bit Page 33 S1D13505 X23A-G-003-07...
Page 188
2. Increment the start address by the number of words per virtual line. start_address = start_address + words 3. Separate the start address value into three bytes. Write the LSB to register [10h] and the MSB to register [12h]. S1D13505 X23A-G-003-07 320x240 single panel LCD. Epson Research and Development...
The Split Screen feature of the S1D13505 allows a programmer to setup a display for such an application. The figure below illustrates setting a 320x240 panel to have Image 1 displaying from scan line 0 to scan line 99 and image 2 displaying from scan line 100 to scan line 239.
Page 190
1 (i.e. screen 2 could be coming from offset 0 in the display buffer while screen 1 was coming from an offset located several thousand bytes into the display buffer). While not particularly useful, it is possible to set screen 1 and screen 2 to the same address. S1D13505 X23A-G-003-07 Start Addr...
Write the screen 2 start address registers [15h], [14h] and [13h] with the values 00h, 4Bh and 00h respectively. Programming Notes and Examples Issue Date: 01/02/05 is located immediately after image 1 in the display buffer. Assume a 640x480 display and a color depth of 1 bpp. Page 37 S1D13505 X23A-G-003-07...
Bit 1 Bit 0 The LCD Enable bit triggers all automatic power sequencing. Setting the LCD Enable bit to 1 causes the S1D13505 to enable the LCD display. The following sequence of events occurs: 1. Confirms the LCD power is disabled.
If your situation requires using the LCD Power Disable bit, see Section 6.1.2, “LCD Power Disable” on page 39 for the correct procedure. The LCD Enable bit (REG[0Dh] bit 0) should be set to 1 to allow the S1D13505 to power-on the LCD using the automatic LCD Power Sequencing.
- This changes the display resolution to minimum (32x1). 3. Set REG[1Ah] bit 0 to 0 - Enables power save mode. 4. Wait delay time (based on new frame rate, see S1D13505 Hardware Functional Spec- ification, document number X23A-A-001-xx) - at this time any clocks can be disabled.
The Power Save Status bit is a read-only status bit which indicates the power-save state of the S1D13505. When this bit returns a 1, the panel is powered-off and the memory is in a suspend memory refresh mode. When this bit returns a 0, the S1D13505 is either powered- on, in transition of powering-on, or in transition of powering-off.
Page 42 6.3 Hardware Power Save The S1D13505 supports a hardware suspend power save mode. This mode is not program- mable by software. It is controlled directly by the S1D13505 SUSPEND# pin. While hardware suspend is enabled the following conditions apply.
7 Hardware Cursor/Ink Layer 7.1 Introduction The S1D13505 provides hardware support for a cursor or an ink layer. These features are mutually exclusive and therefore only one or the other may be active at any given time. A hardware cursor improves video throughput in graphical operating systems by off- loading much of the work typically assigned to software.
When ink mode is selected these registers should be set to zero. Cursor X Position bits 9-0 determine the horizontal location of the cursor. With 10 bits of resolution the horizontal cursor range is 1024 pixels. S1D13505 X23A-G-003-07 Cursor High Threshold...
Page 199
Cursor Color 0 bit 9 0 bit 8 Cursor Color Cursor Color 1 bit 1 1 bit 0 Cursor Color Cursor Color 1 bit 9 1 bit 8 Ink/Cursor Ink/Cursor Start Address Start Address bit 1 bit 0 S1D13505 X23A-G-003-07...
No Top/Left Clipping on Hardware Cursor The S1D13505 does not clip the hardware cursor on the top or left edges of the display. For cursor shapes where the hot spot is not the upper left corner of the image (the hourglass for instance), the cursor image will have to be modified to clip the cursor shape.
S1D13x0x products, however, the S1D13505 does not support 180° or 270° rotation. 8.2 S1D13505 SwivelView The S1D13505 provides hardware support for SwivelView in 8, 15 and 16 bpp modes. Enabling SwivelView carries several conditions: • The (virtual) display offset must be set to 1024 pixels.
SwivelView must be turned off when the programmer is accessing the Hardware Cursor or the Ink Layer. • Split screen images appear side-by-side, i.e. when SwivelView is enabled the screen is split vertically. • Pixel panning works vertically. S1D13505 X23A-G-003-07 Bit-Per-Pixel Bit-Per-Pixel Bit-Per-Pixel...
3. Write the start address during the display enabled portion of the frame. a) loop waiting for vertical non-display (b7 of register [0Ah] high). do register = ReadRegister(0Ah) Programming Notes and Examples Issue Date: 01/02/05 by 4 pixels. while (80h != (register & 80h)); Page 49 S1D13505 X23A-G-003-07...
Page 204
Write the new pixel panning value. register = ReadRegister(18h); register &= F0h; register |= (PixelPan & 0Fh); WriteRegister(18h, register); S1D13505 X23A-G-003-07 while (80h == (register & 80h)); while (80h == (register & 80h)); while (80h != (register & 80h));...
Vancouver Design Center 9 CRT Considerations 9.1 Introduction The S1D13505 is capable of driving either an LCD panel, or a CRT display, or both simul- taneously. As display devices, panels tend to be lax in their horizontal and vertical timing require- ments.
Page 52 10 Identifying the S1D13505 The S1D13505 can only be identified once the host interface has been enabled. The steps to identify the S1D13505 are: 1. If using an ISA evaluation board in a PC follow steps a. and b.
13505CFG.EXE allows quick customization of a program for a new target display or environment. Using the HAL keeps sample code simpler, although some programmers may find the HAL functions to be limited in their scope, and may wish to program the S1D13505 without using the HAL. 11.2 Contents of the HAL_STRUCT The HAL_STRUCT below is contained in the file “hal.h”...
Page 54 Within the Regs array in the structure are all the registers defined in the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx. Using the 13505CFG.EXE utility you can adjust the content of the registers contained in HAL_STRUCT to allow for different LCD panel timing values and other default settings used by the HAL.
Page 209
Initialize virtual screen mode setting x and y sizes seVirtMove pan/scroll the virtual screen surface(s) seSetReg Write a Byte value to the specified S1D13505 register seSetWordReg Write a Word value to the specified S1D13505 register seSetDwordReg Write a Dword value to the specified S1D13505 register...
Description Ink Layer: Power Save: This function registers the S1D13505 device parameters with the HAL library. The device parameters include address range, register values, desired frame rate, etc., and are stored in the HAL_STRUCT structure pointed to by lpHalInfo. Additionally this routine allocates system memory as address space for accessing registers and the display buffer.
Page 211
- operation completed with no problems This routine sets the S1D13505 registers for operation using the default settings. Initialization of the S1D13505 is a two step process consisting of initializing the HAL (seInitHal) and initializing the S1D13505 registers (seSetInit). Unlike the HAL the registers do not necessarily require initialization at program startup and may be initialized as needed (e.g.
Parameters: S1D13505 X23A-G-003-07 This routine sets the S1D13505 registers according to the values contained in the HAL_STRUCT register section. Setting all the registers means that timing, display surface dimensions, and all other aspects of chip operation are set with this call, including loading default values into the color Look-Up Tables (LUTs).
Page 213
Return Value: ERR_OK int seGetMemSize(int DevID, DWORD * pSize) Description: Programming Notes and Examples Issue Date: 01/02/05 For the S1D13505 the return values are currently: ID_S1D13505_REV0 ID_UNKNOWN Other HAL libraries will return their respective controller IDs upon detection of their controller.
Page 214
DevID, UINT * pBytes) Description: Parameters: Return Value: ERR_OK - operation completed with no problems int seGetScreenSize(int DevID, UINT * Width, UINT * Height) Description: S1D13505 X23A-G-003-07 DevID - registered device ID pSize - pointer to a DWORD to receive the size...
Page 215
Return value: ERR_OK int seSelectBusWidth(int DevID, int Width) Description: Parameters: Return Value: ERR_OK Note This call applies to the S1D13505 ISA evaluation cards only. int seGetHostBusWidth(int DevID, int * Width) Description: Parameters: Return Value: ERR_OK int seDisplayEnable(int DevID, BYTE State)
This function was originally intended for non-PC platforms. Because information on how to access the timers was not always immediately available, we use the frame rate for timing calculations. The S1D13505 registers must be initialized for this function to work correctly.
Page 217
The smallest screen 1 can be set to is one line. This is due to the way the register values are used internally on the S1D13505. Setting the line compare register to zero results in one line of screen 1 being displayed followed by screen 2.
Return Value: ERR_OK Note seVirtInit() must be called before calling seVirtMove(). 11.5.3 Register / Memory Access The Register/Memory Access functions provide access to the S1D13505 registers and display buffer through the HAL. int seSetReg(int DevID, int Index, BYTE Value) Description:...
Page 219
- operation completed with no problems This routine writes one or more bytes to the display buffer at the offset specified by Offset. If a count greater than one is specified all bytes will have the same value. Page 65 S1D13505 X23A-G-003-07...
Page 220
Note If offset + (count*4) > memory size, this function will limit the writes to the end of memory. int seReadDisplayByte(int DevID, DWORD Offset, BYTE *pByte) Description: S1D13505 X23A-G-003-07 DevID - registered device ID Offset - offset from start of the display buffer...
A Look-Up Table entry consists of three bytes, one each for Red, Green, and Blue. The color information is stored in the four most significant bits of each byte. DevID - registered device ID pLut - pointer to an array of BYTE lut[16][3] lut[x][0] == RED component Page 67 S1D13505 X23A-G-003-07...
Page 222
DevID, int index, BYTE *pEntry) Description: Parameters: Return Value: ERR_OK int seSetBitsPerPixel(int DevID, UINT BitsPerPixel) Description: S1D13505 X23A-G-003-07 lut[x][1] == GREEN component ut[x][2] == BLUE component Count - the number of LUT entries to write. - operation completed with no problems This routine reads one or more LUT entries and puts the result in the byte array pointed to by pLUT.
2) factors such as input clock and memory speed will affect the ability to set some color depths. If the requested color depth cannot be set this call will fail This function reads the S1D13505 registers to determine the current color depth and returns the result in pBitsPerPixel. DevID...
Page 224
Description: Parameters: Return Value: ERR_OK int seDrawEllipse(int DevID, long xc, long yc, long xr, long yr, DWORD Color, BOOL SolidFill) S1D13505 X23A-G-003-07 DevID - Registered device ID - horizontal coordinate of the pixel (starting from 0) - vertical coordinate of the pixel (starting from 0) pColor - at 1, 2, 4, and 8 bpp pColor points to an index into the LUT.
- unused - operation completed with no problems. Prepares the hardware cursor for use. This consists of determining a location in display buffer for the cursor, setting cursor memory to the transparent color and enabling the cursor. Page 71 S1D13505 X23A-G-003-07...
Page 226
DevID, long x, long y) Description: Parameters: Return Value: ERR_OK int seSetCursorColor(int DevID, int Index, DWORD Color) Description: S1D13505 X23A-G-003-07 When this call returns the cursor is enabled, the cursor image is transparent and ready to be drawn. DevID - a registered device ID...
Page 227
If 'Color' is 2 then the pixel will be transparent and if the value is 3 the pixel result will be an inversion of the underlying screen color. If 'SolidFill' is specified the interior of the rectangle will be filled with 'Color', otherwise the rectangle is only outlined in 'Color'. Page 73 S1D13505 X23A-G-003-07...
Page 228
Return Value: ERR_OK int seDrawCursorCircle(int DevID, long x, long y, long Radius, DWORD Color, BOOL SolidFill) Description: Parameters: Return Value: ERR_OK S1D13505 X23A-G-003-07 DevID - a registered device ID (x1,y1) - upper left corner of the rectangle (in pixels) (x2,y2)
The functions in this section support the hardware ink layer. Overall these functions are nearly identical to the hardware cursor routines. In fact the same S1D13505 hardware is used for both features which means that only the cursor or the ink layer can be active at any given time.The difference between the hardware cursor and the ink layer is that in cursor...
Page 230
DevID, long x1, long y1, long x2, long y2, DWORD Color, BOOL SolidFill) Description: S1D13505 X23A-G-003-07 Sets the color of the specified ink/cursor index to 'Color'. The user definable hardware cursor colors are sixteen bit 5-6-5 RGB colors.
Page 231
- circle radius (in pixels) Color - a two bit (0 to 3) value to draw the circle with SolidFill - flag to fill the interior of the circle (currently not used) - operation completed with no problems Page 77 S1D13505 X23A-G-003-07...
- operation completed with no problems Causes the S1D13505 to enter/leave hardware suspend mode. This option in only supported on S1D13505B0B ISA evaluation boards. When hardware suspend mode is engaged the display is disabled and display buffer is inaccessible and the registers and LUT are inaccessible.
The following examples assume that you have a copy of the complete source code for the S1D13505 utilities, including the nmake makefiles, as well as a copy of the GNU Compiler v2.7-96q3a for Hitachi SH3.
Hal version %s\n", p1); ** Register the device with the HAL ** NOTE: HalInfo is an instance of HAL_STRUCT and is defined ** in Appcfg.h if (seRegisterDevice(&HalInfo, &DevId) != ERR_OK) S1D13505 X23A-G-003-07 {0, 0, 0}, {0xF0, 0, 0}, {0, 0, 0xF0}...
Page 235
/* Set the LUT to values appropriate to Black, Red, case 2: case 4: case 8: seSetLut(DevId, (BYTE *)&RedBlue- color_red color_blue = 2; break; default: /* 15 or 16 bpp */ color_red Page 81 = 1; = RED16BPP; S1D13505 X23A-G-003-07...
Page 237
Epson Research and Development Vancouver Design Center ** Delay for 2 seconds seDelay(DevId, (DWORD)2); seMoveCursor(DevId, width-1-63, 0); return 0; Programming Notes and Examples Issue Date: 01/02/05 Move the cursor Page 83 S1D13505 X23A-G-003-07...
12 Sample Code 12.1 Introduction There are two included examples of programming the S1D13505 color graphics controller. First is a demonstration using the HAL library and the second without. These code samples are for example purposes only. Lastly, are three header files that may make some of the structures used clearer.
Page 239
** will use that location from here on. Programming Notes and Examples Issue Date: 01/02/05 case ERR_OK: break; case HAL_DEVICE_ERR: printf("\nERROR: Too many devices exit(1); default: printf("\nERROR: Could not regis- exit(1); printf("\nERROR: Did not detect SED1355."); exit(1); printf("\nERROR: Could not initialize device."); exit(1); Page 85 S1D13505 X23A-G-003-07...
** the cursor to 101,101. seDrawCursorRect(Device, 0, 0, 63, 63, 1, FALSE); seMoveCursor(Device, 101, 101); exit(0); 12.1.2 Sample code without using the S1D13505 HAL API **=========================================================================== INIT1355.C - sample code demonstrating the initialization of the SED1355. Beta release 2.0 The code in this example will perform initialization to the following specification: - 640 x 480 dual 16-bit color passive panel.
Page 248
*(pRegs + 0x2F) = 0xFF; ** Draw a hollow rectangle around the cursor. pTmp = pCursor; for (lpCnt = 0; lpCnt < 16; lpCnt++) *pTmp = 0x55; pTmp++; S1D13505 X23A-G-003-07 Epson Research and Development Vancouver Design Center Programming Notes and Examples Issue Date: 01/02/05...
The following header files are included as they help to explain some of the structures used when programming the S1D13505. The following header file defines the structure used to store the configuration information contained in all utilities using the S1D13505 HAL API. /********************************************************************************/ 1355 HAL INF (do not remove) HAL_STRUCT Information generated by 1355CFG.EXE...
Page 251
/* Ras Access Charge time in ns */ /* RAS Access Charge time in ns */ /* Host CPU bus width in bits */ The following header file defines the S1D13505 HAL registers. /*=========================================================================== HAL_REGS.H Created 1998, Epson Research & Development Vancouver Design Center.
Page 252
#define REG_ALTERNATE_FRM ** WARNING!!! MAX_REG must be the last available register!!! #define MAX_REG #endif __HAL_REGS_H__ */ The following header file defines the structures used in the S1D13505 HAL API. **=========================================================================== ** HAL.H **--------------------------------------------------------------------------- Created 1998, Epson Research & Development Vancouver Design Center.
Page 254
#define DPFL(exp) printf(#exp " = %x\n", exp) #else #define DPF(exp) ((void)0) #define DPF1(exp) ((void)0) #define DPFL(exp) ((void)0) #endif /*-------------------------------------------------------------------------*/ enum S1D13505 X23A-G-003-07 " #exp2 "=%d\n", exp1, exp2) Epson Research and Development Vancouver Design Center Programming Notes and Examples Issue Date: 01/02/05...
Page 255
#define MIN_NON_DISP_X #define MAX_NON_DISP_X #define MIN_NON_DISP_Y #define MAX_NON_DISP_Y /******************************************* Programming Notes and Examples Issue Date: 01/02/05 /* No error, call was successful. */ /* General purpose failure. /* */ /* Function was called with invalid parameter. */ Page 101 S1D13505 X23A-G-003-07...
Page 256
/******************************************* * Definitions for sePowerSaveMode() *******************************************/ #define PWR_CBR_REFRESH #define PWR_SELF_REFRESH #define PWR_NO_REFRESH /*************************************************************************/ enum DISP_MODE_LCD = 0, DISP_MODE_CRT, DISP_MODE_SIMULTANEOUS, S1D13505 X23A-G-003-07 0x00 0x01 0x02 0x00 0x01 0x02 Epson Research and Development Vancouver Design Center Programming Notes and Examples Issue Date: 01/02/05...
Page 257
/* Memory speed in ns */ /* Ras to Cas Delay in ns */ /* Ras Precharge time in ns */ /* Ras Access Charge time in ns */ /* Host CPU bus width in bits */ FUNCTION PROTO-TYPES TRUE Page 103 S1D13505 X23A-G-003-07...
Page 258
DWORD addr, BYTE val, DWORD count ); int seWriteDisplayWords( int seReserved1, DWORD addr, WORD val, DWORD count ); int seWriteDisplayDwords( int seReserved1, DWORD addr, DWORD val, DWORD count ); /*------------------------------- Drawing ---------------------------------*/ S1D13505 Programming Notes and Examples X23A-G-003-07 Issue Date: 01/02/05...
Page 259
DWORD color, BOOL SolidFill ); /*------------------------------ Color ------------------------------------*/ int seSetLut( int seReserved1, BYTE *pLut, int count ); int seGetLut( int seReserved1, BYTE *pLut, int count ); Programming Notes and Examples Issue Date: 01/02/05 Page 105 S1D13505 X23A-G-003-07...
Page 260
*fmt, ... ); int sePutChar( int seReserved1, int ch ); int seGetChar( void ); /*--------------------------- XLIB Support --------------------------------*/ int seGetLinearDispAddr(int seReserved1, DWORD *pDispLogicalAddr); int InitLinear(int seReserved1); #endif /* _HAL_H_ */ S1D13505 Programming Notes and Examples X23A-G-003-07 Issue Date: 01/02/05...
7-0 set vertical display height bits 9-8 set vertical non-display period set 8 bpp and LCD enable set MCLK and PCLK divide disable half frame buffer set Look-Up Table address to 0 load Look-Up Table X23A-G-003-07 Page 107 S1D13505...
Page 263
IO Status Notes 1 These bits are used to identify the S1D13505. For the S1D13505 the product code should be 3. The host interface must be enabled before reading this register (set REG[1B] b7=0). 2 N/A bits should be written 0.
Page 264
S1D13505F00A Register Summary 3 DRAM Refresh Rate Select DRAM Refresh Example Refresh Example period for CLKI Frequency Rate Select Bits Rate for CLKI = 256 refresh cycles at Divisor [2:0] 33MHz CLKI = 33MHz 520 kHz 0.5 ms 260 kHz 1 ms 130 kHz 2 ms...
Page 266
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505CFG Configuration Program X23A-B-001-04 Issue Date: 01/03/29...
Page 268
Page 4 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505CFG Configuration Program X23A-B-001-04 Issue Date: 01/03/29...
13505CFG is an interactive Windows® 9x/ME/NT/2000 program that calculates register values for a user defined S1D13505 configuration. The configuration information can be used to directly alter the operating characteristics of the S1D13505 utilities or any program built with the Hardware Abstraction Layer (HAL) library. Alternatively, the configuration information can be saved in a variety of text file formats for use in other applications.
Page 6 Installation Create a directory for 13505cfg.exe and the S1D13505 utilities. Copy the files 13505cfg.exe and panels.def to that directory. Panels.def contains configuration infor- mation for a number of panels and must reside in the same directory as 13505cfg.exe.
13505CFG provides a series of tabs which can be selected at the top of the main window. Each tab allows the configuration of a specific aspect of S1D13505 operation. The tabs are labeled “General”, “Preference”, “Memory”, “Clocks”, “Panel”, “CRT”, and “Registers”.
Page 272
Page 8 Register Address Display Buffer Address S1D13505 X23A-B-001-04 Epson Research and Development The physical address of the start of register decode space (in hexadecimal). This field is automatically set according to the Decode Address unless the “User-Defined” decode address is selected.
The selections “None” and “Panel” are always available. The S1D13505 SwivelView feature is capable of rotating the image displayed on an LCD panel 90° in a clockwise direction. This sets the initial orientation of the panel.
DRAM manufacturer’s specification unless otherwise noted. Selects the access time of the DRAM. The S1D13505 evaluation boards use 50ns DRAM. Selects the memory type, either Extended Data Out (EDO) or Fast Page Mode (FPM). The S1D13505 evaluation boards use EDO DRAM.
Page 275
If this option is selected, the memory contents are lost during power save. Selects the amount of DRAM available for the display buffer. The S1D13505 evaluation boards have 2M bytes of DRAM installed. Page 11 S1D13505 X23A-B-001-04...
The Clocks tab is intended to simplify the selection of input clock frequencies and the source of internal clocking signals. For further information regarding clocking and clock sources, refer to the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx. In automatic mode the values are calculated based on either the LCD or CRT tab settings.
Page 277
Epson Research and Development Vancouver Design Center The S1D13505 may use as many as three input clocks or as few as one. The more clocks used the greater the flexibility of choice in display type and memory speed. CLKI BUSCLK...
Page 278
Divide Timing MCLK Source Divide Timing S1D13505 X23A-B-001-04 Epson Research and Development These settings select the signal source and input clock divisor for the CRT pixel clock (CRT PCLK). The CRT PCLK source is CLKI. Specifies the divide ratio of CLKI to derive the CRT PCLK.
Panel Data Width Panel Type EL Support Panel Dimensions HRTC/FPLINE The S1D13505 supports many panel types. This tab allows configuration of most panel settings such as panel dimensions, type and timings. Panel Type EL Support 13505CFG Configuration Program Issue Date: 01/03/29...
Page 280
Selects color STN panel format 2. This option is specif- ically for configuring 8-bit color STN panels. See the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx, for description of format 1 / format 2 data formats. Most new panels use the format 2 data format.
Page 281
Higher frame rates correspond to smaller horizontal and vertical non-display values, or higher frequencies. Select the desired Pixel Clock (in MHz) from the drop- down list. The range of frequencies displayed is dependent on settings selected on the Clocks tab. Page 17 S1D13505 X23A-B-001-04...
Page 282
Epson Research and Development These settings allow fine tuning the TFT line pulse parameters and are only available when the selected panel type is TFT. Refer to S1D13505 Hardware Functional Specification, document number X23A-A- 001-xx for a complete description of the FPLINE pulse settings.
(height) of the images. If both displays are the same resolution, select “Normal”. Otherwise, refer to the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx for information on selecting the best option.
Page 20 Registers Tab The Registers tab allows viewing and direct editing the S1D13505 register values. Scroll up and down the list of registers and view their configured value. Individual register settings may be changed by double-clicking on the register in the listing. Manual changes to the registers are not checked for errors, so caution is warranted when directly editing these values.
This may be used to quickly arrive at a starting point for register configuration. The only requirement is that the file being opened must contain a valid S1D13505 HAL library information block. 13505CFG supports a variety of executable file formats. Select the file type(s) 13505CFG should display in the Files of Type drop-down list and then select the filename from the list and click on the Open button.
Note When “Save As” is selected then an exact duplicate of the file as opened by the “Open” option is created containing the new configuration information. S1D13505 X23A-B-001-04 Epson Research and Development Vancouver Design Center...
ISA, MPC and IDP based programs at the same time for a new panel type, the physical addresses for each are retained. This feature is primarily intended for the test lab where multiple hardware configurations exist and are being tested. 13505CFG Configuration Program Issue Date: 01/03/29 Page 23 S1D13505 X23A-B-001-04...
“Preview” button starts Notepad with a copy of the configuration file about to be saved. When the C Header File for S1D13505 WinCE Drivers option is selected as the export type, additional options are available and can be selected by clicking on the Options button.
This “Help” menu item is actually a hotlink to the Epson Research and Development website. Selecting “Help” then “ERD on the Web” starts the default web browser and points it to the ERD product web site. The latest software, drivers, and documentation for the S1D13505 is available at this website. About 13505CFG Selecting the “About 13505CFG”...
Page 290
Page 26 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505CFG Configuration Program X23A-B-001-04 Issue Date: 01/03/29...
Page 292
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505SHOW Demonstration Program X23A-B-002-05 Issue Date: 01/02/02...
Page 293
Vancouver Design Center 13505SHOW 13505SHOW is designed to demonstrate and test some of the S1D13505 display capabilities. The program can cycle through all the color depths and display a pattern showing all available colors, or the user can specify a color depth and display configuration.
Page 294
13505SHOW Examples The 13505SHOW demonstration program is designed to both demonstrate and test some of the features of the S1D13505. Some examples follow showing how to use the program in both instances. Using 13505SHOW For Demonstration To show color patterns which must be manually stepped through all bit-per-pixel modes, type the following: The program will display 16 bit-per-pixel mode.
Page 295
16 bit-per-pixel screen. To exit the program after using “/read”, press ESC and wait for a couple of seconds (the keystroke is checked after reading a full screen). 13505SHOW Demonstration Program Issue Date: 01/02/02 13505SHOW b=[mode] 13505SHOW /p 13505SHOW /s 13505SHOW b=8 /g 13505SHOW b=16 /read Page 5 S1D13505 X23A-B-002-05...
Page 296
“Color” from the “Panel” dialog box if you want the CRT to show color. • For simultaneous display, select both “/lcd” and “/crt”. • If the “b=” option is not used, 13505SHOW will cycle through all available bit-per-pixel modes. S1D13505 X23A-B-002-05 Epson Research and Development...
Page 297
13505CFG configuration program. ERROR: Did not find a 13505 device. The HAL was unable to read the revision code register on the S1D13505. Ensure that the S1D13505 hardware is installed and that the hardware platform has been set up correctly.
Page 298
Page 8 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505SHOW Demonstration Program X23A-B-002-05 Issue Date: 01/02/02...
Page 300
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505SPLT Display Utility X23A-B-003-03 Issue Date: 01/02/02...
Page 301
Epson Research and Development Vancouver Design Center 13505SPLT 13505SPLT demonstrates S1D13505 split screen capability by showing two different areas of display memory on the screen simultaneously. Screen 1 shows horizontal bars and Screen 2 shows vertical bars. Screen 1 memory is located at the start of the display buffer. Screen 2 memory is located immedi- ately after Screen 1 in the display buffer.
Page 302
Press <ESC> to exit the program. Comments • When using a PC with the S5U13505 evaluation board, the PC must not have more than 12M bytes of system memory. S1D13505 X23A-B-003-03 enables manual split screen operation no argument enables automatic split screen operation...
Page 303
Program Messages ERROR: Did not find a 13505 device. The HAL was unable to read the revision code register on the S1D13505. Ensure that the S1D13505 hardware is installed and that the hardware platform has been set up correctly. ERROR: Too many devices registered.
Page 304
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505SPLT Display Utility X23A-B-003-03 Issue Date: 01/02/02...
Page 306
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505VIRT Display Utility X23A-B-004-04 Issue Date: 01/02/02...
Page 307
Vancouver Design Center 13505VIRT 13505VIRT demonstrates the virtual display capability of the S1D13505. A virtual display is where the image to be displayed is larger than the physical display device (CRT or LCD). 13505VIRT uses panning and scrolling to allow the display device to show a “window” into the entire image.
Page 308
Embedded platform: execute 13505virt and at the prompt, type the command line argument. Where: The following keyboard commands are for navigation within the program. Manual mode: Automatic and Manual modes: S1D13505 X23A-B-004-04 panning and scrolling is performed manually no argument for manual mode, specifies the width of the virtual...
Page 309
Program Messages ERROR: Did not find a 13505 device. The HAL was unable to read the revision code register on the S1D13505. Ensure that the S1D13505 hardware is installed and that the hardware platform has been set up correctly. ERROR: Too many devices registered.
Page 310
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505VIRT Display Utility X23A-B-004-04 Issue Date: 01/02/02...
Page 312
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13550 13505PLAY Diagnostic Utility X23A-B-005-04 Issue Date: 01/02/02...
Page 313
Vancouver Design Center 13505PLAY 13505PLAY is a diagnostic utility which allows the user to read/write to all the S1D13505 Registers, Look-Up Tables and Display Buffer. 13505PLAY is similar to the DOS DEBUG program; commands are received from the standard input device, and output is sent to the standard output device (console for Intel, terminal for embedded platforms).
Page 314
Page 4 Usage PC platform: at the prompt, type 13505play [/?]. Embedded platform: execute 13505play and at the prompt, type the command line argument. Where: /? displays program version information. The following commands are valid within the 13505PLAY program. b 8|16 f[w] addr1 addr2 data .
Page 315
Epson Research and Development Vancouver Design Center p 1|0 r[w] addr [count] w[w] addr data . . . x[w] index [data] 13505PLAY Example Type "13505PLAY" to start the program. Type "?" for help. Type "i" to initialize the registers. Type "xa" to display the contents of the registers. Type "x 5"...
Page 316
“results.” Example: Create an ASCII text file that contains the commands i, xa, and q. ; This file initializes the S1D13505 and reads the registers. ; Note: after a semicolon (;), all characters on a line are ignored.
Page 317
Program Messages WARNING: Did not find a 13505 device. The HAL was unable to read the revision code register on the S1D13505. Ensure that the S1D13505 hardware is installed and that the hardware platform has been set up correctly. ERROR: Failed to change to ?? mode.
Page 318
Page 8 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13550 13505PLAY Diagnostic Utility X23A-B-005-04 Issue Date: 01/02/02...
Page 320
Page 0 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505BMP Demonstration Program X23A-B-006-04 Issue Date: 01/02/02...
Page 321
Vancouver Design Center 13505BMP 13505BMP is a demonstration utility used to show the S1D13505 display capabilities by rendering bitmap images on the display. The program will display any bitmap in Windows BMP file format and then exit. 13505BMP also loads images to demonstrate the hardware cursor and ink layer.
Page 322
Image Color white black any other color S1D13505 X23A-B-006-04 /mouse use mouse to move hardware cursor (press ESC to exit program) /noclear don’t clear display buffer memory...
Page 323
• Prior to selecting the “/mouse” option, a valid mouse driver must be loaded. • If x and y coordinates are not specified for the Hardware Cursor, the Hardware Cursor will be displayed starting in the top left corner (position x=0,y=0). 13505BMP Demonstration Program Issue Date: 01/02/02 Page 3 S1D13505 X23A-B-006-04...
Page 324
13505CFG configuration program. ERROR: Did not detect S1D13505. The HAL was unable to read the revision code register on the S1D13505. Ensure that the S1D13505 hardware is installed and that the hardware platform has been set up correctly. ERROR: Insufficient memory for ?? bit-per-pixel.
Page 325
The Ink Layer BMP image must always have a color depth of four bit-per-pixel. ERROR: Could not change to ?? bit-per-pixel. The HAL library detected that the requested color depth (bit-per-pixel) will violate the S1D13505 hardware specification for clocks. To reprogram the clocks, run 13505CFG and select the desired color depth (bit-per-pixel).
Page 326
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505BMP Demonstration Program X23A-B-006-04 Issue Date: 01/02/02...
Page 328
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 13505PWR Software Suspend Power Sequencing Utility X23A-B-007-03 Issue Date: 01/02/02...
Page 329
Vancouver Design Center 13505PWR 13505PWR is a diagnostic utility used to test some of the power save capabilities of the S1D13505. 13505PWR enables or disables the software suspend mode, hardware suspend mode, and the LCD, allowing testing of the power sequencing in each mode.
Page 330
To disable hardware suspend mode, type the following: 13505PWR /hardware /disable To enable the LCD, type the following: 13505PWR /lcd /enable To disable the LCD, type the following: 13505PWR /lcd /disable S1D13505 X23A-B-007-03 /hardware | /lcd] [/enable selects software suspend /software selects hardware suspend (PC only)
Page 331
Program Messages ERROR: Did not detect S1D13505. The HAL was unable to read the revision code register on the S1D13505. Ensure that the S1D13505 hardware is installed and that the hardware platform has been set up correctly. ERROR: Unknown command line argument.
Page 332
There are too many display devices attached to the HAL. The HAL currently supports only one device. ERROR: Could not register S1D13505F00A device. A S1D13505 device was not found at the configured addresses. Check the configuration address using the 13505CFG configuration program. S1D13505...
Page 334
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Windows® CE 2.x Display Drivers X23A-E-001-06 Issue Date: 01/05/25...
Page 335
Vancouver Design Center WINDOWS® CE 2.x DISPLAY DRIVERS The Windows CE display driver is designed to support the S1D13505 Embedded RAMDAC LCD/CRT Controller running under the Microsoft Windows CE 2.x operating system. The driver is capable of: 4, 8 and 16 bit-per-pixel landscape modes (no rotation), and 8 and 16 bit-per-pixel SwivelView™...
Page 336
Click on “Shortcut” and replace the string “DEMO1” under the entry “Target” with “DEMO7”. Click on “OK” to finish. 5. Create a sub-directory named S1D13505 under x:\wince\platform\cepc\drivers\dis- play. 6. Copy the source code to the S1D13505 subdirectory. S1D13505 X23A-E-001-06 Epson Research and Development Vancouver Design Center 2.0.
Page 337
Epson Research and Development Vancouver Design Center 7. Edit the file x:\wince\platform\cepc\drivers\display\dirs and add S1D13505 into the list of directories. 8. Edit the file PLATFORM.BIB (located in x:\wince\platform\cepc\files) to set the de- fault display driver to the file EPSON.DLL (EPSON.DLL will be created during the build in step 13).
Page 338
640x480 LCD panel with a color depth of 8 bpp in SwivelView 0° (landscape) mode: ; Default for EPSON Display Driver ; 640x480 at 8 bits/pixel, LCD display, no rotation ; Useful Hex Values ; 1024=0x400, 768=0x300 640=0x280 480=0x1E0 320=140 240=0xF0 [HKEY_LOCAL_MACHINE\Drivers\Display\S1D13505] "Width"=dword:280 "Height"=dword:1E0 "Bpp"=dword:8 “ActiveDisp”=dword:1 “Rotation”=dword:0 11.
Page 339
6. Make an S1D13505 directory under x:\wince\platform\cepc\drivers\display, and copy the S1D13505 driver source code into x:\wince\platform\cepc\drivers\dis- play\S1D13505. 7. Edit the file x:\wince\platform\cepc\drivers\display\dirs and add S1D13505 into the list of directories. 8. Edit the file x:\wince\platform\cepc\files\platform.bib and make the following two changes: a.
Page 340
13505CFG, refer to the 13505CFG Configuration Program User Manual, document number X23A-B-001-xx, available at www.erd.epson.com After selecting the desired configuration, export the file as a “C Header File for S1D13505 WinCE Drivers”. Save the new configuration as MODE0.H in x:\wince\platform\cepc\drivers\display\S1D13505, replacing the original configura- tion file.
Page 341
--”Build Epson for x86”. 13. Type BLDDEMO <ENTER> at the command prompt of the “Build Epson for x86” window to generate a Windows CE image file (NK.BIN). Windows® CE 2.x Display Drivers Issue Date: 01/05/25 Page 9 S1D13505 X23A-E-001-06...
Page 342
Edit CONFIG.SYS on the hard drive to contain only the following line: c. Edit AUTOEXEC.BAT on the hard drive to contain the following lines: d. Copy NK.BIN and HIMEM.SYS to c:\. e. Boot the system. S1D13505 X23A-E-001-06 device=a:\himem.sys mode com1:9600,n,8,1 loadcepc /B:9600 /C:1 c:\nk.bin...
Page 343
Each of these issues is discussed in the following sections. Compile Switches There are several switches, specific to the S1D13505 display driver, which affect the display driver. The switches are added or removed from the compile options in the file SOURCES.
Page 344
To select which display mode the display driver should use upon boot, add the following lines to your PLATFORM.REG file: [HKEY_LOCAL_MACHINE\Drivers\Display\S1D13505] “Width”=dword:280 “Height”=dword:1E0 “Bpp”=dword:8 “Rotation”=dword:0...
Page 345
• At this time, the drivers have been tested on the x86 CPUs and have been run with version 2.0 of the ETK, Platform Builder v2.1x. Windows® CE 2.x Display Drivers Issue Date: 01/05/25 Page 13 S1D13505 X23A-E-001-06...
Page 346
Page 14 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Windows® CE 2.x Display Drivers X23A-E-001-06 Issue Date: 01/05/25...
Page 348
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Wind River WindML v2.0 Display Drivers X23A-E-002-03 Issue Date: 01/04/06...
Page 349
The source code is written for portability and contains functionality for most features of the S1D13505. Source code modification is required to provide a smaller, more efficient driver for mass production (e.g. CRT support may be removed for products not requiring a CRT).
Page 350
The configuration program 13505CFG can be used to build a new mode0.h file. If building for 8 bpp, place the new mode0.h file in the directory “x:\13505\8bpp\File”. If building for 16 bpp, place the new mode0.h file in “x:\13505\16bpp\File”. S1D13505 X23A-E-002-03 mkboot a: bootrom_uncmp Epson Research and Development Vancouver Design Center Wind River WindML v2.0 Display Drivers...
Page 351
From a command prompt change to the directory “x:\Tornado\host\x86-win32\bin” and run the batch file torvars.bat. Next, change to the directory “x:\Tornado\tar- get\src\ugl” and type the command: 7. Open the S1D13505 workspace. From the Tornado tool bar, select File->Open Workspace...->Existing->Browse... and select the file “x:\13505\8bpp\13505.wsp” (or “x:\13505\16bpp\13505.wsp”).
Page 352
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Wind River WindML v2.0 Display Drivers X23A-E-002-03 Issue Date: 01/04/06...
Page 354
Page 2 S1D13505 X23A-E-003-02 THIS PAGE LEFT BLANK Epson Research and Development Vancouver Design Center Wind River UGL v1.2 Display Drivers Issue Date: 01/02/05...
Page 355
Wind River’s UGL v1.2. The drivers provide support for both 8 and 16 bit-per-pixel color depths. The source code is written for portability and contains functionality for most features of the S1D13505. Source code modification is required to provide a smaller, more efficient driver for mass production.
Page 356
13505CFG can be used to build a new mode0.h file. If building for 8 bpp, place the new mode0.h file in “x:\13505\8bpp\File”. If building for 16 bpp, place the new mode0.h file in “x:\13505\16bpp\File”. S1D13505 X23A-E-003-02 mkboot a: bootrom_uncmp...
Page 357
Mode0.h should be created using the configuration utility 13505CFG. For more infor- mation on 13505CFG, see the 13505CFG Configuration Program User Manual, docu- ment number X23A-B-001-xx available at www.erd.epson.com. 6. Open the S1D13505 workspace. From the Tornado tool bar, select File->Open Workspace...->Existing->Browse... and select the file “x:\13505\8bpp\13505.wsp” (or “x:\13505\16bpp\13505.wsp”).
Page 358
Page 6 S1D13505 X23A-E-003-02 THIS PAGE LEFT BLANK Epson Research and Development Vancouver Design Center Wind River UGL v1.2 Display Drivers Issue Date: 01/02/05...
Page 360
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Windows® CE 3.x Display Drivers X23A-E-006-01 Issue Date: 01/05/17...
Page 361
Vancouver Design Center WINDOWS® CE 3.x DISPLAY DRIVERS The Windows CE 3.x display driver is designed to support the S1D13505 Embedded RAMDAC LCD/CRT Controller running the Microsoft Windows CE operating system, version 3.0. The driver is capable of: 4, 8 and 16 bit-per-pixel landscape modes (no rotation), and 8 and 16 bit-per-pixel SwivelView™...
Page 362
Click the OK button. 6. Add the environment variable CEPC_DDI_S1D13X0X. a. From the Platform menu, select “Settings”. b. Select the “Environment” tab. c. In the Variable box, type “CEPC_DDI_S1D13X0X”. S1D13505 X23A-E-006-01 Epson Research and Development Vancouver Design Center Windows® CE 3.x Display Drivers...
Page 363
Click the Set button. Click the OK button. 7. Create a new directory S1D13505, under x:\wince300\platform\cepc\drivers\display, and copy the S1D13505 driver source code into this new directory. 8. Add the S1D13505 driver component. a. From the Platform menu, select “Insert | User Component”.
Page 364
X23A-B-001-xx, available at www.erd.epson.com After selecting the desired configuration, export the file as a “C Header File for S1D13505 WinCE Drivers”. Save the new configuration as MODE0.H in the \wince300\platform\cepc\drivers\display, replacing the original configuration file. 12. From the Platform window, click on ParameterView Tab. Show the tree for MY- PLATFORM Parameters by clicking on the ‘+’...
Page 365
CEPC_DDI_S1D13X0X=1 4. Generate the build environment by calling cepath.bat. 5. Create a new folder called S1D13505 under x:\wince300\platform\cepc\drivers\dis- play, and copy the S1D13505 driver source code into x:\wince300\platform\cepc\driv- ers\display\S1D13505. 6. Edit the file x:\wince300\platform\cepc\drivers\display\dirs and add S1D13505 into the list of directories.
Page 366
X23A-B-001-xx, available at www.erd.epson.com After selecting the desired configuration, export the file as a “C Header File for S1D13505 WinCE Drivers”. Save the new configuration as MODE0.H in the \wince300\platform\cepc\drivers\display, replacing the original configuration file. 9. Edit the file PLATFORM.REG to match the screen resolution, color depth, and rota- tion information in MODE.H.
Page 367
10. Delete all the files in the x:\wince300\release directory and delete the file x:\wince300\platform\cepc\*.bif 11. Type BLDDEMO <ENTER> at the command prompt to generate a Windows CE image file. The file generated will be x:\wince300\release\nk.bin. Windows® CE 3.x Display Drivers Issue Date: 01/05/17 Page 9 S1D13505 X23A-E-006-01...
Page 368
Edit CONFIG.SYS on the hard drive to contain only the following line: c. Edit AUTOEXEC.BAT on the hard drive to contain the following lines: d. Copy NK.BIN and HIMEM.SYS to c:\. e. Boot the system. S1D13505 X23A-E-006-01 device=a:\himem.sys mode com1:9600,n,8,1 loadcepc /B:9600 /C:1 c:\nk.bin...
Page 369
Each of these issues is discussed in the following sections. Compile Switches There are several switches, specific to the S1D13505 display driver, which affect the display driver. The switches are added or removed from the compile options in the file SOURCES.
Page 370
To select which display mode the display driver should use upon boot, add the following lines to your PLATFORM.REG file: [HKEY_LOCAL_MACHINE\Drivers\Display\S1D13505] “Width”=dword:280 “Height”=dword:1E0 “Bpp”=dword:8 “Rotation”=dword:0...
Page 371
OEM must also configure the display driver to never use off-screen memory. • Ensure that display memory never loses power. Windows® CE 3.x Display Drivers Issue Date: 01/05/17 Page 13 S1D13505 X23A-E-006-01...
Page 372
To enable or disable the use of off-screen memory, edit the file: x:\wince300\platform\cepc\driv- ers\display\S1D13505\sources. In SOURCES, there is a line which, when uncom- mented, will instruct Windows CE to use off-screen display memory (if sufficient...
Page 373
Windows CE is shut down. If dis- play memory is kept powered up (set the S1D13505 in powersave mode), then the dis- play data will be maintained and this step can be skipped.
Page 374
• At this time, the drivers have been tested on the x86 CPUs and have been built with Plat- form Builder v3.00. S1D13505 X23A-E-006-01 Epson Research and Development Vancouver Design Center Windows®...
Page 376
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual X23A-G-004-05 Issue Date: 01/02/05...
Page 378
Page 4 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual X23A-G-004-05 Issue Date: 01/02/05...
S1D13505B00C Schematic Diagram (4 of 4) ..........22 S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual Issue Date: 01/02/05 List of Tables List of Figures Page 5 S1D13505 X23A-G-004-05...
Page 380
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual X23A-G-004-05 Issue Date: 01/02/05...
Implemented using the S1D13505 Embedded RAMDAC LCD/CRT Controller, the S5U13505B00C is designed for the ISA bus environment. It also provides CPU/Bus interface connectors for non-ISA bus support. For more information regarding the S1D13505, refer to the S1D13505 Hardware Functional Speci- fication, document number X23A-A-001-xx. 1.1 Features •...
Page 8 2 Installation and Configuration The S1D13505 has 16 configuration inputs MD[15:0] which are read on the rising edge of RESET#. Inputs MD[5:1] are fully configurable on this evaluation board for different host bus selections; one eight-position DIP switch is provided for this purpose. All remaining configuration inputs are hard- wired.
Connector Pin No. S1D13505 X23A-G-004-05 Table 4-1: CPU/BUS Connector (H1) Pinout Comments Connected to DB0 of the S1D13505 Connected to DB1 of the S1D13505 Connected to DB2 of the S1D13505 Connected to DB3 of the S1D13505 Ground Ground Connected to DB4 of the S1D13505...
Page 385
S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual Issue Date: 01/02/05 Table 4-2: CPU/BUS Connector (H2) Pinout Comments Connected to AB0 of the S1D13505 Connected to AB1 of the S1D13505 Connected to AB2 of the S1D13505 Connected to AB3 of the S1D13505...
F80000h in order to enable a 16-bit ISA environment. This must be done prior to initializing the S1D13505. Failure to do so will result in the S1D13505 being configured as a 16-bit device (de- fault, power-up), with the ISA Bus interface (supported through the PAL (U4)) configured for an 8-bit interface.
Page 388
Voltage lines are provided on the header strips. • For the ISA bus, a 22V10 PAL (U4, socketed) is currently used to provide the S1D13505 CS# (pin 4), M/R# (pin 5) and other decode logic signals. This functionality must now be provided externally.
Refer to Table 3-1 “LCD Signal Connector (J6)” on page 9 for connection information. 6.7 Color Passive LCD Panel Support The S1D13505 directly supports 4, 8 and 16-bit, dual and single, color passive LCD panels. All the necessary signals are provided on the 40-pin ribbon cable header J6. The interface signals on the cable are alternated with grounds to reduce crosstalk and noise.
When supporting an 18-bit TFT/D-TFD panel, the S1D13505 can display 64K of a possible 256K colors. A maximum 16 of the possible 18 bits of LCD data are available from the S1D13505. Refer to the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx for details.
Vancouver Design Center 6.13 CPU/Bus Interface Header Strips All of the CPU/Bus interface pins of the S1D13505 are connected to the header strips H1 and H2 for easy interface to a CPU, or bus other than ISA. Refer to Table 4-1 “CPU/BUS Connector (H1) Pinout” on page 10 and Table 4-2 “CPU/BUS Connector (H2) Pinout”...
Page 20 8 Schematic Diagrams S1D13505 X23A-G-004-05 Figure 1: S1D13505B00C Schematic Diagram (1 of 4) S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual Epson Research and Development Vancouver Design Center Issue Date: 01/02/05...
Page 395
Epson Research and Development Vancouver Design Center S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual Issue Date: 01/02/05 DC_OUT VOUT_ADJ REMOTE DC_IN Figure 2: S1D13505B00C Schematic Diagram (2 of 4) Page 21 DC_OUT DC_OUT VOUT_ADJ DC_IN DC_IN S1D13505 X23A-G-004-05...
Page 396
Page 22 Epson Research and Development Vancouver Design Center Figure 3: S1D13505B00C Schematic Diagram (3 of 4) S1D13505 S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual X23A-G-004-05 Issue Date: 01/02/05...
Page 397
Epson Research and Development Vancouver Design Center S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual Issue Date: 01/02/05 Figure 4: S1D13505B00C Schematic Diagram (4 of 4) Page 23 S1D13505 X23A-G-004-05...
Page 398
Page 24 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual X23A-G-004-05 Issue Date: 01/02/05...
Page 400
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S5U13505-D9000 Evaluation Board User Manual X23A-G-002-04 Issue Date: 01/02/05...
Page 402
Page 4 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S5U13505-D9000 Evaluation Board User Manual X23A-G-002-04 Issue Date: 01/02/05...
Page 403
Epson Research and Development Vancouver Design Center Table 2-1: LCD Connector Pinout ........10 Table 2-2: Touchscreen Header (TS1) Pinout .
Page 404
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S5U13505-D9000 Evaluation Board User Manual X23A-G-002-04 Issue Date: 01/02/05...
S5U13505-D9000 Evaluation Board is used to provide a color LCD/CRT solution for the Windows CE environment. Reference S1D13505 Hardware Functional Specification, document number X23A-A-001-xx. D9000 Development System, Hardware User Manual - Hitachi. Evaluation Board User Manual Issue Date: 01/02/05...
RAMDAC allowing simultaneous display of both the CRT and LCD displays. In this design, the S1D13505 has a 3.3V supply voltage for both logic and the embedded RAMDAC. For complete details on register functionality and programming, refer to the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx, and the S1D13505 Programming Notes and Examples, document number X23A-G-003-xx.
Epson Research and Development Vancouver Design Center 2.1.2 LCD Display Support The S1D13505 provides a wide range of flexibility for display type and resolution. Display types include: • 4/8-bit monochrome passive. • 4/8/16-bit color passive. • 9/12/18-bit Active matrix TFT/D-TFD.
"Platform II Audio/Touch" peripheral board. Pinout assignment is described in the table below. 2.1.4 CRT Support The S1D13505 has an embedded RAMDAC and provides complete one-chip CRT support. Refer to the Programmer’s Notes and Examples, document number X23A-G-003-xx, for programming details.
Page 410
Page 12 LCDPWR is an output signal which follows a pre-defined power-up/power-down sequence designed to protect the LCD panel from damage caused by the power supply being enabled in the absence of control signals. Determine the panel’s specific power requirements and set the potentiometer accordingly before connecting the panel.
Evaluation Board User Manual Issue Date: 01/02/05 Table 3-1: Connectors Pinout for Channel A7 Channel A7 S1D13505 Signal Pin # SmXY BCLK Page 13 FPGA Signal S1D13505 Signal dc5v DC5V dc3v DC3V dc3v...
Page 412
S5U13505-D9000 X23A-G-002-04 Channel A7 S1D13505 Signal Pin # Epson Research and Development Vancouver Design Center FPGA Signal S1D13505 Signal chA7p34 chA7p33 chA7p32 chA7p31 Evaluation Board User Manual Issue Date: 01/02/05...
Page 413
Evaluation Board User Manual Issue Date: 01/02/05 Table 3-2: Connectors Pinout for Channel A6 Channel A6 S1D13505 Signal Pin # SmXY WE0# RD/WR# WAIT# Page 15 FPGA Signal S1D13505 Signal dc5v DC5V dc3v...
Page 414
S5U13505-D9000 X23A-G-002-04 Channel A6 S1D13505 Signal Pin # M/R# WE1# RESET# Epson Research and Development Vancouver Design Center FPGA Signal S1D13505 Signal chA6p34 chA6p33 chA6p32 chA6p31 Evaluation Board User Manual...
Vancouver Design Center 3.1.2 Memory Address (CS#, M/R#) Decoding The S1D13505 is a memory-mapped device for both the registers and the display buffer access. The specific memory address is solely controlled by the CS# and M/R# decode logic. The memory space requirements are: •...
Epson Research and Development Vancouver Design Center 5 Schematic Diagrams Figure 5-1: S5U13505-D9000 Schematic Diagram (1 of 3) Evaluation Board User Manual Issue Date: 01/02/05 Page 19 S5U13505-D9000 X23A-G-002-04...
Page 418
Page 20 S5U13505-D9000 X23A-G-002-04 Figure 5-2: S5U13505-D9000 Schematic Diagram (2 of 3) Epson Research and Development Vancouver Design Center DC_OUT VOUT_ADJ REMOTE DC_IN Evaluation Board User Manual Issue Date: 01/02/05...
Page 419
Epson Research and Development Vancouver Design Center Figure 5-3: S5U13505-D9000 Schematic Diagram (3 of 3) Evaluation Board User Manual Issue Date: 01/02/05 Page 21 S5U13505-D9000 X23A-G-002-04...
Page 22 Epson Research and Development Vancouver Design Center 6 Component Placement Figure 6-1: Component Placement S5U13505-D9000 Evaluation Board User Manual X23A-G-002-04 Issue Date: 01/02/05...
Page 422
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Power Consumption X23A-G-006-03 Issue Date: 01/02/05...
Page 423
• Internal CLK divide: internal registers allow the input clock to be divided before going to the internal logic blocks – the higher the divide, the lower the power consumption. There are two power save modes in the S1D13505: Software and Hardware SUSPEND. The power consumption of these modes is affected by various system design variables.
Page 424
LCD frame-rate, whereas Power Save Mode consumption depends on the CPU Interface and Input Clock state. In a typical design environment, the S1D13505 can be configured to be an extremely power-efficient LCD Controller with high performance and flexibility.
Page 426
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the Philips MIPS PR31500/PR31700 Processor X23A-G-001-07 Issue Date: 01/02/05...
Page 427
Interfacing to the PR31500/PR31700 ......8 S1D13505 Host Bus Interface ......9 PR31500/PR31700 Host Bus Interface Pin Mapping .
Page 428
Page 4 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the Philips MIPS PR31500/PR31700 Processor X23A-G-001-07 Issue Date: 01/02/05...
Page 429
Table 3-1: PR31500/PR31700 Host Bus Interface Pin Mapping ....9 Table 4-1: S1D13505 Configuration for Direct Connection..... . 12 Table 4-2: PR31500/PR31700 to PC Card Slots Address Remapping for Direct Connection .
Page 430
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the Philips MIPS PR31500/PR31700 Processor X23A-G-001-07 Issue Date: 01/02/05...
1 Introduction This application note describes the hardware and software environment necessary to provide an interface between the S1D13505 Embedded RAMDAC LCD/CRT Controller and the Philips MIPS PR31500/PR31700 Processor. The designs described in this document are presented only as examples of how such interfaces might be implemented.
2 Interfacing to the PR31500/PR31700 The Philips MIPS PR31500/PR31700 processor supports up to two PC Card (PCMCIA) slots. It is through this host bus interface that the S1D13505 connects to the PR31500/PR31700 processor. The S1D13505 can be successfully interfaced using one of the following configurations: •...
The S1D13505 implements a 16-bit host bus interface specifically for interfacing to the PR31500/PR31700 microprocessor. The PR31500/PR31700 host bus interface is selected by the S1D13505 on the rising edge of RESET#. After releasing reset, the bus interface signals assume their selected configuration.
When the S1D13505 is configured to operate with the PR31500/PR31700, the host interface requires the following signals: • BUSCLK is a clock input required by the S1D13505 host bus interface. It is separate from the input clock (CLKI) and should be driven by the PR31500/PR31700 bus clock output DCLKOUT.
Vancouver Design Center 4 Direct Connection to the Philips PR31500/PR31700 The S1D13505 was specifically designed to support the Philips MIPS PR31500/PR31700 processor. When configured, the S1D13505 will utilize one of the PC Card slots supported by the processor. 4.1 Hardware Description In this example implementation, the S1D13505 occupies one PC Card slot and resides in the Attribute and IO address range.
The S1D13505 also has internal CLKI dividers providing additional flexibility. 4.2 S1D13505 Configuration The S1D13505 latches MD15 through MD0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx.
Register 3 bit CARD1IOEN (or CARD2IOEN if slot 2 is used). As a result, the PR31500/PR31700 sees the S1D13505 on its PC Card slot as described in the table below. Table 4-2: PR31500/PR31700 to PC Card Slots Address Remapping for Direct Connection...
5 System Design Using the IT8368E PC Card Buffer In a system design using one or two ITE IT8368E PC Card and multiple-function IO buffers, the S1D13505 can be interfaced so as to share one of the PC Card slots. 5.1 Hardware Description...
IT8368E MFIO pins to provide the necessary control signals, however when using the S1D13505 this is not necessary as the Direct Connection described in Section 4, “Direct Connection to the Philips PR31500/PR31700” on page 11 can be used.
Page 16 6 Software Test utilities and Windows® CE v2.0 display drivers are available for the S1D13505. Full source code is available for both the test utilities and the drivers. The test utilities are configurable for different panel types using a program called 13505CFG, or by directly modifying the source.
Document Number X23A-A-001-xx. • Epson Research and Development, Inc., S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual, Document Number X23A-G-004-xx. • Epson Research and Development, Inc., S1D13505 Programming Notes and Examples, Document Number X23A-G-003-xx. 7.2 Document Sources • Philips Electronics Website: http://www-us2.semiconductors.philips.com.
20/F., Harbour Centre Temasek Avenue #36-00 25 Harbour Road Millenia Tower Wanchai, Hong Kong Singapore, 039192 Tel: 2585-4600 Tel: 337-7911 Fax: 2827-4346 Fax: 334-2716 Interfacing to the Philips MIPS PR31500/PR31700 Processor Epson Research and Development Vancouver Design Center Issue Date: 01/02/05...
Page 444
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the PC Card Bus X23A-G-005-06 Issue Date: 01/02/05...
Page 445
Memory Access Cycles ....... . . 8 S1D13505 Host Bus Interface ......11 PC Card Host Bus Interface Pin Mapping PC Card Host Bus Interface Signals .
Page 446
Page 4 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the PC Card Bus X23A-G-005-06 Issue Date: 01/02/05...
Page 447
Figure 2-2: PC Card Write Cycle ........10 Figure 4-1: Typical Implementation of PC Card to S1D13505 Interface ....14...
Page 448
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the PC Card Bus X23A-G-005-06 Issue Date: 01/02/05...
1 Introduction This application note describes the hardware and software environment required to provide an interface between the S1D13505 Embedded RAMDAC LCD/CRT Controller and the PC Card (PCMCIA) bus. The designs described in this document are presented only as examples of how such interfaces might be implemented.
D[7:0]. If both CE1# and CE2# are driven low, a 16-bit word transfer takes place. If only CE2# is driven low, an odd byte transfer occurs on data lines D[15:8]. S1D13505 X23A-G-005-06 Epson Research and Development...
Page 451
Figure 2-1: illustrates a typical memory access read cycle on the PC Card bus. A[25:0] REG# CE1# CE2# WAIT# Hi-Z D[15:0] Transfer Start Interfacing to the PC Card Bus Issue Date: 01/02/05 ADDRESS VALID Figure 2-1: PC Card Read Cycle Page 9 Hi-Z DATA VALID Transfer Complete S1D13505 X23A-G-005-06...
Page 452
Figure 2-2: illustrates a typical memory access write cycle on the PC Card bus. A[25:0] REG# CE1# CE2# WAIT# Hi-Z D[15:0] Transfer Start S1D13505 X23A-G-005-06 ADDRESS VALID DATA VALID Figure 2-2: PC Card Write Cycle Epson Research and Development Vancouver Design Center Hi-Z Transfer Complete...
The S1D13505 implements a 16-bit PC Card (PCMCIA) host bus interface which is used to interface to the PC Card bus. The PC Card host bus interface is selected by the S1D13505 on the rising edge of RESET#. After releasing reset the bus interface signals assume their selected configuration. For details on S1D13505 configuration, see Section 4.2, “S1D13505 Hardware Configuration”...
The S1D13505 PC Card host bus interface requires the following signals from the PC Card bus. • BUSCLK is a clock input which is required by the S1D13505 host bus interface. It is separate from the input clock (CLKI) and is typically driven by the host CPU system clock.
The S1D13505 provides a “glueless” interface to the PC Card bus except for the following. • The RESET# signal on the S1D13505 is active low and must be inverted to support the active high RESET provided by the PC Card interface.
Page 456
D[15:0] WAIT# Note: When connecting the S1D13505 RESET# pin, the system designer should be aware of all conditions that may reset the S1D13505 (e.g. CPU reset can be asserted during wake-up from power-down modes, or during debug states). Figure 4-1: Typical Implementation of PC Card to S1D13505 Interface...
Vancouver Design Center 4.2 S1D13505 Hardware Configuration The S1D13505 latches MD15 through MD0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx.
Page 16 4.4 Register/Memory Mapping The S1D13505 is a memory mapped device. The internal registers require 47 bytes and are mapped in the lower PC Card memory address space starting at zero.The display buffer requires 2M bytes and is mapped in the third and fourth megabytes of the PC Card address space (ranging from 200000h to 3FFFFFh).
Vancouver Design Center 5 Software Test utilities and Windows® CE v2.0 display drivers are available for the S1D13505. Full source code is available for both the test utilities and the drivers. The test utilities are configurable for different panel types using a program called 13505CFG, or by directly modifying the source.
• PC Card (PCMCIA) Standard, March 1997 • Epson Research and Development, Inc., S1D13505 Hardware Functional Specification, Document Number X23A-A-001-xx. • Epson Research and Development, Inc., S1D13505 Programming Notes and Examples, Document Number X23A-G-003-xx. • Epson Research and Development, Inc., S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual, Document Number X23A-G-004-xx.
Epson Research and Development Vancouver Design Center 7 Technical Support 7.1 Epson LCD/CRT Controllers (S1D13505) 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.
Page 462
Page 20 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the PC Card Bus X23A-G-005-06 Issue Date: 01/02/05...
Page 464
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the NEC VR4102/VR4111™ Microprocessors X23A-G-007-06 Issue Date: 01/02/05...
Page 465
LCD Memory Access Cycles ......9 S1D13505 Host Bus Interface ......10 Host Bus Interface Pin Mapping .
Page 466
Page 4 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the NEC VR4102/VR4111™ Microprocessors X23A-G-007-06 Issue Date: 01/02/05...
Page 467
Figure 2-1: NEC VR4102/VR4111 Read/Write Cycles ......9 Figure 4-1: NEC VR4102/VR4111 to S1D13505 Configuration Schematic ....12 Interfacing to the NEC VR4102/VR4111™...
Page 468
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the NEC VR4102/VR4111™ Microprocessors X23A-G-007-06 Issue Date: 01/02/05...
1 Introduction This application note describes the hardware and software environment necessary to provide an interface between the S1D13505 Embedded RAMDAC LCD/CRT Controller and the NEC V The designs described in this document are presented only as examples of how such interfaces might be implemented.
CPU. A 16M byte block of memory is assigned for the LCD controller and its own chip select and ready signals are available. Word or byte accesses are controlled by the system high byte signal (SHB#). S1D13505 X23A-G-007-06 Epson Research and Development Vancouver Design Center Interfacing to the NEC VR4102/VR4111™...
MIPS/ISA Host Bus Interface which is most suitable for direct connection to the VR4102/VR4111 microprocessor. The MIPS/ISA host bus interface is selected by the S1D13505 on the rising edge of RESET#. After releasing reset the bus interface signals assume their selected configuration.
The S1D13505 MIPS/ISA Host Bus Interface requires the following signals. • BUSCLK is a clock input which is required by the S1D13505 Host Bus Interface. It is separate from the input clock (CLKI) and is typically driven by the host CPU system clock.
DAT[15:0] BUSCLK Note: When connecting the S1D13505 RESET# pin, the system designer should be aware of all conditions that may reset the S1D13505 (e.g. CPU reset can be asserted during wake-up from power-down modes, or during debug states). Figure 4-1: NEC V Note For pin mapping see Table 3-1:, “Host Bus Interface Pin Mapping,”...
Vancouver Design Center 4.2 S1D13505 Hardware Configuration The S1D13505 latches MD15 through MD0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx.
Page 14 5 Software Test utilities and Windows® CE v2.0 display drivers are available for the S1D13505. Full source code is available for both the test utilities and the drivers. The test utilities are configurable for different panel types using a program called 13505CFG, or by directly modifying the source.
Document Number X23A-A-001-xx. • Epson Research and Development, Inc., S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual, Document Number X23A-G-004-xx. • Epson Research and Development, Inc., S1D13505 Programming Notes and Examples, Document Number X23A-G-003-xx. 6.2 Document Sources • NEC Electronics Website: http://www.necel.com.
Page 16 7 Technical Support 7.1 EPSON LCD/CRT Controllers (S1D13505) 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...
Page 480
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the Motorola MPC821 Microprocessor X23A-G-008-05 Issue Date: 01/02/05...
Page 481
User-Programmable Machine (UPM) ......12 S1D13505 Host Bus Interface ......13 PowerPC Host Bus Interface Pin Mapping .
Page 482
Page 4 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the Motorola MPC821 Microprocessor X23A-G-008-05 Issue Date: 01/02/05...
Page 483
Table 3-1: PowerPC Host Bus Interface Pin Mapping ......13 Table 4-1: List of Connections from MPC821ADS to S1D13505 ....16 Table 4-2: Summary of Power-On/Reset Options .
Page 484
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the Motorola MPC821 Microprocessor X23A-G-008-05 Issue Date: 01/02/05...
1 Introduction This application note describes the hardware and software environment required to provide an interface between the S1D13505 Embedded RAMDAC LCD/CRT Controller and the Motorola MPC821 processor. The designs described in this document are presented only as examples of how such interfaces might be implemented.
The bus can support both normal and burst cycles. Burst memory cycles are used to fill on-chip cache memory, and for certain on-chip DMA operations. Normal cycles are used for all other data transfers. S1D13505 X23A-G-008-05 Epson Research and Development...
Power PC system bus. SYSCLK A[0:31] RD/WR TSIZ[0:1], AT[0:3] D[0:31] Transfer Start Interfacing to the Motorola MPC821 Microprocessor Issue Date: 01/02/05 Wait States Transfer Complete Figure 2-1: Power PC Memory Read Cycle Page 9 Sampled when TA low Next Transfer Starts S1D13505 X23A-G-008-05...
• Always attempt to transfer four 32-bit words sequentially. • Always address longword-aligned memory (i.e. A30 and A31 are always 0:0). • Do not increment address bits A28 and A29 between successive transfers; the addressed device must increment these address bits internally. S1D13505 X23A-G-008-05 Valid Transfer Start...
S1D13505, therefore the interfaces described in this document do not attempt to support burst cycles. However, the example interfaces include circuitry to detect the assertion of BDIP and respond with BI if caching is accidently enabled for the S1D13505 address space. 2.3 Memory Controller Module 2.3.1 General-Purpose Chip Select Module (GPCM)
In this application note, the GPCM is used instead of the UPM, since the GPCM has enough flexibility to accommodate the S1D13505 and it is desirable to leave the UPM free to handle other interfacing duties, such as EDO DRAM.
The S1D13505 implements a 16-bit native PowerPC host bus interface which is used to interface to the MPC821 microprocessor. The PowerPC host bus interface is selected by the S1D13505 on the rising edge of RESET#. After releasing reset the bus interface signals assume their selected configuration.
3.2 PowerPC Host Bus Interface Signals The interface requires the following signals: • BUSCLK is a clock input which is required by the S1D13505 host bus interface. It is separate from the input clock (CLKI) and is typically driven by the host CPU system clock.
MPC821’s on-chip LCD controller. The S1D13505, through the use of the MPC821 chip selects, can share the system bus with all other MPC821 peripherals. The following figure demonstrates a typical implementation of the S1D13505 to MPC821 interface.
Page 16 Table 4-1:,“List of Connections from MPC821ADS to S1D13505” on page 16 shows the connections between the pins and signals of the MPC821 and the S1D13505. Note The interface was designed using a Motorola MPC821 Application Development System (ADS). The ADS board has 5 volt logic connected to the data bus, so the interface included two 74F245 octal buffers on D[0:15] between the ADS and the S1D13505.
Page 495
Epson Research and Development Vancouver Design Center Table 4-1: List of Connections from MPC821ADS to S1D13505 (Continued) MPC821 Signal Name SRESET SYSCLK TSIZ0 TSIZ1 Note Note that the bit numbering of the Power PC bus signals is reversed. e.g. the most significant address bit is A0, the next is A1, A2, etc.
The DRAM on the MPC821 ADS board extends from address 0 through 3F FFFFh, so the S1D13505 is addressed starting at 40 0000h. A total of 4M bytes of address space is used, where the lower 2M bytes is reserved for the S1D13505 on-chip registers and the upper 2M bytes is used to access the S1D13505 display buffer.
Chip select 4 is used to control the S1D13505. The following options are selected in the base address register (BR4): • BA[0:16] = 0000 0000 0100 0000 0 – set starting address of S1D13505 to 40 0000h. • AT[0:2] = 0 – ignore address type bits.
The test software is very simple. It configures chip select 4 (CS4) on the MPC821 to map the S1D13505 to an unused 4M byte block of address space. Next, it loads the appropriate values into the option register for CS4 and writes the value 0 to the S1D13505 register REG[1Bh] to enable the S1D13505 host interface.
OEM for different panel types, resolutions and color depths only by modifying the source. The S1D13505 test utilities and Windows CE display drivers are available from your sales support contact or on the internet at http://www.eea.epson.com. Interfacing to the Motorola MPC821 Microprocessor...
• Motorola Inc., Power PC MPC821 Portable Systems Microprocessor User’s Manual; Motorola Publication no. MPC821UM/AD. • Epson Research and Development, Inc., S1D13505 Hardware Functional Specification, Document Number X23A-A-001-xx. • Epson Research and Development, Inc., S5U13505B00B Rev. 1.0 ISA Bus Evaluation Board User Manual, Document Number X19A-G-001-xx.
Epson Research and Development Vancouver Design Center 7 Technical Support 7.1 EPSON LCD/CRT Controllers (S1D13505) 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.
Page 502
Page 24 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the Motorola MPC821 Microprocessor X23A-G-008-05 Issue Date: 01/02/05...
Page 504
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the Toshiba MIPS TX3912 Processor X23A-G-010-04 Issue Date: 01/02/05...
Page 505
Interfacing to the TX3912 S1D13505 Host Bus Interface ......9 TX3912 Host Bus Interface Pin Mapping ..... 9 TX3912 Host Bus Interface Signals .
Page 506
Page 4 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the Toshiba MIPS TX3912 Processor X23A-G-010-04 Issue Date: 01/02/05...
Page 507
Table 3-1: TX3912 Host Bus Interface Pin Mapping ......9 Table 4-1: S1D13505 Configuration for Direct Connection..... . 12 Table 4-2: TX3912 to PC Card Slots Address Remapping for Direct Connection .
Page 508
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the Toshiba MIPS TX3912 Processor X23A-G-010-04 Issue Date: 01/02/05...
1 Introduction This application note describes the hardware and software environment necessary to provide an interface between the S1D13505 Embedded RAMDAC LCD/CRT Controller and the Toshiba MIPS TX3912 Processor. The designs described in this document are presented only as examples of how such interfaces might be implemented.
The Toshiba MIPS TX3912 processor supports up to two PC Card (PCMCIA) slots. It is through this host bus interface that the S1D13505 connects to the TX3912 processor. The S1D13505 can be successfully interfaced using one of the following configurations: •...
The S1D13505 implements a 16-bit host bus interface specifically for interfacing to the TX3912 microprocessor. The TX3912 host bus interface is selected by the S1D13505 on the rising edge of RESET#. After releasing reset, the bus interface signals assume their selected configuration. For details on S1D13505 configuration, see Section 4.2, “S1D13505 Configuration”...
When the S1D13505 is configured to operate with the TX3912, the host interface requires the following signals: • BUSCLK is a clock input required by the S1D13505 host bus interface. It is separate from the input clock (CLKI) and should be driven by the TX3912 bus clock output DCLKOUT.
Vancouver Design Center 4 Direct Connection to the Toshiba TX3912 The S1D13505 was specifically designed to support the Toshiba MIPS TX3912 processor. When configured, the S1D13505 will utilize one of the PC Card slots supported by the processor. 4.1 Hardware Description In this example implementation, the S1D13505 occupies one PC Card slot and resides in the Attribute and IO address range.
The S1D13505 also has internal CLKI dividers providing additional flexibility. 4.2 S1D13505 Configuration The S1D13505 latches MD15 through MD0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx.
Vancouver Design Center 4.3 Memory Mapping and Aliasing The TX3912 uses a portion of the PC Card Attribute and IO space to access the S1D13505. The S1D13505 responds to both PC Card Attribute and IO bus accesses, thus freeing the programmer from having to set the TX3912 Memory Configuration Register 3 bit CARD1IOEN (or CARD2IOEN if slot 2 is used).
5 System Design Using the IT8368E PC Card Buffer In a system design using one or two ITE IT8368E PC Card and multiple-function IO buffers, the S1D13505 can be interfaced so as to share one of the PC Card slots. 5.1 Hardware Description...
IT8368E MFIO pins to provide the necessary control signals, however when using the S1D13505 this is not necessary as the Direct Connection described in Section 4, “Direct Connection to the Toshiba TX3912” on page 11 can be used.
Page 16 6 Software Test utilities and Windows® CE v2.0 display drivers are available for the S1D13505. Full source code is available for both the test utilities and the drivers. The test utilities are configurable for different panel types using a program called 13505CFG, or by directly modifying the source.
Document Number X23A-A-001-xx. • Epson Research and Development, Inc., S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual, Document Number X23A-G-004-xx. • Epson Research and Development, Inc., S1D13505 Programming Notes and Examples, Document Number X23A-G-003-xx. 7.2 Document Sources • Toshiba America Electrical Components Website: http://www.toshiba.com/taec.
Page 522
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the NEC VR4121™ Microprocessor X23A-G-011-04 Issue Date: 01/02/05...
Page 523
LCD Memory Access Cycles ......9 S1D13505 Host Bus Interface ......10 Host Bus Interface Pin Mapping .
Page 524
Page 4 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the NEC VR4121™ Microprocessor X23A-G-011-04 Issue Date: 01/02/05...
Page 525
Figure 2-1: NEC VR4121 Read/Write Cycles ......9 Figure 4-1: NEC VR4121 to S1D13505 Configuration Schematic ....12 Interfacing to the NEC VR4121™...
Page 526
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the NEC VR4121™ Microprocessor X23A-G-011-04 Issue Date: 01/02/05...
1 Introduction This application note describes the hardware and software environment necessary to provide an interface between the S1D13505 Embedded RAMDAC LCD/CRT Controller and the NEC V The designs described in this document are presented only as examples of how such interfaces might be implemented.
A 16M byte block of memory is assigned for the LCD controller and its own chip select and ready signals are available. Word or byte accesses are controlled by the system high byte signal (SHB#). S1D13505 X23A-G-011-04 Epson Research and Development 4121 Interfacing to the NEC VR4121™...
MIPS/ISA Host Bus Interface which is most suitable for direct connection to the VR4121 microprocessor. The MIPS/ISA host bus interface is selected by the S1D13505 on the rising edge of RESET#. After releasing reset the bus interface signals assume their selected configuration.
The S1D13505 MIPS/ISA Host Bus Interface requires the following signals. • BUSCLK is a clock input which is required by the S1D13505 Host Bus Interface. It is separate from the input clock (CLKI) and is typically driven by the host CPU system clock.
+3.3V +2.5V Note: When connecting the S1D13505 RESET# pin, the system designer should be aware of all conditions that may reset the S1D13505 (e.g. CPU reset can be asserted during wake-up from power-down modes, or during debug states). Figure 4-1: NEC V Note For pin mapping see Table 3-1:, “Host Bus Interface Pin Mapping,”...
Vancouver Design Center 4.2 S1D13505 Configuration The S1D13505 latches MD15 through MD0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx.
ADD21 (connected to M/R#) is used to select between the S1D13505 display buffer (ADD21=1) and the S1D13505 internal registers (ADD21=0). NEC V ADD[23:22] are ignored, thus the S1D13505 is aliased four times at 4M byte intervals over the LCD controller address range. Address lines ADD[25:24] are set at 10b and never change while the LCD controller is being addressed.
Vancouver Design Center 5 Software Test utilities and Windows® CE v2.0 display drivers are available for the S1D13505. Full source code is available for both the test utilities and the drivers. The test utilities are configurable for different panel types using a program called 13505CFG, or by directly modifying the source.
Document Number X23A-A-001-xx. • Epson Research and Development, Inc., S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual, Document Number X23A-G-004-xx. • Epson Research and Development, Inc., S1D13505 Programming Notes and Examples, Document Number X23A-G-003-xx. 6.2 Document Sources • NEC Electronics Website: http://www.necel.com.
Epson Research and Development Vancouver Design Center 7 Technical Support 7.1 Epson LCD/CRT Controllers (S1D13505) 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.
Page 538
Page 18 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the NEC VR4121™ Microprocessor X23A-G-011-04 Issue Date: 01/02/05...
Page 540
Page 2 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the NEC V832™ Microprocessor X23A-G-012-02 Issue Date: 01/02/05...
Page 541
Host Bus Interface Signal Descriptions V832 to S1D13505 Interface ......12 Hardware Description .
Page 542
Page 4 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the NEC V832™ Microprocessor X23A-G-012-02 Issue Date: 01/02/05...
Page 543
Figure 2-1: NEC V832 Read/Write Cycles ....... 9 Figure 4-1: NEC V832 to S1D13505 Configuration Schematic ....12 Interfacing to the NEC V832™...
Page 544
Page 6 Epson Research and Development Vancouver Design Center THIS PAGE LEFT BLANK S1D13505 Interfacing to the NEC V832™ Microprocessor X23A-G-012-02 Issue Date: 01/02/05...
1 Introduction This application note describes the hardware and software environment required to provide an interface between the S1D13505 Embedded RAMDAC LCD/CRT Controller and the NEC V832 The designs described in this document are presented only as examples of how such interfaces might be implemented.
A 16M byte block of addressing space can be assigned for the LCD controller and its own chip select and ready signals are available. Word or byte accesses are controlled by system byte enable signals (LLBEN and LUBEN). S1D13505 X23A-G-012-02 Epson Research and Development Vancouver Design Center Interfacing to the NEC V832™...
(CSn) is driven low. The read or write enable signals (IORD or IOWR) are driven low and READY is driven low by the S1D13505 to insert wait states into the cycle. The byte enable signals (LLBEN and LUBEN) allow byte steering.
PC Card (PCMCIA) Host Bus Interface which is most suitable for direct connection to the V832 microprocessor. The PC Card host bus interface is selected by the S1D13505 on the rising edge of RESET#. After releasing reset the bus interface signals assume their selected configuration. For details on S1D13505 configuration, see Section 4.2, “S1D13505 Hardware Configuration”...
3.2 Host Bus Interface Signal Descriptions The S1D13505 PC Card Host Bus Interface requires the following signals. • BUSCLK is a clock input which is required by the S1D13505 Host Bus Interface. It is driven by the V832 signal SDCLKOUT.
+2.5V VDD_I Note: When connecting the S1D13505 RESET# pin, the system designer should be aware of all conditions that may reset the S1D13505 (e.g. CPU reset can be asserted during wake-up from power-down modes, or during debug states). Figure 4-1: NEC V832 to S1D13505 Configuration Schematic Note For pin mapping see Table 3-1:, “Host Bus Interface Pin Mapping,”...
Vancouver Design Center 4.2 S1D13505 Hardware Configuration The S1D13505 latches MD15 through MD0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13505 Hardware Functional Specification, document number X23A-A-001-xx.
The NEC V832 should access the S1D13505 in non-burst mode only. This is ensured by using any one of the CS3 to CS6 lines to control the S1D13505 and setting that line to respond to IO operations using the NEC V832 BCTC register. For example, if line CS5 is designated to control the S1D13505, then bit 5 (CT5) of the BCTC register should be set to 1 (IO cycle).
Epson Research and Development Vancouver Design Center 4.4 Memory Mapping and Aliasing The CSn line selected determines the address range to be reserved for the S1D13505. The table below summarizes the S1D13505 address mapping. Table 4-3: NEC CSn Line NEC V832 IO Address...
Page 16 5 Software Test utilities and Windows® CE v2.0 display drivers are available for the S1D13505. Full source code is available for both the test utilities and the drivers. The test utilities are configurable for different panel types using a program called 13505CFG, or by directly modifying the source.
Document Number X23A-A-001-xx. • Epson Research and Development, Inc., S5U13505B00C Rev. 1.0 ISA Bus Evaluation Board User Manual, Document Number X23A-G-004-xx. • Epson Research and Development, Inc., S1D13505 Programming Notes and Examples, Document Number X23A-G-003-xx. 6.2 Document Sources • NEC Electronics Website: http://www.necel.com.
Page 18 7 Technical Support 7.1 Epson LCD/CRT Controllers (S1D13505) 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...