Page 1
MF1430-01 Embedded DRAM Graphics Controller S1D13806 Series Technical Manual...
Page 2
Seiko Epson. Seiko Epson reserves the right to make changes to this material without notice. Seiko Epson does not assume any liability of any kind arising out of any inaccuracies contained in this material or due to its application or use in any product or circuit and, further, there is no representation that this material is applicable to products requiring high level reliability, such as medical products.
New configuration of product number Starting April 1, 2001, the configuration of product number descriptions will be changed as listed below. To order from April 1, 2001 please use these product numbers. For further information, please contact Epson sales representative. Devices 13706...
Dual Color 8-Bit Panel Timing.................. 1-61 6.4.9 Dual Color 16-Bit Panel Timing................1-63 6.4.10 TFT/D-TFD Panel Timing..................1-65 6.4.11 CRT Timing ......................1-68 TV Timing..........................1-70 6.5.1 TV Output Timing ..................... 1-70 MediaPlug Interface Timing ...................... 1-74 EPSON S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION...
Page 7
12.1 Monochrome Modes ....................... 1-141 12.2 Color Modes ........................... 1-142 13 TV C ......................1-144 ONSIDERATIONS 13.1 NTSC/PAL Operation ......................1-144 13.2 Clock Source .......................... 1-144 13.3 Filters ............................1-145 13.3.1 Chrominance Filter (REG[05Bh] bit 5) ..............1-145 EPSON 1-ii S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION...
Page 8
18.2.8 Frame Rates for LCD and PAL TV with EISD Enabled.......... 1-180 19 P ......................1-181 OWER 19.1 Overview ..........................1-181 19.2 Power Save Status Bits......................1-181 19.3 Power Save Mode Summary ....................1-182 20 M ......................1-183 ECHANICAL EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-iii SPECIFICATION...
Page 9
Figure 6-32 TFT/D-TFD Panel Timing....................1-65 Figure 6-33 TFT/D-TFD A.C. Timing ..................... 1-66 Figure 6-34 CRT Timing ........................1-68 Figure 6-35 CRT A.C. Timing ........................ 1-69 Figure 6-36 NTSC Video Timing ......................1-70 EPSON 1-iv S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION...
Page 10
Table 6-9 Motorola MC68K Bus 1 Interface Timing ................1-34 Table 6-10 Motorola MC68K Bus 2 Interface Timing ................1-36 Table 6-11 Motorola PowerPC Interface Timing .................. 1-38 Table 6-12 PC Card Timing........................1-40 EPSON S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION...
Page 12
Table 18-7 Frame Rates for LCD and NTSC TV with EISD Enabled..........1-179 Table 18-8 Frame Rates for LCD and PAL TV with EISD Enabled............ 1-180 Table 19-1 Power Save Mode Summary.................... 1-182 EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-vii SPECIFICATION...
The S1D13806 supports multiple CPUs, all LCD panel types, CRT, TV, and additionally provides a number of differentiating features. EPSON Independent Simultaneous Display technology allows the user to configure two different images on two different displays, while the SwivelView™, Hard- ware Cursor, Ink Layer, and BitBLT features offer substantial performance benefits.
SwivelView™: 90°, 180°, 270° hardware rotation of display MPU bus interface with programmable READY. image. NEC MIPS VR41xx. EPSON Independent Simultaneous Display (EISD): displays PC Card (PCMCIA). independent images on different displays (CRT or TV and pas- Philips MIPS PR31500/PR31700.
• For all other busses, this pin inputs the system address bit 20 (A20). See Table 4-9, “CPU Interface Pin Mapping,” on page 18 for summary. See the respective AC Timing diagram for detailed functionality. EPSON 1-10 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 23
• For PC Card (PCMCIA) Bus, this pin is connected to the input clock (CLKI, pin 69). See Table 4-9, “CPU Interface Pin Mapping,” on page 18 for summary. See the respective AC Timing diagram for detailed functionality. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-11 SPECIFICATION (X28B-A-001-03)
Page 24
• For PC Card (PCMCIA) Bus, this pin inputs the output enable signal (-OE). See Table 4-9, “CPU Interface Pin Mapping,” on page 18 for summary. See the respective AC Timing diagram for detailed functionality. EPSON 1-12 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 25
See the respective AC Timing diagram for detailed functionality. Note: When WAIT# is always driven, WAIT# is in its inactive state at RESET#. CONF[3:0] determines whether WAIT# is active high or low. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-13 SPECIFICATION (X28B-A-001-03)
MediaPlug VMPCLKN pin. Note: The RESET# states of VMP[5:2] are 0 if VMP is enabled, otherwise Hi-Z. Note: When the MediaPlug interface is enabled, GPIO12 is configured as the MediaPlug output pin VMPEPWR. EPSON 1-14 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
88, 99, 108, — 121, 144 for DAC (DAC V AVSS 111, 118 — for embedded SDRAM (SDRAM V DVSS 58, 143 — N.C. — — — This pin must not be connected. EPSON 1-16 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
WAIT# is tristated when the chip is not accessed by the host Configures GPIO12 as MediaPlug output pin Configure GPIO12 for normal use and disables MediaPlug func- CONF7 VMPEPWR and enables MediaPlug functionality. tionality. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-17 SPECIFICATION (X28B-A-001-03)
RESET# RESET# RESET# PON* RESET RESET Note: All GPIO pins default to input on reset and unless programmed otherwise, should be connected to ei- ther V or IO V if not used. EPSON 1-18 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
To CRT/TV 150Ω 150Ω 150Ω DAC V DAC V DAC V Figure 4-2 External Circuitry for CRT Interface Note: Example implementation only, individual characteristics of components may affect actual IREF cur- rent. EPSON 1-20 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
IO V Supply Voltage = 0 V Core V Supply Voltage = 0 V DAC V Supply Voltage = 0 V SDRAM V Supply Voltage = 0 V Input Voltage °C Operating Temperature EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-21 SPECIFICATION (X28B-A-001-03)
Input Clock Fall Time (10% - 90%) Input Clock Rise Time (10% - 90%) Note: The internal memory clock (MCLK) is restricted to a maximum of 50MHz and a minimum of 5MHz. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-23 SPECIFICATION (X28B-A-001-03)
The TV pixel clock for NTSC output is fixed at 14.318MHz. The TV pixel clock for PAL output is fixed at 17.734MHz. Note: For further information on the internal clocks, refer to Section 7, “Clocks” on page 75. EPSON 1-24 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
D[15:0](write) D[15:0](read) Figure 6-2 Generic Interface Timing Note: The above timing diagram is not applicable if CONF5 = 1 (BUSCLK divided by 2). Note: WAIT# is always driven when CONF6 = 1. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-25 SPECIFICATION (X28B-A-001-03)
Note: The SH-4 Wait State Control Register for the area in which the S1D13806 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 refer- ence to BUSCLK). Note: RDY# is always driven when CONF6 = 1. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-27 SPECIFICATION (X28B-A-001-03)
DB[15:0] valid to RDY# falling edge (read cycle) Rising edge RD# to DB[15:0] tri-state (read cycle) CSn# high setup to CKIO Falling edge CKIO to RDY# tri-state Note: 1. Two software WAIT states are required. EPSON 1-28 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Note: The above timing diagram is not applicable if CONF5 = 1 (BUSCLK divided by 2). Note: The SH-3 Wait State Control Register for the area in which the S1D13806 resides must be set to a non-zero value. Note: WAIT# is always driven when CONF6 = 1. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-29 SPECIFICATION (X28B-A-001-03)
DB[15:0] valid to WAIT# rising edge (read cycle) Rising edge RD# to DB[15:0] tri-state (read cycle) CSn# high setup to CKIO Note: 1. Two software WAIT states are required when f is greater than 33MHz. CKIO EPSON 1-30 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
SD[15:0](write) SD[15:0](read) Figure 6-5 MIPS/ISA Interface Timing Note: The above timing diagram is not applicable if CONF5 = 1 (BUSCLK divided by 2). Note: IOCHRDY is always driven when CONF6 = 1. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-31 SPECIFICATION (X28B-A-001-03)
Figure 6-6 Motorola MC68K Bus 1 Interface Timing Note: The above timing diagram is not applicable if CONF5 = 1 (BUSCLK divided by 2). Note: DTACK# is always driven when CONF6 = 1. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-33 SPECIFICATION (X28B-A-001-03)
Falling edge of UDS# = 0 or LDS# = 0 to DB driven (read cycle) D[15:0] valid to DTACK# falling edge (read cycle) UDS# and LDS# high to D[15:0] invalid/high impedance (read cycle) AS# high setup to CLK EPSON 1-34 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Figure 6-7 Motorola MC68K Bus 2 Interface Timing Note: The above timing diagram is not applicable if CONF5 = 1 (BUSCLK divided by 2). Note: DSACK1# is always driven when CONF6 = 1. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-35 SPECIFICATION (X28B-A-001-03)
Falling edge of DS# = 0 to DB driven (read cycle) D[31:16] valid to DSACK1# falling edge (read cycle) DS# high to D[31:16] invalid/high impedance (read cycle) AS# high setup to CLK EPSON 1-36 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
D[0:15](read) Figure 6-8 Motorola PowerPC Interface Timing Note: The above timing diagram is not applicable if CONF5 = 1 (BUSCLK divided by 2). Note: TA# is always driven when CONF6 = 1. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-37 SPECIFICATION (X28B-A-001-03)
Page 54
D[31:16] setup to rising edge /CARDxWAIT (read cycle) Command invalid to D[31:16] tri-state (read cycle) Note: If BUSCLK exceeds 37.5MHz, it must be divided by 2 using CONF5 (see Table 4-8, “Summary of Power-On/Reset Options,” on page 17). EPSON 1-42 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 56
D[31:16] setup to rising edge CARDxWAIT* (read cycle) Command invalid to D[31:16] tri-state (read cycle) Note: If BUSCLK exceeds 37.5MHz, it must be divided by 2 using CONF5 (see Table 4-8, “Summary of Power-On/Reset Options,” on page 17). EPSON 1-44 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
LCD Enable Bit high to FPFRAME, FPLINE, FPLINE FPSHIFT, FPDATA, DRDY active Note: Where T is the period of FPLINE. FPLINE Note: The above timing assumes REG[1F0h] bit 4 is set to 1. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-45 SPECIFICATION (X28B-A-001-03)
1. t2 = The maximum value for t2 is based on the SDRAM Refresh Rate (REG[021h] bits 2:0) as follows. Table 6-17 SDRAM Refresh Period Selection SDRAM Refresh Period REG[021h] bits 2:0 (MCLKs) EPSON 1-46 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
1 VNDP TV VRTC Start Position (field 1) Field 2 start of field 2 VNDP TV VRTC Start Position (field 2) Start of Vertical Sync Figure 6-36 NTSC Video Timing EPSON 1-70 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 83
311 312 313 314 315 316 317 318 319 320 334 335 336 Field 4 start of field 4 VNDP TV VRTC Start Position (field 4) Start of Vertical Sync Figure 6-37 PAL Video Timing EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-71 SPECIFICATION (X28B-A-001-03)
Output data delay from VMPCLK falling edge Output data tristate delay from VMPCLK falling edge Note: VMPCLK, VMPCLKN are twice the period of the MediaPlug Clock. See Section 7, “Clocks” on page EPSON 1-74 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
MediaPlug Clock must be in the range of 12-16MHz. For AC timing see Section 6.6, “MediaPlug Interface Timing” on page 74. VMPCLK (6-8MHz) MediaPlug Clock ÷2 (12-16MHz) VMPCLKN (6-8MHz) Figure 7-2 MediaPlug Clock Output Signals EPSON 1-76 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Note: 1. The CRT/TV pixel clock may be further multiplied by 2 when TV with Flicker Filter is enabled using REG[018h] bit 7. 2. MCLK may be a previously divided down version of CLKI, CLKI3, or BUSCLK. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-77 SPECIFICATION (X28B-A-001-03)
MediaPlug Registers — — — read/write Power Save Mode see Section 19, “Power Save Mode” on page 181 Note: The S1D13806 contains sophisticated power management that dynamically shuts down clocks when not required. EPSON 1-78 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
To initialize the embedded SDRAM in the S1D13806, this bit must be set to 1 a minimum of 200µs after reset. This bit must be set to 1 before memory access is performed. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-79 SPECIFICATION (X28B-A-001-03)
1000h to 1FFFh On-chip registers (512 bytes) 0 to 1FFh Note: The registers may be aliased within the allocated register space. If aliasing is undesirable, the regis- ter space must be fully decoded. EPSON 1-80 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
2 Reserved. This bit must be set to 0. bit 1 Reserved. This bit must be set to 0. bit 0 Reserved. This bit must be set to 0. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-83 SPECIFICATION (X28B-A-001-03)
GPIO[n] high and writing a 0 to this bit drives GPIO[n] low. (n ranges from 0 to 7) When GPIO[n] is configured as an input, a read from bit n returns the status of GPIO[n]. (n ranges from 0 to 7) EPSON 1-84 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
When this bit = 0, the memory clock frequency is equal to the MCLK source frequency. Note: The MCLK frequency should always be set to the maximum frequency allowed by the SDRAM. This provides maximum performance and minimizes overall system power consumption. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-85 SPECIFICATION (X28B-A-001-03)
Page 98
These bits determine the divide used to generate the LCD pixel clock from the LCD pixel clock source. Table 8-5 LCD PCLK Divide Selection LCD PCLK Divide Select Bits LCD PCLK Source to LPCLK Frequency Ratio EPSON 1-86 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 99
These bits determine the divide used to generate the CRT/TV pixel clock from the CRT/TV pixel clock source. Table 8-7 CRT/TV PCLK Divide Selection CRT/TV PCLK Divide Select Bits CRT/TV PCLK Source to DPCLK Frequency Ratio EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-87 SPECIFICATION (X28B-A-001-03)
Page 100
These bits determine the divide used to generate the MediaPlug Clock from the MediaPlug Clock source. Table 8-9 MediaPlug Clock Divide Selection MediaPlug Clock Source to MediaPlug Clock MediaPlug Clock Divide Select Bits Frequency Ratio EPSON 1-88 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 101
Failure to meet the following conditions may lead to system crash which is recoverable only by RESET. Table 8-11 Minimum Memory Timing Selection Wait State Bits [1:0] Condition no restrictions × period (MCLK) - 4ns > period(BCLK) period(MCLK) - 4ns > period(BCLK) Reserved EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-89 SPECIFICATION (X28B-A-001-03)
When this bit = 1, the TFT 2x Data format is selected. When this bit = 0, the standard TFT Data format is selected. For details on the TFT 2x Data format, see Section 6.4.10, “TFT/D-TFD Panel Timing” on page 65. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-91 SPECIFICATION (X28B-A-001-03)
Page 104
For a non-zero value these bits specify the number of FPLINE between toggles of the MOD output signal (DRDY). When these bits are all 0’s the MOD output signal toggles every FPFRAME. These bits are for passive LCD panels only. EPSON 1-92 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 105
HNDP width in number of pixels = ((ContentsOfThisRegister) + 1) × 8 Note: This register must be programmed such that REG[034h] ≥ 3 (32 pixels). Note: For TFT/D-TFD only: REG[034h] + 1 ≥ (REG[035h] + 1) + (REG[036h] bits 3-0 + 1) EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-93 SPECIFICATION (X28B-A-001-03)
Page 106
When this bit = 0, the FPLINE pulse is active low for TFT/D-TFD and active high for passive LCD. Table 8-16 LCD FPLINE Polarity Selection LCD FPLINE Polarity Select Passive LCD FPLINE Polarity TFT FPLINE Polarity active high active low active low active high EPSON 1-94 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 107
Vertical non-display period height in number of lines = (ContentsOfThis- Register) + 1 Note: For TFT/D-TFD only: (REG[03Ah] bits 5-0 + 1) ≥ (REG[03Bh] + 1) + (REG[03Ch] bits 2-0 + 1) EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-95 SPECIFICATION (X28B-A-001-03)
Page 108
FPFRAME output signal in number of lines. FPFRAME pulse width in number of lines = (ContentsOfThisRegister) + 1 Note: (REG[03Ah] bits 5-0 + 1) ≥ (REG[03Bh] + 1) + (REG[03Ch] bits 2-0 + 1) EPSON 1-96 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
REG[041h] bit 1). TFT/D-TFD panels support up to 64K colors. Table 8-19 LCD Bit-per-pixel Selection Bit-per-pixel Select Bits [1:0] Color Depth (bpp) 000-001 Reserved 4 bpp 8 bpp Reserved 16 bpp 110-111 Reserved EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-97 SPECIFICATION (X28B-A-001-03)
Page 110
However, disabling the dual panel buffer reduces image contrast and overall display quality. For details on Frame Rate Cal- culation, see Section 18, “Clocking” on page 169. EPSON 1-98 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 111
“n” to the starting word of line “n + 1”. A virtual image can be formed by setting this register to a value greater than the width of the display. The displayed image is a window into the larger virtual image. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-99 SPECIFICATION (X28B-A-001-03)
Page 112
Note: This register does not need to be used in single display modes and may only be required in some dis- play modes where two displays are active (see Section 16.3, “Bandwidth Limitation” on page 167). EPSON 1-100 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Note: For CRT, the recommended minimum value which should be programmed into this register is 3 (32 pixels). Note: REG[052h] + 1 ≥ (REG[053h] + 1) + (REG[054h] bits 3-0 + 1) EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-101 SPECIFICATION (X28B-A-001-03)
Page 114
HRTC pulse width in number of pixels = ((ContentsOfThisRegister) + 1) × Note: For TV, these bits must be set to 0. Note: REG[052h] + 1 ≥ (REG[053h] + 1) + (REG[054h] bits 3-0 + 1) EPSON 1-102 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 115
These bits specify the CRT/TV vertical non-display period height in 1 line resolution. Vertical non-display period height in number of lines = (ContentsOfThis- Register) + 1 Note: (REG[058h] bits 6-0 + 1) ≥ (REG[059h] + 1) + (REG[05Ah] bits 2-0 + 1) EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-103 SPECIFICATION (X28B-A-001-03)
Page 116
VRTC pulse width in number of lines = (ContentsOfThisRegister) + 1 Note: For TV, these bits must be set to 0. Note: (REG[058h] bits 6-0 + 1) ≥ (REG[059h] + 1) + (REG[05Ah] bits 2-0 + 1) EPSON 1-104 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 117
When this bit = 1, PAL format TV signal output is selected. When this bit = 0, NTSC format TV signal output is selected. This bit must be set to 0 when CRT is enabled. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-105 SPECIFICATION (X28B-A-001-03)
Note: Color depth of 16 bpp bypasses the LUT and support up to 64K colors on the CRT/TV. Table 8-22 CRT/TV Bit-per-pixel Selection Bit-per-pixel Select Bits 1:0 Color Depth (bpp) Reserved Reserved 4 bpp 8 bpp Reserved 16 bpp 110-111 Reserved EPSON 1-106 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 119
“n” to the starting word of line “n + 1”. A virtual image can be formed by setting this register to a value greater than the width of the dis- play. The displayed image is a window into the larger virtual image. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-107 SPECIFICATION (X28B-A-001-03)
Page 120
Note: This register does not need to be used in single display modes and may only be required in some dis- play modes where two displays are active (see Section 16.3, “Bandwidth Limitation” on page 167). EPSON 1-108 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
These bits enable the LCD Ink/Cursor circuitry. Table 8-24 LCD Ink/Cursor Selection LCD Ink/Cursor Bits [1:0] Mode Inactive Cursor Reserved Note: While in Ink mode, the Cursor X and Y Position registers must be set to 00h. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-109 SPECIFICATION (X28B-A-001-03)
Page 122
When this bit = 1, it defines the LCD Cursor X Position register to be a negative number. The negative number shall not exceed 63 decimal. When this bit = 0, it defines the LCD Cursor X Position register to be a positive number. EPSON 1-110 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 123
Color 0 Bit 3 Color 0 Bit 2 Color 0 Bit 1 Color 0 Bit 0 bits 4-0 LCD Ink/Cursor Blue Color 0 Bits[4:0] These bits define the blue LCD Ink/Cursor color 0. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-111 SPECIFICATION (X28B-A-001-03)
Page 124
Color 1 Bit 3 Color 1 Bit 2 Color 1 Bit 1 Color 1 Bit 0 bits 4-0 LCD Ink/Cursor Red Color 1 Bits[4:0] These bits define the red LCD Ink/Cursor color 1. EPSON 1-112 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
These bits enable the CRT/TV Ink/Cursor circuitry. Table 8-26 CRT/TV Ink/Cursor Selection CRT/TV Ink/Cursor Bits [1:0] Mode Inactive Cursor Reserved Note: While in Ink mode, the Cursor X and Y Position registers must be set to 00h. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-113 SPECIFICATION (X28B-A-001-03)
Page 126
= 255...161 Invalid Note: The effect of this register takes place at the next CRT/TV vertical non-display period. Note: See Section 10, “Display Buffer” on page 137 for display buffer organization. EPSON 1-114 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 127
When this bit = 1, it defines the CRT/TV Cursor Y Position register to be a negative number. The negative number shall not exceed 63 decimal. When this bit = 0, it defines the CRT/TV Cursor Y Position register to be a positive number. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-115 SPECIFICATION (X28B-A-001-03)
Page 128
Color 1 Bit 3 Color 1 Bit 2 Color 1 Bit 1 Color 1 Bit 0 bits 4-0 CRT/TV Ink/Cursor Blue Color 1 Bits[4:0] These bits define the blue CRT/TV Ink/Cursor color 1. EPSON 1-116 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 129
Cursor These bits are used to optimize the display memory request arbitration for the Hardware Cursor/Ink Layer. When this register is set to 00h, the thresh- old is automatically set in hardware. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-117 SPECIFICATION (X28B-A-001-03)
BitBLT FIFO Not Number of Words Full Status Full Status Empty Status available in BitBLT (REG[100h] Bit 4) (REG[100h] Bit 5) (REG[100h] Bit 6) FIFO 1 to 6 7 to 14 15 to 16 EPSON 1-118 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 131
This bit selects the color format that the 2D operation is applied to. When this bit = 0, 8 bpp (256 color) format is selected. When this bit = 1, 16 bpp (64K color) format is selected. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-119 SPECIFICATION (X28B-A-001-03)
Page 132
S + ~D P + ~D bit 5 1110 S + D P + D bit 6 1111 1 (Whiteness) 1 (Whiteness) bit 7 Note: S = Source, D = Destination, P = Pattern. EPSON 1-120 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 133
Note: The BitBLT operations Pattern Fill with ROP and Pattern Fill with transparency require a BitBLT width > 2 for 8 bpp color depths and a BitBLT width > 1 for 16 bpp color depths. The BitBLT width is set in REG[110h], REG[111h]. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-121 SPECIFICATION (X28B-A-001-03)
Page 134
BitBLT Source Start Address[20:7] BitBLT Source Start Address[6:4] BitBLT Source Start Address[3:0] Note: For further information on the BitBLT Source Start Address register, see the S1D13806 Programming Notes and Examples, document number X28B-G-003-xx. EPSON 1-122 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 135
+ 1. They are used only for address cal- culation when the BitBLT is configured as a rectangular region of memory. They are not used for the displays. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-123 SPECIFICATION (X28B-A-001-03)
Page 136
Bit 8 REG[112h] bits 7-0 BitBLT Height Bits [9:0] REG[113h] bits 1-0 A 10-bit register that specifies the BitBLT height in lines - 1. BitBLT height in lines = (ContentsOfThisRegister) + 1 EPSON 1-124 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 137
Expansion or Solid Fill. For 16 bpp color depths (REG[101h] bit 0 = 1), all 16 bits are used. For 8 bpp color depths (REG[101h] bit 0 = 0), only bits 7- 0 are used. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-125 SPECIFICATION (X28B-A-001-03)
Data Register move the pointer onto B[3], R[4], G[4], B[4], R[5], etc. Note: The RGB data is inserted into the LUT after the Blue data is written, i.e. all three colors must be writ- ten before the LUT is updated. EPSON 1-126 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
When this bit = 1, power save mode is enabled. When this bit = 0, power save mode is disabled. Note: For details on Power Save Mode, see Section 19, “Power Save Mode” on page 181. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-127 SPECIFICATION (X28B-A-001-03)
Page 140
When this bit = 0, the memory controller is powered up and is in normal mode. Note: When this bit reads a 1, the system may safely shut down the memory clock source. EPSON 1-128 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
CPU-to-memory access cycle time in order gain higher CPU bandwidth. Doing so may significantly reduce the available display refresh bandwidth which may cause display corruption. This regis- ter does not affect CPU-to-register access or BitBLT access. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-129 SPECIFICATION (X28B-A-001-03)
(1 vertical pixel). For example, one pixel high lines, edges of window boxes, etc. Flickering occurs because these high resolution lines are effectively displayed at half the refresh frequency due to interlacing. EPSON 1-130 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Write Xxxx Read Rstat[2:0] bits 15-14 Timeout Option These bits select the timeout delay in MediaPlug clock cycles. Table 8-37 Timeout Option Delay Timeout Option Bits[15:14] Timeout (MediaPlug clock cycles) 1023 (default) EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-131 SPECIFICATION (X28B-A-001-03)
Page 144
When this bit = 1, power to remote is on. bit 0 Watchdog Disable When this bit = 0, the MediaPlug watchdog is enabled (default). When this bit = 1, the MediaPlug watchdog is disabled. EPSON 1-132 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 145
3. Write to DATA register if the CCC field is Write_Reg. 4. Read to DATA register if the CCC field is Read_Reg. It is also set when the Remote Machine loses power or the cable is discon- nected. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-133 SPECIFICATION (X28B-A-001-03)
Page 146
This register is not implemented and is reserved for future expansion of the CMD register. A write to this register has no hardware effect. A read from this register always return 0000h. EPSON 1-134 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Data Bit 10 Data Bit 9 Data Bit 8 Data Register bits 15-0 BitBLT Data Bits [15:0] A 16-bit register that specifies the BitBLT data. This register is loosely decoded from 100000h to 1FFFFEh. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-135 SPECIFICATION (X28B-A-001-03)
• Transparent Move BitBLT. • Read BitBLT. • Color Expansion BitBLT. • Move BitBLT with Color Expansion. Note: For details on the BitBLT registers, see Section 8.4.12, “BitBLT Configuration Registers” on page 118. EPSON 1-136 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
For a 800 × 600 color panel the dual panel buffer size is 120,000 bytes. With a 1280k byte display buffer, the dual panel buffer resides from 12 2b40h to 13 FFFFh. EPSON 1-138 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Figure 11-1 4/8/16 Bit-per-pixel Format Memory Organization Note: 1. The Host-to-Display mapping shown here is for a little endian system. 2. For the 16 bit-per-pixel format, R represent the red, green, and blue color components. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-139 SPECIFICATION (X28B-A-001-03)
LCD display. The screen image on the CRT/TV is manipulated similarly. When EISD is enabled (see Section 16, “EPSON Independent Simultaneous Display (EISD)” on page 166), the images on the LCD and on the CRT/TV are independent of each other.
A color depth of 16 bpp is required to achieve 64 gray shades in monochrome mode. In this mode the LUT is bypassed and the green component of the pixel is mapped to the FRM. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-141 SPECIFICATION (X28B-A-001-03)
0001 (01h) 0101 (05h) to display Blue Look-Up Table 256x4 4-bit Blue Data: example data: 0001 (01h) 1111 (0Fh) = unused Look-Up Table entries Figure 12-2 4 Bit-Per-Pixel Color Mode Data Output Path EPSON 1-142 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 155
Figure 12-3 8 Bit-Per-Pixel Color Mode Data Output Path 16 Bit-Per-Pixel Color Modes The LUT is bypassed and the color data is directly mapped for this color mode – Section 11, “Dis- play Configuration” on page 139. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-143 SPECIFICATION (X28B-A-001-03)
The required clock frequencies for NTSC/PAL are given in the following table. Table 13-1 Required Clock Frequencies for NTSC/PAL TV Format Required Clock Frequency NTSC 14.318180 MHz (3.579545 MHz subcarrier) 17.734475 MHz (4.43361875 MHz subcarrier) EPSON 1-144 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Flickering occurs because these high resolution lines are effectively displayed at half the refresh fre- quency due to interlacing. The anti-flicker filter averages adjacent lines on the TV display to reduce flickering. This filter is controlled using the Display Mode register (REG[1FCh] bits [2:1]). EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-145 SPECIFICATION (X28B-A-001-03)
1F 00 00 Blue 00 00 1F blue Black 00 00 00 black Blanking N.A. blanking Sync Tip N.A. sync Note: RGB values assume a 16 bpp color depth with 5-6-5 pixel packing. EPSON 1-146 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 159
Magenta negative peak 1F 00 1F magenta Red negative peak 1F 00 00 Blue negative peak 00 00 1F -40.8 blue Note: RGB values assume a 16 bpp color depth with 5-6-5 pixel packing. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-147 SPECIFICATION (X28B-A-001-03)
Page 160
20 / 18 burst Burst negative peak N.A. 142 / 153 -20 / -19 burst Sync Tip N.A. sync Note: RGB values assume a 16 bpp color depth with 5-6-5 pixel packing. EPSON 1-148 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
The maximum and minimum register values for these registers are given in Table 13-5, “Minimum and Maximum Values for NTSC/PAL TV”. Increasing the HRTC Start Position moves the image left, while increasing the VRTC Start Position moves the image up. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-149 SPECIFICATION (X28B-A-001-03)
Page 162
Note: The TV Vertical Non-Display Period (t5) varies by 1 line depending on the field that it follows. Note: For NTSC panels the minimum and maximum values will vary for each application. EPSON 1-150 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
TV Horizontal Non-Display Period TV HRTC Start Position TV Vertical Display Height TV Vertical Non-Display Period TV Vertical Start Position 13.4.2 TV Cursor Operation See Section 14, “Ink Layer/Hardware Cursor Architecture” on page 152. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-151 SPECIFICATION (X28B-A-001-03)
REG[088h], REG[087h], REG[086h] for CRT/TV) Ink/Cursor Color 1 Register, (REG[07Ah], REG[07Bh],REG[07Ah] for Color 1 LCD, REG[08Ah], REG[08Bh], REG[08Ah] for CRT/TV) Background Ink/Cursor is transparent – show background Inverted Background Ink/Cursor is transparent – show inverted background EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-153 SPECIFICATION (X28B-A-001-03)
= (REG[075h] bits [1:0], REG[074h]) and REG[075h] bit 7 = 0 For CRT/TV: x = (REG[083h] bits [1:0], REG[082h]) and REG[083h] bit 7 = 0 y = (REG[085h] bits [1:0], REG[084h]) and REG[085h] bit 7 = 0 EPSON 1-154 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 167
= (REG[075h] bits [1:0], REG[074h]) <= 63 and REG[075h] bit 7 = 1 For CRT/TV: x = (REG[083h] bits [1:0], REG[082h]) <= 63 and REG[083h] bit 7 = 1 y = (REG[085h] bits [1:0], REG[084h]) <= 63 and REG[085h] bit 7 = 1 EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-155 SPECIFICATION (X28B-A-001-03)
However, it is still possible to pan and scroll the portrait window in 90° Swivel- View, but the user must program these registers somewhat differently (See Section 15.2.1, “Register Programming” on page 157). EPSON 1-156 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
The LCD Memory Address Offset register (REG[046h], REG[047h]) must be set for a 1024 pixel offset: LCD Memory Address Offset (words) = 1024 for 16 bpp color depth = 512 for 8 bpp color depth EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-157 SPECIFICATION (X28B-A-001-03)
Page 170
= (1024 - W) for 16 bpp color depth = (1024 - W) / 2 for 8 bpp color depth where W is the width of the panel in number of pixels. EPSON 1-158 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Ink Layer, Hardware Cursor, or even the CRT/TV display buffer. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-159 SPECIFICATION (X28B-A-001-03)
Page 172
640 - 600 = 40 pixels. The programmer also should not read/write to the memory beyond the maximum accessible horizontal virtual size because that memory is either reserved for the dual panel buffer or not associated with any real memory at all. EPSON 1-160 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
Page 173
8 bpp 600KB Mono 29.30KB — /1248KB 16 bpp 1.2MB × Note: 1. 800 600 color 16bpp dual panel is not supported. Note: Where KB = 1024 bytes, and MB = 1024K bytes. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-161 SPECIFICATION (X28B-A-001-03)
H is the height of the panel in number of lines, W is the width of the panel in number of pix- els, and MA_Offset is the LCD Memory Address Offset. EPSON 1-162 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
The LCD Memory Address Offset register (REG[046h], REG[047h]) must be set for a 1024 pixel offset. LCD Memory Address Offset (words) = 1024 for 16 bpp color depth = 512 for 8 bpp color depth EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-163 SPECIFICATION (X28B-A-001-03)
Page 176
• Increment/decrement LCD Display Start Address register in 16 bpp color depth scrolls the display window up/down by 1 line. • Increment/decrement LCD Pixel Panning register in 8 bpp color depth scrolls the display window down/up by 1 line. EPSON 1-164 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
• For 270° SwivelView modes, BitBLT (Bit Block Transfer) operations are still supported. How- ever, the BitBLT data must first be rotated by software. For further information, refer to the “S1D13806 Programmers Notes And Examples,” document number X28B-G-003-xx. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-165 SPECIFICATION (X28B-A-001-03)
IMULTANEOUS (EISD) ISPLAY EPSON Independent Simultaneous Display (EISD) allows the S1D13806 to display independent images on two different displays (LCD panel and CRT or TV). 16.1 Registers The LCD panel timings and mode setup are programmed through the Panel Configuration Registers (REG[03Xh]) and the LCD Display Mode Registers (REG[04Xh]).
16: EPSON INDEPENDENT SIMULTANEOUS DISPLAY (EISD) 16.3 Bandwidth Limitation When EISD is enabled, the LCD and CRT/TV displays must share the total bandwidth available to the S1D13806. The result is that display modes with a high resolution or color depth may not be supported.
= TV Horizontal Non-Display Period = for NTSC output use ((REG[052h] bits [5:0]) × 8Ts) + 6 = for PAL output use ((REG[052h] bits [5:0]) × 8Ts) + 7 = minimum TV pixel clock (TPCLK) period EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-171 SPECIFICATION (X28B-A-001-03)
74.6 49.5 74.6 56.25 84.8 56.25 84.8 Example Frame Rates with Ink Layer Enabled The FIFO values for these display modes must be set as follows: REG[07Eh] = 0Ch. REG[08Eh] = 0Ah. EPSON 1-174 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
— — — — — — — — 1024 59.8 Example Frame Rates with Ink Layer Enabled The FIFO values for these display modes must be set as follows: REG[07Eh] = 0Ch. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-175 SPECIFICATION (X28B-A-001-03)
14.32 62.7 Color Passive Dual NTSC 14.2 81.8 14.32 62.7 Example Frame Rates with Ink Layer Enabled The FIFO values for these display modes must be set as follows: REG[07Eh] = 0Ch. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-179 SPECIFICATION (X28B-A-001-03)
12.3 72.5 17.73 56.6 Example Frame Rates with Ink Layer Enabled The FIFO values for these display modes must be set as follows: REG[04Ah] = 3Ch. REG[04Bh] = 3Ch. REG[07Eh] = 7Ch. EPSON 1-180 S1D13806 SERIES HARDWARE FUNCTIONAL SPECIFICATION (X28B-A-001-03)
0, the SDRAM interface is active. The system may disable the memory clock source when this bit returns a 1. The Memory Controller Power Save Status bit is set to 0 after chip reset. EPSON S1D13806 SERIES HARDWARE FUNCTIONAL 1-181 SPECIFICATION (X28B-A-001-03)
Power-on Initialization, Panning and Scrolling, LUT initialization, LCD Power Sequencing, SwivelView™, etc. This document will be updated as appropriate. Please check the latest revision of this document and source before beginning any development. EPSON S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Program CPU Wait States. see REG[01Eh] for details [020h] 1000 0000 Program the Frame Buffer Memory Configuration Registers. [021h] 0000 0100 see REG[020h] - REG[02Bh] for details [02Ah] 0000 0000 [02Bh] 0000 0001 EPSON S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 203
0000 0000 [063h] 0000 0000 For this example, these values are = don’t care. [064h] 0000 0000 [066h] 0000 0000 [067h] 0000 0000 [068h] 0000 0000 [06Ah] 0000 0000 [06Bh] 0000 0000 EPSON S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 205
For this example, enable the LCD panel only. Note that the LCD [1FCh] 0000 0001 see REG[1FCh] Power Sequencing procedures outlined in Section 7.1, “Enabling the LCD Panel” should be used when enabling the LCD panel. EPSON S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
16 elements of the green component of the Look-Up Table (LUT). For color panels the 16 colors are derived by indexing into the first 16 positions of the LUT. EPSON S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
The green indices, with only four bits, can resolve 16 gray shades. Note: When a monochrome panel (REG[030h] bit 2 = 0) is selected, a four bpp color depth also provides 16 gray shades and uses less display buffer. EPSON S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Should monochrome mode be chosen at this color depth, the output sends the six bits of the green LUT component to the modulator for a total of 64 possible gray shades. If dithering is disabled, the maximum number of gray shades is 16. EPSON S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
REG[1E2h] and REG[1E4h]. LUT mode selection allows the LUTs to be individually written or have identical data written to both LUTs. Individual writes to these registers are useful for Epson Independent Simultaneous Display (EISD) modes where independent images are displayed on the LCD and the CRT/TV.
4 bpp color 16 colors 16 colors 8 bpp color 256 colors 256 colors 16 bpp color 4096 colors 65536 colors = Indicates the Look-Up Table is not used for that display mode EPSON 2-10 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
The following table shows LUT values that will simulate those of a VGA operating in 16 color mode. Table 4-2 Suggested LUT Values to Simulate VGA Default 16 Color Palette Index Green Blue = Indicates unused entries in the LUT EPSON S1D13806 SERIES PROGRAMMING NOTES 2-11 AND EXAMPLES (X28B-G-003-01)
Page 212
The following table shows LUT values that will approximate the VGA default color palette. Table 4-3 Suggested LUT Values to Simulate VGA Default 256 Color Palette Index Index Index Index EPSON 2-12 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 213
Table 4-3 Suggested LUT Values to Simulate VGA Default 256 Color Palette (Continued) Index Index Index Index 16 bpp color The Look-Up Table is bypassed at this color depth, hence programming the LUT is not required. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-13 AND EXAMPLES (X28B-G-003-01)
As with 8 bpp there are limitations to the colors which can be displayed. In this mode the six bits of green are used to set the absolute intensity of the image. This results in 64 gray shades when dither- ing is enabled and 16 gray shades when dithering is disabled. EPSON 2-14 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
640 × 480 pixels can be viewed by navigating a 320 × 240 pixel viewport around the image using panning and scrolling. 320 × 240 Viewport 640 × 480 “Virtual” Display Figure 5-1 Viewport Inside a Virtual Display EPSON S1D13806 SERIES PROGRAMMING NOTES 2-15 AND EXAMPLES (X28B-G-003-01)
If PixelsPerVirtualLine equals the physical display width as set in the LCD Horizontal Display Width register (REG[032h]), then the virtual display and physical display are the same size. EPSON 2-16 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
= 190h words For the LCD, REG[047h] is set to 01h and REG[046h] is set to 90h. For the CRT/TV, REG[067h] is set to 01h and REG[066h] is set to 90h. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-17 AND EXAMPLES (X28B-G-003-01)
Page 218
= 200 × 2 × 600 = 240,000bytes The S1D13806 contains 1.25M bytes of embedded SDRAM (or 1,310,720bytes). As long as the calculated value is less than this, it is safe to continue with these values. EPSON 2-18 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
2. Update the start address registers - For the LCD, REG[042h], REG[043h], REG[044h]; for the CRT/TV, REG[062h], REG[063h], REG[064h]. 3. Update the pixel panning register - For the LCD, REG[048h] bits 1-0; for the CRT/TV REG[068h] bits 1-0. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-19 AND EXAMPLES (X28B-G-003-01)
The following table lists the maximum number of pixels affected by a change of one to these registers. Table 5-1 Number of Pixels Panned When Start Address Changed By 1 Color Depth (bpp) Pixels per Word Number of Pixels Panned EPSON 2-20 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 221
4. Pan right by 1 pixel - reset the pixel panning register to 0: REG[048h] = 00b. - increment the start address register by 1: (REG[042h], REG[043h], REG[044h]) + 1. Note: The above example assumes the pixel panning register is initially set at 0. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-21 AND EXAMPLES (X28B-G-003-01)
Note: Panning operations are easier to follow if a variable (e.g. PanValue) is used to track both the pixel panning and start address registers. The least significant bits of PanValue will represent the pixel panning register value and the more significant bits are the start address register value. EPSON 2-22 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 223
For the CRT/TV, REG[064h] is set to 00h, REG[063h] is set to 00h, and REG[062h] is set to C8h. Note: The above example assumes the display start address was initially 0 (the beginning of the display buffer). EPSON S1D13806 SERIES PROGRAMMING NOTES 2-23 AND EXAMPLES (X28B-G-003-01)
Note: Bit 4 is a reserved bit and must be programmed to 1. Note: Enabling/disabling Power Save Mode requires proper LCD Power Sequencing. See Section 7, “LCD Power Sequencing” on page 27. EPSON 2-24 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
(the SDRAM is in self-refresh mode). When this bit returns a 0, the SDRAM inter- face is active. This bit will return a 0 after a chip reset. Note: The memory clock source may be disabled when this bit returns a 1. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-25 AND EXAMPLES (X28B-G-003-01)
3. Wait the required delay time as specified in the LCD panel specification. 4. Enable GPIO11 to activate the LCD bias power. Note: The S5U13806B00C uses GPIO11 to control the LCD bias power supplies. Your system design may vary. EPSON 2-26 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
For further information on the availability of GPIO pins, see the “S1D13806 Hardware Functional Specification,” document num- ber X28B-A-001-xx. Note: REG[1F0h] bit 4 must be set to 1 for proper LCD power sequencing. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-27 AND EXAMPLES (X28B-G-003-01)
3. Disable the LCD signals - Set Display Mode Select bit 0 (REG[1FCh] bit 0) to 0. 4. At this time, the LCD pixel clock source may be disabled (Optional). Note the LUT must not be accessed if the pixel clock is not active. EPSON 2-28 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Both the Hardware Cursor and the Ink Layer use the same pixel values to select colors. The Hard- ware Cursor requires 1024bytes of display buffer and the Ink Layer requires (display width × dis- play height ÷ 4) bytes of display buffer. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-29 AND EXAMPLES (X28B-G-003-01)
Page 231
Note: The cursor position is not updated until the Cursor Y Position Register 1 is written (REG[075h] or REG[085h]). When updating the cursor position, always update both the X and Y registers; X first and Y second. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-31 AND EXAMPLES (X28B-G-003-01)
Page 232
Note: The cursor position is not updated until the Cursor Y Position Register 1 is written (REG[075h] or REG[085h]). When updating the cursor position, always update both the X and Y registers; X first and Y second. EPSON 2-32 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 233
Red Color 1 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 These registers form the 16 bpp (5-6-5) RGB values of user-defined color 1 for the LCD Ink Layer/ Hardware Cursor. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-33 AND EXAMPLES (X28B-G-003-01)
Page 234
Red Color 1 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 These registers form the 16 bpp (5-6-5) RGB values of user-defined color 1 for the CRT/TV Ink Layer/Hardware Cursor. EPSON 2-34 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 235
REG[08Eh] determines the FIFO high threshold for the CRT/TV Hardware Cursor/Ink Layer. When this register is set to 00h, the threshold is automatically set in hardware. For further information, see the “13806 Hardware Functional Specification,” document number X28B-A-001-xx. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-35 AND EXAMPLES (X28B-G-003-01)
Note: The dual panel buffer always starts at (1280K - Dual Panel Buffer Size). The size of a hardware cursor is always 1024bytes. The size of the ink layer in bytes is (display width × display height ÷ 4). EPSON 2-36 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Set Color 0 to black [078h] 0000 0000 [07Ah] 0001 1111 [07Bh] 0011 1111 Set Color 1 to white [07Ch] 0001 1111 [07Eh] 0000 0000 Set FIFO High Threshold to default EPSON S1D13806 SERIES PROGRAMMING NOTES 2-37 AND EXAMPLES (X28B-G-003-01)
Page 238
Set Color 0 to black [078h] 0000 0000 [07Ah] 0001 1111 [07Bh] 0011 1111 Set Color 1 to white [07Ch] 0001 1111 [07Eh] 0000 0000 Set FIFO High Threshold to default EPSON 2-38 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Ink/Cursor Color 1 Register: Color 1 For LCD, REG[07Ah], REG[07Bh],REG[07Ch]. For CRT/TV, REG[08Ah], REG[08Bh], REG[08Ch]. Background Ink/Cursor is transparent – show background Inverted Background Ink/Cursor is transparent – show inverted background EPSON S1D13806 SERIES PROGRAMMING NOTES 2-39 AND EXAMPLES (X28B-G-003-01)
Note this saves 8192bytes of display buffer, not 1024bytes, because the start address moves in steps of 8192bytes. EPSON 2-40 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Note: It is possible to use the same Ink Layer image for both LCD and CRT/TV displays. Program the LCD and CRT/TV Ink/Cursor Start Address registers (REG[071h] and REG[081h]) to the same location. This save some display buffer which would otherwise be used by a second Ink Layer. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-41 AND EXAMPLES (X28B-G-003-01)
6. If y is negative, take the value of the most significant byte of abs(y) and logically OR with 80h. Write the result to Y Position Register 1. If y is positive, take the value of the most significant byte of abs(y) and write to Y Position Reg- ister 1. EPSON 2-42 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
8. If y2 is negative, take the value of the most significant byte of abs(y2) and logically OR with 80h. Write the result to Y Position Register 1. If y2 is positive, write the most significant byte of abs(y2) to Y Position Register 1. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-43 AND EXAMPLES (X28B-G-003-01)
7. If y is negative, take the value of the most significant byte of abs(y) and logically OR with 80h. Write the result to X Position Register 1. If y is positive, write the most significant byte of abs(y) to X Position Register 1. EPSON 2-44 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
• The display start address is calculated differently when SwivelView is enabled. • Calculations that would result in panning in landscape mode, may result in scrolling when Swivel- View is enabled and vice-versa. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-45 AND EXAMPLES (X28B-G-003-01)
• It is not possible to rotate an already displayed image. The image must be redrawn. Note: Drawing into the Hardware Cursor/Ink Layer with SwivelView enabled requires disabling SwivelView, drawing in the Hardware Cursor/Ink Layer buffer, then re-enabling SwivelView. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-47 AND EXAMPLES (X28B-G-003-01)
9: SWIVELVIEW™ 9.4 Examples Source code demonstrating various SwivelView rotations is provided in the file 13806swivel.c available on the internet at www.eea.epson.com. Example 7 Rotate Image 90° for a 640 × 480 display at a color depth of 8 bpp.
• When modifying the CRT display buffer, SwivelView Enable Bit 0 must be cleared and then restored when finished. The following demonstrates this principle. 1. Save SwivelView Bit 0 2. Clear SwivelView Bit 0 3. Draw the CRT/TV image 4. Restore the saved SwivelView Bit 0. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-49 AND EXAMPLES (X28B-G-003-01)
When this bit is read, it returns the status of the BitBLT engine. When a read from this bit returns 0, the BitBLT engine is idle and is ready for the next operation. When a read from this bit returns a 1, the BitBLT engine is busy. EPSON 2-50 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 251
The BitBLT Source Linear Select bit specifies the storage method of the source BitBLT. If this bit = 0, the source BitBLT is stored as a rectangular region of memory. If this bit = 1, the source BitBLT is stored as a contiguous linear block of memory. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-51 AND EXAMPLES (X28B-G-003-01)
Page 252
1 (Whiteness) 1 (Whiteness) bit 7 S = Source, D = Destination, P = Pattern Operators: ~ = NOT, . = Logical AND, + = Logical OR, ^ = Logical XOR EPSON 2-52 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 253
Bit 19 Bit 16 The BitBLT Source Start Address Registers form a 21-bit register that specifies the source start address for the BitBLT operation selected by the BitBLT Operation Register (REG[103h]). EPSON S1D13806 SERIES PROGRAMMING NOTES 2-53 AND EXAMPLES (X28B-G-003-01)
Page 254
BitBLT operation selected by the BitBLT Operation Register (REG[103h]). The destination address represents the upper left corner of the BitBLT rectangle (lower right corner of the BitBLT rectangle for Move BitBLT in Negative Direction). EPSON 2-54 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 255
Bit 0 REG[113h] BitBLT Height Register 1 BitBLT BitBLT Height Height Bit 9 Bit 8 The BitBLT Height Registers form a 10-bit register that specifies the BitBLT height in pixels less 1. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-55 AND EXAMPLES (X28B-G-003-01)
Page 256
Color Expansion or the Solid Fill BitBLT. For 16 bpp color depth (REG[101h] bit 0 = 1), all 16 bits are used. For 8 bpp color depth (REG[101h] bit 0 = 0), only bits 7-0 are used. EPSON 2-56 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
However, this is very much platform dependent and must be determined for each system. Note: When TV with flicker filter is enabled or simultaneous display is active, always test the FIFO status before reading from/writing to the FIFO. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-57 AND EXAMPLES (X28B-G-003-01)
CPU instructions are acceptable. If a system is able to separate one DWORD write into two WORD writes and the CPU writes the low word before the high word, then 32-bit CPU instructions are ac- ceptable. Otherwise, 16-bit CPU instructions are required. EPSON 2-58 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 259
9. Calculate the number of WORDS the BitBLT engine expects to receive. = ((BLTWidth + 1 + SourcePhase) ÷ 2) × BLTHeight nWORDS = (100 + 1) ÷ 2 × 20 = 1000 = 3E8h EPSON S1D13806 SERIES PROGRAMMING NOTES 2-59 AND EXAMPLES (X28B-G-003-01)
Page 260
12. Once the BitBLT operation is finished, read one word from offset 0 in the BitBLT memory area to shutdown the BitBLT engine. Note: The order of register initialization is irrelevant as long as all relevant registers are programmed before the BitBLT is started. EPSON 2-60 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Source Address = 0 Start Bit Position = 7 (bit seven of the low byte) BitBLT Width = 16 The following bits are expanded. Word Sent To BitBLT Engine High Byte Low Byte EPSON S1D13806 SERIES PROGRAMMING NOTES 2-61 AND EXAMPLES (X28B-G-003-01)
Page 262
= ((Sx MOD 16 + BitBLTWidth + 15) ÷ 16) × BitBLTHeight where: Sx is the X coordinate of the starting pixel in a word aligned monochrome bitmap. Monochrome Bitmap Byte 1 Byte 2 Sx = EPSON 2-62 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 263
Since only bit 0 flags the source phase, more efficient code would simply write the low byte of the SourceAddress into REG[104h] directly -- not needing to test for an odd/even address. Note that in 16 bpp color depths the Source address is guaranteed to be even. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-63 AND EXAMPLES (X28B-G-003-01)
Page 264
= (13 + 12 + 15) ÷ 16 = 40 ÷ 16 Therefore, the total WORDS the BitBLT engine expects to receive is calculated as follows. = nWordsOneLine × 18 nWords = 2 × 18 = 36 EPSON 2-64 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
All bits set to 0 that would be expanded to the background color in the Color Expand BitBLT are not expanded at all. Program REG[103h] to 09h instead of 08h. Programming the background color is not required. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-65 AND EXAMPLES (X28B-G-003-01)
9. Once the BitBLT operation is finished, read one word from offset 0 in the BitBLT memory area to shutdown the BitBLT engine. Note: The order of register initialization is irrelevant as long as all relevant registers are programmed before the BitBLT is initiated. EPSON 2-66 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Move BitBLT in Negative Direction with ROP. Destination Address greater than Source Address Destination Address less than Source Address Use Move BitBLT in Negative Direction Use Move BitBLT in Positive Direction Figure 10-1 Move BitBLT Usage EPSON S1D13806 SERIES PROGRAMMING NOTES 2-67 AND EXAMPLES (X28B-G-003-01)
Page 268
9. Once the BitBLT operation is finished, read one word from offset 0 in the BitBLT memory area to shutdown the BitBLT engine. Note: The order of register initialization is irrelevant as long as all relevant registers are programmed before the BitBLT is initiated. EPSON 2-68 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
72h, and REG[104h] is set to D8h. Program the BitBLT Destination Start Address Registers. REG[10Ah] is set to 06h, REG[109h] is set to A4h, and REG[108h] is set to E2h. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-69 AND EXAMPLES (X28B-G-003-01)
Page 270
9. Once the BitBLT operation is finished, read one word from offset 0 in the BitBLT memory area to shutdown the BitBLT engine. Note: The order of register initialization is irrelevant as long as all relevant registers are programmed before the BitBLT is initiated. EPSON 2-70 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Note: The BitBLT engine counts WORD writes in the BitBLT address space. This does not imply only 16-bit CPU instructions are acceptable. If a system is able to separate one DWORD write into two WORD writes, then 32-bit CPU instructions are acceptable. Otherwise, 16-bit CPU instructions are required. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-71 AND EXAMPLES (X28B-G-003-01)
Page 272
8. Program the BitBLT Memory Offset Registers to the ScreenStride in WORDS. = ScreenStride ÷ 2 BltMemoryOffset = 640 ÷ 2 = 320 = 140h REG[10Dh] is set to 01h and REG[10Ch] is set to 40h. EPSON 2-72 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 273
12. Once the BitBLT operation is finished, read one word from offset 0 in the BitBLT memory area to shutdown the BitBLT engine. Note: The order of register initialization is irrelevant as long as all relevant registers are programmed before the BitBLT is initiated. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-73 AND EXAMPLES (X28B-G-003-01)
2. Program the BitBLT Width Registers to 9 - 1. REG[111h] is set to 00h and REG[110h] is set to 08h. 3. Program the BitBLT Height Registers to 321 - 1. REG[113h] is set to 01h and REG[112h] is set to 40h (320 decimal). EPSON 2-74 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
(the pattern start phase). This allows seamless redrawing of any part of the screen using the pattern fill. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-75 AND EXAMPLES (X28B-G-003-01)
Page 276
6. Program the BitBLT ROP Code Register to select Destination = Source. REG[102h] is set to 0Ch. 7. Program the BitBLT Color Format Select bit for 8 bpp operations. REG[101h] is set to 00h. EPSON 2-76 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
BitBLT engine also needs to know which pixel from the pattern is the first pixel in the destination rectangle (the pattern start phase). This allows seamless redrawing of any part of the screen using the pattern fill. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-77 AND EXAMPLES (X28B-G-003-01)
Page 278
4. Program the BitBLT Height Registers to 250-1. REG[113h] is set to 00h, and REG[112h] is set to F9h (249 decimal). 5. Program the BitBLT Operation Register to select the Pattern Fill BitBLT with Transparency. REG[103h] is set to 07h. EPSON 2-78 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 279
10. Once the BitBLT operation is finished, read one word from offset 0 in the BitBLT memory area to shutdown the BitBLT engine. Note: The order of register initialization is irrelevant as long as all relevant registers are programmed before the BitBLT is initiated. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-79 AND EXAMPLES (X28B-G-003-01)
65h, and REG[108h] is set to 90h. Program the BitBLT Source Start Address Registers. REG[106h] is set to 10h, REG[105h] is set to 00h, and REG[104h] is set to 00h. EPSON 2-80 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
The Transparent Move BitBLT with Color Expansion is virtually identical to the Move BitBLT with Color Expansion. The background color is ignored and bits in the monochrome source bitmap set to 0 are not color expanded. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-81 AND EXAMPLES (X28B-G-003-01)
ScreenStride = DisplayWidthInPixels × BytesPerPixels = 640 for 8 bpp Program the BitBLT Source Start Address Registers. REG[106h] is set to 00h, REG[105h] is set to 5Fh, and REG[104h] is set to 19h. EPSON 2-82 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Page 283
Destination Linear Select = 0, BitBLT Source Linear Select = 0). Start the BitBLT operation and wait for the BitBLT engine to start. REG[100h] is set to 80h, then wait until REG[100h] bit 7 returns a 1. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-83 AND EXAMPLES (X28B-G-003-01)
0. 3. Once the BitBLT operation is finished, read one word from offset 0 in the BitBLT memory area to shutdown the BitBLT engine. 4. Continue the program. EPSON 2-84 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
BitBLT Width must be > 1 for 16 bpp color depths and > 2 for 8 bpp. • One word must be read from the BitBLT area between each BitBLT operation. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-85 AND EXAMPLES (X28B-G-003-01)
DAC. This would normally result in very bright colors on the display, but if IREF is reduced at the same time the display will remain at its intended brightness and power con- sumption is reduced. EPSON 2-86 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
3. Enable the CRT. REG[1FCh] is set to 1. Sample code demonstrating how to enable the CRT display is provided in the file 56_CRT.c. This file is available on the internet at www.eea.epson.com. 11.2 TV Considerations TV timings are based on either the NTSC or PAL specifications. The TV display can be output in either composite video or S-video format.
The Luminance Filter may improve the TV picture quality when in composite video format. For further information on the TV filters, see the “S1D13806 Hardware Functional Specification,” document number X28B-A-001-xx. EPSON 2-88 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
(REG[1E0h] bit 0 = 0). Note: Not all combinations of panel and CRT/TV display resolutions are possible. For further information, see the “S1D13806 Hardware Functional Specification,” document number X28B-A-001-xx. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-89 AND EXAMPLES (X28B-G-003-01)
Winnov. Cus- tomers intending to use the MediaPlug interface in their design should contact Epson Electronics America to obtain the latest S1D13806 MediaPlug drivers for testing purposes.
Register (REG[01Ch]) to select a clock source that is suitable, or program the clock divide bits to obtain a frequency within the correct range. If the S5U13806B00C evaluation board is used, the clock chip should be programmed to support a valid clock for the MediaPlug interface. EPSON S1D13806 SERIES PROGRAMMING NOTES 2-91 AND EXAMPLES (X28B-G-003-01)
3. The production version of the S1D13806 will return a value of 1Dh (00011101b). 4. The product code is 7 (000111b based on bits 7-2). 5. The revision code is 1 (01b based on bits 1-0). EPSON 2-92 S1D13806 SERIES PROGRAMMING NOTES AND EXAMPLES (X28B-G-003-01)
Hardware Abstraction Layer (HAL) library. Note: It is possible to override recommended register settings and select incorrect panel timings using 1386CFG. Seiko Epson does not assume liability for any damage done to the display device as a re- sult of configuration errors.
ASCII header file. Each utility must be configured separately. Note: 1386CFG is designed to work with utilities programmed using a given version of the HAL. If the con- figuration structure is of a different version, an error message is displayed. EPSON S1D13806 SERIES UTILITIES (X28B-B-001-01)
Note: PCI addresses are assigned by the system BIOS, and are not an option (grayed out in the example). For further information, see the “S1D13XX Windows 95/98/NT Device Driver Installation Guide,” doc- ument number X00A-E-003-xx. EPSON S1D13806 SERIES UTILITIES (X28B-B-001-01)
“CRT/TV” tabs. Confirm all settings on these two tabs after manually changing any clock settings. Note: If the same source clock is selected for use by both CRT/TV and LCD panels, the available LCD pixel clock selections are limited due to the more stringent CRT/TV timings. EPSON S1D13806 SERIES UTILITIES (X28B-B-001-01)
Page 301
Selects the source for MCLK. MCLK Divide Selects the divide ratio for MCLK. Note: Under normal circumstances BCLK = BUSCLK. This option is only set for Toshiba/Philips when DCLKOUT is connected to the S1D13806 BUSCLK signal. EPSON S1D13806 SERIES UTILITIES (X28B-B-001-01)
This Panel Tab allows configuration of panel dimensions, type and timings. If the file PANELS.CFG is present in the same directory as 1386CFG.EXE, specific panels can be selected from a list of pre- defined panels. EPSON S1D13806 SERIES UTILITIES (X28B-B-001-01)
Page 303
Selects the desired pixel clock in KHz. TFT/FPLINE Selects the start position and pulse width in pixels. TFT/FPFRAME Selects the start position and pulse width in lines. Predefined Panels Selects from a list of predefined panels. EPSON S1D13806 SERIES UTILITIES (X28B-B-001-01)
Selects the format of the TV output (Composite or S-Video). Note: For CRT operations, 1386CFG supports VESA timings only. For TV operations, 1386CFG supports NTSC and PAL timings only. Overiding these register values may cause the CRT or TV to display in- correctly. EPSON S1D13806 SERIES UTILITIES (X28B-B-001-01)
Note: 1386CFG doesn’t check for bandwidth limitations. It is possible to select modes which the S1D13806 doesn’t have enough bandwith to support. For a list of example modes, refer to the “S1D13806 Hard- ware Functional Specification,” document number X28B-A-001-xx. EPSON S1D13806 SERIES UTILITIES (X28B-B-001-01)
The manually entered values may be changed by 1386CFG if further configuration changes are made on the other tabs. In this case, the user is notified. Note: Manual changes to the registers may have unpredictable results if incorrect values are entered. EPSON 3-10 S1D13806 SERIES UTILITIES (X28B-B-001-01)
Selects the mode number used for the generation of the Windows CE header Mode Number files. Cursor Selects between Hardware Cursor, software cursor and no cursor support. Hardware Acceleration Selects whether 2D BitBlt hardware acceleration is used. EPSON S1D13806 SERIES UTILITIES (X28B-B-001-01) 3-11...
.EXE file for Intel platforms, and from a specific S9 or ELF file for non-Intel platforms. The file must have been compiled using a valid version of the 13806 HAL library. EPSON 3-12 S1D13806 SERIES UTILITIES (X28B-B-001-01)
PCI, MPC and IDP based programs at the same time for a new panel type, the physical addresses for each are retained. Checking “Preserve File Date and Time” saves the files without changing the date or time stamp of the file. EPSON S1D13806 SERIES UTILITIES (X28B-B-001-01) 3-13...
(see document number X28B-A-001-xx) memory and LCD timings. If this is done, unpredictable results may occur. • To see the current configuration options in condensed form, use the “View File” option and select APPCFG.H. EPSON 3-14 S1D13806 SERIES UTILITIES (X28B-B-001-01)
• MPC821ADS (Applications Development System) board, revision B, with a Motorola MPC821 processor. 2.2 Installation PC platform: Copy the file 1386show.exe to a directory specified in the path (e.g. PATH=C:\13806). Embedded platform: Download the program 1386show to the system. EPSON S1D13806 SERIES UTILITIES (X28B-B-002-01) 3-15...
1.25MB display buffer. Note: Only Surfaces 5 and 6 support SwivelView as it requires a separate memory block for the LCD. Sur- faces 3 and 4 use the same memory block for both displays. EPSON S1D13806 SERIES UTILITIES (X28B-B-002-01) 3-17...
Note: If a monochrome LCD panel is used, the image is formed using only the green component of the Look-Up Table for 4 and 8 bpp color depths. For 16 bpp color depths the green component of the pixel value is used. EPSON 3-18 S1D13806 SERIES UTILITIES (X28B-B-002-01)
Page 315
Once all screens are shown the program exits. To exit the pro- gram immediately press the Esc key. The “/s” switch can be used in combination with other command line switches. EPSON S1D13806 SERIES UTILITIES (X28B-B-002-01) 3-19...
Note: If 1386SHOW is configured for a default display surface which includes LCD, the color pattern for the default LCD color depth is displayed as well as the specified CRT/TV color depth. EPSON 3-20 S1D13806 SERIES UTILITIES (X28B-B-002-01)
• SwivelView 90° and 270° modes (/r90, /r270) are available only for color depths of 8 and 16 bpp. • SwivelView 180° mode (/r180) is available for color depths of 4, 8, and 16 bpp. EPSON S1D13806 SERIES UTILITIES (X28B-B-002-01) 3-21...
A color depth of 4 bpp is not supported in SwivelView 90° or SwivelView 270° modes. ERROR: Do not select 4 bpp LCD in SwivelView 90° or SwivelView 270°. The “bl=” option selected a color depth not supported with SwivelView enabled. EPSON 3-22 S1D13806 SERIES UTILITIES (X28B-B-002-01)
Page 319
ERROR: Not enough memory for virtual display. Insufficient memory for the lower resolution display to create a virtual display of the image shown on the higher resolution display. ERROR: Could not initialize virtual display. Could not set up virtual image. EPSON S1D13806 SERIES UTILITIES (X28B-B-002-01) 3-23...
• MC68030IDP (Integrated Development Platform) board, revision 3.0, with a Motorola MC68030 processor. • SH3-LCEVB board, revision B, with an Hitachi SH-3 HD6417780 processor. • MPC821ADS (Applications Development System) board, revision B, with a Motorola MPC821 processor. EPSON 3-24 S1D13806 SERIES UTILITIES (X28B-B-003-01)
3.3 Usage PC platform At the prompt, type: 1386play [/?] Where: displays program version information. Embedded platform Execute 1386play and at the prompt, type the command line argument /?. Where: displays program version information. EPSON S1D13806 SERIES UTILITIES (X28B-B-003-01) 3-25...
Data to be written (hex). Data can be a list of bytes that will be repeated for the duration of the fill. To use decimal values, attach a “t” suffix to the value. (e.g. 100t is 100 decimal) EPSON 3-26 S1D13806 SERIES UTILITIES (X28B-B-003-01)
Page 323
Setting the number of lines to 0 will disable the halt function and allow the data to continue displaying until all data has been shown. Where: lines Number of lines that will be shown before halting the displayed data (decimal value). EPSON S1D13806 SERIES UTILITIES (X28B-B-003-01) 3-27...
Page 324
Initializes for the CRT display. Initializes for the TV display. II {LCD|CRT|TV} Initializes the Ink Layer for a given display type. Where: Initializes for the LCD display. Initializes for the CRT display. Initializes for the TV display. EPSON 3-28 S1D13806 SERIES UTILITIES (X28B-B-003-01)
Page 325
Displays help information for the M and MC commands. Sets the color depth of the LCD display. Sets the color depth of the CRT display. Sets the color depth of the TV display. Color depth to be set (4/8/16 bpp). EPSON S1D13806 SERIES UTILITIES (X28B-B-003-01) 3-29...
Page 326
To use decimal values, attach a “t” suffix to the value (e.g. 100t is 100 decimal). To use binary values attach a “‘b” suffix to the value (e.g. 0111’b). EPSON 3-30 S1D13806 SERIES UTILITIES (X28B-B-003-01)
Page 327
To use decimal values, attach a “t” suffix to the value (e.g. 100t is 100 decimal). To use binary values attach a “‘b” suffix to the value (e.g. 0111’b). EPSON S1D13806 SERIES UTILITIES (X28B-B-003-01) 3-31...
8. Type f 0 1fffff aa to fill 2M bytes of the display buffer with AAh. 9. Type r 0 100 to read the first 100h bytes of the display buffer. 10. Type q to exit the program. EPSON 3-32 S1D13806 SERIES UTILITIES (X28B-B-003-01)
•10 = 10h = 16 decimal. •10t = 10 decimal. •010’b = 2 decimal. • Redirecting commands from a script file (PC platform) allows those commands to be executed as if entered by a user. EPSON S1D13806 SERIES UTILITIES (X28B-B-003-01) 3-33...
ERROR: Invalid iFreq value. The CLKI and/or CLKI2 commands were used with an invalid iFreq value. To display a list of iFreq values, type CLKI ? or CLKI2 ?. EPSON 3-34 S1D13806 SERIES UTILITIES (X28B-B-003-01)
Page 331
WARNING: FEATCLK cannot be multiplexed to CLKI. Clock synthesizer programmed instead. In 1386PLAY, the CLKI command was used to select the FEATCLK frequency. Since the FEATCLK can only be multiplexed to CLKI2, the clock synthesizer is programmed instead. EPSON S1D13806 SERIES UTILITIES (X28B-B-003-01) 3-35...
• PC with an Intel 80 × 86 processor running Windows 9x/NT. Note: The 1386BMP source code may be modified by the OEM to support other evaluation platforms. 4.2 Installation Copy the file 1386bmp.exe to a directory in the path (e.g. PATH=C:\S1D13806). EPSON 3-36 S1D13806 SERIES UTILITIES (X28B-B-004-01)
Enables SwivelView 270° mode, clockwise hardware rotation of LCD image by 270 degrees. Verbose mode (provides information about the displayed image). Displays the help message. Note: 1386BMP displays the bmpfile image(s) and returns to the prompt. EPSON S1D13806 SERIES UTILITIES (X28B-B-004-01) 3-37...
1.25MB display buffer. Note: Only Surfaces 5 and 6 support SwivelView as it requires a separate memory block for the LCD. Sur- faces 3 and 4 use the same memory block for both displays. EPSON 3-38 S1D13806 SERIES UTILITIES (X28B-B-004-01)
Therefore, only a portion of the image is viewable. To show a com- plete image on the smaller display, specify two separate bmpfiles with resolutions matching the intended display device. EPSON S1D13806 SERIES UTILITIES (X28B-B-004-01) 3-39...
There was insufficient display buffer for the given configuration. Memory requirements depend on: • the display resolution(s). • the bit-per-pixel depth(s). • whether a Dual Panel Buffer is required. • the number of displays active (LCD or LCD and CRT/TV). EPSON 3-40 S1D13806 SERIES UTILITIES (X28B-B-004-01)
Page 337
The correct frequency was not found in the HAL table used to program the clock synthesizer. An external oscillator may be in use. This warning message will not stop the program. WARNING: CRT/TV only available in LANDSCAPE mode. SwivelView is only available on LCD only configurations. EPSON S1D13806 SERIES UTILITIES (X28B-B-004-01) 3-41...
Copy the file 1386swivel.exe to a directory in the path. If desired, create a shortcut on the Windows 9x/NT desktop to the file 1386swivel.exe. 5.3 Usage At the Windows DOS Prompt, type: 1386swivel Note: Pressing the ESC key exits the program. EPSON 3-42 S1D13806 SERIES UTILITIES (X28B-B-006-01)
• 1386SWIVEL supports 8 and 16 bpp color depths only. • For further information on SwivelView™, refer to the “S1D13806 Hardware Functional Specifi- cation” (document number X28B-A-001-xx) and the “S1D13806 Programming Notes and Exam- ples” (document number X28B-G-003-xx). EPSON S1D13806 SERIES UTILITIES (X28B-B-006-01) 3-43...
Copy the file 1386filt.exe to a directory in the path. If desired, create a shortcut on the Windows 9x/ NT desktop to the file 1386filt.exe. 6.3 Usage In Windows 9x/NT, double-click the following icon: Or, at the Windows DOS Prompt, type 1386filt. EPSON 3-44 S1D13806 SERIES UTILITIES (X28B-B-005-01)
When the box is unchecked the filter is disabled. In the example below: • the flicker filter is enabled. • the chrominance filter is enabled. • the luminance filter is enabled. Figure 6-1 Filter Dialog Box EPSON S1D13806 SERIES UTILITIES (X28B-B-005-01) 3-45...
The luminance filter adjusts the brightness of the TV by limiting the bandwidth of the luminance signal (reducing cross-chrominance distortion). This reduces the “rainbow-like” colors at bound- aries between sharp luminance transitions. This filter is intended for use with composite video out- put. EPSON 3-46 S1D13806 SERIES UTILITIES (X28B-B-005-01)
Page 343
• The chrominance and luminance filters are intended for use with composite output. • For information on manually enabling/disabling the TV filters, refer to the “S1D13806 Hardware Functional Specification” (document number X28B-A-001-xx) and the “S1D13806 Programming Notes and Examples” (document number X28B-G-003-xx). EPSON S1D13806 SERIES UTILITIES (X28B-B-005-01) 3-47...
Page 344
6: 1386FILT THIS PAGE IS BLANK. EPSON 3-48 S1D13806 SERIES UTILITIES (X28B-B-005-01)
Page 346
NTERFACE MediaPlug Interface Pin Mapping ..................... 4-16 ................4-17 LOCK YNTHESIZER AND LOCK PTIONS Clock Programming........................4-17 .........................4-18 EFERENCES 10 P ...........................4-19 ARTS 11 S ......................4-22 CHEMATIC IAGRAMS 12 PCB L ........................4-30 AYOUT EPSON S5U13806B00C REV 1.0 EVALUATION BOARD USER’S MANUAL...
S5U13806B00C is designed as an evaluation platform for the S1D13806 Embedded Memory Dis- play Controller chip. This user manual will be updated as appropriate. Please check the latest revision of this document before beginning any development. EPSON S5U13806B00C REV 1.0 EVALUATION BOARD USER’S MANUAL (X28B-G-004-03)
320 × 240 × 256 color at up to 30fps with on- • WINNOV VideumCam chip MediaPlug interface. • Programmable Clock synthesizer for maximum clock flexibility (CLKI and CLKI2). • Software initiated Power Save Mode. EPSON S5U13806B00C REV 1.0 EVALUATION BOARD USER’S MANUAL (X28B-G-004-03)
In order to configure the S1D13806 for multiple host bus interfaces an eight-position DIP switch (S1) is required. The following figure shows the location of DIP switch S1 on the S5U13806B00C. DIP Switch - S1 Figure 3-1 Configuration DIP Switch (S1) Location EPSON S5U13806B00C REV 1.0 EVALUATION BOARD USER’S MANUAL (X28B-G-004-03)
Page 351
MediaPlug output pin VMPEPWR and disables MediaPlug register access enables MediaPlug Register access — S1-8 nCONFIG Disable FPGA for non-PCI host Enable FPGA for PCI host = Required configuration when used in a PCI environment EPSON S5U13806B00C REV 1.0 EVALUATION BOARD USER’S MANUAL (X28B-G-004-03)
X28B-A-001-xx for details. Note: For LCD only, JP1 should be left at the default setting (position 2-3). IREF is not required for LCD dis- plays. 4.6mA 9.2mA Figure 3-2 Configuration Jumper (JP1) Location EPSON S5U13806B00C REV 1.0 EVALUATION BOARD USER’S MANUAL (X28B-G-004-03)
Page 353
(Active High) (Active Low) Figure 3-4 Configuration Jumper (JP3) Location For further information on the LCD bias power supplies, refer to Section 5.5, “LCD Power Sequenc- ing” on page 14 for details. EPSON S5U13806B00C REV 1.0 EVALUATION BOARD USER’S MANUAL (X28B-G-004-03)
Bits 31 to 22; other bits are zero. Position of 4M byte reserved window 4.1.2 Utility Software All utility software for the S5U13806B00C evaluation board is fully PCI compliant and handles the PCI configuration registers automatically. EPSON S5U13806B00C REV 1.0 EVALUATION BOARD USER’S MANUAL (X28B-G-004-03)
Note: Pull-up resistors are not provided on the S5U13806B00C. However, these pins are not used in their corresponding CPU interface mode and systems are responsible for connecting them to V using external pull-up resistors. EPSON S5U13806B00C REV 1.0 EVALUATION BOARD USER’S MANUAL (X28B-G-004-03)
Connected to WE0# of the S1D13806 Connected to WAIT# of the S1D13806 Connected to CS# of the S1D13806 Connected to MR# of the S1D13806 Connected to WE1# of the S1D13806 Not connected EPSON 4-10 S5U13806B00C REV 1.0 EVALUATION BOARD USER’S MANUAL (X28B-G-004-03)
Page 358
Connected to RD/WR# of the S1D13806 Connected to BS# of the S1D13806 Connected to BUSCLK of the S1D13806 Connected to RD# of the S1D13806 Connected to A20 of the S1D13806 Not connected EPSON S5U13806B00C REV 1.0 EVALUATION BOARD 4-11 USER’S MANUAL (X28B-G-004-03)
GPIO11 Note: 1. The polarity of GPIO11 sent to pin 40 can be inverted using jumper JP3. However, JP3 does not affect the polarity of the signals controlling the LCD bias power supplies. EPSON 4-12 S5U13806B00C REV 1.0 EVALUATION BOARD...
For further information on controlling the LCD bias voltage, refer to Section 5.5, “LCD Power Sequencing” on page 14. Note: Before connecting the panel. set the potentiometer according to the panel’s specific voltage re- quirements. EPSON S5U13806B00C REV 1.0 EVALUATION BOARD 4-13 USER’S MANUAL (X28B-G-004-03)
LCD panel power-on/power-off requirements. When connecting the S5U13806B00C to other platforms, ensure that the software is designed to handle the LCD power sequencing for the panel under test. EPSON 4-14 S5U13806B00C REV 1.0 EVALUATION BOARD...
Manual,” document number X28B-B-001-xx. Note: When this option is selected, S5U13806B00C jumper JP1 (I for DAC) must be set to position 1-2. For further information, see Section 3.2, “Configuration Jumpers” on page 5. EPSON S5U13806B00C REV 1.0 EVALUATION BOARD 4-15 USER’S MANUAL (X28B-G-004-03)
Note: 1. When the MediaPlug interface is enabled using S1-7 (CONF7), GPIO12 is configured as the Medi- aPlug output pin VMPEPWR and cannot be controlled by REG[005h] and REG[009h]. It must be controlled using the MediaPlug LCMD register (REG[1000h] bit 1). EPSON 4-16 S5U13806B00C REV 1.0 EVALUATION BOARD...
CRT/TV PCLK to use the same clock input (CLKI or CLKI2).Then use the S1D13806 internal clock divides (LCD PCLK Divide REG[014h], CRT/TV PCLK Divide REG[018h]) to obtain the lower frequencies. EPSON S5U13806B00C REV 1.0 EVALUATION BOARD 4-17 USER’S MANUAL (X28B-G-004-03)
Do not populate--mask header" "1x2 .1"" pitch unshrouded HEADER 2 Do not populate--mask header" MediaPlug 9-pin Right Angle PCB Mini CUI Stack P/N:MD-90S or Digi- Conn. DIN Socket Key P/N:CP-2490-ND EPSON S5U13806B00C REV 1.0 EVALUATION BOARD 4-19 USER’S MANUAL (X28B-G-004-03)
Page 379
Direct Connection to the Philips PR31500/PR31700 ..............5-37 4.4.1 Hardware Description....................5-37 4.4.2 S1D13806 Configuration..................5-39 4.4.3 Memory Mapping and Aliasing................. 5-40 System Design Using the IT8368E PC Card Buffer ..............5-41 4.5.1 Hardware Description....................5-41 EPSON S1D13806 SERIES APPLICATION NOTES...
Page 381
Host Bus Interface Pin Mapping..................5-65 Table 7-2 Summary of Power-On/Reset Options ................5-68 Table 7-3 RDFx Parameter Value versus CPU Maximum Frequency ..........5-69 Table 7-4 Register/Memory Mapping for Typical Implementation ............5-70 EPSON S1D13806 SERIES APPLICATION NOTES 5-iii...
The designs described in this document are presented only as examples of how such interfaces might be implemented. This application note is updated as appropriate. Please check the latest revision of this document before beginning any development. EPSON S1D13806 SERIES APPLICATION NOTES (X28B-G-005-01)
The WAIT# signal allows for asynchronous data transfers for memory, attribute, and IO access cycles. The RESET signal allows resetting of the card configuration by the reset line of the host CPU. EPSON S1D13806 SERIES APPLICATION NOTES (X28B-G-005-01)
AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA AAAA Transfer Start Transfer Complete Figure 1-1 PC Card Read Cycle EPSON S1D13806 SERIES APPLICATION NOTES (X28B-G-005-01)
Page 385
Figure 1-2 illustrates a typical memory access write cycle on the PC Card bus. A[25:0] ADDRESS VALID REG# CE1# CE2# WAIT# D[15:0] Hi-Z Hi-Z DATA VALID Transfer Start Transfer Complete Figure 1-2 PC Card Write Cycle EPSON S1D13806 SERIES APPLICATION NOTES (X28B-G-005-01)
2. Although a clock is not directly supplied by the PC Card interface, one is required by the S1D13806 PC Card Host Bus Interface. For an example of how this can be accomplished see the discussion on BUSCLK in Section 1.3.2, “PC Card Host Bus Interface Signals” on page 6. EPSON S1D13806 SERIES APPLICATION NOTES (X28B-G-005-01)
• The Bus Start (BS#) signal is not used for the PC Card Host Bus Interface and should be tied high (connected to V • The RESET# (active low) input of the S1D13806 may be connected to the PC Card RESET (active high) using an inverter. EPSON S1D13806 SERIES APPLICATION NOTES (X28B-G-005-01)
Since the bus clock frequency is not critical, nor does it have to be synchronous to the bus signals, it may be the same as CLKI. BS# (bus start) is not used and should be tied high (connected to V EPSON S1D13806 SERIES APPLICATION NOTES (X28B-G-005-01)
Page 389
When connecting the S1D13806 RESET# pin, the system designer should be aware of all conditions that may reset the S1D13806 (e.g. CPU reset can be asserted during wake-up from power-down modes, or during debug states). Figure 1-3 Typical Implementation of PC Card to S1D13806 Interface EPSON S1D13806 SERIES APPLICATION NOTES (X28B-G-005-01)
Configure GPIO12 for normal use VMPEPWR = configuration for PC Card Host Bus Interface 1.4.3 Performance The S1D13806 PC Card Interface specification supports a BCLK up to 50MHz, and therefore can provide a high performance display solution. EPSON S1D13806 SERIES APPLICATION NOTES (X28B-G-005-01)
The PC Card socket provides 64M byte of address space. Since the PC Card address bits A[25:22] are ignored, the S1D13806 registers and display buffer are aliased within the allocated address space. If aliasing is undesirable, the address space must be fully decoded. EPSON 5-10 S1D13806 SERIES APPLICATION NOTES (X28B-G-005-01)
The designs described in this document are presented only as examples of how such interfaces might be implemented. This application note is updated as appropriate. Please check the latest revision of this document before beginning any development. EPSON S1D13806 SERIES 5-11 APPLICATION NOTES (28B-G-007-01)
LCD controller providing an easy interface to the 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#). EPSON 5-12 S1D13806 SERIES APPLICATION NOTES (28B-G-007-01)
The WAIT# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. • The BS# and RD/WR# signals are not used for the MIPS/ISA Host Bus Interface and should be tied high (connected to V EPSON S1D13806 SERIES 5-15 APPLICATION NOTES (28B-G-007-01)
Figure 2-2 Typical Implementation of NEC VR4102/VR4111 to S1D13806 Interface Note: For pin mapping, see Table 1-1, “PC Card Host Bus Interface Pin Mapping,” on page 5. EPSON 5-16 S1D13806 SERIES APPLICATION NOTES (28B-G-007-01)
The frequency of BUSCLK output is programmed from the state of pins TxD/CLKSEL2, RTS#/ CLKSEL1 and DTR#/CLKSEL0 during reset, and from the PMU (Power Management Unit) con- figuration registers of the NEC VR4102/VR4111. The S1D13806 works at any of the frequencies provided by the NEC VR4102/VR4111. EPSON S1D13806 SERIES 5-17 APPLICATION NOTES (28B-G-007-01)
The NEC VR4102/VR4111 provides 16M byte of address space. Since the NEC VR4102/VR4111 address bits ADD[25:22] are ignored, the S1D13806 registers and display buffer are aliased within the allocated address space. If aliasing is undesirable, the address space must be fully decoded. EPSON 5-18 S1D13806 SERIES APPLICATION NOTES (28B-G-007-01)
The designs described in this document are presented only as examples of how such interfaces might be implemented. This application note is updated as appropriate. Please check the latest revision of this document before beginning any development. EPSON S1D13806 SERIES 5-19 APPLICATION NOTES (X28B-G-008-01)
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. EPSON 5-20 S1D13806 SERIES APPLICATION NOTES (X28B-G-008-01)
Figure 3-1 “Power PC Memory Read Cycle” on page 21 illustrates a typical memory read cycle on the Power PC system bus. CLKOUT A[0:31] RD/WR TSIZ[0:1], AT[0:3] D[0:31] Sampled when TA low Transfer Start Wait States Transfer Next Transfer Complete Starts Figure 3-1 Power PC Memory Read Cycle EPSON S1D13806 SERIES 5-21 APPLICATION NOTES (X28B-G-008-01)
However, the exam- ple interfaces include circuitry to detect the assertion of BDIP and respond with BI if caching is accidently enabled for the S1D13806 address space. EPSON 5-22 S1D13806 SERIES APPLICATION NOTES (X28B-G-008-01)
• Up to 15 wait states may be inserted, or the peripheral can terminate the bus cycle itself by assert- ing TA (Transfer Acknowledge). • Any chip select may be programmed to assert BI (Burst Inhibit) automatically when its memory space is addressed by the processor core. EPSON S1D13806 SERIES 5-23 APPLICATION NOTES (X28B-G-008-01)
In this application note, the GPCM is used instead of the UPM, since the GPCM has enough flexibil- ity to accommodate the S1D13806 and it is desirable to leave the UPM free to handle other interfac- ing duties, such as EDO DRAM. EPSON 5-24 S1D13806 SERIES APPLICATION NOTES (X28B-G-008-01)
S1D13806 internal registers and/or display buffer. The WAIT# line resolves these contentions by forcing the host to wait until resource arbitration is complete. • The Bus Start (BS#) signal connects to TS (the transfer start signal). EPSON 5-26 S1D13806 SERIES APPLICATION NOTES (X28B-G-008-01)
When connecting the S1D13806 RESET# pin, the system designer should be aware of all conditions that may reset the S1D13806 (e.g. CPU reset can be asserted during wake-up from power-down modes, or during debug states). Figure 3-3 Typical Implementation of MPC821 to S1D13806 Interface EPSON S1D13806 SERIES 5-27 APPLICATION NOTES (X28B-G-008-01)
Page 410
P12-A5, P12-B5, P12-A6, P12-B6, P12-A7 Note: Note that the bit numbering of the Power PC bus signals is reversed. e.g. the most significant ad- dress bit is A0, the next is A1, A2, etc. EPSON S1D13806 SERIES 5-29 APPLICATION NOTES (X28B-G-008-01)
SETA below. • SETA = 1 – the S1D13806 generates an external transfer acknowledge using the WAIT# line. • TRLX = 0 – normal timing. • EHTR = 0 – normal timing. EPSON S1D13806 SERIES 5-31 APPLICATION NOTES (X28B-G-008-01)
S1D13806 mem space stbr1,DisableReg(r1); write 0 to disable register Loop lbzr0,RevCodeReg(r1); read revision code into r1 bLoop ; branch forever Note: MPC8BUG does not support comments or symbolic equates; these have been added for clarity. EPSON 5-32 S1D13806 SERIES APPLICATION NOTES (X28B-G-008-01)
The designs described in this document are presented only as examples of how such interfaces might be implemented. This application note is updated as appropriate. Please check the latest revision of this document before beginning any development. EPSON S1D13806 SERIES 5-33 APPLICATION NOTES (X28B-G-009-01)
• Direct connection to the PR31500/PR31700 (see Section 4.4, “Direct Connection to the Philips PR31500/PR31700” on page 37). • System design using the ITE IT8368E PC Card/GPIO buffer chip (see Section 4.5, “System Design Using the IT8368E PC Card Buffer” on page 41). EPSON 5-34 S1D13806 SERIES APPLICATION NOTES (X28B-G-009-01)
S1D13806 may occur asynchronously to the display update, it is possible that contention may occur in accessing the S1D13806 internal registers and/or display buffer. The WAIT# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. EPSON 5-36 S1D13806 SERIES APPLICATION NOTES (X28B-G-009-01)
DCLKOUT as clock source, and whether an external or internal clock divider is needed, should be based on the following criteria. • pixel and frame rates. • power budget. • part count. • maximum S1D13806 clock frequencies. The S1D13806 also has internal CLKI dividers providing additional flexibility. EPSON S1D13806 SERIES 5-37 APPLICATION NOTES (X28B-G-009-01)
Page 419
When connecting the S1D13806 RESET# pin, the system designer should be aware of all conditions that may reset the S1D13806 (e.g. CPU reset can be asserted during wake-up from power-down modes, or during debug states). Figure 4-1 Typical Implementation of Direct Connection EPSON 5-38 S1D13806 SERIES APPLICATION NOTES (X28B-G-009-01)
CONF6 WAIT# is always driven WAIT# is floating if S1D13806 is not selected Configure GPIO12 as MediaPlug output pin CONF7 Configure GPIO12 for normal use VMPEPWR = configuration for PR31500/PR31700 Host Bus Interface EPSON S1D13806 SERIES 5-39 APPLICATION NOTES (X28B-G-009-01)
Philips PR31500/PR31700” on page 37. Following is a block diagram showing an implementation using the IT8368E PC Card buffer. PR31500/ S1D13806 PR31700 PC Card IT8368E Device PC Card IT8368E Device Figure 4-2 IT8368E Implementation Block Diagram EPSON S1D13806 SERIES 5-41 APPLICATION NOTES (X28B-G-009-01)
4: INTERFACING TO THE PHILIPS MIPS PR31500/PR31700 PROCESSOR 4.5.2 IT8368E Configuration The ITE IT8368E is specifically designed to support EPSON LCD/CRT controllers. Older EPSON Controllers not supporting a direct interface to the Philips processor can utilize the IT8368E MFIO pins to provide the necessary control signals, however when using the S1D13806 this is not neces- sary as the Direct Connection described in Section 4.4, “Direct Connection to the Philips PR31500/...
The designs described in this document are presented only as examples of how such interfaces might be implemented. This application note is updated as appropriate. Please check the latest revision of this document before beginning any development. EPSON S1D13806 SERIES 5-43 APPLICATION NOTES (X28B-G-010-01)
• Direct connection to the TX3912 (see Section 4.4, “Direct Connection to the Philips PR31500/ PR31700” on page 37). • System design using the ITE IT8368E PC Card/GPIO buffer chip (see Section 4.5, “System Design Using the IT8368E PC Card Buffer” on page 41). EPSON 5-44 S1D13806 SERIES APPLICATION NOTES (X28B-G-010-01)
S1D13806 may occur asynchronously to the display update, it is possible that contention may occur in accessing the S1D13806 internal registers and/or display buffer. The WAIT# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. EPSON 5-46 S1D13806 SERIES APPLICATION NOTES (X28B-G-010-01)
DCLKOUT as clock source, and whether an external or internal clock divider is needed, should be based on the following criteria. • pixel and frame rates. • power budget. • part count. • maximum S1D13806 clock frequencies. The S1D13806 also has internal CLKI dividers providing additional flexibility. EPSON S1D13806 SERIES 5-47 APPLICATION NOTES (X28B-G-010-01)
Page 429
When connecting the S1D13806 RESET# pin, the system designer should be aware of all conditions that may reset the S1D13806 (e.g. CPU reset can be asserted during wake-up from power-down modes, or during debug states). Figure 5-1 Typical Implementation of Direct Connection EPSON 5-48 S1D13806 SERIES APPLICATION NOTES (X28B-G-010-01)
CONF6 WAIT# is always driven WAIT# is floating if S1D13806 is not selected Configure GPIO12 as MediaPlug output pin CONF7 Configure GPIO12 for normal use VMPEPWR = configuration for TX3912 Host Bus Interface EPSON S1D13806 SERIES 5-49 APPLICATION NOTES (X28B-G-010-01)
Philips PR31500/PR31700” on page 37. Following is a block diagram showing an implementation using the IT8368E PC Card buffer. TX3912 S1D13806 PC Card IT8368E Device PC Card IT8368E Device Figure 5-2 IT8368E Implementation Block Diagram EPSON S1D13806 SERIES 5-51 APPLICATION NOTES (X28B-G-010-01)
5: INTERFACING TO THE TOSHIBA MIPS TX3912 PROCESSOR 5.5.2 IT8368E Configuration The ITE IT8368E is specifically designed to support EPSON LCD/CRT controllers. Older EPSON Controllers not supporting a direct interface to the Toshiba processor can utilize the IT8368E MFIO pins to provide the necessary control signals, however when using the S1D13806 this is not neces- sary as the Direct Connection described in Section 4.4, “Direct Connection to the Philips PR31500/...
The designs described in this document are presented only as examples of how such interfaces might be implemented. This application note is updated as appropriate. Please check the latest revision of this document before beginning any development. EPSON S1D13806 SERIES 5-53 APPLICATION NOTES (X28B-G-011-01)
LCD controller providing an easy interface to the CPU. A 16M byte block of memory is assigned for the LCD controller and its own chip select and ready signals are avail- able. Word or byte accesses are controlled by the system high byte signal (SHB#). EPSON 5-54 S1D13806 SERIES APPLICATION NOTES (X28B-G-011-01)
Page 436
The following figure illustrates typical NEC VR4121 memory read and write cycles to the LCD controller interface. TCLK ADD[25:0] VALID SHB# LCDCS# WR#,RD# D[15:0] VALID (write) Hi-Z D[15:0] Hi-Z VALID (read) LCDRDY Figure 6-1 NEC VR4121 Read/Write Cycles EPSON S1D13806 SERIES 5-55 APPLICATION NOTES (X28B-G-011-01)
The WAIT# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. • The BS# and RD/WR# signals are not used for the MIPS/ISA Host Bus Interface and should be tied high (connected to V EPSON S1D13806 SERIES 5-57 APPLICATION NOTES (X28B-G-011-01)
S1D13806 (e.g. CPU reset can be asserted during wake-up from power-down modes, or during debug states). Figure 6-2 NEC VR4121 to S1D13806 Configuration Schematic Note: For pin mapping see Table 1-1, “PC Card Host Bus Interface Pin Mapping,” on page 5. EPSON 5-58 S1D13806 SERIES APPLICATION NOTES (X28B-G-011-01)
The frequency of BUSCLK output is programmed from the state of pins TxD/CLKSEL2, RTS#/ CLKSEL1 and DTR#/CLKSEL0 during reset, and from the PMU (Power Management Unit) con- figuration registers of the NEC VR4121. The S1D13806 works at any of the frequencies provided by the NEC VR4121. EPSON S1D13806 SERIES 5-59 APPLICATION NOTES (X28B-G-011-01)
ADD[23:22] are ignored, the S1D13806 registers and display buffer are aliased within the allocated address space. If aliasing is undesirable, the address space must be fully decoded. Note: Address lines ADD[25:24] are set at 10b and never change while the LCD controller is being ad- dressed. EPSON 5-60 S1D13806 SERIES APPLICATION NOTES (X28B-G-011-01)
The designs described in this document are presented only as examples of how such interfaces might be implemented. This application note is updated as appropriate. Please check the latest revision of this document before beginning any development. EPSON S1D13806 SERIES 5-61 APPLICATION NOTES (X28B-G-012-01)
During a read cycle, the output enable signal (nOE) is driven low. A write cycle is specified by driv- ing nOE high and driving the write enable signal (nWE) low. The cycle can be lengthened by driv- ing RDY high for the time needed to complete the cycle. EPSON 5-62 S1D13806 SERIES APPLICATION NOTES (X28B-G-012-01)
Page 444
Figure 7-1 illustrates a typical variable-latency IO access read cycle on the SA-1110 bus. A[25:0] ADDRESS VALID nCS4 D[31:0] DATA VALID nCAS[3:0] Figure 7-1 SA-1110 Variable-Latency IO Read Cycle EPSON S1D13806 SERIES 5-63 APPLICATION NOTES (X28B-G-012-01)
Page 445
7: INTERFACING TO THE STRONGARM SA-1110 PROCESSOR Figure 1-2 illustrates a typical variable-latency IO access write cycle on the SA-1110 bus. A[25:0] ADDRESS VALID nCS4 D[31:0] DATA VALID nCAS[3:0] Figure 7-2 SA-1110 Variable-Latency IO Write Cycle EPSON 5-64 S1D13806 SERIES APPLICATION NOTES (X28B-G-012-01)
S1D13806 Pin Name SA-1110 AB[20:0] A[20:0] DB[15:0] D[15:0] WE1# nCAS1 M/R# nCS4 BUSCLK SDCLK2 RD/WR# nCAS0 WE0# WAIT# RESET# system RESET Note: 1. The bus signal A0 is not used by the S1D13806 internally. EPSON S1D13806 SERIES 5-65 APPLICATION NOTES (X28B-G-012-01)
• The Bus Start (BS#) signal is not used for this Host Bus Interface and should be tied high (con- nected to V • The RESET# (active low) input of the S1D13806 may be connected to the system RESET. EPSON 5-66 S1D13806 SERIES APPLICATION NOTES (X28B-G-012-01)
When connecting the S1D13806 RESET# pin, the system designer should be aware of all conditions that may reset the S1D13806 (e.g. CPU reset can be asserted during wake-up from power-down modes, or during debug states). Figure 7-3 Typical Implementation of SA-1110 to S1D13806 Interface EPSON S1D13806 SERIES 5-67 APPLICATION NOTES (X28B-G-012-01)
• If SDCLK2 is used, bit 26 should be set to 1 to divide the CPU clock by 4. • If SDCLK1 is used, bit 22 should be set to 1 to divide the CPU clock by 4. EPSON 5-68 S1D13806 SERIES APPLICATION NOTES (X28B-G-012-01)
•If SDCLK2 is used, bit 26 should be set to 1 to divide the CPU clock by 4. •If SDCLK1 is used, bit 22 should be set to 1 to divide the CPU clock by 4. EPSON S1D13806 SERIES 5-69 APPLICATION NOTES (X28B-G-012-01)
Each chip select on the SA-1110 provides 64M byte of address space. Since the SA-1110 address bits A[25:22] are ignored, the S1D13806 registers and display buffer are aliased within the allocated address space. If aliasing is undesirable, the address space must be fully decoded. EPSON 5-70 S1D13806 SERIES APPLICATION NOTES (X28B-G-012-01)
Page 453
CONTENTS Contents Table of Contents 1 S1D13806 P ...................6-1 OWER ONSUMPTION Conditions ........................... 6-2 ..........................6-3 UMMARY EPSON S1D13806 SERIES POWER CONSUMPTION...
Page 454
CONTENTS List of Tables Table 1-1 S1D13806ES Total Power Consumption in mW..............6-2 EPSON 6-ii S1D13806 SERIES POWER CONSUMPTION...
Page 455
There is a power save mode in the S1D13806. The power consumption is affected by various system design variables. • Clock states during the power save mode: disabling the clocks during power save mode has sub- stantial power savings. EPSON S1D13806 SERIES POWER CONSUMPTION (X28B-G-006-01)
Page 456
• CLKI2 grounded when CRT/TV disabled • CLKI3 grounded • BUSCLK active • Self-Refresh DRAM 2. Conditions for power save mode with Clocks inactive: • CPU interface inactive • CLKI, CLKI2, CLKI3, BUSCLK stopped • Self-Refresh DRAM EPSON S1D13806 SERIES POWER CONSUMPTION (X28B-G-006-01)
Page 457
CPU Interface and Input Clock state. In a typical design environment, the S1D13806 can be configured to be an extremely power-effi- cient LCD/CRT/TV Controller with high performance and flexibility. EPSON S1D13806 SERIES POWER CONSUMPTION (X28B-G-006-01)
Page 458
2: SUMMARY THIS PAGE IS BLANK. EPSON S1D13806 SERIES POWER CONSUMPTION (X28B-G-006-01)
Page 460
CONTENTS Contents Table of Contents ® 1 WINDOWS CE DISPLAY DRIVERS ..................7-1 Program Requirements ....................... 7-1 Example Driver Builds......................... 7-2 Installation for CEPC Environment....................7-7 Comments........................... 7-8 ® EPSON S1D13806 SERIES WINDOWS CE DISPLAY DRIVER...
This document and the updated source code for the Windows CE drivers is updated as appropriate. Please check the latest revisions before beginning any development. 1.1 Program Requirements Video Controller : S1D13806 Display Type : LCD or CRT Windows Version : CE Version 2.0 and 2.11 ® EPSON S1D13806 SERIES WINDOWS CE DISPLAY DRIVER (X28B-E-001-01)
Page 462
Windows CE Platform Builder 2.11” on page 4. 5. Create a sub-directory named S1D13806 under \wince\platform\cepc\drivers\display. 6. Copy the source code to the S1D13806 subdirectory. 7. Add an entry for the S1D13806 in the file \wince\platform\cepc\drivers\display\dirs. EPSON ® S1D13806 SERIES WINDOWS CE DISPLAY DRIVER (X28B-E-001-01)
Page 463
CE DISPLAY DRIVERS 8. Edit the file PLATFORM.BIB (located in X:\wince\platform\cepc\files) to set the default display driver to the file EPSON.DLL. (EPSON.DLL will be created during the build in step 12) You may replace the following lines in PLATFORM.BIB: IF CEPC_DDI_VGA2BPP ddi.dll...
Page 464
1. Install Microsoft Windows NT v4.0. 2. Install Platform Builder 2.11 by running SETUP.EXE from compact disk #1. 3. Follow the steps below to create a “Build Epson for x86” shortcut which uses the current “Min- shell” project icon/shortcut on the Windows NT 4.0 desktop.
Page 465
8. If the current MODE0.H is not appropriate for your project, generate a new MODE0.H using the S1D13806 utility program 1386CFG.EXE. The file MODE0.H (located in X:\wince\plat- form\cepc\drivers\display\S1D13806) contains the register values required to set desired screen resolution, color depth (bpp), panel type, active display(LCD/CRT/TV), rotation, etc. ® EPSON S1D13806 SERIES WINDOWS CE DISPLAY DRIVER (X28B-E-001-01)
Page 466
11. Generate the proper building environment by double-clicking on the Epson project icon --”Build Epson for x86”. 12. Type BLDDEMO <ENTER> at the DOS prompt of the “Build Epson for x86” window to gener- ate a Windows CE image file (NK.BIN).
Page 467
Edit AUTOEXEC.BAT on the hard drive to contain the following lines. mode com1:9600,n,8,1 loadcepc /B:9600 /C:1 c:\wince\release\nk.bin d. Confirm that NK.BIN is located in c:\wince\release. e. Reboot the system from the hard drive. ® EPSON S1D13806 SERIES WINDOWS CE DISPLAY DRIVER (X28B-E-001-01)
Page 468
1.4 Comments • The display driver is CPU independent allowing use of the driver for other Windows CE Platform Builder v2.11 supported platforms. The file EPSON.CPP may require editing to return the correct value for PhysicalPortAddr, PhysicalVmemAddr, etc. • The sample code defaults to a 640 × 480 16-bit color dual passive LCD panel in SwivelView 0°...
Page 469
Telex: 65542 EPSCO HX Crystal Lake, IL 60014, U.S.A. Phone: +1-815-455-7630 Fax: +1-815-455-7633 Northeast EPSON TAIWAN TECHNOLOGY & TRADING LTD. 301 Edgewater Place, Suite 120 10F, No. 287, Nanking East Road, Sec. 3 Wakefield, MA 01880, U.S.A. Taipei Phone: +1-781-246-3600...
Page 470
In pursuit of “Saving” Technology, Epson electronic devices. Our lineup of semiconductors, liquid crystal displays and quartz devices assists in creating the products of our customers’ dreams. Epson IS energy savings.
Page 471
S1D13806 Series Technicl Manual ELECTRONIC DEVICES MARKETING DIVISION EPSON Electronic Devices Website http://www.epson.co.jp/device/ Issue July,2001 This manual was made with recycle papaer, Printed in Japan and printed using soy-based inks.
Need help?
Do you have a question about the S1D13806 Series and is the answer not in the manual?
Questions and answers