EN
Epson logo
Official user manual

Epson LCD Controller (S1D13708)

574 pages·4.8 MB·Camera Accessories·PDF·ENDEFRITNLJA
Epson LCD Controller (S1D13708)
Table of Contents 818 sections S1D13708 TECHNICAL MANUAL · COMPREHENSIVE SUPPORT TOOLS · Documentation · Evaluation/Demonstration Board · … ShowHide
S1D13708 TECHNICAL MANUALp.1COMPREHENSIVE SUPPORT TOOLSp.3Documentationp.3Evaluation/Demonstration Boardp.3Application Engineering Supportp.3Application Engineering Supportp.3S1D13708 Embedded Memory LCD Controller July 2001p.5FEATURESp.5System Block Diagramp.5DESCRIPTIONp.6Memory Interfacep.6CPU Interfacep.6Display Supportp.6Power Down Modesp.6Display Modesp.6Clock Sourcep.6Operating Voltagep.6Packagep.6Hardware Functional Specificationp.7Table of Contentsp.9List of Tablesp.13List of Figuresp.171 Introductionp.211.1 Scopep.211.2 Overview Descriptionp.212 Featuresp.222.1 Integrated Frame Bufferp.222.2 CPU Interfacep.222.3 Display Supportp.222.4 Display Modesp.232.5 Display Featuresp.232.6 Clock Sourcep.232.7 Operating Voltagep.242.8 Miscellaneousp.243 Typical System Implementation Diagramsp.25Figure 31 Typical System Diagram (Generic #1 Bus)p.25Figure 32 Typical System Diagram (Generic #2 Bus)p.25Figure 33 Typical System Diagram (Hitachi SH-4 Bus)p.26Figure 34 Typical System Diagram (Hitachi SH-3 Bus)p.27Figure 35 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000)p.28Figure 36 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030)p.29Figure 37 Typical System Diagram (Motorola REDCAP2 Bus)p.30Figure 38 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus)p.31Figure 39 Typical System Diagram (Indirect Interface, Mode 68)p.31Figure 310 Typical System Diagram (Indirect Interface, Mode 80)p.324 Pinsp.334.1 Pinout Diagram - PFBGA - 120pinp.33Figure 41 Pinout Diagram - PFBGA 120-pinp.33Table 41: PFBGA 120-pin Mappingp.334.2 Pinout Diagram - Die Formp.34Table 42: S1D13708 Pad Layoutp.344.3 Pin Descriptionsp.354.3.1 Host Interfacep.35Table 43: Host Interface Pin Descriptionsp.354.3.2 LCD Interfacep.40Table 44: LCD Interface Pin Descriptionsp.404.3.3 Clock Inputp.43Table 45: Clock Input Pin Descriptionsp.434.3.4 Miscellaneousp.43Table 46: Miscellaneous Pin Descriptionsp.434.3.5 Power And Groundp.43Table 47: Power And Ground Pin Descriptionsp.434.4 Summary of Configuration Optionsp.44Table 48: Summary of Power-On/Reset Optionsp.444.5 Host Bus Interface Pin Mappingp.45Table 49: Host Bus Interface Pin Mappingp.454.6 LCD Interface Pin Mappingp.46Table 410: LCD Interface Pin Mappingp.465 D.C. Characteristicsp.47Table 51: Absolute Maximum Ratings (Preliminary - Subject to Change)p.47Table 52: Recommended Operating Conditionsp.47Table 53: Electrical Characteristics for VDD = 3.3V typicalp.476 A.C. Characteristicsp.486.1 Clock Timingp.486.1.1 Input Clocksp.48Figure 61 Clock Input Requirementsp.48Table 61: Clock Input Requirements for CLKI when CLKI to BCLK divide > 1p.48Table 62: Clock Input Requirements for CLKI when CLKI to BCLK divide = 1p.49Table 63: Clock Input Requirements for CLKI2p.496.1.2 Internal Clocksp.49Table 64: Internal Clock Requirementsp.496.2 CPU Interface Timingp.506.2.1 Generic #1 Interface Timingp.50Figure 62 Generic #1 Interface Timingp.50Table 65: Generic #1 Interface Timingp.516.2.2 Generic #2 Interface Timingp.52Figure 63 Generic #2 Interface Timingp.52Table 66: Generic #2 Interface Timingp.536.2.3 Hitachi SH-4 Interface Timingp.54Figure 64 Hitachi SH-4 Interface Timingp.54Table 67: Hitachi SH-4 Interface Timingp.556.2.4 Hitachi SH-3 Interface Timingp.56Figure 65 Hitachi SH-3 Interface Timingp.56Table 68: Hitachi SH-3 Interface Timingp.576.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000)p.58Figure 66 Motorola MC68K #1 Interface Timingp.58Table 69: Motorola MC68K #1 Interface Timingp.596.2.6 Motorola MC68K #2 Interface Timing (e.g. MC68030)p.60Figure 67 Motorola MC68K #2 Interface Timingp.60Table 610: Motorola MC68K #2 Interface Timingp.616.2.7 Motorola REDCAP2 Interface Timingp.62Figure 68 Motorola REDCAP2 Interface Timingp.62Table 611: Motorola REDCAP2 Interface Timingp.636.2.8 Motorola DragonBall Interface Timing with DTACK (e.g. MC68EZ328/MC68VZ328)p.64Figure 69 Motorola DragonBall Interface with DTACK Timingp.64Table 612: Motorola DragonBall Interface with DTACK Timingp.656.2.9 Motorola DragonBall Interface Timing w/o DTACK (e.g. MC68EZ328/MC68VZ328)p.66Figure 610 Motorola DragonBall Interface without DTACK# Timingp.66Table 613: Motorola DragonBall Interface without DTACK Timingp.676.2.10 Indirect Interface Timing (Mode 68)p.68Figure 611 Indirect Interface Timing (Mode 68)p.68Table 614: Indirect Interface Timing (Mode 68)p.696.2.11 Indirect Interface Timing (Mode 80)p.70Figure 612 Indirect Interface Timing (Mode 80)p.70Table 615: Indirect Interface Timing (Mode 80)p.716.3 LCD Power Sequencingp.726.3.1 Passive/TFT Power-On Sequencep.72Figure 613 Passive/TFT Power-On Sequence Timingp.72Table 616: Passive/TFT Power-On Sequence Timingp.726.3.2 Passive/TFT Power-Off Sequencep.73Figure 614 Passive/TFT Power-Off Sequence Timingp.73Table 617: Passive/TFT Power-Off Sequence Timingp.736.4 Display Interfacep.74Figure 615 Panel Timing Parametersp.74Table 618: Panel Timing Parameter Definition and Register Summaryp.756.4.1 Generic STN Panel Timingp.76Figure 616 Generic STN Panel Timingp.766.4.2 Single Monochrome 4-Bit Panel Timingp.78Figure 617 Single Monochrome 4-Bit Panel Timingp.78Figure 618 Single Monochrome 4-Bit Panel A.C. Timingp.79Table 619: Single Monochrome 4-Bit Panel A.C. Timingp.796.4.3 Single Monochrome 8-Bit Panel Timingp.80Figure 619 Single Monochrome 8-Bit Panel Timingp.80Figure 620 Single Monochrome 8-Bit Panel A.C. Timingp.81Table 620: Single Monochrome 8-Bit Panel A.C. Timingp.816.4.4 Single Color 4-Bit Panel Timingp.82Figure 621 Single Color 4-Bit Panel Timingp.82Figure 622 Single Color 4-Bit Panel A.C. Timingp.83Table 621: Single Color 4-Bit Panel A.C. Timingp.836.4.5 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 623 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 624 Single Color 8-Bit Panel A.C. Timing (Format 1)p.85Table 622: Single Color 8-Bit Panel A.C. Timing (Format 1)p.856.4.6 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 625 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 626 Single Color 8-Bit Panel A.C. Timing (Format 2)p.87Table 623: Single Color 8-Bit Panel A.C. Timing (Format 2)p.876.4.7 Single Color 16-Bit Panel Timingp.88Figure 627 Single Color 16-Bit Panel Timingp.88Figure 628 Single Color 16-Bit Panel A.C. Timingp.89Table 624: Single Color 16-Bit Panel A.C. Timingp.896.4.8 Generic TFT Panel Timingp.90Figure 629 Generic TFT Panel Timingp.906.4.9 9/12/18-Bit TFT Panel Timingp.91Figure 630 18-Bit TFT Panel Timingp.91Figure 631 TFT A.C. Timingp.92Table 625: TFT A.C. Timingp.936.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx)p.94Figure 632 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.94Table 626: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timingp.95Figure 633 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.96Table 627: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.976.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01)p.98Figure 634 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.98Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.99Figure 635 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.99Table 629: 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.996.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR)p.100Figure 636 160x240 Epson D-TFD Panel Horizontal Timingp.100Table 630: 160x240 Epson D-TFD Panel Horizontal Timingp.101Figure 637 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Table 631: 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Figure 638 160x240 Epson D-TFD Panel Vertical Timingp.103Table 632: 160x240 Epson D-TFD Panel Vertical Timingp.1036.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR)p.104Figure 639 320x240 Epson D-TFD Panel Horizontal Timingp.104Table 633: 320x240 Epson D-TFD Panel Horizontal Timingp.105Figure 640 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Table 634: 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Figure 641 320x240 Epson D-TFD Panel Vertical Timingp.107Table 635: 320x240 Epson D-TFD Panel Vertical Timingp.1076.4.14 TFT Type 2 Panel Timingp.108Figure 642 TFT Type 2 Horizontal Timingp.108Table 636: TFT Type 2 Horizontal Timingp.109Figure 643 TFT Type 2 Vertical Timingp.110Table 637: TFT Type 2 Vertical Timingp.1106.4.15 TFT Type 3 Panel Timingp.111Figure 644 TFT Type 3 Horizontal Timingp.111Table 638: TFT Type 3 Horizontal Timingp.112Figure 645 TFT Type 3 Vertical Timingp.113Table 639: TFT Type 3 Vertical Timingp.1146.4.16 TFT Type 4 Panel Timingp.115Figure 646 TFT Type 4 Panel Timingp.115Figure 647 TFT Type 4 A.C. Timingp.116Table 640: TFT Type 4 A.C. Timingp.1177 Clocksp.1187.1 Clock Descriptionsp.1187.1.1 BCLKp.118Table 71: BCLK Clock Selectionp.1187.1.2 MCLKp.118Table 72: MCLK Clock Selectionp.1197.1.3 PCLKp.119Table 73: PCLK Clock Selection p.119Table 74: Relationship between MCLK and PCLKp.1217.1.4 PWMCLKp.121Table 75: PWMCLK Clock Selectionp.1217.2 Clock Selectionp.122Figure 71 Clock Selectionp.1227.3 Clocks versus Functionsp.123Table 76: S1D13708 Internal Clock Requirementsp.1238 Registersp.1248.1 Register Mappingp.1248.2 Register Setp.125Table 81: S1D13708 Register Setp.1258.3 Register Descriptionsp.1278.3.1 Read-Only Configuration Registersp.1278.3.2 Clock Configuration Registersp.128Table 82: MCLK Divide Selectionp.128Table 83: PCLK Divide Selectionp.128Table 84: PCLK Source Selectionp.1298.3.3 Look-Up Table Registersp.1298.3.4 Panel Configuration Registersp.132Table 85: Panel Data Width Selectionp.132Table 86: HRTFT/D-TFD Panel Resolution Selectionp.132Table 87: LCD Panel Type Selectionp.1338.3.5 Display Mode Registersp.139Table 88: Inverse Video Mode Select Optionsp.140Table 89: LCD Bit-per-pixel Selectionp.141Figure 81 Display Data Byte/Word Swapp.142Table 810: SwivelViewTM Mode Select Optionsp.1428.3.6 Picture-in-Picture Plus Registersp.144Table 811: 32-bit Address Increments for Color Depthp.145Table 812: 32-bit Address Increments for Color Depthp.146Table 813: 32-bit Address Increments for Color Depthp.147Table 814: 32-bit Address Increments for Color Depthp.1488.3.7 Miscellaneous Registersp.1498.3.8 General IO Pins Registersp.1518.3.9 Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registersp.156Figure 82 PWM Clock/CV Pulse Block Diagramp.156Table 815: PWM Clock Controlp.156Table 816: CV Pulse Controlp.157Table 817: PWM Clock Divide Select Optionsp.158Table 818: CV Pulse Divide Select Optionsp.158Table 819: PWMOUT Duty Cycle Select Optionsp.1598.3.10 Extended Registersp.160Table 820: Extended Panel Type Selectionp.161Table 821: VCLK Holdp.165Table 822: VCLK Setupp.165Table 823: AP Pulse Widthp.166Table 824: AP Rising Positionp.166Table 825: GPO2 PCLK2 Divide Ratep.170Table 826: GPO1 PCLK1 Divide Ratep.170Table 827: Number of Source Driver ICsp.1769 Frame Rate Calculationp.17710 Display Data Formatsp.178Figure 101 4/8/16 Bit-Per-Pixel Display Data Memory Organizationp.17811 Look-Up Table Architecturep.17911.1 Monochrome Modesp.1791 Bit-per-pixel Monochrome Modep.179Figure 111 1 Bit-per-pixel Monochrome Mode Data Output Pathp.1792 Bit-per-pixel Monochrome Modep.179Figure 112 2 Bit-per-pixel Monochrome Mode Data Output Pathp.1794 Bit-per-pixel Monochrome Modep.180Figure 113 4 Bit-per-pixel Monochrome Mode Data Output Pathp.1808 Bit-per-pixel Monochrome Modep.180Figure 114 8 Bit-per-pixel Monochrome Mode Data Output Pathp.18016 Bit-Per-Pixel Monochrome Modep.18111.2 Color Modesp.1811 Bit-Per-Pixel Colorp.181Figure 115 1 Bit-Per-Pixel Color Mode Data Output Pathp.1812 Bit-Per-Pixel Colorp.182Figure 116 2 Bit-Per-Pixel Color Mode Data Output Pathp.1824 Bit-Per-Pixel Colorp.183Figure 117 4 Bit-Per-Pixel Color Mode Data Output Pathp.1838 Bit-per-pixel Color Modep.184Figure 118 8 Bit-per-pixel Color Mode Data Output Pathp.18416 Bit-Per-Pixel Color Modep.18412 SwivelView™p.18512.1 Conceptp.18512.2 90˚ SwivelView™p.185Figure 121 Relationship Between The Screen Image and the Image Refreshed in 90° SwivelView.p.18512.2.1 Register Programmingp.18612.3 180˚ SwivelView™p.187Figure 122 Relationship Between The Screen Image and the Image Refreshed in 180° SwivelView.p.18712.3.1 Register Programmingp.18712.4 270˚ SwivelView™p.188Figure 123 Relationship Between The Screen Image and the Image Refreshed in 270° SwivelView.p.18812.4.1 Register Programmingp.18913 Picture-in-Picture Plus (PIP+)p.19013.1 Conceptp.190Figure 131 Picture-in-Picture Plus with SwivelView disabledp.19013.2 With SwivelView Enabledp.19113.2.1 SwivelView 90˚p.191Figure 132 Picture-in-Picture Plus with SwivelView 90˚ enabledp.19113.2.2 SwivelView 180˚p.191Figure 133 Picture-in-Picture Plus with SwivelView 180˚ enabledp.19113.2.3 SwivelView 270˚p.192Figure 134 Picture-in-Picture Plus with SwivelView 270˚ enabledp.19214 Ink Layerp.19314.1 Memory Mappingp.193Figure 141 Memory Mapping for Ink Layerp.19314.2 Controlling the Ink Layerp.193Figure 142 Transparent Color Examplep.19414.3 Limitationsp.19415 Indirect Interfacep.19515.1 Mode 68p.196Figure 151 Sample timing of “register write” with Mode 68p.196Figure 152 Sample timing of “register read” with Mode 68p.197Figure 153 Sample timing of “memory write” with Mode 68, Big Endianp.198Figure 154 Sample timing of “memory read” with Mode 68, Big Endianp.200Figure 155 Sample timing of “register write” for Mode 68 when Memory Access Select Enabledp.202Figure 156 Sample timing of “register read” for Mode 68 when Memory Access Select Enabledp.20415.2 Mode 80p.206Figure 157 Sample timing of “register write” with Mode 80p.206Figure 158 Sample timing of “register read” with Mode 80p.208Figure 159 Sample timing of “memory write” with mode 80, little endianp.209Figure 1510 Sample timing of “memory read” with mode 80, Little endianp.211Figure 1511 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabledp.213Figure 1512 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabledp.21515.3 Limitationsp.21616 Embedded Crystal Oscillatorp.21716.1 Oscillator Circuitp.217Figure 161 Recommended Crystal Oscillator Circuitp.21717 Big-Endian Bus Interfacep.21817.1 Byte Swapping Bus Datap.21817.1.1 16 Bpp Color Depthp.219Figure 171 Byte-swapping for 16 Bppp.21917.1.2 1/2/4/8 Bpp Color Depthp.220Figure 172 Byte-swapping for 1/2/4/8 Bppp.22018 Power Save Modep.221Table 181: Power Save Mode Function Summaryp.22119 Mechanical Datap.222Figure 191 Mechanical Data PFBGA 120-pin Packagep.22220 Referencesp.22321 Technical Supportp.224S1D13708 Embedded Memory LCD Controllerp.225Table of Contentsp.227List of Tablesp.229List of Figuresp.2311 Introductionp.2332 Identifying the S1D13708p.2343 Initializationp.2354 Memory Modelsp.2364.1 Memory Organization for One Bit-per-pixel (2 Colors/Gray Shades)p.236Figure 41: Pixel Storage for 1 Bpp in One Byte of Display Bufferp.2364.2 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades)p.236Figure 42: Pixel Storage for 2 Bpp in One Byte of Display Bufferp.2364.3 Memory Organization for Four Bit-per-pixel (16 Colors/Gray Shades)p.237Figure 43: Pixel Storage for 4 Bpp in One Byte of Display Bufferp.2374.4 Memory Organization for 8 Bpp (256 Colors/64 Gray Shades)p.237Figure 44: Pixel Storage for 8 Bpp in One Byte of Display Bufferp.2374.5 Memory Organization for 16 Bpp (65536 Colors/64 Gray Shades)p.238Figure 45: Pixel Storage for 16 Bpp in Two Bytes of Display Bufferp.2385 Look-Up Table (LUT)p.2395.1 Registersp.2395.1.1 Look-Up Table Registersp.2395.2 Look-Up Table Organizationp.242Table 51: Look-Up Table Configurationsp.2425.2.1 Gray Shade Modesp.243Table 52: Suggested LUT Values for 1 Bpp Gray Shadep.243Table 53: Suggested LUT Values for 4 Bpp Gray Shadep.243Table 54: Suggested LUT Values for 4 Bpp Gray Shadep.244Table 55: Suggested LUT Values for 8 Bpp Gray Shadep.2455.2.2 Color Modesp.247Table 56: Suggested LUT Values for 1 bpp Colorp.247Table 57: Suggested LUT Values for 2 bpp Colorp.247Table 58: Suggested LUT Values for 4 bpp Colorp.248Table 59: Suggested LUT Values for 8 bpp Colorp.2496 Power Save Modep.2516.1 Overviewp.2516.2 Registersp.2526.2.1 Power Save Mode Enablep.2526.2.2 Memory Controller Power Save Statusp.2526.3 LCD Power Sequencingp.2536.4 Enabling Power Save Modep.2546.5 Disabling Power Save Modep.2547 SwivelView‘p.2557.1 SwivelView Registersp.255Table 71: SwivelViewTM Mode Select Optionsp.2557.2 Examplesp.2577.3 Limitationsp.2617.3.1 SwivelView 0˚ and 180˚p.2617.3.2 SwivelView 90˚ and 270˚p.2618 Picture-In-Picture Plusp.2628.1 Conceptp.262Figure 81: Picture-in-Picture Plus with SwivelView disabledp.2628.2 Registersp.262Table 81: 32-bit Address Increments for Color Depthp.265Table 82: 32-bit Address Increments for Color Depthp.267Table 83: 32-bit Address Increments for Color Depthp.269Table 84: 32-bit Address Increments for Color Depthp.2708.3 Picture-In-Picture-Plus Examplesp.2728.3.1 SwivelView 0˚ (Landscape Mode)p.272Figure 82: Picture-in-Picture Plus with SwivelView disabledp.2728.3.2 SwivelView 90˚p.275Figure 83: Picture-in-Picture Plus with SwivelView 90˚ enabledp.2758.3.3 SwivelView 180˚p.278Figure 84: Picture-in-Picture Plus with SwivelView 180˚ enabledp.2788.3.4 SwivelView 270˚p.282Figure 85: Picture-in-Picture Plus with SwivelView 270˚ enabledp.2828.4 Limitationsp.2868.4.1 SwivelView 0˚ and 180˚p.2868.4.2 SwivelView 90˚ and 270˚p.2869 Hardware Abstraction Layerp.2879.1 Introductionp.2879.2 API for the HAL Libraryp.287Table 91: HAL Library APIp.2879.2.1 Startup Routinesp.2889.2.2 Memory Accessp.2909.2.3 Register Accessp.2919.2.4 Clock Supportp.2939.2.5 Miscellaneousp.29410 Sample Codep.29611 Sales and Technical Supportp.297S1D13708 Register Summary X39A-R-001-01p.29913708CFG Configuration Programp.303Table of Contentsp.30513708CFGp.307S1D13708 Supported Evaluation Platformsp.307Installationp.307Usagep.30713708CFG Configuration Tabsp.308General Tabp.308Preferences Tabp.310Clocks Tabp.311Panel Tabp.316Panel Power Tabp.320Registers Tabp.32113708CFG Menusp.322Open...p.322Savep.323Save As...p.323Configure Multiplep.323Exportp.325Enable Tooltipsp.326ERD on the Webp.326About 13708CFGp.326Commentsp.32613708PLAY Diagnostic Utilityp.32713708PLAYp.329S1D13708 Supported Evaluation Platformsp.329Installationp.330Usagep.330Commandsp.33113708PLAY Examplep.337Script Filesp.33813708BMP Demonstration Programp.33913708BMPp.341S1D13708 Supported Evaluation Platformsp.341Installationp.341Usagep.34213708BMP Examplesp.342Commentsp.342Wind River WindML v2.0 Display Driversp.343Wind River WindML v2.0 DISPLAY DRIVERSp.345Building a WindML v2.0 Display Driverp.3461. Create a working directory and unzip the WindML display driver into it.p.3462. Configure for the target execution model.p.3463. Build a boot ROM image.p.3464. Create a bootable disk (in drive A:).p.3465. If necessary, generate a new mode0.h configuration file.p.3466. Build the WindML v2.0 library.p.3477. Open the S1D13708 workspace.p.3478. Add support for single line comments.p.347a. In the Tornado “Workspace Views” window, click on the “Builds” tab.p.347b. Expand the “8bpp Builds” (or “16bpp Builds”) view by clicking on the “+” next to it. The expan...p.347c. Select the “C/C++ compiler” tab to display the command switches used in the build. Remove the ...p.3479. Compile the VxWorks image.p.34710. Copy the VxWorks file to the diskette.p.34711. Start the VxWorks demo.p.347Linux Console Driverp.349Linux Console Driverp.351Building the Console Driver for Linux Kernel 2.2.xp.3521. Acquire the Linux kernel source code.p.3522. Unzip the console driver files.p.3523. Copy the console driver files to the build directory.p.3524. Modify s1d13708.hp.3535. Configure the video options.p.3536. Compile and install the kernel.p.3537. Boot to the Linux operating system.p.354Building the Console Driver for Linux Kernel 2.4.xp.3551. Acquire the Linux kernel source code.p.3552. Unzip the console driver files.p.3553. Copy the console driver files to the build directory. Make the directory /usr/src/linux/driver...p.3554. Modify s1d13708.hp.3565. Configure the video options.p.3566. Compile and install the kernelp.3577. Boot to the Linux operating systemp.357QNX Photon v2.0 Display Driverp.359QNX Photon v2.0 Display Driverp.361Building the Photon v2.0 Display Driverp.362Unpack the Graphics Driver Development Kit Archivep.362Configure the Driverp.362Build the Driverp.362Installing the Driverp.363Run the Driverp.363Commentsp.364Windows® CE 3.x Display Driversp.365WINDOWS® CE 3.0 DISPLAY DRIVERp.367Example Driver Buildsp.368Installation for CEPC Environmentp.372Configurationp.373Compile Switchesp.373Mode Filep.374Resource Management Issuesp.375Commentsp.378Power Consumptionp.3791 S1D13708 Power Consumptionp.3811.1 Conditionsp.382Table 11: S1D13708 Power Consumptionp.3822 Summaryp.383Interfacing to the NEC VR4102 / VR4111 Microprocessorsp.385Table of Contentsp.387List of Tablesp.389List of Figuresp.3891 Introductionp.3912 Interfacing to the NEC VR4102/VR4111p.3922.1 The NEC VR41XX System Busp.3922.1.1 Overviewp.3922.1.2 LCD Memory Access Cyclesp.393Figure 21: NEC VR4102/VR4111 Read/Write Cyclesp.3933 S1D13708 Host Bus Interfacep.3943.1 Host Bus Interface Pin Mappingp.394Table 31: Host Bus Interface Pin Mappingp.3943.2 Host Bus Interface Signalsp.3954 VR4102/VR4111 to S1D13708 Interfacep.3964.1 Hardware Descriptionp.396Figure 41: Typical Implementation of VR4102/VR4111 to S1D13708 Interfacep.3964.2 S1D13708 Hardware Configurationp.397Table 41: Summary of Power-On/Reset Configuration Optionsp.397Table 42: CLKI to BCLK Divide Selectionp.3974.3 NEC VR4102/VR4111 Configurationp.3985 Softwarep.3996 Referencesp.4006.1 Documentsp.4006.2 Document Sourcesp.4007 Technical Supportp.4017.1 Epson LCD Controllers (S1D13708)p.4017.2 NEC Electronics Inc.p.401Interfacing to the NEC VR4181A™ Microprocessorp.403Table of Contentsp.405List of Tablesp.407List of Figuresp.4071 Introductionp.4092 Interfacing to the NEC VR4181Ap.4102.1 The NEC VR4181A System Busp.4102.1.1 Overviewp.4102.1.2 LCD Memory Access Signalsp.4113 S1D13708 Host Bus Interfacep.4123.1 Host Bus Interface Pin Mappingp.412Table 31: Host Bus Interface Pin Mappingp.4123.2 Host Bus Interface Signalsp.4134 VR4181A to S1D13708 Interfacep.4144.1 Hardware Descriptionp.414Figure 41: Typical Implementation of VR4181A to S1D13708 Interfacep.4144.2 S1D13708 Hardware Configurationp.415Table 41: Summary of Power-On/Reset Configuration Optionsp.415Table 42: CLKI to BCLK Divide Selectionp.4154.3 NEC VR4181A Configurationp.4165 Softwarep.4176 Referencesp.4186.1 Documentsp.4186.2 Document Sourcesp.4187 Technical Supportp.4197.1 Epson LCD Controllers (S1D13708)p.4197.2 NEC Electronics Inc.p.419Interfacing to the Motorola MPC821 Microprocessorp.421Document Number: X39A-G-009-01p.421Table of Contentsp.423List of Tablesp.425List of Figuresp.4251 Introductionp.4272 Interfacing to the MPC821p.4282.1 The MPC8XX System Busp.4282.2 MPC8XX Bus Overviewp.4282.2.1 Normal (Non-Burst) Bus Transactionsp.429Figure 21: Power PC Memory Read Cyclep.429Figure 22: Power PC Memory Write Cyclep.4302.2.2 Burst Cyclesp.4302.3 Memory Controller Modulep.4312.3.1 General-Purpose Chip Select Module (GPCM)p.431Figure 23: GPCM Memory Devices Timingp.4322.3.2 User-Programmable Machine (UPM)p.4323 S1D13708 Host Bus Interfacep.4333.1 Host Bus Interface Pin Mappingp.433Table 31: Host Bus Interface Pin Mappingp.4333.2 Host Bus Interface Signalsp.4344 MPC821 to S1D13708 Interfacep.4354.1 Hardware Descriptionp.435Figure 41: Typical Implementation of MPC821 to S1D13708 Interfacep.4354.2 MPC821ADS Evaluation Board Hardware Connectionsp.436Table 41: List of Connections from MPC821ADS to S1D13708 p.4364.3 S1D13708 Hardware Configurationp.438Table 42: Summary of Power-On/Reset Configuration Optionsp.438Table 43: CLKI to BCLK Divide Selectionp.4384.4 Register/Memory Mappingp.4384.5 MPC821 Chip Select Configurationp.4394.6 Test Softwarep.4405 Softwarep.4416 Referencesp.4426.1 Documentsp.4426.2 Document Sourcesp.4427 Technical Supportp.4437.1 EPSON LCD/CRT Controllers (S1D13708)p.4437.2 Motorola MPC821 Processorp.443Interfacing to the Motorola MCF5307 "ColdFire" Microprocessorp.445Table of Contentsp.447List of Tablesp.449List of Figuresp.4491 Introductionp.4512 Interfacing to the MCF5307p.4522.1 The MCF5307 System Busp.4522.1.1 Overviewp.4522.1.2 Normal (Non-Burst) Bus Transactionsp.452Figure 21: MCF5307 Memory Read Cyclep.453Figure 22: MCF5307 Memory Write Cyclep.4532.1.3 Burst Cyclesp.4532.2 Chip-Select Modulep.454Figure 23: Chip Select Module Outputs Timingp.4543 S1D13708 Host Bus Interfacep.4553.1 Host Bus Interface Pin Mappingp.455Table 31: Host Bus Interface Pin Mappingp.4553.2 Host Bus Interface Signalsp.4564 MCF5307 To S1D13708 Interfacep.4574.1 Hardware Descriptionp.457Figure 41: Typical Implementation of MCF5307 to S1D13708 Interfacep.4574.2 S1D13708 Hardware Configurationp.458Table 41: Summary of Power-On/Reset Configuration Optionsp.458Table 42: CLKI to BCLK Divide Selectionp.4584.3 Register/Memory Mappingp.4594.4 MCF5307 Chip Select Configurationp.4595 Softwarep.4606 Referencesp.4616.1 Documentsp.4616.2 Document Sourcesp.4617 Technical Supportp.4627.1 EPSON LCD Controllers (S1D13708)p.4627.2 Motorola MCF5307 Processorp.462Connecting to the Sharp HR-TFT Panelsp.463Table of Contentsp.465List of Tablesp.467List of Figuresp.4671 Introductionp.4692 Connecting to the Sharp LQ039Q2DS01 HR-TFTp.4702.1 External Power Suppliesp.4702.1.1 Gray Scale Voltages for Gamma Correctionp.470Figure 21: Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generationp.4702.1.2 Digital/Analog Power Suppliesp.4712.1.3 DC Gate Driver Power Suppliesp.471Figure 22: Panel Gate Driver DC Power Suppliesp.4712.1.4 AC Gate Driver Power Suppliesp.472Figure 23: Panel Gate Driver AC Power Suppliesp.4722.2 HR-TFT MOD Signalp.473Figure 24: HR-TFT Power-On/Off Sequence Timingp.473Table 21: HR-TFT Power-On/Off Sequence Timingp.4732.3 S1D13708 to LQ039Q2DS01 Pin Mappingp.474Table 22: S1D13708 to LQ039Q2DS01 Pin Mappingp.4743 Connecting to the Sharp LQ031B1DDxx HR-TFTp.4763.1 External Power Suppliesp.4763.1.1 Gray Scale Voltages for Gamma Correctionp.476Figure 31: Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generationp.4763.1.2 Digital/Analog Power Suppliesp.4773.1.3 DC Gate Driver Power Suppliesp.4773.1.4 AC Gate Driver Power Suppliesp.4773.2 HR-TFT MOD Signalp.4773.3 S1D13708 to LQ031B1DDxx Pin Mappingp.478Table 31: S1D13708 to LQ031B1DDxx Pin Mappingp.4784 Test Softwarep.4805 Referencesp.4815.1 Documentsp.4815.2 Document Sourcesp.4816 Technical Supportp.4826.1 EPSON LCD Controllers (S1D13708)p.4826.2 Sharp HR-TFT Panelp.482Interfacing to the Motorola RedCap2p.483Table of Contentsp.485List of Tablesp.487List of Figuresp.4871 Introductionp.4892 Interfacing to the REDCAP2p.4902.1 The REDCAP2 System Busp.4902.2 Overviewp.4902.3 Bus Transactionsp.490Figure 21: REDCAP2 Memory Read Cyclep.491Figure 22: REDCAP2 Memory Write Cyclep.4913 S1D13708 Host Bus Interfacep.4923.1 Host Bus Interface Pin Mappingp.492Table 31: Host Bus Interface Pin Mappingp.4923.2 Host Bus Interface Signalsp.4934 REDCAP2 to S1D13708 Interfacep.4944.1 Hardware Descriptionp.494Figure 41: Typical Implementation of REDCAP2 to S1D13708 Interfacep.4944.2 Hardware Connectionsp.495Table 41: List of Connections for REDCAP2 ADMp.4954.3 S1D13708 Hardware Configurationp.497Table 42: Summary of Power-On/Reset Optionsp.4974.4 Register/Memory Mappingp.4974.5 REDCAP2 Chip Select Configurationp.4985 Softwarep.4996 Referencesp.5006.1 Documentsp.5006.2 Document Sourcesp.5007 Technical Supportp.5017.1 EPSON LCD/CRT Controllers (S1D13708)p.5017.2 Motorola REDCAP2 Processorp.501Interfacing to 8-bit Processorsp.503Table of Contentsp.505List of Tablesp.507List of Figuresp.5071 Introductionp.5092 Interfacing to an 8-bit Processorp.5102.1 The Generic 8-bit Processor System Busp.5103 S1D13708 Host Bus Interfacep.5113.1 Host Bus Interface Pin Mappingp.511Table 31: Host Bus Interface Pin Mappingp.5113.2 Host Bus Interface Signalsp.5124 8-Bit Processor to S1D13708 Interfacep.5134.1 Hardware Connectionsp.513Figure 41: Typical Implementation of 8-bit Processor to S1D13708 Interfacep.5134.2 S1D13708 Hardware Configurationp.514Table 41: Summary of Power-On/Reset Configuration Optionsp.514Table 42: CLKI to BCLK Divide Selectionp.5144.3 Register/Memory Mappingp.5145 Softwarep.5156 Referencesp.5166.1 Documentsp.5166.2 Document Sourcesp.5167 Technical Supportp.5177.1 EPSON LCD Controllers (S1D13708)p.517Interfacing to the Motorola MC68VZ328 Dragonball Microprocessorp.519Document Number: X39A-G-016-01p.519Table of Contentsp.521List of Tablesp.523List of Figuresp.5231 Introductionp.5252 Interfacing to the MC68VZ328p.5262.1 The MC68VZ328 System Busp.5262.2 Chip-Select Modulep.5263 S1D13708 Host Bus Interfacep.5273.1 Host Bus Interface Pin Mappingp.527Table 31: Host Bus Interface Pin Mappingp.5273.2 Host Bus Interface Signalsp.5284 MC68VZ328 to S1D13708 Interfacep.5294.1 Hardware Descriptionp.529Figure 41: Typical Implementation of MC68VZ328 to S1D13708 Interfacep.5294.2 S1D13708 Hardware Configurationp.530Table 41: Summary of Power-On/Reset Configuration Optionsp.530Table 42: CLKI to BCLK Divide Selectionp.5304.2.1 Register/Memory Mappingp.5314.2.2 MC68VZ328 Chip Select and Pin Configurationp.531Table 43: WS Bit Programmingp.5315 Softwarep.5326 Referencesp.5336.1 Documentsp.5336.2 Document Sourcesp.5337 Technical Supportp.5347.1 EPSON LCD/CRT Controllers (S1D13708)p.5347.2 Motorola MC68VZ328 Processorp.534Interfacing to the Intel StrongARM SA-1110 Microprocessorp.535Document Number: X39A-G-019-01p.535Table of Contentsp.537List of Tablesp.539List of Figuresp.5391 Introductionp.5412 Interfacing to the StrongARM SA-1110 Busp.5422.1 The StrongARM SA-1110 System Busp.5422.1.1 StrongARM SA-1110 Overviewp.5422.1.2 Variable-Latency IO Access Overviewp.5422.1.3 Variable-Latency IO Access Cyclesp.543Figure 21: SA-1110 Variable-Latency IO Read Cyclep.543Figure 22: SA-1110 Variable-Latency IO Write Cyclep.5443 S1D13708 Host Bus Interfacep.5453.1 Host Bus Interface Pin Mappingp.545Table 31: Host Bus Interface Pin Mappingp.5453.2 Host Bus Interface Signal Descriptionsp.5464 StrongARM SA-1110 to S1D13708 Interfacep.5474.1 Hardware Descriptionp.547Figure 41: Typical Implementation of SA-1110 to S1D13708 Interfacep.5474.2 S1D13708 Hardware Configurationp.548Table 41: Summary of Power-On/Reset Configuration Optionsp.548Table 42: CLKI to BCLK Divide Selectionp.5484.3 StrongARM SA-1110 Register Configurationp.549Table 43: RDFx Parameter Value versus CPU Maximum Frequencyp.5494.4 Register/Memory Mappingp.5505 Softwarep.5516 Referencesp.5526.1 Documentsp.5526.2 Document Sourcesp.5527 Technical Supportp.5537.1 EPSON LCD Controllers (S1D13708)p.5537.2 Intel StrongARM SA-1110 Processorp.553Connecting to a Micro-Controller via the Indirect Interfacep.555Table of Contentsp.557List of Tablesp.559List of Figuresp.5591 Introductionp.5612 Interfacing to a Micro-Controllerp.5622.1 The Indirect Interfacep.5623 S1D13708 Host Bus Interfacep.5633.1 Indirect Mode Bus Interface Pin Mappingp.563Table 31: Mode 68 8-Bit Data Host Bus Interface Pin Mappingp.563Table 32: Mode 68 16-Bit Data Host Bus Interface Pin Mappingp.564Table 33: Mode 80 8-Bit Data Host Bus Interface Pin Mappingp.564Table 34: Mode 80 16-Bit Data Host Bus Interface Pin Mappingp.5653.2 Host Bus Interface Signalsp.5664 Micro-Controller to S1D13708 Interfacep.5674.1 Hardware Connectionsp.567Figure 41: Typical Implementation of Micro-Controller to S1D13708 Interfacep.5674.2 S1D13708 Hardware Configurationp.568Table 41: Summary of Power-On/Reset Configuration Optionsp.568Table 42: CLKI to BCLK Divide Selectionp.5684.3 Register/Memory Mappingp.5695 Softwarep.5706 Referencesp.5726.1 Documentsp.5726.2 Document Sourcesp.5727 Technical Supportp.5737.1 EPSON LCD Controllers (S1D13708)p.573
Page 1 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-Q-001-01
Page 1 · click to enlarge
Page 1

S1D13708 Embedded Memory LCD Controller

S1D13708

TECHNICAL MANUAL

Document Number: X39A-Q-001-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.

Page 2 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 2 · click to enlarge
Page 2

THIS PAGE LEFT BLANK

S1D13708 TECHNICAL MANUAL X39A-Q-001-01 Issue Date: 01/10/09

Page 3 of the Epson LCD Controller (S1D13708) user manual — Engineering and Sales Support is provided by :
Page 3 · click to enlarge
Page 3

COMPREHENSIVE SUPPORT TOOLS

EPSON provides the designer and manufacturer a complete set of resources and tools for the development of LCD Graphics Systems.

Documentation

  • Technical manuals
  • Evaluation/Demonstration board manual

Evaluation/Demonstration Board

  • Assembled and fully tested Graphics Evaluation/Demonstration board
  • Schematic of Evaluation/Demonstration board
  • Parts List
  • Installation Guide
  • CPU Independent Software Utilities
  • Evaluation Software
  • Display Drivers

Application Engineering Support

EPSON offers the following services through their Sales and Marketing Network:

  • Sales Technical Support
  • Customer Training
  • Design Assistance

Application Engineering Support

Engineering and Sales Support is provided by :

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

TECHNICAL MANUAL S1D13708 Issue Date01/10/09 X39A-Q-001-01
Page 4 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 4 · click to enlarge
Page 4

THIS PAGE LEFT BLANK

S1D13708 TECHNICAL MANUAL X39A-Q-001-01 Issue Date: 01/10/09

Page 5 of the Epson LCD Controller (S1D13708) user manual — X39A-C-001-01 1
Page 5 · click to enlarge
Page 5
Epson LCD Controller (S1D13708) — S1D13708 Embedded Memory LCD Controller July 2001 diagram (page 5)
Fig. 1 · S1D13708 Embedded Memory LCD Controller July 2001

S1D13708 Embedded Memory LCD Controller July 2001

The S1D13708 is a color/monochrome LCD graphics controller with an embedded memory / display buffer. Targeted at PDA and Cell Phone applications, the S1D13708 ‘directly’ interfaces to numerous TFT panels and incorporates a minimum pin-count CPU interface thereby making it an ideal solution for an LCD Module.

This high level of integration combined with a 1.8V Core, provides a low cost, low power, single chip solution to meet the demands of embedded markets such as Mobile Communications devices and Palm-size PCs, where board size and battery life are major concerns.

The embedded display buffer greatly improves overall system performance as the S1D13708 handles all of the display functions directly with very little interaction from the processor.

The S1D13708 provides very flexible display features, from our patented SwivelViewTM technology which provides hardware rotation of the displayed image, to our Ink Layer with transparency, to our “Picture-in-Picture Plus” feature which allows two active variable size display ‘windows’.

The S1D13708 provides impressive support for Mobile Communication devices and Palm OS handhelds, however its impartiality to CPU type or operating system makes it an ideal display solution for a wide variety of applications.

  • FEATURES
  • Embedded Display Buffer.
  • Low Operating Voltage.
  • Low-latency CPU interface.
  • Direct support for the multiple CPU types.
  • Programmable Resolutions and Color depths.
  • STN LCD support.
  • Active Matrix LCD support.
  • Reflective Active Matrix support.
  • SwivelView TM (hardware rotation of displayed image) .
  • (Patent # 5,734,875 - Patent # 5,956,049)
  • “Picture-in-Picture Plus”.
  • Ink Layer.
  • Software Initiated Power Save Mode.
  • Hardware or Software Video Invert.
  • 120-pin PFBGA package.
  • SYSTEM BLOCK DIAGRAM
Epson LCD Controller (S1D13708) — S1D13708 Embedded Memory LCD Controller July 2001 diagram (page 5)
Fig. 2 · S1D13708 Embedded Memory LCD Controller July 2001

X39A-C-001-01 1

Page 6 of the Epson LCD Controller (S1D13708) user manual — X39A-C-001-01 2
Page 6 · click to enlarge
Page 6
Epson LCD Controller (S1D13708) — DESCRIPTION diagram (page 6)
Fig. 3
  • DESCRIPTION Memory Interface

Display Modes

  • Embedded 80K byte SRAM display buffer.
  • 1/2/4/8/16 bit-per-pixel (bpp) support.
  • Up to 64 gray shades using FRM and dithering on monochrome passive LCD panels.
  • Up to 64K colors on passive STN panels.
  • Up to 64K colors on active matrix panels.
  • SwivelView: direct hardware rotation of display image by 90°, 180°, 270°.
  • “Picture-in-Picture Plus”: displays a variable size window overlaid over background image.
  • Ink Layer.
  • Partial Display Support (available on Type 3 TFT).
  • Double Buffering/multi-pages: provides smooth animation and instantaneous screen update.

CPU Interface

  • ‘Fixed’ low-latency CPU access times.
  • Direct support for:

Hitachi SH-4 / SH-3. Motorola M68xxx (DragonBall, ColdFire,REDCAP2). MPU bus interface with programmable READY. • InDirect Interface

provides a minimum 15-pin interface (as compared to 42-pin max implementation).

Display Support

  • 4/8-bit monochrome LCD interface.
  • 4/8/16-bit color STN LCD interface.
  • Single-panel, single-drive passive displays.
  • 9/12/18-bit Active matrix TFT interface.
  • ‘Direct’ support for multiple TFT interfaces (Epson, Sharp, Type 2,3,4 external timing control IC not required).
  • Typical resolutions supported (Ink Layer disabled): - 320x240 @ 8bpp - 160x160 @ 16bpp - 160x240 @ 16bpp

Clock Source

  • Two clock inputs (single clock possible).
  • Clock source can be internally divided down for a higher frequency clock input.
  • 12MHz Crystal Input.

Operating Voltage

  • CORE VDD 1.8 to 2.2 volts.

Power Down Modes

  • IO VDD 3.0 to 3.6volts.
  • Software Initiated Power Save Mode.
  • BCLK can be switched off while maintaining LCD refresh.

Package

  • 120-pin PFBGA.

CONTACT YOUR SALES REPRESENTATIVE FOR THESE COMPREHENSIVE DESIGN TOOLS

  • S1D13708 Technical Manual
  • Palm OS Hardware Abstraction Layer
  • S5U13708 Evaluation Boards
  • Windows CE Display Driver
  • CPU Independent Software Utilities
  • VXWorks Tornado TM Display Driver
Epson LCD Controller (S1D13708) — CONTACT YOUR SALES REPRESENTATIVE FOR THESE COMPREHENSIVE DESIGN TOOLS diagram (page 6)
Fig. 4

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Copyright © 2001 Epson Research and Development, Inc. All rights reserved. Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/ EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. Palm Computing is a registered trademark and the Palm OS platform Platinum logo is a trademark of Palm Computing, Inc., 3Com or its subsidiaries. Microsoft, Windows, and the Windows Embedded Partner Logo are registered trademarks of Microsoft Corpo- ration. All other trademarks are the property of their respective owners.

X39A-C-001-01 2

Page 7 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-A-001-02
Page 7 · click to enlarge
Page 7

S1D13708 Embedded Memory LCD Controller

Hardware Functional Specification

Document Number: X39A-A-001-02

Copyright © 2001, 2002 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All other Trademarks are the property of their respective owners

Page 8 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 8 · click to enlarge
Page 8

THIS PAGE LEFT BLANK

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 9 of the Epson LCD Controller (S1D13708) user manual — Table of Contents
Page 9 · Contents
Contents

Contents

S1D13708 TECHNICAL MANUALp.1COMPREHENSIVE SUPPORT TOOLSp.3Documentationp.3Evaluation/Demonstration Boardp.3Application Engineering Supportp.3Application Engineering Supportp.3S1D13708 Embedded Memory LCD Controller July 2001p.5FEATURESp.5System Block Diagramp.5DESCRIPTIONp.6Memory Interfacep.6CPU Interfacep.6Display Supportp.6Power Down Modesp.6Display Modesp.6Clock Sourcep.6Operating Voltagep.6Packagep.6Hardware Functional Specificationp.7Table of Contentsp.9List of Tablesp.13List of Figuresp.171 Introductionp.211.1 Scopep.211.2 Overview Descriptionp.212 Featuresp.222.1 Integrated Frame Bufferp.222.2 CPU Interfacep.222.3 Display Supportp.222.4 Display Modesp.232.5 Display Featuresp.232.6 Clock Sourcep.232.7 Operating Voltagep.242.8 Miscellaneousp.243 Typical System Implementation Diagramsp.25Figure 31 Typical System Diagram (Generic #1 Bus)p.25Figure 32 Typical System Diagram (Generic #2 Bus)p.25Figure 33 Typical System Diagram (Hitachi SH-4 Bus)p.26Figure 34 Typical System Diagram (Hitachi SH-3 Bus)p.27Figure 35 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000)p.28Figure 36 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030)p.29Figure 37 Typical System Diagram (Motorola REDCAP2 Bus)p.30Figure 38 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus)p.31Figure 39 Typical System Diagram (Indirect Interface, Mode 68)p.31Figure 310 Typical System Diagram (Indirect Interface, Mode 80)p.324 Pinsp.334.1 Pinout Diagram - PFBGA - 120pinp.33Figure 41 Pinout Diagram - PFBGA 120-pinp.33Table 41: PFBGA 120-pin Mappingp.334.2 Pinout Diagram - Die Formp.34Table 42: S1D13708 Pad Layoutp.344.3 Pin Descriptionsp.354.3.1 Host Interfacep.35Table 43: Host Interface Pin Descriptionsp.354.3.2 LCD Interfacep.40Table 44: LCD Interface Pin Descriptionsp.404.3.3 Clock Inputp.43Table 45: Clock Input Pin Descriptionsp.434.3.4 Miscellaneousp.43Table 46: Miscellaneous Pin Descriptionsp.434.3.5 Power And Groundp.43Table 47: Power And Ground Pin Descriptionsp.434.4 Summary of Configuration Optionsp.44Table 48: Summary of Power-On/Reset Optionsp.444.5 Host Bus Interface Pin Mappingp.45Table 49: Host Bus Interface Pin Mappingp.454.6 LCD Interface Pin Mappingp.46Table 410: LCD Interface Pin Mappingp.465 D.C. Characteristicsp.47Table 51: Absolute Maximum Ratings (Preliminary - Subject to Change)p.47Table 52: Recommended Operating Conditionsp.47Table 53: Electrical Characteristics for VDD = 3.3V typicalp.476 A.C. Characteristicsp.486.1 Clock Timingp.486.1.1 Input Clocksp.48Figure 61 Clock Input Requirementsp.48Table 61: Clock Input Requirements for CLKI when CLKI to BCLK divide > 1p.48Table 62: Clock Input Requirements for CLKI when CLKI to BCLK divide = 1p.49Table 63: Clock Input Requirements for CLKI2p.496.1.2 Internal Clocksp.49Table 64: Internal Clock Requirementsp.496.2 CPU Interface Timingp.506.2.1 Generic #1 Interface Timingp.50Figure 62 Generic #1 Interface Timingp.50Table 65: Generic #1 Interface Timingp.516.2.2 Generic #2 Interface Timingp.52Figure 63 Generic #2 Interface Timingp.52Table 66: Generic #2 Interface Timingp.536.2.3 Hitachi SH-4 Interface Timingp.54Figure 64 Hitachi SH-4 Interface Timingp.54Table 67: Hitachi SH-4 Interface Timingp.556.2.4 Hitachi SH-3 Interface Timingp.56Figure 65 Hitachi SH-3 Interface Timingp.56Table 68: Hitachi SH-3 Interface Timingp.576.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000)p.58Figure 66 Motorola MC68K #1 Interface Timingp.58Table 69: Motorola MC68K #1 Interface Timingp.596.2.6 Motorola MC68K #2 Interface Timing (e.g. MC68030)p.60Figure 67 Motorola MC68K #2 Interface Timingp.60Table 610: Motorola MC68K #2 Interface Timingp.616.2.7 Motorola REDCAP2 Interface Timingp.62Figure 68 Motorola REDCAP2 Interface Timingp.62Table 611: Motorola REDCAP2 Interface Timingp.636.2.8 Motorola DragonBall Interface Timing with DTACK (e.g. MC68EZ328/MC68VZ328)p.64Figure 69 Motorola DragonBall Interface with DTACK Timingp.64Table 612: Motorola DragonBall Interface with DTACK Timingp.656.2.9 Motorola DragonBall Interface Timing w/o DTACK (e.g. MC68EZ328/MC68VZ328)p.66Figure 610 Motorola DragonBall Interface without DTACK# Timingp.66Table 613: Motorola DragonBall Interface without DTACK Timingp.676.2.10 Indirect Interface Timing (Mode 68)p.68Figure 611 Indirect Interface Timing (Mode 68)p.68Table 614: Indirect Interface Timing (Mode 68)p.696.2.11 Indirect Interface Timing (Mode 80)p.70Figure 612 Indirect Interface Timing (Mode 80)p.70Table 615: Indirect Interface Timing (Mode 80)p.716.3 LCD Power Sequencingp.726.3.1 Passive/TFT Power-On Sequencep.72Figure 613 Passive/TFT Power-On Sequence Timingp.72Table 616: Passive/TFT Power-On Sequence Timingp.726.3.2 Passive/TFT Power-Off Sequencep.73Figure 614 Passive/TFT Power-Off Sequence Timingp.73Table 617: Passive/TFT Power-Off Sequence Timingp.736.4 Display Interfacep.74Figure 615 Panel Timing Parametersp.74Table 618: Panel Timing Parameter Definition and Register Summaryp.756.4.1 Generic STN Panel Timingp.76Figure 616 Generic STN Panel Timingp.766.4.2 Single Monochrome 4-Bit Panel Timingp.78Figure 617 Single Monochrome 4-Bit Panel Timingp.78Figure 618 Single Monochrome 4-Bit Panel A.C. Timingp.79Table 619: Single Monochrome 4-Bit Panel A.C. Timingp.796.4.3 Single Monochrome 8-Bit Panel Timingp.80Figure 619 Single Monochrome 8-Bit Panel Timingp.80Figure 620 Single Monochrome 8-Bit Panel A.C. Timingp.81Table 620: Single Monochrome 8-Bit Panel A.C. Timingp.816.4.4 Single Color 4-Bit Panel Timingp.82Figure 621 Single Color 4-Bit Panel Timingp.82Figure 622 Single Color 4-Bit Panel A.C. Timingp.83Table 621: Single Color 4-Bit Panel A.C. Timingp.836.4.5 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 623 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 624 Single Color 8-Bit Panel A.C. Timing (Format 1)p.85Table 622: Single Color 8-Bit Panel A.C. Timing (Format 1)p.856.4.6 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 625 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 626 Single Color 8-Bit Panel A.C. Timing (Format 2)p.87Table 623: Single Color 8-Bit Panel A.C. Timing (Format 2)p.876.4.7 Single Color 16-Bit Panel Timingp.88Figure 627 Single Color 16-Bit Panel Timingp.88Figure 628 Single Color 16-Bit Panel A.C. Timingp.89Table 624: Single Color 16-Bit Panel A.C. Timingp.896.4.8 Generic TFT Panel Timingp.90Figure 629 Generic TFT Panel Timingp.906.4.9 9/12/18-Bit TFT Panel Timingp.91Figure 630 18-Bit TFT Panel Timingp.91Figure 631 TFT A.C. Timingp.92Table 625: TFT A.C. Timingp.936.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx)p.94Figure 632 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.94Table 626: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timingp.95Figure 633 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.96Table 627: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.976.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01)p.98Figure 634 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.98Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.99Figure 635 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.99Table 629: 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.996.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR)p.100Figure 636 160x240 Epson D-TFD Panel Horizontal Timingp.100Table 630: 160x240 Epson D-TFD Panel Horizontal Timingp.101Figure 637 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Table 631: 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Figure 638 160x240 Epson D-TFD Panel Vertical Timingp.103Table 632: 160x240 Epson D-TFD Panel Vertical Timingp.1036.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR)p.104Figure 639 320x240 Epson D-TFD Panel Horizontal Timingp.104Table 633: 320x240 Epson D-TFD Panel Horizontal Timingp.105Figure 640 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Table 634: 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Figure 641 320x240 Epson D-TFD Panel Vertical Timingp.107Table 635: 320x240 Epson D-TFD Panel Vertical Timingp.1076.4.14 TFT Type 2 Panel Timingp.108Figure 642 TFT Type 2 Horizontal Timingp.108Table 636: TFT Type 2 Horizontal Timingp.109Figure 643 TFT Type 2 Vertical Timingp.110Table 637: TFT Type 2 Vertical Timingp.1106.4.15 TFT Type 3 Panel Timingp.111Figure 644 TFT Type 3 Horizontal Timingp.111Table 638: TFT Type 3 Horizontal Timingp.112Figure 645 TFT Type 3 Vertical Timingp.113Table 639: TFT Type 3 Vertical Timingp.1146.4.16 TFT Type 4 Panel Timingp.115Figure 646 TFT Type 4 Panel Timingp.115Figure 647 TFT Type 4 A.C. Timingp.116Table 640: TFT Type 4 A.C. Timingp.1177 Clocksp.1187.1 Clock Descriptionsp.1187.1.1 BCLKp.118Table 71: BCLK Clock Selectionp.1187.1.2 MCLKp.118Table 72: MCLK Clock Selectionp.1197.1.3 PCLKp.119Table 73: PCLK Clock Selection p.119Table 74: Relationship between MCLK and PCLKp.1217.1.4 PWMCLKp.121Table 75: PWMCLK Clock Selectionp.1217.2 Clock Selectionp.122Figure 71 Clock Selectionp.1227.3 Clocks versus Functionsp.123Table 76: S1D13708 Internal Clock Requirementsp.1238 Registersp.1248.1 Register Mappingp.1248.2 Register Setp.125Table 81: S1D13708 Register Setp.1258.3 Register Descriptionsp.1278.3.1 Read-Only Configuration Registersp.1278.3.2 Clock Configuration Registersp.128Table 82: MCLK Divide Selectionp.128Table 83: PCLK Divide Selectionp.128Table 84: PCLK Source Selectionp.1298.3.3 Look-Up Table Registersp.1298.3.4 Panel Configuration Registersp.132Table 85: Panel Data Width Selectionp.132Table 86: HRTFT/D-TFD Panel Resolution Selectionp.132Table 87: LCD Panel Type Selectionp.1338.3.5 Display Mode Registersp.139Table 88: Inverse Video Mode Select Optionsp.140Table 89: LCD Bit-per-pixel Selectionp.141Figure 81 Display Data Byte/Word Swapp.142Table 810: SwivelViewTM Mode Select Optionsp.1428.3.6 Picture-in-Picture Plus Registersp.144Table 811: 32-bit Address Increments for Color Depthp.145Table 812: 32-bit Address Increments for Color Depthp.146Table 813: 32-bit Address Increments for Color Depthp.147Table 814: 32-bit Address Increments for Color Depthp.1488.3.7 Miscellaneous Registersp.1498.3.8 General IO Pins Registersp.1518.3.9 Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registersp.156Figure 82 PWM Clock/CV Pulse Block Diagramp.156Table 815: PWM Clock Controlp.156Table 816: CV Pulse Controlp.157Table 817: PWM Clock Divide Select Optionsp.158Table 818: CV Pulse Divide Select Optionsp.158Table 819: PWMOUT Duty Cycle Select Optionsp.1598.3.10 Extended Registersp.160Table 820: Extended Panel Type Selectionp.161Table 821: VCLK Holdp.165Table 822: VCLK Setupp.165Table 823: AP Pulse Widthp.166Table 824: AP Rising Positionp.166Table 825: GPO2 PCLK2 Divide Ratep.170Table 826: GPO1 PCLK1 Divide Ratep.170Table 827: Number of Source Driver ICsp.1769 Frame Rate Calculationp.17710 Display Data Formatsp.178Figure 101 4/8/16 Bit-Per-Pixel Display Data Memory Organizationp.17811 Look-Up Table Architecturep.17911.1 Monochrome Modesp.1791 Bit-per-pixel Monochrome Modep.179Figure 111 1 Bit-per-pixel Monochrome Mode Data Output Pathp.1792 Bit-per-pixel Monochrome Modep.179Figure 112 2 Bit-per-pixel Monochrome Mode Data Output Pathp.1794 Bit-per-pixel Monochrome Modep.180Figure 113 4 Bit-per-pixel Monochrome Mode Data Output Pathp.1808 Bit-per-pixel Monochrome Modep.180Figure 114 8 Bit-per-pixel Monochrome Mode Data Output Pathp.18016 Bit-Per-Pixel Monochrome Modep.18111.2 Color Modesp.1811 Bit-Per-Pixel Colorp.181Figure 115 1 Bit-Per-Pixel Color Mode Data Output Pathp.1812 Bit-Per-Pixel Colorp.182Figure 116 2 Bit-Per-Pixel Color Mode Data Output Pathp.1824 Bit-Per-Pixel Colorp.183Figure 117 4 Bit-Per-Pixel Color Mode Data Output Pathp.1838 Bit-per-pixel Color Modep.184Figure 118 8 Bit-per-pixel Color Mode Data Output Pathp.18416 Bit-Per-Pixel Color Modep.18412 SwivelView™p.18512.1 Conceptp.18512.2 90˚ SwivelView™p.185Figure 121 Relationship Between The Screen Image and the Image Refreshed in 90° SwivelView.p.18512.2.1 Register Programmingp.18612.3 180˚ SwivelView™p.187Figure 122 Relationship Between The Screen Image and the Image Refreshed in 180° SwivelView.p.18712.3.1 Register Programmingp.18712.4 270˚ SwivelView™p.188Figure 123 Relationship Between The Screen Image and the Image Refreshed in 270° SwivelView.p.18812.4.1 Register Programmingp.18913 Picture-in-Picture Plus (PIP+)p.19013.1 Conceptp.190Figure 131 Picture-in-Picture Plus with SwivelView disabledp.19013.2 With SwivelView Enabledp.19113.2.1 SwivelView 90˚p.191Figure 132 Picture-in-Picture Plus with SwivelView 90˚ enabledp.19113.2.2 SwivelView 180˚p.191Figure 133 Picture-in-Picture Plus with SwivelView 180˚ enabledp.19113.2.3 SwivelView 270˚p.192Figure 134 Picture-in-Picture Plus with SwivelView 270˚ enabledp.19214 Ink Layerp.19314.1 Memory Mappingp.193Figure 141 Memory Mapping for Ink Layerp.19314.2 Controlling the Ink Layerp.193Figure 142 Transparent Color Examplep.19414.3 Limitationsp.19415 Indirect Interfacep.19515.1 Mode 68p.196Figure 151 Sample timing of “register write” with Mode 68p.196Figure 152 Sample timing of “register read” with Mode 68p.197Figure 153 Sample timing of “memory write” with Mode 68, Big Endianp.198Figure 154 Sample timing of “memory read” with Mode 68, Big Endianp.200Figure 155 Sample timing of “register write” for Mode 68 when Memory Access Select Enabledp.202Figure 156 Sample timing of “register read” for Mode 68 when Memory Access Select Enabledp.20415.2 Mode 80p.206Figure 157 Sample timing of “register write” with Mode 80p.206Figure 158 Sample timing of “register read” with Mode 80p.208Figure 159 Sample timing of “memory write” with mode 80, little endianp.209Figure 1510 Sample timing of “memory read” with mode 80, Little endianp.211Figure 1511 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabledp.213Figure 1512 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabledp.21515.3 Limitationsp.21616 Embedded Crystal Oscillatorp.21716.1 Oscillator Circuitp.217Figure 161 Recommended Crystal Oscillator Circuitp.21717 Big-Endian Bus Interfacep.21817.1 Byte Swapping Bus Datap.21817.1.1 16 Bpp Color Depthp.219Figure 171 Byte-swapping for 16 Bppp.21917.1.2 1/2/4/8 Bpp Color Depthp.220Figure 172 Byte-swapping for 1/2/4/8 Bppp.22018 Power Save Modep.221Table 181: Power Save Mode Function Summaryp.22119 Mechanical Datap.222Figure 191 Mechanical Data PFBGA 120-pin Packagep.22220 Referencesp.22321 Technical Supportp.224S1D13708 Embedded Memory LCD Controllerp.225Table of Contentsp.227List of Tablesp.229List of Figuresp.2311 Introductionp.2332 Identifying the S1D13708p.2343 Initializationp.2354 Memory Modelsp.2364.1 Memory Organization for One Bit-per-pixel (2 Colors/Gray Shades)p.236Figure 41: Pixel Storage for 1 Bpp in One Byte of Display Bufferp.2364.2 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades)p.236Figure 42: Pixel Storage for 2 Bpp in One Byte of Display Bufferp.2364.3 Memory Organization for Four Bit-per-pixel (16 Colors/Gray Shades)p.237Figure 43: Pixel Storage for 4 Bpp in One Byte of Display Bufferp.2374.4 Memory Organization for 8 Bpp (256 Colors/64 Gray Shades)p.237Figure 44: Pixel Storage for 8 Bpp in One Byte of Display Bufferp.2374.5 Memory Organization for 16 Bpp (65536 Colors/64 Gray Shades)p.238Figure 45: Pixel Storage for 16 Bpp in Two Bytes of Display Bufferp.2385 Look-Up Table (LUT)p.2395.1 Registersp.2395.1.1 Look-Up Table Registersp.2395.2 Look-Up Table Organizationp.242Table 51: Look-Up Table Configurationsp.2425.2.1 Gray Shade Modesp.243Table 52: Suggested LUT Values for 1 Bpp Gray Shadep.243Table 53: Suggested LUT Values for 4 Bpp Gray Shadep.243Table 54: Suggested LUT Values for 4 Bpp Gray Shadep.244Table 55: Suggested LUT Values for 8 Bpp Gray Shadep.2455.2.2 Color Modesp.247Table 56: Suggested LUT Values for 1 bpp Colorp.247Table 57: Suggested LUT Values for 2 bpp Colorp.247Table 58: Suggested LUT Values for 4 bpp Colorp.248Table 59: Suggested LUT Values for 8 bpp Colorp.2496 Power Save Modep.2516.1 Overviewp.2516.2 Registersp.2526.2.1 Power Save Mode Enablep.2526.2.2 Memory Controller Power Save Statusp.2526.3 LCD Power Sequencingp.2536.4 Enabling Power Save Modep.2546.5 Disabling Power Save Modep.2547 SwivelView‘p.2557.1 SwivelView Registersp.255Table 71: SwivelViewTM Mode Select Optionsp.2557.2 Examplesp.2577.3 Limitationsp.2617.3.1 SwivelView 0˚ and 180˚p.2617.3.2 SwivelView 90˚ and 270˚p.2618 Picture-In-Picture Plusp.2628.1 Conceptp.262Figure 81: Picture-in-Picture Plus with SwivelView disabledp.2628.2 Registersp.262Table 81: 32-bit Address Increments for Color Depthp.265Table 82: 32-bit Address Increments for Color Depthp.267Table 83: 32-bit Address Increments for Color Depthp.269Table 84: 32-bit Address Increments for Color Depthp.2708.3 Picture-In-Picture-Plus Examplesp.2728.3.1 SwivelView 0˚ (Landscape Mode)p.272Figure 82: Picture-in-Picture Plus with SwivelView disabledp.2728.3.2 SwivelView 90˚p.275Figure 83: Picture-in-Picture Plus with SwivelView 90˚ enabledp.2758.3.3 SwivelView 180˚p.278Figure 84: Picture-in-Picture Plus with SwivelView 180˚ enabledp.2788.3.4 SwivelView 270˚p.282Figure 85: Picture-in-Picture Plus with SwivelView 270˚ enabledp.2828.4 Limitationsp.2868.4.1 SwivelView 0˚ and 180˚p.2868.4.2 SwivelView 90˚ and 270˚p.2869 Hardware Abstraction Layerp.2879.1 Introductionp.2879.2 API for the HAL Libraryp.287Table 91: HAL Library APIp.2879.2.1 Startup Routinesp.2889.2.2 Memory Accessp.2909.2.3 Register Accessp.2919.2.4 Clock Supportp.2939.2.5 Miscellaneousp.29410 Sample Codep.29611 Sales and Technical Supportp.297S1D13708 Register Summary X39A-R-001-01p.29913708CFG Configuration Programp.303Table of Contentsp.30513708CFGp.307S1D13708 Supported Evaluation Platformsp.307Installationp.307Usagep.30713708CFG Configuration Tabsp.308General Tabp.308Preferences Tabp.310Clocks Tabp.311Panel Tabp.316Panel Power Tabp.320Registers Tabp.32113708CFG Menusp.322Open...p.322Savep.323Save As...p.323Configure Multiplep.323Exportp.325Enable Tooltipsp.326ERD on the Webp.326About 13708CFGp.326Commentsp.32613708PLAY Diagnostic Utilityp.32713708PLAYp.329S1D13708 Supported Evaluation Platformsp.329Installationp.330Usagep.330Commandsp.33113708PLAY Examplep.337Script Filesp.33813708BMP Demonstration Programp.33913708BMPp.341S1D13708 Supported Evaluation Platformsp.341Installationp.341Usagep.34213708BMP Examplesp.342Commentsp.342Wind River WindML v2.0 Display Driversp.343Wind River WindML v2.0 DISPLAY DRIVERSp.345Building a WindML v2.0 Display Driverp.3461. Create a working directory and unzip the WindML display driver into it.p.3462. Configure for the target execution model.p.3463. Build a boot ROM image.p.3464. Create a bootable disk (in drive A:).p.3465. If necessary, generate a new mode0.h configuration file.p.3466. Build the WindML v2.0 library.p.3477. Open the S1D13708 workspace.p.3478. Add support for single line comments.p.347a. In the Tornado “Workspace Views” window, click on the “Builds” tab.p.347b. Expand the “8bpp Builds” (or “16bpp Builds”) view by clicking on the “+” next to it. The expan...p.347c. Select the “C/C++ compiler” tab to display the command switches used in the build. Remove the ...p.3479. Compile the VxWorks image.p.34710. Copy the VxWorks file to the diskette.p.34711. Start the VxWorks demo.p.347Linux Console Driverp.349Linux Console Driverp.351Building the Console Driver for Linux Kernel 2.2.xp.3521. Acquire the Linux kernel source code.p.3522. Unzip the console driver files.p.3523. Copy the console driver files to the build directory.p.3524. Modify s1d13708.hp.3535. Configure the video options.p.3536. Compile and install the kernel.p.3537. Boot to the Linux operating system.p.354Building the Console Driver for Linux Kernel 2.4.xp.3551. Acquire the Linux kernel source code.p.3552. Unzip the console driver files.p.3553. Copy the console driver files to the build directory. Make the directory /usr/src/linux/driver...p.3554. Modify s1d13708.hp.3565. Configure the video options.p.3566. Compile and install the kernelp.3577. Boot to the Linux operating systemp.357QNX Photon v2.0 Display Driverp.359QNX Photon v2.0 Display Driverp.361Building the Photon v2.0 Display Driverp.362Unpack the Graphics Driver Development Kit Archivep.362Configure the Driverp.362Build the Driverp.362Installing the Driverp.363Run the Driverp.363Commentsp.364Windows® CE 3.x Display Driversp.365WINDOWS® CE 3.0 DISPLAY DRIVERp.367Example Driver Buildsp.368Installation for CEPC Environmentp.372Configurationp.373Compile Switchesp.373Mode Filep.374Resource Management Issuesp.375Commentsp.378Power Consumptionp.3791 S1D13708 Power Consumptionp.3811.1 Conditionsp.382Table 11: S1D13708 Power Consumptionp.3822 Summaryp.383Interfacing to the NEC VR4102 / VR4111 Microprocessorsp.385Table of Contentsp.387List of Tablesp.389List of Figuresp.3891 Introductionp.3912 Interfacing to the NEC VR4102/VR4111p.3922.1 The NEC VR41XX System Busp.3922.1.1 Overviewp.3922.1.2 LCD Memory Access Cyclesp.393Figure 21: NEC VR4102/VR4111 Read/Write Cyclesp.3933 S1D13708 Host Bus Interfacep.3943.1 Host Bus Interface Pin Mappingp.394Table 31: Host Bus Interface Pin Mappingp.3943.2 Host Bus Interface Signalsp.3954 VR4102/VR4111 to S1D13708 Interfacep.3964.1 Hardware Descriptionp.396Figure 41: Typical Implementation of VR4102/VR4111 to S1D13708 Interfacep.3964.2 S1D13708 Hardware Configurationp.397Table 41: Summary of Power-On/Reset Configuration Optionsp.397Table 42: CLKI to BCLK Divide Selectionp.3974.3 NEC VR4102/VR4111 Configurationp.3985 Softwarep.3996 Referencesp.4006.1 Documentsp.4006.2 Document Sourcesp.4007 Technical Supportp.4017.1 Epson LCD Controllers (S1D13708)p.4017.2 NEC Electronics Inc.p.401Interfacing to the NEC VR4181A™ Microprocessorp.403Table of Contentsp.405List of Tablesp.407List of Figuresp.4071 Introductionp.4092 Interfacing to the NEC VR4181Ap.4102.1 The NEC VR4181A System Busp.4102.1.1 Overviewp.4102.1.2 LCD Memory Access Signalsp.4113 S1D13708 Host Bus Interfacep.4123.1 Host Bus Interface Pin Mappingp.412Table 31: Host Bus Interface Pin Mappingp.4123.2 Host Bus Interface Signalsp.4134 VR4181A to S1D13708 Interfacep.4144.1 Hardware Descriptionp.414Figure 41: Typical Implementation of VR4181A to S1D13708 Interfacep.4144.2 S1D13708 Hardware Configurationp.415Table 41: Summary of Power-On/Reset Configuration Optionsp.415Table 42: CLKI to BCLK Divide Selectionp.4154.3 NEC VR4181A Configurationp.4165 Softwarep.4176 Referencesp.4186.1 Documentsp.4186.2 Document Sourcesp.4187 Technical Supportp.4197.1 Epson LCD Controllers (S1D13708)p.4197.2 NEC Electronics Inc.p.419Interfacing to the Motorola MPC821 Microprocessorp.421Document Number: X39A-G-009-01p.421Table of Contentsp.423List of Tablesp.425List of Figuresp.4251 Introductionp.4272 Interfacing to the MPC821p.4282.1 The MPC8XX System Busp.4282.2 MPC8XX Bus Overviewp.4282.2.1 Normal (Non-Burst) Bus Transactionsp.429Figure 21: Power PC Memory Read Cyclep.429Figure 22: Power PC Memory Write Cyclep.4302.2.2 Burst Cyclesp.4302.3 Memory Controller Modulep.4312.3.1 General-Purpose Chip Select Module (GPCM)p.431Figure 23: GPCM Memory Devices Timingp.4322.3.2 User-Programmable Machine (UPM)p.4323 S1D13708 Host Bus Interfacep.4333.1 Host Bus Interface Pin Mappingp.433Table 31: Host Bus Interface Pin Mappingp.4333.2 Host Bus Interface Signalsp.4344 MPC821 to S1D13708 Interfacep.4354.1 Hardware Descriptionp.435Figure 41: Typical Implementation of MPC821 to S1D13708 Interfacep.4354.2 MPC821ADS Evaluation Board Hardware Connectionsp.436Table 41: List of Connections from MPC821ADS to S1D13708 p.4364.3 S1D13708 Hardware Configurationp.438Table 42: Summary of Power-On/Reset Configuration Optionsp.438Table 43: CLKI to BCLK Divide Selectionp.4384.4 Register/Memory Mappingp.4384.5 MPC821 Chip Select Configurationp.4394.6 Test Softwarep.4405 Softwarep.4416 Referencesp.4426.1 Documentsp.4426.2 Document Sourcesp.4427 Technical Supportp.4437.1 EPSON LCD/CRT Controllers (S1D13708)p.4437.2 Motorola MPC821 Processorp.443Interfacing to the Motorola MCF5307 "ColdFire" Microprocessorp.445Table of Contentsp.447List of Tablesp.449List of Figuresp.4491 Introductionp.4512 Interfacing to the MCF5307p.4522.1 The MCF5307 System Busp.4522.1.1 Overviewp.4522.1.2 Normal (Non-Burst) Bus Transactionsp.452Figure 21: MCF5307 Memory Read Cyclep.453Figure 22: MCF5307 Memory Write Cyclep.4532.1.3 Burst Cyclesp.4532.2 Chip-Select Modulep.454Figure 23: Chip Select Module Outputs Timingp.4543 S1D13708 Host Bus Interfacep.4553.1 Host Bus Interface Pin Mappingp.455Table 31: Host Bus Interface Pin Mappingp.4553.2 Host Bus Interface Signalsp.4564 MCF5307 To S1D13708 Interfacep.4574.1 Hardware Descriptionp.457Figure 41: Typical Implementation of MCF5307 to S1D13708 Interfacep.4574.2 S1D13708 Hardware Configurationp.458Table 41: Summary of Power-On/Reset Configuration Optionsp.458Table 42: CLKI to BCLK Divide Selectionp.4584.3 Register/Memory Mappingp.4594.4 MCF5307 Chip Select Configurationp.4595 Softwarep.4606 Referencesp.4616.1 Documentsp.4616.2 Document Sourcesp.4617 Technical Supportp.4627.1 EPSON LCD Controllers (S1D13708)p.4627.2 Motorola MCF5307 Processorp.462Connecting to the Sharp HR-TFT Panelsp.463Table of Contentsp.465List of Tablesp.467List of Figuresp.4671 Introductionp.4692 Connecting to the Sharp LQ039Q2DS01 HR-TFTp.4702.1 External Power Suppliesp.4702.1.1 Gray Scale Voltages for Gamma Correctionp.470Figure 21: Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generationp.4702.1.2 Digital/Analog Power Suppliesp.4712.1.3 DC Gate Driver Power Suppliesp.471Figure 22: Panel Gate Driver DC Power Suppliesp.4712.1.4 AC Gate Driver Power Suppliesp.472Figure 23: Panel Gate Driver AC Power Suppliesp.4722.2 HR-TFT MOD Signalp.473Figure 24: HR-TFT Power-On/Off Sequence Timingp.473Table 21: HR-TFT Power-On/Off Sequence Timingp.4732.3 S1D13708 to LQ039Q2DS01 Pin Mappingp.474Table 22: S1D13708 to LQ039Q2DS01 Pin Mappingp.4743 Connecting to the Sharp LQ031B1DDxx HR-TFTp.4763.1 External Power Suppliesp.4763.1.1 Gray Scale Voltages for Gamma Correctionp.476Figure 31: Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generationp.4763.1.2 Digital/Analog Power Suppliesp.4773.1.3 DC Gate Driver Power Suppliesp.4773.1.4 AC Gate Driver Power Suppliesp.4773.2 HR-TFT MOD Signalp.4773.3 S1D13708 to LQ031B1DDxx Pin Mappingp.478Table 31: S1D13708 to LQ031B1DDxx Pin Mappingp.4784 Test Softwarep.4805 Referencesp.4815.1 Documentsp.4815.2 Document Sourcesp.4816 Technical Supportp.4826.1 EPSON LCD Controllers (S1D13708)p.4826.2 Sharp HR-TFT Panelp.482Interfacing to the Motorola RedCap2p.483Table of Contentsp.485List of Tablesp.487List of Figuresp.4871 Introductionp.4892 Interfacing to the REDCAP2p.4902.1 The REDCAP2 System Busp.4902.2 Overviewp.4902.3 Bus Transactionsp.490Figure 21: REDCAP2 Memory Read Cyclep.491Figure 22: REDCAP2 Memory Write Cyclep.4913 S1D13708 Host Bus Interfacep.4923.1 Host Bus Interface Pin Mappingp.492Table 31: Host Bus Interface Pin Mappingp.4923.2 Host Bus Interface Signalsp.4934 REDCAP2 to S1D13708 Interfacep.4944.1 Hardware Descriptionp.494Figure 41: Typical Implementation of REDCAP2 to S1D13708 Interfacep.4944.2 Hardware Connectionsp.495Table 41: List of Connections for REDCAP2 ADMp.4954.3 S1D13708 Hardware Configurationp.497Table 42: Summary of Power-On/Reset Optionsp.4974.4 Register/Memory Mappingp.4974.5 REDCAP2 Chip Select Configurationp.4985 Softwarep.4996 Referencesp.5006.1 Documentsp.5006.2 Document Sourcesp.5007 Technical Supportp.5017.1 EPSON LCD/CRT Controllers (S1D13708)p.5017.2 Motorola REDCAP2 Processorp.501Interfacing to 8-bit Processorsp.503Table of Contentsp.505List of Tablesp.507List of Figuresp.5071 Introductionp.5092 Interfacing to an 8-bit Processorp.5102.1 The Generic 8-bit Processor System Busp.5103 S1D13708 Host Bus Interfacep.5113.1 Host Bus Interface Pin Mappingp.511Table 31: Host Bus Interface Pin Mappingp.5113.2 Host Bus Interface Signalsp.5124 8-Bit Processor to S1D13708 Interfacep.5134.1 Hardware Connectionsp.513Figure 41: Typical Implementation of 8-bit Processor to S1D13708 Interfacep.5134.2 S1D13708 Hardware Configurationp.514Table 41: Summary of Power-On/Reset Configuration Optionsp.514Table 42: CLKI to BCLK Divide Selectionp.5144.3 Register/Memory Mappingp.5145 Softwarep.5156 Referencesp.5166.1 Documentsp.5166.2 Document Sourcesp.5167 Technical Supportp.5177.1 EPSON LCD Controllers (S1D13708)p.517Interfacing to the Motorola MC68VZ328 Dragonball Microprocessorp.519Document Number: X39A-G-016-01p.519Table of Contentsp.521List of Tablesp.523List of Figuresp.5231 Introductionp.5252 Interfacing to the MC68VZ328p.5262.1 The MC68VZ328 System Busp.5262.2 Chip-Select Modulep.5263 S1D13708 Host Bus Interfacep.5273.1 Host Bus Interface Pin Mappingp.527Table 31: Host Bus Interface Pin Mappingp.5273.2 Host Bus Interface Signalsp.5284 MC68VZ328 to S1D13708 Interfacep.5294.1 Hardware Descriptionp.529Figure 41: Typical Implementation of MC68VZ328 to S1D13708 Interfacep.5294.2 S1D13708 Hardware Configurationp.530Table 41: Summary of Power-On/Reset Configuration Optionsp.530Table 42: CLKI to BCLK Divide Selectionp.5304.2.1 Register/Memory Mappingp.5314.2.2 MC68VZ328 Chip Select and Pin Configurationp.531Table 43: WS Bit Programmingp.5315 Softwarep.5326 Referencesp.5336.1 Documentsp.5336.2 Document Sourcesp.5337 Technical Supportp.5347.1 EPSON LCD/CRT Controllers (S1D13708)p.5347.2 Motorola MC68VZ328 Processorp.534Interfacing to the Intel StrongARM SA-1110 Microprocessorp.535Document Number: X39A-G-019-01p.535Table of Contentsp.537List of Tablesp.539List of Figuresp.5391 Introductionp.5412 Interfacing to the StrongARM SA-1110 Busp.5422.1 The StrongARM SA-1110 System Busp.5422.1.1 StrongARM SA-1110 Overviewp.5422.1.2 Variable-Latency IO Access Overviewp.5422.1.3 Variable-Latency IO Access Cyclesp.543Figure 21: SA-1110 Variable-Latency IO Read Cyclep.543Figure 22: SA-1110 Variable-Latency IO Write Cyclep.5443 S1D13708 Host Bus Interfacep.5453.1 Host Bus Interface Pin Mappingp.545Table 31: Host Bus Interface Pin Mappingp.5453.2 Host Bus Interface Signal Descriptionsp.5464 StrongARM SA-1110 to S1D13708 Interfacep.5474.1 Hardware Descriptionp.547Figure 41: Typical Implementation of SA-1110 to S1D13708 Interfacep.5474.2 S1D13708 Hardware Configurationp.548Table 41: Summary of Power-On/Reset Configuration Optionsp.548Table 42: CLKI to BCLK Divide Selectionp.5484.3 StrongARM SA-1110 Register Configurationp.549Table 43: RDFx Parameter Value versus CPU Maximum Frequencyp.5494.4 Register/Memory Mappingp.5505 Softwarep.5516 Referencesp.5526.1 Documentsp.5526.2 Document Sourcesp.5527 Technical Supportp.5537.1 EPSON LCD Controllers (S1D13708)p.5537.2 Intel StrongARM SA-1110 Processorp.553Connecting to a Micro-Controller via the Indirect Interfacep.555Table of Contentsp.557List of Tablesp.559List of Figuresp.5591 Introductionp.5612 Interfacing to a Micro-Controllerp.5622.1 The Indirect Interfacep.5623 S1D13708 Host Bus Interfacep.5633.1 Indirect Mode Bus Interface Pin Mappingp.563Table 31: Mode 68 8-Bit Data Host Bus Interface Pin Mappingp.563Table 32: Mode 68 16-Bit Data Host Bus Interface Pin Mappingp.564Table 33: Mode 80 8-Bit Data Host Bus Interface Pin Mappingp.564Table 34: Mode 80 16-Bit Data Host Bus Interface Pin Mappingp.5653.2 Host Bus Interface Signalsp.5664 Micro-Controller to S1D13708 Interfacep.5674.1 Hardware Connectionsp.567Figure 41: Typical Implementation of Micro-Controller to S1D13708 Interfacep.5674.2 S1D13708 Hardware Configurationp.568Table 41: Summary of Power-On/Reset Configuration Optionsp.568Table 42: CLKI to BCLK Divide Selectionp.5684.3 Register/Memory Mappingp.5695 Softwarep.5706 Referencesp.5726.1 Documentsp.5726.2 Document Sourcesp.5727 Technical Supportp.5737.1 EPSON LCD Controllers (S1D13708)p.573
Page 13 of the Epson LCD Controller (S1D13708) user manual — Table of contents
Page 13 · click to enlarge
Page 13

Table of contents

S1D13708 TECHNICAL MANUALp.1COMPREHENSIVE SUPPORT TOOLSp.3Documentationp.3Evaluation/Demonstration Boardp.3Application Engineering Supportp.3Application Engineering Supportp.3S1D13708 Embedded Memory LCD Controller July 2001p.5FEATURESp.5System Block Diagramp.5DESCRIPTIONp.6Memory Interfacep.6CPU Interfacep.6Display Supportp.6Power Down Modesp.6Display Modesp.6Clock Sourcep.6Operating Voltagep.6Packagep.6Hardware Functional Specificationp.7Table of Contentsp.9List of Tablesp.13List of Figuresp.171 Introductionp.211.1 Scopep.211.2 Overview Descriptionp.212 Featuresp.222.1 Integrated Frame Bufferp.222.2 CPU Interfacep.222.3 Display Supportp.222.4 Display Modesp.232.5 Display Featuresp.232.6 Clock Sourcep.232.7 Operating Voltagep.242.8 Miscellaneousp.243 Typical System Implementation Diagramsp.25Figure 31 Typical System Diagram (Generic #1 Bus)p.25Figure 32 Typical System Diagram (Generic #2 Bus)p.25Figure 33 Typical System Diagram (Hitachi SH-4 Bus)p.26Figure 34 Typical System Diagram (Hitachi SH-3 Bus)p.27Figure 35 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000)p.28Figure 36 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030)p.29Figure 37 Typical System Diagram (Motorola REDCAP2 Bus)p.30Figure 38 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus)p.31Figure 39 Typical System Diagram (Indirect Interface, Mode 68)p.31Figure 310 Typical System Diagram (Indirect Interface, Mode 80)p.324 Pinsp.334.1 Pinout Diagram - PFBGA - 120pinp.33Figure 41 Pinout Diagram - PFBGA 120-pinp.33Table 41: PFBGA 120-pin Mappingp.334.2 Pinout Diagram - Die Formp.34Table 42: S1D13708 Pad Layoutp.344.3 Pin Descriptionsp.354.3.1 Host Interfacep.35Table 43: Host Interface Pin Descriptionsp.354.3.2 LCD Interfacep.40Table 44: LCD Interface Pin Descriptionsp.404.3.3 Clock Inputp.43Table 45: Clock Input Pin Descriptionsp.434.3.4 Miscellaneousp.43Table 46: Miscellaneous Pin Descriptionsp.434.3.5 Power And Groundp.43Table 47: Power And Ground Pin Descriptionsp.434.4 Summary of Configuration Optionsp.44Table 48: Summary of Power-On/Reset Optionsp.444.5 Host Bus Interface Pin Mappingp.45Table 49: Host Bus Interface Pin Mappingp.454.6 LCD Interface Pin Mappingp.46Table 410: LCD Interface Pin Mappingp.465 D.C. Characteristicsp.47Table 51: Absolute Maximum Ratings (Preliminary - Subject to Change)p.47Table 52: Recommended Operating Conditionsp.47Table 53: Electrical Characteristics for VDD = 3.3V typicalp.476 A.C. Characteristicsp.486.1 Clock Timingp.486.1.1 Input Clocksp.48Figure 61 Clock Input Requirementsp.48Table 61: Clock Input Requirements for CLKI when CLKI to BCLK divide > 1p.48Table 62: Clock Input Requirements for CLKI when CLKI to BCLK divide = 1p.49Table 63: Clock Input Requirements for CLKI2p.496.1.2 Internal Clocksp.49Table 64: Internal Clock Requirementsp.496.2 CPU Interface Timingp.506.2.1 Generic #1 Interface Timingp.50Figure 62 Generic #1 Interface Timingp.50Table 65: Generic #1 Interface Timingp.516.2.2 Generic #2 Interface Timingp.52Figure 63 Generic #2 Interface Timingp.52Table 66: Generic #2 Interface Timingp.536.2.3 Hitachi SH-4 Interface Timingp.54Figure 64 Hitachi SH-4 Interface Timingp.54Table 67: Hitachi SH-4 Interface Timingp.556.2.4 Hitachi SH-3 Interface Timingp.56Figure 65 Hitachi SH-3 Interface Timingp.56Table 68: Hitachi SH-3 Interface Timingp.576.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000)p.58Figure 66 Motorola MC68K #1 Interface Timingp.58Table 69: Motorola MC68K #1 Interface Timingp.596.2.6 Motorola MC68K #2 Interface Timing (e.g. MC68030)p.60Figure 67 Motorola MC68K #2 Interface Timingp.60Table 610: Motorola MC68K #2 Interface Timingp.616.2.7 Motorola REDCAP2 Interface Timingp.62Figure 68 Motorola REDCAP2 Interface Timingp.62Table 611: Motorola REDCAP2 Interface Timingp.636.2.8 Motorola DragonBall Interface Timing with DTACK (e.g. MC68EZ328/MC68VZ328)p.64Figure 69 Motorola DragonBall Interface with DTACK Timingp.64Table 612: Motorola DragonBall Interface with DTACK Timingp.656.2.9 Motorola DragonBall Interface Timing w/o DTACK (e.g. MC68EZ328/MC68VZ328)p.66Figure 610 Motorola DragonBall Interface without DTACK# Timingp.66Table 613: Motorola DragonBall Interface without DTACK Timingp.676.2.10 Indirect Interface Timing (Mode 68)p.68Figure 611 Indirect Interface Timing (Mode 68)p.68Table 614: Indirect Interface Timing (Mode 68)p.696.2.11 Indirect Interface Timing (Mode 80)p.70Figure 612 Indirect Interface Timing (Mode 80)p.70Table 615: Indirect Interface Timing (Mode 80)p.716.3 LCD Power Sequencingp.726.3.1 Passive/TFT Power-On Sequencep.72Figure 613 Passive/TFT Power-On Sequence Timingp.72Table 616: Passive/TFT Power-On Sequence Timingp.726.3.2 Passive/TFT Power-Off Sequencep.73Figure 614 Passive/TFT Power-Off Sequence Timingp.73Table 617: Passive/TFT Power-Off Sequence Timingp.736.4 Display Interfacep.74Figure 615 Panel Timing Parametersp.74Table 618: Panel Timing Parameter Definition and Register Summaryp.756.4.1 Generic STN Panel Timingp.76Figure 616 Generic STN Panel Timingp.766.4.2 Single Monochrome 4-Bit Panel Timingp.78Figure 617 Single Monochrome 4-Bit Panel Timingp.78Figure 618 Single Monochrome 4-Bit Panel A.C. Timingp.79Table 619: Single Monochrome 4-Bit Panel A.C. Timingp.796.4.3 Single Monochrome 8-Bit Panel Timingp.80Figure 619 Single Monochrome 8-Bit Panel Timingp.80Figure 620 Single Monochrome 8-Bit Panel A.C. Timingp.81Table 620: Single Monochrome 8-Bit Panel A.C. Timingp.816.4.4 Single Color 4-Bit Panel Timingp.82Figure 621 Single Color 4-Bit Panel Timingp.82Figure 622 Single Color 4-Bit Panel A.C. Timingp.83Table 621: Single Color 4-Bit Panel A.C. Timingp.836.4.5 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 623 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 624 Single Color 8-Bit Panel A.C. Timing (Format 1)p.85Table 622: Single Color 8-Bit Panel A.C. Timing (Format 1)p.856.4.6 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 625 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 626 Single Color 8-Bit Panel A.C. Timing (Format 2)p.87Table 623: Single Color 8-Bit Panel A.C. Timing (Format 2)p.876.4.7 Single Color 16-Bit Panel Timingp.88Figure 627 Single Color 16-Bit Panel Timingp.88Figure 628 Single Color 16-Bit Panel A.C. Timingp.89Table 624: Single Color 16-Bit Panel A.C. Timingp.896.4.8 Generic TFT Panel Timingp.90Figure 629 Generic TFT Panel Timingp.906.4.9 9/12/18-Bit TFT Panel Timingp.91Figure 630 18-Bit TFT Panel Timingp.91Figure 631 TFT A.C. Timingp.92Table 625: TFT A.C. Timingp.936.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx)p.94Figure 632 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.94Table 626: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timingp.95Figure 633 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.96Table 627: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.976.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01)p.98Figure 634 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.98Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.99Figure 635 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.99Table 629: 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.996.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR)p.100Figure 636 160x240 Epson D-TFD Panel Horizontal Timingp.100Table 630: 160x240 Epson D-TFD Panel Horizontal Timingp.101Figure 637 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Table 631: 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Figure 638 160x240 Epson D-TFD Panel Vertical Timingp.103Table 632: 160x240 Epson D-TFD Panel Vertical Timingp.1036.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR)p.104Figure 639 320x240 Epson D-TFD Panel Horizontal Timingp.104Table 633: 320x240 Epson D-TFD Panel Horizontal Timingp.105Figure 640 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Table 634: 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Figure 641 320x240 Epson D-TFD Panel Vertical Timingp.107Table 635: 320x240 Epson D-TFD Panel Vertical Timingp.1076.4.14 TFT Type 2 Panel Timingp.108Figure 642 TFT Type 2 Horizontal Timingp.108Table 636: TFT Type 2 Horizontal Timingp.109Figure 643 TFT Type 2 Vertical Timingp.110Table 637: TFT Type 2 Vertical Timingp.1106.4.15 TFT Type 3 Panel Timingp.111Figure 644 TFT Type 3 Horizontal Timingp.111Table 638: TFT Type 3 Horizontal Timingp.112Figure 645 TFT Type 3 Vertical Timingp.113Table 639: TFT Type 3 Vertical Timingp.1146.4.16 TFT Type 4 Panel Timingp.115Figure 646 TFT Type 4 Panel Timingp.115Figure 647 TFT Type 4 A.C. Timingp.116Table 640: TFT Type 4 A.C. Timingp.1177 Clocksp.1187.1 Clock Descriptionsp.1187.1.1 BCLKp.118Table 71: BCLK Clock Selectionp.1187.1.2 MCLKp.118Table 72: MCLK Clock Selectionp.1197.1.3 PCLKp.119Table 73: PCLK Clock Selection p.119Table 74: Relationship between MCLK and PCLKp.1217.1.4 PWMCLKp.121Table 75: PWMCLK Clock Selectionp.1217.2 Clock Selectionp.122Figure 71 Clock Selectionp.1227.3 Clocks versus Functionsp.123Table 76: S1D13708 Internal Clock Requirementsp.1238 Registersp.1248.1 Register Mappingp.1248.2 Register Setp.125Table 81: S1D13708 Register Setp.1258.3 Register Descriptionsp.1278.3.1 Read-Only Configuration Registersp.1278.3.2 Clock Configuration Registersp.128Table 82: MCLK Divide Selectionp.128Table 83: PCLK Divide Selectionp.128Table 84: PCLK Source Selectionp.1298.3.3 Look-Up Table Registersp.1298.3.4 Panel Configuration Registersp.132Table 85: Panel Data Width Selectionp.132Table 86: HRTFT/D-TFD Panel Resolution Selectionp.132Table 87: LCD Panel Type Selectionp.1338.3.5 Display Mode Registersp.139Table 88: Inverse Video Mode Select Optionsp.140Table 89: LCD Bit-per-pixel Selectionp.141Figure 81 Display Data Byte/Word Swapp.142Table 810: SwivelViewTM Mode Select Optionsp.1428.3.6 Picture-in-Picture Plus Registersp.144Table 811: 32-bit Address Increments for Color Depthp.145Table 812: 32-bit Address Increments for Color Depthp.146Table 813: 32-bit Address Increments for Color Depthp.147Table 814: 32-bit Address Increments for Color Depthp.1488.3.7 Miscellaneous Registersp.1498.3.8 General IO Pins Registersp.1518.3.9 Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registersp.156Figure 82 PWM Clock/CV Pulse Block Diagramp.156Table 815: PWM Clock Controlp.156Table 816: CV Pulse Controlp.157Table 817: PWM Clock Divide Select Optionsp.158Table 818: CV Pulse Divide Select Optionsp.158Table 819: PWMOUT Duty Cycle Select Optionsp.1598.3.10 Extended Registersp.160Table 820: Extended Panel Type Selectionp.161Table 821: VCLK Holdp.165Table 822: VCLK Setupp.165Table 823: AP Pulse Widthp.166Table 824: AP Rising Positionp.166Table 825: GPO2 PCLK2 Divide Ratep.170Table 826: GPO1 PCLK1 Divide Ratep.170Table 827: Number of Source Driver ICsp.1769 Frame Rate Calculationp.17710 Display Data Formatsp.178Figure 101 4/8/16 Bit-Per-Pixel Display Data Memory Organizationp.17811 Look-Up Table Architecturep.17911.1 Monochrome Modesp.1791 Bit-per-pixel Monochrome Modep.179Figure 111 1 Bit-per-pixel Monochrome Mode Data Output Pathp.1792 Bit-per-pixel Monochrome Modep.179Figure 112 2 Bit-per-pixel Monochrome Mode Data Output Pathp.1794 Bit-per-pixel Monochrome Modep.180Figure 113 4 Bit-per-pixel Monochrome Mode Data Output Pathp.1808 Bit-per-pixel Monochrome Modep.180Figure 114 8 Bit-per-pixel Monochrome Mode Data Output Pathp.18016 Bit-Per-Pixel Monochrome Modep.18111.2 Color Modesp.1811 Bit-Per-Pixel Colorp.181Figure 115 1 Bit-Per-Pixel Color Mode Data Output Pathp.1812 Bit-Per-Pixel Colorp.182Figure 116 2 Bit-Per-Pixel Color Mode Data Output Pathp.1824 Bit-Per-Pixel Colorp.183Figure 117 4 Bit-Per-Pixel Color Mode Data Output Pathp.1838 Bit-per-pixel Color Modep.184Figure 118 8 Bit-per-pixel Color Mode Data Output Pathp.18416 Bit-Per-Pixel Color Modep.18412 SwivelView™p.18512.1 Conceptp.18512.2 90˚ SwivelView™p.185Figure 121 Relationship Between The Screen Image and the Image Refreshed in 90° SwivelView.p.18512.2.1 Register Programmingp.18612.3 180˚ SwivelView™p.187Figure 122 Relationship Between The Screen Image and the Image Refreshed in 180° SwivelView.p.18712.3.1 Register Programmingp.18712.4 270˚ SwivelView™p.188Figure 123 Relationship Between The Screen Image and the Image Refreshed in 270° SwivelView.p.18812.4.1 Register Programmingp.18913 Picture-in-Picture Plus (PIP+)p.19013.1 Conceptp.190Figure 131 Picture-in-Picture Plus with SwivelView disabledp.19013.2 With SwivelView Enabledp.19113.2.1 SwivelView 90˚p.191Figure 132 Picture-in-Picture Plus with SwivelView 90˚ enabledp.19113.2.2 SwivelView 180˚p.191Figure 133 Picture-in-Picture Plus with SwivelView 180˚ enabledp.19113.2.3 SwivelView 270˚p.192Figure 134 Picture-in-Picture Plus with SwivelView 270˚ enabledp.19214 Ink Layerp.19314.1 Memory Mappingp.193Figure 141 Memory Mapping for Ink Layerp.19314.2 Controlling the Ink Layerp.193Figure 142 Transparent Color Examplep.19414.3 Limitationsp.19415 Indirect Interfacep.19515.1 Mode 68p.196Figure 151 Sample timing of “register write” with Mode 68p.196Figure 152 Sample timing of “register read” with Mode 68p.197Figure 153 Sample timing of “memory write” with Mode 68, Big Endianp.198Figure 154 Sample timing of “memory read” with Mode 68, Big Endianp.200Figure 155 Sample timing of “register write” for Mode 68 when Memory Access Select Enabledp.202Figure 156 Sample timing of “register read” for Mode 68 when Memory Access Select Enabledp.20415.2 Mode 80p.206Figure 157 Sample timing of “register write” with Mode 80p.206Figure 158 Sample timing of “register read” with Mode 80p.208Figure 159 Sample timing of “memory write” with mode 80, little endianp.209Figure 1510 Sample timing of “memory read” with mode 80, Little endianp.211Figure 1511 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabledp.213Figure 1512 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabledp.21515.3 Limitationsp.21616 Embedded Crystal Oscillatorp.21716.1 Oscillator Circuitp.217Figure 161 Recommended Crystal Oscillator Circuitp.21717 Big-Endian Bus Interfacep.21817.1 Byte Swapping Bus Datap.21817.1.1 16 Bpp Color Depthp.219Figure 171 Byte-swapping for 16 Bppp.21917.1.2 1/2/4/8 Bpp Color Depthp.220Figure 172 Byte-swapping for 1/2/4/8 Bppp.22018 Power Save Modep.221Table 181: Power Save Mode Function Summaryp.22119 Mechanical Datap.222Figure 191 Mechanical Data PFBGA 120-pin Packagep.22220 Referencesp.22321 Technical Supportp.224S1D13708 Embedded Memory LCD Controllerp.225Table of Contentsp.227List of Tablesp.229List of Figuresp.2311 Introductionp.2332 Identifying the S1D13708p.2343 Initializationp.2354 Memory Modelsp.2364.1 Memory Organization for One Bit-per-pixel (2 Colors/Gray Shades)p.236Figure 41: Pixel Storage for 1 Bpp in One Byte of Display Bufferp.2364.2 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades)p.236Figure 42: Pixel Storage for 2 Bpp in One Byte of Display Bufferp.2364.3 Memory Organization for Four Bit-per-pixel (16 Colors/Gray Shades)p.237Figure 43: Pixel Storage for 4 Bpp in One Byte of Display Bufferp.2374.4 Memory Organization for 8 Bpp (256 Colors/64 Gray Shades)p.237Figure 44: Pixel Storage for 8 Bpp in One Byte of Display Bufferp.2374.5 Memory Organization for 16 Bpp (65536 Colors/64 Gray Shades)p.238Figure 45: Pixel Storage for 16 Bpp in Two Bytes of Display Bufferp.2385 Look-Up Table (LUT)p.2395.1 Registersp.2395.1.1 Look-Up Table Registersp.2395.2 Look-Up Table Organizationp.242Table 51: Look-Up Table Configurationsp.2425.2.1 Gray Shade Modesp.243Table 52: Suggested LUT Values for 1 Bpp Gray Shadep.243Table 53: Suggested LUT Values for 4 Bpp Gray Shadep.243Table 54: Suggested LUT Values for 4 Bpp Gray Shadep.244Table 55: Suggested LUT Values for 8 Bpp Gray Shadep.2455.2.2 Color Modesp.247Table 56: Suggested LUT Values for 1 bpp Colorp.247Table 57: Suggested LUT Values for 2 bpp Colorp.247Table 58: Suggested LUT Values for 4 bpp Colorp.248Table 59: Suggested LUT Values for 8 bpp Colorp.2496 Power Save Modep.2516.1 Overviewp.2516.2 Registersp.2526.2.1 Power Save Mode Enablep.2526.2.2 Memory Controller Power Save Statusp.2526.3 LCD Power Sequencingp.2536.4 Enabling Power Save Modep.2546.5 Disabling Power Save Modep.2547 SwivelView‘p.2557.1 SwivelView Registersp.255Table 71: SwivelViewTM Mode Select Optionsp.2557.2 Examplesp.2577.3 Limitationsp.2617.3.1 SwivelView 0˚ and 180˚p.2617.3.2 SwivelView 90˚ and 270˚p.2618 Picture-In-Picture Plusp.2628.1 Conceptp.262Figure 81: Picture-in-Picture Plus with SwivelView disabledp.2628.2 Registersp.262Table 81: 32-bit Address Increments for Color Depthp.265Table 82: 32-bit Address Increments for Color Depthp.267Table 83: 32-bit Address Increments for Color Depthp.269Table 84: 32-bit Address Increments for Color Depthp.2708.3 Picture-In-Picture-Plus Examplesp.2728.3.1 SwivelView 0˚ (Landscape Mode)p.272Figure 82: Picture-in-Picture Plus with SwivelView disabledp.2728.3.2 SwivelView 90˚p.275Figure 83: Picture-in-Picture Plus with SwivelView 90˚ enabledp.2758.3.3 SwivelView 180˚p.278Figure 84: Picture-in-Picture Plus with SwivelView 180˚ enabledp.2788.3.4 SwivelView 270˚p.282Figure 85: Picture-in-Picture Plus with SwivelView 270˚ enabledp.2828.4 Limitationsp.2868.4.1 SwivelView 0˚ and 180˚p.2868.4.2 SwivelView 90˚ and 270˚p.2869 Hardware Abstraction Layerp.2879.1 Introductionp.2879.2 API for the HAL Libraryp.287Table 91: HAL Library APIp.2879.2.1 Startup Routinesp.2889.2.2 Memory Accessp.2909.2.3 Register Accessp.2919.2.4 Clock Supportp.2939.2.5 Miscellaneousp.29410 Sample Codep.29611 Sales and Technical Supportp.297S1D13708 Register Summary X39A-R-001-01p.29913708CFG Configuration Programp.303Table of Contentsp.30513708CFGp.307S1D13708 Supported Evaluation Platformsp.307Installationp.307Usagep.30713708CFG Configuration Tabsp.308General Tabp.308Preferences Tabp.310Clocks Tabp.311Panel Tabp.316Panel Power Tabp.320Registers Tabp.32113708CFG Menusp.322Open...p.322Savep.323Save As...p.323Configure Multiplep.323Exportp.325Enable Tooltipsp.326ERD on the Webp.326About 13708CFGp.326Commentsp.32613708PLAY Diagnostic Utilityp.32713708PLAYp.329S1D13708 Supported Evaluation Platformsp.329Installationp.330Usagep.330Commandsp.33113708PLAY Examplep.337Script Filesp.33813708BMP Demonstration Programp.33913708BMPp.341S1D13708 Supported Evaluation Platformsp.341Installationp.341Usagep.34213708BMP Examplesp.342Commentsp.342Wind River WindML v2.0 Display Driversp.343Wind River WindML v2.0 DISPLAY DRIVERSp.345Building a WindML v2.0 Display Driverp.3461. Create a working directory and unzip the WindML display driver into it.p.3462. Configure for the target execution model.p.3463. Build a boot ROM image.p.3464. Create a bootable disk (in drive A:).p.3465. If necessary, generate a new mode0.h configuration file.p.3466. Build the WindML v2.0 library.p.3477. Open the S1D13708 workspace.p.3478. Add support for single line comments.p.347a. In the Tornado “Workspace Views” window, click on the “Builds” tab.p.347b. Expand the “8bpp Builds” (or “16bpp Builds”) view by clicking on the “+” next to it. The expan...p.347c. Select the “C/C++ compiler” tab to display the command switches used in the build. Remove the ...p.3479. Compile the VxWorks image.p.34710. Copy the VxWorks file to the diskette.p.34711. Start the VxWorks demo.p.347Linux Console Driverp.349Linux Console Driverp.351Building the Console Driver for Linux Kernel 2.2.xp.3521. Acquire the Linux kernel source code.p.3522. Unzip the console driver files.p.3523. Copy the console driver files to the build directory.p.3524. Modify s1d13708.hp.3535. Configure the video options.p.3536. Compile and install the kernel.p.3537. Boot to the Linux operating system.p.354Building the Console Driver for Linux Kernel 2.4.xp.3551. Acquire the Linux kernel source code.p.3552. Unzip the console driver files.p.3553. Copy the console driver files to the build directory. Make the directory /usr/src/linux/driver...p.3554. Modify s1d13708.hp.3565. Configure the video options.p.3566. Compile and install the kernelp.3577. Boot to the Linux operating systemp.357QNX Photon v2.0 Display Driverp.359QNX Photon v2.0 Display Driverp.361Building the Photon v2.0 Display Driverp.362Unpack the Graphics Driver Development Kit Archivep.362Configure the Driverp.362Build the Driverp.362Installing the Driverp.363Run the Driverp.363Commentsp.364Windows® CE 3.x Display Driversp.365WINDOWS® CE 3.0 DISPLAY DRIVERp.367Example Driver Buildsp.368Installation for CEPC Environmentp.372Configurationp.373Compile Switchesp.373Mode Filep.374Resource Management Issuesp.375Commentsp.378Power Consumptionp.3791 S1D13708 Power Consumptionp.3811.1 Conditionsp.382Table 11: S1D13708 Power Consumptionp.3822 Summaryp.383Interfacing to the NEC VR4102 / VR4111 Microprocessorsp.385Table of Contentsp.387List of Tablesp.389List of Figuresp.3891 Introductionp.3912 Interfacing to the NEC VR4102/VR4111p.3922.1 The NEC VR41XX System Busp.3922.1.1 Overviewp.3922.1.2 LCD Memory Access Cyclesp.393Figure 21: NEC VR4102/VR4111 Read/Write Cyclesp.3933 S1D13708 Host Bus Interfacep.3943.1 Host Bus Interface Pin Mappingp.394Table 31: Host Bus Interface Pin Mappingp.3943.2 Host Bus Interface Signalsp.3954 VR4102/VR4111 to S1D13708 Interfacep.3964.1 Hardware Descriptionp.396Figure 41: Typical Implementation of VR4102/VR4111 to S1D13708 Interfacep.3964.2 S1D13708 Hardware Configurationp.397Table 41: Summary of Power-On/Reset Configuration Optionsp.397Table 42: CLKI to BCLK Divide Selectionp.3974.3 NEC VR4102/VR4111 Configurationp.3985 Softwarep.3996 Referencesp.4006.1 Documentsp.4006.2 Document Sourcesp.4007 Technical Supportp.4017.1 Epson LCD Controllers (S1D13708)p.4017.2 NEC Electronics Inc.p.401Interfacing to the NEC VR4181A™ Microprocessorp.403Table of Contentsp.405List of Tablesp.407List of Figuresp.4071 Introductionp.4092 Interfacing to the NEC VR4181Ap.4102.1 The NEC VR4181A System Busp.4102.1.1 Overviewp.4102.1.2 LCD Memory Access Signalsp.4113 S1D13708 Host Bus Interfacep.4123.1 Host Bus Interface Pin Mappingp.412Table 31: Host Bus Interface Pin Mappingp.4123.2 Host Bus Interface Signalsp.4134 VR4181A to S1D13708 Interfacep.4144.1 Hardware Descriptionp.414Figure 41: Typical Implementation of VR4181A to S1D13708 Interfacep.4144.2 S1D13708 Hardware Configurationp.415Table 41: Summary of Power-On/Reset Configuration Optionsp.415Table 42: CLKI to BCLK Divide Selectionp.4154.3 NEC VR4181A Configurationp.4165 Softwarep.4176 Referencesp.4186.1 Documentsp.4186.2 Document Sourcesp.4187 Technical Supportp.4197.1 Epson LCD Controllers (S1D13708)p.4197.2 NEC Electronics Inc.p.419Interfacing to the Motorola MPC821 Microprocessorp.421Document Number: X39A-G-009-01p.421Table of Contentsp.423List of Tablesp.425List of Figuresp.4251 Introductionp.4272 Interfacing to the MPC821p.4282.1 The MPC8XX System Busp.4282.2 MPC8XX Bus Overviewp.4282.2.1 Normal (Non-Burst) Bus Transactionsp.429Figure 21: Power PC Memory Read Cyclep.429Figure 22: Power PC Memory Write Cyclep.4302.2.2 Burst Cyclesp.4302.3 Memory Controller Modulep.4312.3.1 General-Purpose Chip Select Module (GPCM)p.431Figure 23: GPCM Memory Devices Timingp.4322.3.2 User-Programmable Machine (UPM)p.4323 S1D13708 Host Bus Interfacep.4333.1 Host Bus Interface Pin Mappingp.433Table 31: Host Bus Interface Pin Mappingp.4333.2 Host Bus Interface Signalsp.4344 MPC821 to S1D13708 Interfacep.4354.1 Hardware Descriptionp.435Figure 41: Typical Implementation of MPC821 to S1D13708 Interfacep.4354.2 MPC821ADS Evaluation Board Hardware Connectionsp.436Table 41: List of Connections from MPC821ADS to S1D13708 p.4364.3 S1D13708 Hardware Configurationp.438Table 42: Summary of Power-On/Reset Configuration Optionsp.438Table 43: CLKI to BCLK Divide Selectionp.4384.4 Register/Memory Mappingp.4384.5 MPC821 Chip Select Configurationp.4394.6 Test Softwarep.4405 Softwarep.4416 Referencesp.4426.1 Documentsp.4426.2 Document Sourcesp.4427 Technical Supportp.4437.1 EPSON LCD/CRT Controllers (S1D13708)p.4437.2 Motorola MPC821 Processorp.443Interfacing to the Motorola MCF5307 "ColdFire" Microprocessorp.445Table of Contentsp.447List of Tablesp.449List of Figuresp.4491 Introductionp.4512 Interfacing to the MCF5307p.4522.1 The MCF5307 System Busp.4522.1.1 Overviewp.4522.1.2 Normal (Non-Burst) Bus Transactionsp.452Figure 21: MCF5307 Memory Read Cyclep.453Figure 22: MCF5307 Memory Write Cyclep.4532.1.3 Burst Cyclesp.4532.2 Chip-Select Modulep.454Figure 23: Chip Select Module Outputs Timingp.4543 S1D13708 Host Bus Interfacep.4553.1 Host Bus Interface Pin Mappingp.455Table 31: Host Bus Interface Pin Mappingp.4553.2 Host Bus Interface Signalsp.4564 MCF5307 To S1D13708 Interfacep.4574.1 Hardware Descriptionp.457Figure 41: Typical Implementation of MCF5307 to S1D13708 Interfacep.4574.2 S1D13708 Hardware Configurationp.458Table 41: Summary of Power-On/Reset Configuration Optionsp.458Table 42: CLKI to BCLK Divide Selectionp.4584.3 Register/Memory Mappingp.4594.4 MCF5307 Chip Select Configurationp.4595 Softwarep.4606 Referencesp.4616.1 Documentsp.4616.2 Document Sourcesp.4617 Technical Supportp.4627.1 EPSON LCD Controllers (S1D13708)p.4627.2 Motorola MCF5307 Processorp.462Connecting to the Sharp HR-TFT Panelsp.463Table of Contentsp.465List of Tablesp.467List of Figuresp.4671 Introductionp.4692 Connecting to the Sharp LQ039Q2DS01 HR-TFTp.4702.1 External Power Suppliesp.4702.1.1 Gray Scale Voltages for Gamma Correctionp.470Figure 21: Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generationp.4702.1.2 Digital/Analog Power Suppliesp.4712.1.3 DC Gate Driver Power Suppliesp.471Figure 22: Panel Gate Driver DC Power Suppliesp.4712.1.4 AC Gate Driver Power Suppliesp.472Figure 23: Panel Gate Driver AC Power Suppliesp.4722.2 HR-TFT MOD Signalp.473Figure 24: HR-TFT Power-On/Off Sequence Timingp.473Table 21: HR-TFT Power-On/Off Sequence Timingp.4732.3 S1D13708 to LQ039Q2DS01 Pin Mappingp.474Table 22: S1D13708 to LQ039Q2DS01 Pin Mappingp.4743 Connecting to the Sharp LQ031B1DDxx HR-TFTp.4763.1 External Power Suppliesp.4763.1.1 Gray Scale Voltages for Gamma Correctionp.476Figure 31: Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generationp.4763.1.2 Digital/Analog Power Suppliesp.4773.1.3 DC Gate Driver Power Suppliesp.4773.1.4 AC Gate Driver Power Suppliesp.4773.2 HR-TFT MOD Signalp.4773.3 S1D13708 to LQ031B1DDxx Pin Mappingp.478Table 31: S1D13708 to LQ031B1DDxx Pin Mappingp.4784 Test Softwarep.4805 Referencesp.4815.1 Documentsp.4815.2 Document Sourcesp.4816 Technical Supportp.4826.1 EPSON LCD Controllers (S1D13708)p.4826.2 Sharp HR-TFT Panelp.482Interfacing to the Motorola RedCap2p.483Table of Contentsp.485List of Tablesp.487List of Figuresp.4871 Introductionp.4892 Interfacing to the REDCAP2p.4902.1 The REDCAP2 System Busp.4902.2 Overviewp.4902.3 Bus Transactionsp.490Figure 21: REDCAP2 Memory Read Cyclep.491Figure 22: REDCAP2 Memory Write Cyclep.4913 S1D13708 Host Bus Interfacep.4923.1 Host Bus Interface Pin Mappingp.492Table 31: Host Bus Interface Pin Mappingp.4923.2 Host Bus Interface Signalsp.4934 REDCAP2 to S1D13708 Interfacep.4944.1 Hardware Descriptionp.494Figure 41: Typical Implementation of REDCAP2 to S1D13708 Interfacep.4944.2 Hardware Connectionsp.495Table 41: List of Connections for REDCAP2 ADMp.4954.3 S1D13708 Hardware Configurationp.497Table 42: Summary of Power-On/Reset Optionsp.4974.4 Register/Memory Mappingp.4974.5 REDCAP2 Chip Select Configurationp.4985 Softwarep.4996 Referencesp.5006.1 Documentsp.5006.2 Document Sourcesp.5007 Technical Supportp.5017.1 EPSON LCD/CRT Controllers (S1D13708)p.5017.2 Motorola REDCAP2 Processorp.501Interfacing to 8-bit Processorsp.503Table of Contentsp.505List of Tablesp.507List of Figuresp.5071 Introductionp.5092 Interfacing to an 8-bit Processorp.5102.1 The Generic 8-bit Processor System Busp.5103 S1D13708 Host Bus Interfacep.5113.1 Host Bus Interface Pin Mappingp.511Table 31: Host Bus Interface Pin Mappingp.5113.2 Host Bus Interface Signalsp.5124 8-Bit Processor to S1D13708 Interfacep.5134.1 Hardware Connectionsp.513Figure 41: Typical Implementation of 8-bit Processor to S1D13708 Interfacep.5134.2 S1D13708 Hardware Configurationp.514Table 41: Summary of Power-On/Reset Configuration Optionsp.514Table 42: CLKI to BCLK Divide Selectionp.5144.3 Register/Memory Mappingp.5145 Softwarep.5156 Referencesp.5166.1 Documentsp.5166.2 Document Sourcesp.5167 Technical Supportp.5177.1 EPSON LCD Controllers (S1D13708)p.517Interfacing to the Motorola MC68VZ328 Dragonball Microprocessorp.519Document Number: X39A-G-016-01p.519Table of Contentsp.521List of Tablesp.523List of Figuresp.5231 Introductionp.5252 Interfacing to the MC68VZ328p.5262.1 The MC68VZ328 System Busp.5262.2 Chip-Select Modulep.5263 S1D13708 Host Bus Interfacep.5273.1 Host Bus Interface Pin Mappingp.527Table 31: Host Bus Interface Pin Mappingp.5273.2 Host Bus Interface Signalsp.5284 MC68VZ328 to S1D13708 Interfacep.5294.1 Hardware Descriptionp.529Figure 41: Typical Implementation of MC68VZ328 to S1D13708 Interfacep.5294.2 S1D13708 Hardware Configurationp.530Table 41: Summary of Power-On/Reset Configuration Optionsp.530Table 42: CLKI to BCLK Divide Selectionp.5304.2.1 Register/Memory Mappingp.5314.2.2 MC68VZ328 Chip Select and Pin Configurationp.531Table 43: WS Bit Programmingp.5315 Softwarep.5326 Referencesp.5336.1 Documentsp.5336.2 Document Sourcesp.5337 Technical Supportp.5347.1 EPSON LCD/CRT Controllers (S1D13708)p.5347.2 Motorola MC68VZ328 Processorp.534Interfacing to the Intel StrongARM SA-1110 Microprocessorp.535Document Number: X39A-G-019-01p.535Table of Contentsp.537List of Tablesp.539List of Figuresp.5391 Introductionp.5412 Interfacing to the StrongARM SA-1110 Busp.5422.1 The StrongARM SA-1110 System Busp.5422.1.1 StrongARM SA-1110 Overviewp.5422.1.2 Variable-Latency IO Access Overviewp.5422.1.3 Variable-Latency IO Access Cyclesp.543Figure 21: SA-1110 Variable-Latency IO Read Cyclep.543Figure 22: SA-1110 Variable-Latency IO Write Cyclep.5443 S1D13708 Host Bus Interfacep.5453.1 Host Bus Interface Pin Mappingp.545Table 31: Host Bus Interface Pin Mappingp.5453.2 Host Bus Interface Signal Descriptionsp.5464 StrongARM SA-1110 to S1D13708 Interfacep.5474.1 Hardware Descriptionp.547Figure 41: Typical Implementation of SA-1110 to S1D13708 Interfacep.5474.2 S1D13708 Hardware Configurationp.548Table 41: Summary of Power-On/Reset Configuration Optionsp.548Table 42: CLKI to BCLK Divide Selectionp.5484.3 StrongARM SA-1110 Register Configurationp.549Table 43: RDFx Parameter Value versus CPU Maximum Frequencyp.5494.4 Register/Memory Mappingp.5505 Softwarep.5516 Referencesp.5526.1 Documentsp.5526.2 Document Sourcesp.5527 Technical Supportp.5537.1 EPSON LCD Controllers (S1D13708)p.5537.2 Intel StrongARM SA-1110 Processorp.553Connecting to a Micro-Controller via the Indirect Interfacep.555Table of Contentsp.557List of Tablesp.559List of Figuresp.5591 Introductionp.5612 Interfacing to a Micro-Controllerp.5622.1 The Indirect Interfacep.5623 S1D13708 Host Bus Interfacep.5633.1 Indirect Mode Bus Interface Pin Mappingp.563Table 31: Mode 68 8-Bit Data Host Bus Interface Pin Mappingp.563Table 32: Mode 68 16-Bit Data Host Bus Interface Pin Mappingp.564Table 33: Mode 80 8-Bit Data Host Bus Interface Pin Mappingp.564Table 34: Mode 80 16-Bit Data Host Bus Interface Pin Mappingp.5653.2 Host Bus Interface Signalsp.5664 Micro-Controller to S1D13708 Interfacep.5674.1 Hardware Connectionsp.567Figure 41: Typical Implementation of Micro-Controller to S1D13708 Interfacep.5674.2 S1D13708 Hardware Configurationp.568Table 41: Summary of Power-On/Reset Configuration Optionsp.568Table 42: CLKI to BCLK Divide Selectionp.5684.3 Register/Memory Mappingp.5695 Softwarep.5706 Referencesp.5726.1 Documentsp.5726.2 Document Sourcesp.5727 Technical Supportp.5737.1 EPSON LCD Controllers (S1D13708)p.573
Page 14 of the Epson LCD Controller (S1D13708) user manual — List of Tables
Page 14 · click to enlarge
Page 14

Table 6-25: TFT A.C. Timing 87 Table 6-26: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timing 89 Table 6-27: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing 91 Table 6-28: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing 93 Table 6-29: 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timing 93 Table 6-30: 160x240 Epson D-TFD Panel Horizontal Timing 95 Table 6-31: 160x240 Epson D-TFD Panel GCP Horizontal Timing 96 Table 6-32: 160x240 Epson D-TFD Panel Vertical Timing 97 Table 6-33: 320x240 Epson D-TFD Panel Horizontal Timing 99 Table 6-34: 320x240 Epson D-TFD Panel GCP Horizontal Timing 100 Table 6-35: 320x240 Epson D-TFD Panel Vertical Timing 101 Table 6-36: TFT Type 2 Horizontal Timing 103 Table 6-37: TFT Type 2 Vertical Timing 104 Table 6-38: TFT Type 3 Horizontal Timing 106 Table 6-39: TFT Type 3 Vertical Timing 108 Table 6-40: TFT Type 4 A.C. Timing 111 Table 7-1: BCLK Clock Selection 112 Table 7-2: MCLK Clock Selection 113 Table 7-3: PCLK Clock Selection 113 Table 7-4: Relationship between MCLK and PCLK 115 Table 7-5: PWMCLK Clock Selection 115 Table 7-6: S1D13708 Internal Clock Requirements 117 Table 8-1: S1D13708 Register Set 119 Table 8-2: MCLK Divide Selection 122 Table 8-3: PCLK Divide Selection 122 Table 8-4: PCLK Source Selection 123 Table 8-5: Panel Data Width Selection 126 Table 8-6: HRTFT/D-TFD Panel Resolution Selection 126 Table 8-7: LCD Panel Type Selection 127 Table 8-8: Inverse Video Mode Select Options 134 Table 8-9: LCD Bit-per-pixel Selection 135 Table 8-10: SwivelViewTM Mode Select Options 136 Table 8-11: 32-bit Address Increments for Color Depth 139 Table 8-12: 32-bit Address Increments for Color Depth 140 Table 8-13: 32-bit Address Increments for Color Depth 141 Table 8-14: 32-bit Address Increments for Color Depth 142 Table 8-15: PWM Clock Control 150 Table 8-16: CV Pulse Control 151 Table 8-17: PWM Clock Divide Select Options 152 Table 8-18: CV Pulse Divide Select Options 152

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 15 of the Epson LCD Controller (S1D13708) user manual — List of Tables
Page 15 · click to enlarge
Page 15

Table 8-19: PWMOUT Duty Cycle Select Options 153 Table 8-20: Extended Panel Type Selection 155 Table 8-21: VCLK Hold 159 Table 8-22: VCLK Setup 159 Table 8-23: AP Pulse Width 160 Table 8-24: AP Rising Position 160 Table 8-25: GPO2 PCLK2 Divide Rate 164 Table 8-26: GPO1 PCLK1 Divide Rate 164 Table 8-27: Number of Source Driver ICs 170 Table 18-1: Power Save Mode Function Summary 214

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 16 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 16 · click to enlarge
Page 16

THIS PAGE LEFT BLANK

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 17 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 17 · click to enlarge
Page 17

List of Figures

Figure 3-1 Typical System Diagram (Generic #1 Bus) 19 Figure 3-2 Typical System Diagram (Generic #2 Bus) 19 Figure 3-3 Typical System Diagram (Hitachi SH-4 Bus) 20 Figure 3-4 Typical System Diagram (Hitachi SH-3 Bus) 21 Figure 3-5 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000) 22 Figure 3-6 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030) 23 Figure 3-7 Typical System Diagram (Motorola REDCAP2 Bus) 24 Figure 3-8 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus) . . .25 Figure 3-9 Typical System Diagram (Indirect Interface, Mode 68) 25 Figure 3-10 Typical System Diagram (Indirect Interface, Mode 80) 26 Figure 4-1 Pinout Diagram - PFBGA 120-pin 27 Figure 6-1 Clock Input Requirements 42 Figure 6-2 Generic #1 Interface Timing 44 Figure 6-3 Generic #2 Interface Timing 46 Figure 6-4 Hitachi SH-4 Interface Timing 48 Figure 6-5 Hitachi SH-3 Interface Timing 50 Figure 6-6 Motorola MC68K #1 Interface Timing 52 Figure 6-7 Motorola MC68K #2 Interface Timing 54 Figure 6-8 Motorola REDCAP2 Interface Timing 56 Figure 6-9 Motorola DragonBall Interface with DTACK Timing 58 Figure 6-10 Motorola DragonBall Interface without DTACK# Timing 60 Figure 6-11 Indirect Interface Timing (Mode 68) 62 Figure 6-12 Indirect Interface Timing (Mode 80) 64 Figure 6-13 Passive/TFT Power-On Sequence Timing 66 Figure 6-14 Passive/TFT Power-Off Sequence Timing 67 Figure 6-15 Panel Timing Parameters 68 Figure 6-16 Generic STN Panel Timing 70 Figure 6-17 Single Monochrome 4-Bit Panel Timing 72 Figure 6-18 Single Monochrome 4-Bit Panel A.C. Timing 73 Figure 6-19 Single Monochrome 8-Bit Panel Timing 74 Figure 6-20 Single Monochrome 8-Bit Panel A.C. Timing 75 Figure 6-21 Single Color 4-Bit Panel Timing 76 Figure 6-22 Single Color 4-Bit Panel A.C. Timing 77 Figure 6-23 Single Color 8-Bit Panel Timing (Format 1) 78 Figure 6-24 Single Color 8-Bit Panel A.C. Timing (Format 1) 79 Figure 6-25 Single Color 8-Bit Panel Timing (Format 2) 80 Figure 6-26 Single Color 8-Bit Panel A.C. Timing (Format 2) 81

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 18 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 18 · click to enlarge
Page 18

Figure 6-27 Single Color 16-Bit Panel Timing 82 Figure 6-28 Single Color 16-Bit Panel A.C. Timing 83 Figure 6-29 Generic TFT Panel Timing 84 Figure 6-30 18-Bit TFT Panel Timing 85 Figure 6-31 TFT A.C. Timing 86 Figure 6-32 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing 88 Figure 6-33 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing 90 Figure 6-34 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing 92 Figure 6-35 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timing 93 Figure 6-36 160x240 Epson D-TFD Panel Horizontal Timing 94 Figure 6-37 160x240 Epson D-TFD Panel GCP Horizontal Timing 96 Figure 6-38 160x240 Epson D-TFD Panel Vertical Timing 97 Figure 6-39 320x240 Epson D-TFD Panel Horizontal Timing 98 Figure 6-40 320x240 Epson D-TFD Panel GCP Horizontal Timing 100 Figure 6-41 320x240 Epson D-TFD Panel Vertical Timing 101 Figure 6-42 TFT Type 2 Horizontal Timing 102 Figure 6-43 TFT Type 2 Vertical Timing 104 Figure 6-44 TFT Type 3 Horizontal Timing 105 Figure 6-45 TFT Type 3 Vertical Timing 107 Figure 6-46 TFT Type 4 Panel Timing 109 Figure 6-47 TFT Type 4 A.C. Timing 110 Figure 7-1 Clock Selection 116 Figure 8-1 Display Data Byte/Word Swap 136 Figure 8-2 PWM Clock/CV Pulse Block Diagram 150 Figure 10-1 4/8/16 Bit-Per-Pixel Display Data Memory Organization 172 Figure 11-1 1 Bit-per-pixel Monochrome Mode Data Output Path 173 Figure 11-2 2 Bit-per-pixel Monochrome Mode Data Output Path 173 Figure 11-3 4 Bit-per-pixel Monochrome Mode Data Output Path 174 Figure 11-4 8 Bit-per-pixel Monochrome Mode Data Output Path 174 Figure 11-5 1 Bit-Per-Pixel Color Mode Data Output Path 175 Figure 11-6 2 Bit-Per-Pixel Color Mode Data Output Path 176 Figure 11-7 4 Bit-Per-Pixel Color Mode Data Output Path 177 Figure 11-8 8 Bit-per-pixel Color Mode Data Output Path 178 Figure 12-1 Relationship Between The Screen Image and the Image Refreshed in 90× SwivelView. 179 Figure 12-2 Relationship Between The Screen Image and the Image Refreshed in 180× SwivelView.181 Figure 12-3 Relationship Between The Screen Image and the Image Refreshed in 270× SwivelView.182 Figure 13-1 Picture-in-Picture Plus with SwivelView disabled 184 Figure 13-2 Picture-in-Picture Plus with SwivelView 90° enabled 185 Figure 13-3 Picture-in-Picture Plus with SwivelView 180° enabled 185 Figure 13-4 Picture-in-Picture Plus with SwivelView 270° enabled 186

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 19 of the Epson LCD Controller (S1D13708) user manual — Table of contents
Page 19 · click to enlarge
Page 19

Table of contents

S1D13708 TECHNICAL MANUALp.1COMPREHENSIVE SUPPORT TOOLSp.3Documentationp.3Evaluation/Demonstration Boardp.3Application Engineering Supportp.3Application Engineering Supportp.3S1D13708 Embedded Memory LCD Controller July 2001p.5FEATURESp.5System Block Diagramp.5DESCRIPTIONp.6Memory Interfacep.6CPU Interfacep.6Display Supportp.6Power Down Modesp.6Display Modesp.6Clock Sourcep.6Operating Voltagep.6Packagep.6Hardware Functional Specificationp.7Table of Contentsp.9List of Tablesp.13List of Figuresp.171 Introductionp.211.1 Scopep.211.2 Overview Descriptionp.212 Featuresp.222.1 Integrated Frame Bufferp.222.2 CPU Interfacep.222.3 Display Supportp.222.4 Display Modesp.232.5 Display Featuresp.232.6 Clock Sourcep.232.7 Operating Voltagep.242.8 Miscellaneousp.243 Typical System Implementation Diagramsp.25Figure 31 Typical System Diagram (Generic #1 Bus)p.25Figure 32 Typical System Diagram (Generic #2 Bus)p.25Figure 33 Typical System Diagram (Hitachi SH-4 Bus)p.26Figure 34 Typical System Diagram (Hitachi SH-3 Bus)p.27Figure 35 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000)p.28Figure 36 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030)p.29Figure 37 Typical System Diagram (Motorola REDCAP2 Bus)p.30Figure 38 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus)p.31Figure 39 Typical System Diagram (Indirect Interface, Mode 68)p.31Figure 310 Typical System Diagram (Indirect Interface, Mode 80)p.324 Pinsp.334.1 Pinout Diagram - PFBGA - 120pinp.33Figure 41 Pinout Diagram - PFBGA 120-pinp.33Table 41: PFBGA 120-pin Mappingp.334.2 Pinout Diagram - Die Formp.34Table 42: S1D13708 Pad Layoutp.344.3 Pin Descriptionsp.354.3.1 Host Interfacep.35Table 43: Host Interface Pin Descriptionsp.354.3.2 LCD Interfacep.40Table 44: LCD Interface Pin Descriptionsp.404.3.3 Clock Inputp.43Table 45: Clock Input Pin Descriptionsp.434.3.4 Miscellaneousp.43Table 46: Miscellaneous Pin Descriptionsp.434.3.5 Power And Groundp.43Table 47: Power And Ground Pin Descriptionsp.434.4 Summary of Configuration Optionsp.44Table 48: Summary of Power-On/Reset Optionsp.444.5 Host Bus Interface Pin Mappingp.45Table 49: Host Bus Interface Pin Mappingp.454.6 LCD Interface Pin Mappingp.46Table 410: LCD Interface Pin Mappingp.465 D.C. Characteristicsp.47Table 51: Absolute Maximum Ratings (Preliminary - Subject to Change)p.47Table 52: Recommended Operating Conditionsp.47Table 53: Electrical Characteristics for VDD = 3.3V typicalp.476 A.C. Characteristicsp.486.1 Clock Timingp.486.1.1 Input Clocksp.48Figure 61 Clock Input Requirementsp.48Table 61: Clock Input Requirements for CLKI when CLKI to BCLK divide > 1p.48Table 62: Clock Input Requirements for CLKI when CLKI to BCLK divide = 1p.49Table 63: Clock Input Requirements for CLKI2p.496.1.2 Internal Clocksp.49Table 64: Internal Clock Requirementsp.496.2 CPU Interface Timingp.506.2.1 Generic #1 Interface Timingp.50Figure 62 Generic #1 Interface Timingp.50Table 65: Generic #1 Interface Timingp.516.2.2 Generic #2 Interface Timingp.52Figure 63 Generic #2 Interface Timingp.52Table 66: Generic #2 Interface Timingp.536.2.3 Hitachi SH-4 Interface Timingp.54Figure 64 Hitachi SH-4 Interface Timingp.54Table 67: Hitachi SH-4 Interface Timingp.556.2.4 Hitachi SH-3 Interface Timingp.56Figure 65 Hitachi SH-3 Interface Timingp.56Table 68: Hitachi SH-3 Interface Timingp.576.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000)p.58Figure 66 Motorola MC68K #1 Interface Timingp.58Table 69: Motorola MC68K #1 Interface Timingp.596.2.6 Motorola MC68K #2 Interface Timing (e.g. MC68030)p.60Figure 67 Motorola MC68K #2 Interface Timingp.60Table 610: Motorola MC68K #2 Interface Timingp.616.2.7 Motorola REDCAP2 Interface Timingp.62Figure 68 Motorola REDCAP2 Interface Timingp.62Table 611: Motorola REDCAP2 Interface Timingp.636.2.8 Motorola DragonBall Interface Timing with DTACK (e.g. MC68EZ328/MC68VZ328)p.64Figure 69 Motorola DragonBall Interface with DTACK Timingp.64Table 612: Motorola DragonBall Interface with DTACK Timingp.656.2.9 Motorola DragonBall Interface Timing w/o DTACK (e.g. MC68EZ328/MC68VZ328)p.66Figure 610 Motorola DragonBall Interface without DTACK# Timingp.66Table 613: Motorola DragonBall Interface without DTACK Timingp.676.2.10 Indirect Interface Timing (Mode 68)p.68Figure 611 Indirect Interface Timing (Mode 68)p.68Table 614: Indirect Interface Timing (Mode 68)p.696.2.11 Indirect Interface Timing (Mode 80)p.70Figure 612 Indirect Interface Timing (Mode 80)p.70Table 615: Indirect Interface Timing (Mode 80)p.716.3 LCD Power Sequencingp.726.3.1 Passive/TFT Power-On Sequencep.72Figure 613 Passive/TFT Power-On Sequence Timingp.72Table 616: Passive/TFT Power-On Sequence Timingp.726.3.2 Passive/TFT Power-Off Sequencep.73Figure 614 Passive/TFT Power-Off Sequence Timingp.73Table 617: Passive/TFT Power-Off Sequence Timingp.736.4 Display Interfacep.74Figure 615 Panel Timing Parametersp.74Table 618: Panel Timing Parameter Definition and Register Summaryp.756.4.1 Generic STN Panel Timingp.76Figure 616 Generic STN Panel Timingp.766.4.2 Single Monochrome 4-Bit Panel Timingp.78Figure 617 Single Monochrome 4-Bit Panel Timingp.78Figure 618 Single Monochrome 4-Bit Panel A.C. Timingp.79Table 619: Single Monochrome 4-Bit Panel A.C. Timingp.796.4.3 Single Monochrome 8-Bit Panel Timingp.80Figure 619 Single Monochrome 8-Bit Panel Timingp.80Figure 620 Single Monochrome 8-Bit Panel A.C. Timingp.81Table 620: Single Monochrome 8-Bit Panel A.C. Timingp.816.4.4 Single Color 4-Bit Panel Timingp.82Figure 621 Single Color 4-Bit Panel Timingp.82Figure 622 Single Color 4-Bit Panel A.C. Timingp.83Table 621: Single Color 4-Bit Panel A.C. Timingp.836.4.5 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 623 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 624 Single Color 8-Bit Panel A.C. Timing (Format 1)p.85Table 622: Single Color 8-Bit Panel A.C. Timing (Format 1)p.856.4.6 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 625 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 626 Single Color 8-Bit Panel A.C. Timing (Format 2)p.87Table 623: Single Color 8-Bit Panel A.C. Timing (Format 2)p.876.4.7 Single Color 16-Bit Panel Timingp.88Figure 627 Single Color 16-Bit Panel Timingp.88Figure 628 Single Color 16-Bit Panel A.C. Timingp.89Table 624: Single Color 16-Bit Panel A.C. Timingp.896.4.8 Generic TFT Panel Timingp.90Figure 629 Generic TFT Panel Timingp.906.4.9 9/12/18-Bit TFT Panel Timingp.91Figure 630 18-Bit TFT Panel Timingp.91Figure 631 TFT A.C. Timingp.92Table 625: TFT A.C. Timingp.936.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx)p.94Figure 632 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.94Table 626: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timingp.95Figure 633 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.96Table 627: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.976.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01)p.98Figure 634 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.98Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.99Figure 635 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.99Table 629: 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.996.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR)p.100Figure 636 160x240 Epson D-TFD Panel Horizontal Timingp.100Table 630: 160x240 Epson D-TFD Panel Horizontal Timingp.101Figure 637 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Table 631: 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Figure 638 160x240 Epson D-TFD Panel Vertical Timingp.103Table 632: 160x240 Epson D-TFD Panel Vertical Timingp.1036.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR)p.104Figure 639 320x240 Epson D-TFD Panel Horizontal Timingp.104Table 633: 320x240 Epson D-TFD Panel Horizontal Timingp.105Figure 640 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Table 634: 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Figure 641 320x240 Epson D-TFD Panel Vertical Timingp.107Table 635: 320x240 Epson D-TFD Panel Vertical Timingp.1076.4.14 TFT Type 2 Panel Timingp.108Figure 642 TFT Type 2 Horizontal Timingp.108Table 636: TFT Type 2 Horizontal Timingp.109Figure 643 TFT Type 2 Vertical Timingp.110Table 637: TFT Type 2 Vertical Timingp.1106.4.15 TFT Type 3 Panel Timingp.111Figure 644 TFT Type 3 Horizontal Timingp.111Table 638: TFT Type 3 Horizontal Timingp.112Figure 645 TFT Type 3 Vertical Timingp.113Table 639: TFT Type 3 Vertical Timingp.1146.4.16 TFT Type 4 Panel Timingp.115Figure 646 TFT Type 4 Panel Timingp.115Figure 647 TFT Type 4 A.C. Timingp.116Table 640: TFT Type 4 A.C. Timingp.1177 Clocksp.1187.1 Clock Descriptionsp.1187.1.1 BCLKp.118Table 71: BCLK Clock Selectionp.1187.1.2 MCLKp.118Table 72: MCLK Clock Selectionp.1197.1.3 PCLKp.119Table 73: PCLK Clock Selection p.119Table 74: Relationship between MCLK and PCLKp.1217.1.4 PWMCLKp.121Table 75: PWMCLK Clock Selectionp.1217.2 Clock Selectionp.122Figure 71 Clock Selectionp.1227.3 Clocks versus Functionsp.123Table 76: S1D13708 Internal Clock Requirementsp.1238 Registersp.1248.1 Register Mappingp.1248.2 Register Setp.125Table 81: S1D13708 Register Setp.1258.3 Register Descriptionsp.1278.3.1 Read-Only Configuration Registersp.1278.3.2 Clock Configuration Registersp.128Table 82: MCLK Divide Selectionp.128Table 83: PCLK Divide Selectionp.128Table 84: PCLK Source Selectionp.1298.3.3 Look-Up Table Registersp.1298.3.4 Panel Configuration Registersp.132Table 85: Panel Data Width Selectionp.132Table 86: HRTFT/D-TFD Panel Resolution Selectionp.132Table 87: LCD Panel Type Selectionp.1338.3.5 Display Mode Registersp.139Table 88: Inverse Video Mode Select Optionsp.140Table 89: LCD Bit-per-pixel Selectionp.141Figure 81 Display Data Byte/Word Swapp.142Table 810: SwivelViewTM Mode Select Optionsp.1428.3.6 Picture-in-Picture Plus Registersp.144Table 811: 32-bit Address Increments for Color Depthp.145Table 812: 32-bit Address Increments for Color Depthp.146Table 813: 32-bit Address Increments for Color Depthp.147Table 814: 32-bit Address Increments for Color Depthp.1488.3.7 Miscellaneous Registersp.1498.3.8 General IO Pins Registersp.1518.3.9 Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registersp.156Figure 82 PWM Clock/CV Pulse Block Diagramp.156Table 815: PWM Clock Controlp.156Table 816: CV Pulse Controlp.157Table 817: PWM Clock Divide Select Optionsp.158Table 818: CV Pulse Divide Select Optionsp.158Table 819: PWMOUT Duty Cycle Select Optionsp.1598.3.10 Extended Registersp.160Table 820: Extended Panel Type Selectionp.161Table 821: VCLK Holdp.165Table 822: VCLK Setupp.165Table 823: AP Pulse Widthp.166Table 824: AP Rising Positionp.166Table 825: GPO2 PCLK2 Divide Ratep.170Table 826: GPO1 PCLK1 Divide Ratep.170Table 827: Number of Source Driver ICsp.1769 Frame Rate Calculationp.17710 Display Data Formatsp.178Figure 101 4/8/16 Bit-Per-Pixel Display Data Memory Organizationp.17811 Look-Up Table Architecturep.17911.1 Monochrome Modesp.1791 Bit-per-pixel Monochrome Modep.179Figure 111 1 Bit-per-pixel Monochrome Mode Data Output Pathp.1792 Bit-per-pixel Monochrome Modep.179Figure 112 2 Bit-per-pixel Monochrome Mode Data Output Pathp.1794 Bit-per-pixel Monochrome Modep.180Figure 113 4 Bit-per-pixel Monochrome Mode Data Output Pathp.1808 Bit-per-pixel Monochrome Modep.180Figure 114 8 Bit-per-pixel Monochrome Mode Data Output Pathp.18016 Bit-Per-Pixel Monochrome Modep.18111.2 Color Modesp.1811 Bit-Per-Pixel Colorp.181Figure 115 1 Bit-Per-Pixel Color Mode Data Output Pathp.1812 Bit-Per-Pixel Colorp.182Figure 116 2 Bit-Per-Pixel Color Mode Data Output Pathp.1824 Bit-Per-Pixel Colorp.183Figure 117 4 Bit-Per-Pixel Color Mode Data Output Pathp.1838 Bit-per-pixel Color Modep.184Figure 118 8 Bit-per-pixel Color Mode Data Output Pathp.18416 Bit-Per-Pixel Color Modep.18412 SwivelView™p.18512.1 Conceptp.18512.2 90˚ SwivelView™p.185Figure 121 Relationship Between The Screen Image and the Image Refreshed in 90° SwivelView.p.18512.2.1 Register Programmingp.18612.3 180˚ SwivelView™p.187Figure 122 Relationship Between The Screen Image and the Image Refreshed in 180° SwivelView.p.18712.3.1 Register Programmingp.18712.4 270˚ SwivelView™p.188Figure 123 Relationship Between The Screen Image and the Image Refreshed in 270° SwivelView.p.18812.4.1 Register Programmingp.18913 Picture-in-Picture Plus (PIP+)p.19013.1 Conceptp.190Figure 131 Picture-in-Picture Plus with SwivelView disabledp.19013.2 With SwivelView Enabledp.19113.2.1 SwivelView 90˚p.191Figure 132 Picture-in-Picture Plus with SwivelView 90˚ enabledp.19113.2.2 SwivelView 180˚p.191Figure 133 Picture-in-Picture Plus with SwivelView 180˚ enabledp.19113.2.3 SwivelView 270˚p.192Figure 134 Picture-in-Picture Plus with SwivelView 270˚ enabledp.19214 Ink Layerp.19314.1 Memory Mappingp.193Figure 141 Memory Mapping for Ink Layerp.19314.2 Controlling the Ink Layerp.193Figure 142 Transparent Color Examplep.19414.3 Limitationsp.19415 Indirect Interfacep.19515.1 Mode 68p.196Figure 151 Sample timing of “register write” with Mode 68p.196Figure 152 Sample timing of “register read” with Mode 68p.197Figure 153 Sample timing of “memory write” with Mode 68, Big Endianp.198Figure 154 Sample timing of “memory read” with Mode 68, Big Endianp.200Figure 155 Sample timing of “register write” for Mode 68 when Memory Access Select Enabledp.202Figure 156 Sample timing of “register read” for Mode 68 when Memory Access Select Enabledp.20415.2 Mode 80p.206Figure 157 Sample timing of “register write” with Mode 80p.206Figure 158 Sample timing of “register read” with Mode 80p.208Figure 159 Sample timing of “memory write” with mode 80, little endianp.209Figure 1510 Sample timing of “memory read” with mode 80, Little endianp.211Figure 1511 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabledp.213Figure 1512 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabledp.21515.3 Limitationsp.21616 Embedded Crystal Oscillatorp.21716.1 Oscillator Circuitp.217Figure 161 Recommended Crystal Oscillator Circuitp.21717 Big-Endian Bus Interfacep.21817.1 Byte Swapping Bus Datap.21817.1.1 16 Bpp Color Depthp.219Figure 171 Byte-swapping for 16 Bppp.21917.1.2 1/2/4/8 Bpp Color Depthp.220Figure 172 Byte-swapping for 1/2/4/8 Bppp.22018 Power Save Modep.221Table 181: Power Save Mode Function Summaryp.22119 Mechanical Datap.222Figure 191 Mechanical Data PFBGA 120-pin Packagep.22220 Referencesp.22321 Technical Supportp.224S1D13708 Embedded Memory LCD Controllerp.225Table of Contentsp.227List of Tablesp.229List of Figuresp.2311 Introductionp.2332 Identifying the S1D13708p.2343 Initializationp.2354 Memory Modelsp.2364.1 Memory Organization for One Bit-per-pixel (2 Colors/Gray Shades)p.236Figure 41: Pixel Storage for 1 Bpp in One Byte of Display Bufferp.2364.2 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades)p.236Figure 42: Pixel Storage for 2 Bpp in One Byte of Display Bufferp.2364.3 Memory Organization for Four Bit-per-pixel (16 Colors/Gray Shades)p.237Figure 43: Pixel Storage for 4 Bpp in One Byte of Display Bufferp.2374.4 Memory Organization for 8 Bpp (256 Colors/64 Gray Shades)p.237Figure 44: Pixel Storage for 8 Bpp in One Byte of Display Bufferp.2374.5 Memory Organization for 16 Bpp (65536 Colors/64 Gray Shades)p.238Figure 45: Pixel Storage for 16 Bpp in Two Bytes of Display Bufferp.2385 Look-Up Table (LUT)p.2395.1 Registersp.2395.1.1 Look-Up Table Registersp.2395.2 Look-Up Table Organizationp.242Table 51: Look-Up Table Configurationsp.2425.2.1 Gray Shade Modesp.243Table 52: Suggested LUT Values for 1 Bpp Gray Shadep.243Table 53: Suggested LUT Values for 4 Bpp Gray Shadep.243Table 54: Suggested LUT Values for 4 Bpp Gray Shadep.244Table 55: Suggested LUT Values for 8 Bpp Gray Shadep.2455.2.2 Color Modesp.247Table 56: Suggested LUT Values for 1 bpp Colorp.247Table 57: Suggested LUT Values for 2 bpp Colorp.247Table 58: Suggested LUT Values for 4 bpp Colorp.248Table 59: Suggested LUT Values for 8 bpp Colorp.2496 Power Save Modep.2516.1 Overviewp.2516.2 Registersp.2526.2.1 Power Save Mode Enablep.2526.2.2 Memory Controller Power Save Statusp.2526.3 LCD Power Sequencingp.2536.4 Enabling Power Save Modep.2546.5 Disabling Power Save Modep.2547 SwivelView‘p.2557.1 SwivelView Registersp.255Table 71: SwivelViewTM Mode Select Optionsp.2557.2 Examplesp.2577.3 Limitationsp.2617.3.1 SwivelView 0˚ and 180˚p.2617.3.2 SwivelView 90˚ and 270˚p.2618 Picture-In-Picture Plusp.2628.1 Conceptp.262Figure 81: Picture-in-Picture Plus with SwivelView disabledp.2628.2 Registersp.262Table 81: 32-bit Address Increments for Color Depthp.265Table 82: 32-bit Address Increments for Color Depthp.267Table 83: 32-bit Address Increments for Color Depthp.269Table 84: 32-bit Address Increments for Color Depthp.2708.3 Picture-In-Picture-Plus Examplesp.2728.3.1 SwivelView 0˚ (Landscape Mode)p.272Figure 82: Picture-in-Picture Plus with SwivelView disabledp.2728.3.2 SwivelView 90˚p.275Figure 83: Picture-in-Picture Plus with SwivelView 90˚ enabledp.2758.3.3 SwivelView 180˚p.278Figure 84: Picture-in-Picture Plus with SwivelView 180˚ enabledp.2788.3.4 SwivelView 270˚p.282Figure 85: Picture-in-Picture Plus with SwivelView 270˚ enabledp.2828.4 Limitationsp.2868.4.1 SwivelView 0˚ and 180˚p.2868.4.2 SwivelView 90˚ and 270˚p.2869 Hardware Abstraction Layerp.2879.1 Introductionp.2879.2 API for the HAL Libraryp.287Table 91: HAL Library APIp.2879.2.1 Startup Routinesp.2889.2.2 Memory Accessp.2909.2.3 Register Accessp.2919.2.4 Clock Supportp.2939.2.5 Miscellaneousp.29410 Sample Codep.29611 Sales and Technical Supportp.297S1D13708 Register Summary X39A-R-001-01p.29913708CFG Configuration Programp.303Table of Contentsp.30513708CFGp.307S1D13708 Supported Evaluation Platformsp.307Installationp.307Usagep.30713708CFG Configuration Tabsp.308General Tabp.308Preferences Tabp.310Clocks Tabp.311Panel Tabp.316Panel Power Tabp.320Registers Tabp.32113708CFG Menusp.322Open...p.322Savep.323Save As...p.323Configure Multiplep.323Exportp.325Enable Tooltipsp.326ERD on the Webp.326About 13708CFGp.326Commentsp.32613708PLAY Diagnostic Utilityp.32713708PLAYp.329S1D13708 Supported Evaluation Platformsp.329Installationp.330Usagep.330Commandsp.33113708PLAY Examplep.337Script Filesp.33813708BMP Demonstration Programp.33913708BMPp.341S1D13708 Supported Evaluation Platformsp.341Installationp.341Usagep.34213708BMP Examplesp.342Commentsp.342Wind River WindML v2.0 Display Driversp.343Wind River WindML v2.0 DISPLAY DRIVERSp.345Building a WindML v2.0 Display Driverp.3461. Create a working directory and unzip the WindML display driver into it.p.3462. Configure for the target execution model.p.3463. Build a boot ROM image.p.3464. Create a bootable disk (in drive A:).p.3465. If necessary, generate a new mode0.h configuration file.p.3466. Build the WindML v2.0 library.p.3477. Open the S1D13708 workspace.p.3478. Add support for single line comments.p.347a. In the Tornado “Workspace Views” window, click on the “Builds” tab.p.347b. Expand the “8bpp Builds” (or “16bpp Builds”) view by clicking on the “+” next to it. The expan...p.347c. Select the “C/C++ compiler” tab to display the command switches used in the build. Remove the ...p.3479. Compile the VxWorks image.p.34710. Copy the VxWorks file to the diskette.p.34711. Start the VxWorks demo.p.347Linux Console Driverp.349Linux Console Driverp.351Building the Console Driver for Linux Kernel 2.2.xp.3521. Acquire the Linux kernel source code.p.3522. Unzip the console driver files.p.3523. Copy the console driver files to the build directory.p.3524. Modify s1d13708.hp.3535. Configure the video options.p.3536. Compile and install the kernel.p.3537. Boot to the Linux operating system.p.354Building the Console Driver for Linux Kernel 2.4.xp.3551. Acquire the Linux kernel source code.p.3552. Unzip the console driver files.p.3553. Copy the console driver files to the build directory. Make the directory /usr/src/linux/driver...p.3554. Modify s1d13708.hp.3565. Configure the video options.p.3566. Compile and install the kernelp.3577. Boot to the Linux operating systemp.357QNX Photon v2.0 Display Driverp.359QNX Photon v2.0 Display Driverp.361Building the Photon v2.0 Display Driverp.362Unpack the Graphics Driver Development Kit Archivep.362Configure the Driverp.362Build the Driverp.362Installing the Driverp.363Run the Driverp.363Commentsp.364Windows® CE 3.x Display Driversp.365WINDOWS® CE 3.0 DISPLAY DRIVERp.367Example Driver Buildsp.368Installation for CEPC Environmentp.372Configurationp.373Compile Switchesp.373Mode Filep.374Resource Management Issuesp.375Commentsp.378Power Consumptionp.3791 S1D13708 Power Consumptionp.3811.1 Conditionsp.382Table 11: S1D13708 Power Consumptionp.3822 Summaryp.383Interfacing to the NEC VR4102 / VR4111 Microprocessorsp.385Table of Contentsp.387List of Tablesp.389List of Figuresp.3891 Introductionp.3912 Interfacing to the NEC VR4102/VR4111p.3922.1 The NEC VR41XX System Busp.3922.1.1 Overviewp.3922.1.2 LCD Memory Access Cyclesp.393Figure 21: NEC VR4102/VR4111 Read/Write Cyclesp.3933 S1D13708 Host Bus Interfacep.3943.1 Host Bus Interface Pin Mappingp.394Table 31: Host Bus Interface Pin Mappingp.3943.2 Host Bus Interface Signalsp.3954 VR4102/VR4111 to S1D13708 Interfacep.3964.1 Hardware Descriptionp.396Figure 41: Typical Implementation of VR4102/VR4111 to S1D13708 Interfacep.3964.2 S1D13708 Hardware Configurationp.397Table 41: Summary of Power-On/Reset Configuration Optionsp.397Table 42: CLKI to BCLK Divide Selectionp.3974.3 NEC VR4102/VR4111 Configurationp.3985 Softwarep.3996 Referencesp.4006.1 Documentsp.4006.2 Document Sourcesp.4007 Technical Supportp.4017.1 Epson LCD Controllers (S1D13708)p.4017.2 NEC Electronics Inc.p.401Interfacing to the NEC VR4181A™ Microprocessorp.403Table of Contentsp.405List of Tablesp.407List of Figuresp.4071 Introductionp.4092 Interfacing to the NEC VR4181Ap.4102.1 The NEC VR4181A System Busp.4102.1.1 Overviewp.4102.1.2 LCD Memory Access Signalsp.4113 S1D13708 Host Bus Interfacep.4123.1 Host Bus Interface Pin Mappingp.412Table 31: Host Bus Interface Pin Mappingp.4123.2 Host Bus Interface Signalsp.4134 VR4181A to S1D13708 Interfacep.4144.1 Hardware Descriptionp.414Figure 41: Typical Implementation of VR4181A to S1D13708 Interfacep.4144.2 S1D13708 Hardware Configurationp.415Table 41: Summary of Power-On/Reset Configuration Optionsp.415Table 42: CLKI to BCLK Divide Selectionp.4154.3 NEC VR4181A Configurationp.4165 Softwarep.4176 Referencesp.4186.1 Documentsp.4186.2 Document Sourcesp.4187 Technical Supportp.4197.1 Epson LCD Controllers (S1D13708)p.4197.2 NEC Electronics Inc.p.419Interfacing to the Motorola MPC821 Microprocessorp.421Document Number: X39A-G-009-01p.421Table of Contentsp.423List of Tablesp.425List of Figuresp.4251 Introductionp.4272 Interfacing to the MPC821p.4282.1 The MPC8XX System Busp.4282.2 MPC8XX Bus Overviewp.4282.2.1 Normal (Non-Burst) Bus Transactionsp.429Figure 21: Power PC Memory Read Cyclep.429Figure 22: Power PC Memory Write Cyclep.4302.2.2 Burst Cyclesp.4302.3 Memory Controller Modulep.4312.3.1 General-Purpose Chip Select Module (GPCM)p.431Figure 23: GPCM Memory Devices Timingp.4322.3.2 User-Programmable Machine (UPM)p.4323 S1D13708 Host Bus Interfacep.4333.1 Host Bus Interface Pin Mappingp.433Table 31: Host Bus Interface Pin Mappingp.4333.2 Host Bus Interface Signalsp.4344 MPC821 to S1D13708 Interfacep.4354.1 Hardware Descriptionp.435Figure 41: Typical Implementation of MPC821 to S1D13708 Interfacep.4354.2 MPC821ADS Evaluation Board Hardware Connectionsp.436Table 41: List of Connections from MPC821ADS to S1D13708 p.4364.3 S1D13708 Hardware Configurationp.438Table 42: Summary of Power-On/Reset Configuration Optionsp.438Table 43: CLKI to BCLK Divide Selectionp.4384.4 Register/Memory Mappingp.4384.5 MPC821 Chip Select Configurationp.4394.6 Test Softwarep.4405 Softwarep.4416 Referencesp.4426.1 Documentsp.4426.2 Document Sourcesp.4427 Technical Supportp.4437.1 EPSON LCD/CRT Controllers (S1D13708)p.4437.2 Motorola MPC821 Processorp.443Interfacing to the Motorola MCF5307 "ColdFire" Microprocessorp.445Table of Contentsp.447List of Tablesp.449List of Figuresp.4491 Introductionp.4512 Interfacing to the MCF5307p.4522.1 The MCF5307 System Busp.4522.1.1 Overviewp.4522.1.2 Normal (Non-Burst) Bus Transactionsp.452Figure 21: MCF5307 Memory Read Cyclep.453Figure 22: MCF5307 Memory Write Cyclep.4532.1.3 Burst Cyclesp.4532.2 Chip-Select Modulep.454Figure 23: Chip Select Module Outputs Timingp.4543 S1D13708 Host Bus Interfacep.4553.1 Host Bus Interface Pin Mappingp.455Table 31: Host Bus Interface Pin Mappingp.4553.2 Host Bus Interface Signalsp.4564 MCF5307 To S1D13708 Interfacep.4574.1 Hardware Descriptionp.457Figure 41: Typical Implementation of MCF5307 to S1D13708 Interfacep.4574.2 S1D13708 Hardware Configurationp.458Table 41: Summary of Power-On/Reset Configuration Optionsp.458Table 42: CLKI to BCLK Divide Selectionp.4584.3 Register/Memory Mappingp.4594.4 MCF5307 Chip Select Configurationp.4595 Softwarep.4606 Referencesp.4616.1 Documentsp.4616.2 Document Sourcesp.4617 Technical Supportp.4627.1 EPSON LCD Controllers (S1D13708)p.4627.2 Motorola MCF5307 Processorp.462Connecting to the Sharp HR-TFT Panelsp.463Table of Contentsp.465List of Tablesp.467List of Figuresp.4671 Introductionp.4692 Connecting to the Sharp LQ039Q2DS01 HR-TFTp.4702.1 External Power Suppliesp.4702.1.1 Gray Scale Voltages for Gamma Correctionp.470Figure 21: Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generationp.4702.1.2 Digital/Analog Power Suppliesp.4712.1.3 DC Gate Driver Power Suppliesp.471Figure 22: Panel Gate Driver DC Power Suppliesp.4712.1.4 AC Gate Driver Power Suppliesp.472Figure 23: Panel Gate Driver AC Power Suppliesp.4722.2 HR-TFT MOD Signalp.473Figure 24: HR-TFT Power-On/Off Sequence Timingp.473Table 21: HR-TFT Power-On/Off Sequence Timingp.4732.3 S1D13708 to LQ039Q2DS01 Pin Mappingp.474Table 22: S1D13708 to LQ039Q2DS01 Pin Mappingp.4743 Connecting to the Sharp LQ031B1DDxx HR-TFTp.4763.1 External Power Suppliesp.4763.1.1 Gray Scale Voltages for Gamma Correctionp.476Figure 31: Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generationp.4763.1.2 Digital/Analog Power Suppliesp.4773.1.3 DC Gate Driver Power Suppliesp.4773.1.4 AC Gate Driver Power Suppliesp.4773.2 HR-TFT MOD Signalp.4773.3 S1D13708 to LQ031B1DDxx Pin Mappingp.478Table 31: S1D13708 to LQ031B1DDxx Pin Mappingp.4784 Test Softwarep.4805 Referencesp.4815.1 Documentsp.4815.2 Document Sourcesp.4816 Technical Supportp.4826.1 EPSON LCD Controllers (S1D13708)p.4826.2 Sharp HR-TFT Panelp.482Interfacing to the Motorola RedCap2p.483Table of Contentsp.485List of Tablesp.487List of Figuresp.4871 Introductionp.4892 Interfacing to the REDCAP2p.4902.1 The REDCAP2 System Busp.4902.2 Overviewp.4902.3 Bus Transactionsp.490Figure 21: REDCAP2 Memory Read Cyclep.491Figure 22: REDCAP2 Memory Write Cyclep.4913 S1D13708 Host Bus Interfacep.4923.1 Host Bus Interface Pin Mappingp.492Table 31: Host Bus Interface Pin Mappingp.4923.2 Host Bus Interface Signalsp.4934 REDCAP2 to S1D13708 Interfacep.4944.1 Hardware Descriptionp.494Figure 41: Typical Implementation of REDCAP2 to S1D13708 Interfacep.4944.2 Hardware Connectionsp.495Table 41: List of Connections for REDCAP2 ADMp.4954.3 S1D13708 Hardware Configurationp.497Table 42: Summary of Power-On/Reset Optionsp.4974.4 Register/Memory Mappingp.4974.5 REDCAP2 Chip Select Configurationp.4985 Softwarep.4996 Referencesp.5006.1 Documentsp.5006.2 Document Sourcesp.5007 Technical Supportp.5017.1 EPSON LCD/CRT Controllers (S1D13708)p.5017.2 Motorola REDCAP2 Processorp.501Interfacing to 8-bit Processorsp.503Table of Contentsp.505List of Tablesp.507List of Figuresp.5071 Introductionp.5092 Interfacing to an 8-bit Processorp.5102.1 The Generic 8-bit Processor System Busp.5103 S1D13708 Host Bus Interfacep.5113.1 Host Bus Interface Pin Mappingp.511Table 31: Host Bus Interface Pin Mappingp.5113.2 Host Bus Interface Signalsp.5124 8-Bit Processor to S1D13708 Interfacep.5134.1 Hardware Connectionsp.513Figure 41: Typical Implementation of 8-bit Processor to S1D13708 Interfacep.5134.2 S1D13708 Hardware Configurationp.514Table 41: Summary of Power-On/Reset Configuration Optionsp.514Table 42: CLKI to BCLK Divide Selectionp.5144.3 Register/Memory Mappingp.5145 Softwarep.5156 Referencesp.5166.1 Documentsp.5166.2 Document Sourcesp.5167 Technical Supportp.5177.1 EPSON LCD Controllers (S1D13708)p.517Interfacing to the Motorola MC68VZ328 Dragonball Microprocessorp.519Document Number: X39A-G-016-01p.519Table of Contentsp.521List of Tablesp.523List of Figuresp.5231 Introductionp.5252 Interfacing to the MC68VZ328p.5262.1 The MC68VZ328 System Busp.5262.2 Chip-Select Modulep.5263 S1D13708 Host Bus Interfacep.5273.1 Host Bus Interface Pin Mappingp.527Table 31: Host Bus Interface Pin Mappingp.5273.2 Host Bus Interface Signalsp.5284 MC68VZ328 to S1D13708 Interfacep.5294.1 Hardware Descriptionp.529Figure 41: Typical Implementation of MC68VZ328 to S1D13708 Interfacep.5294.2 S1D13708 Hardware Configurationp.530Table 41: Summary of Power-On/Reset Configuration Optionsp.530Table 42: CLKI to BCLK Divide Selectionp.5304.2.1 Register/Memory Mappingp.5314.2.2 MC68VZ328 Chip Select and Pin Configurationp.531Table 43: WS Bit Programmingp.5315 Softwarep.5326 Referencesp.5336.1 Documentsp.5336.2 Document Sourcesp.5337 Technical Supportp.5347.1 EPSON LCD/CRT Controllers (S1D13708)p.5347.2 Motorola MC68VZ328 Processorp.534Interfacing to the Intel StrongARM SA-1110 Microprocessorp.535Document Number: X39A-G-019-01p.535Table of Contentsp.537List of Tablesp.539List of Figuresp.5391 Introductionp.5412 Interfacing to the StrongARM SA-1110 Busp.5422.1 The StrongARM SA-1110 System Busp.5422.1.1 StrongARM SA-1110 Overviewp.5422.1.2 Variable-Latency IO Access Overviewp.5422.1.3 Variable-Latency IO Access Cyclesp.543Figure 21: SA-1110 Variable-Latency IO Read Cyclep.543Figure 22: SA-1110 Variable-Latency IO Write Cyclep.5443 S1D13708 Host Bus Interfacep.5453.1 Host Bus Interface Pin Mappingp.545Table 31: Host Bus Interface Pin Mappingp.5453.2 Host Bus Interface Signal Descriptionsp.5464 StrongARM SA-1110 to S1D13708 Interfacep.5474.1 Hardware Descriptionp.547Figure 41: Typical Implementation of SA-1110 to S1D13708 Interfacep.5474.2 S1D13708 Hardware Configurationp.548Table 41: Summary of Power-On/Reset Configuration Optionsp.548Table 42: CLKI to BCLK Divide Selectionp.5484.3 StrongARM SA-1110 Register Configurationp.549Table 43: RDFx Parameter Value versus CPU Maximum Frequencyp.5494.4 Register/Memory Mappingp.5505 Softwarep.5516 Referencesp.5526.1 Documentsp.5526.2 Document Sourcesp.5527 Technical Supportp.5537.1 EPSON LCD Controllers (S1D13708)p.5537.2 Intel StrongARM SA-1110 Processorp.553Connecting to a Micro-Controller via the Indirect Interfacep.555Table of Contentsp.557List of Tablesp.559List of Figuresp.5591 Introductionp.5612 Interfacing to a Micro-Controllerp.5622.1 The Indirect Interfacep.5623 S1D13708 Host Bus Interfacep.5633.1 Indirect Mode Bus Interface Pin Mappingp.563Table 31: Mode 68 8-Bit Data Host Bus Interface Pin Mappingp.563Table 32: Mode 68 16-Bit Data Host Bus Interface Pin Mappingp.564Table 33: Mode 80 8-Bit Data Host Bus Interface Pin Mappingp.564Table 34: Mode 80 16-Bit Data Host Bus Interface Pin Mappingp.5653.2 Host Bus Interface Signalsp.5664 Micro-Controller to S1D13708 Interfacep.5674.1 Hardware Connectionsp.567Figure 41: Typical Implementation of Micro-Controller to S1D13708 Interfacep.5674.2 S1D13708 Hardware Configurationp.568Table 41: Summary of Power-On/Reset Configuration Optionsp.568Table 42: CLKI to BCLK Divide Selectionp.5684.3 Register/Memory Mappingp.5695 Softwarep.5706 Referencesp.5726.1 Documentsp.5726.2 Document Sourcesp.5727 Technical Supportp.5737.1 EPSON LCD Controllers (S1D13708)p.573
Page 20 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 20 · click to enlarge
Page 20

THIS PAGE LEFT BLANK

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 21 of the Epson LCD Controller (S1D13708) user manual — 1.2 Overview Description
Page 21 · click to enlarge
Page 21

1 Introduction

1.1 Scope

This is the Hardware Functional Specification for the S1D13708 Embedded Memory LCD Controller. Included in this document are timing diagrams, AC and DC characteristics, register descriptions, and power management descriptions. This document is intended for two audiences: Video Subsystem Designers and Software Developers.

For additional documentation related to the S1D13708 see Section 20, “References” on page 217.

This document is updated as appropriate. Please check the Epson Research and Development Website at www.erd.epson.com for the latest revision of this document before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

1.2 Overview Description

The S1D13708 is a color/monochrome LCD graphics controller with an embedded 80K byte SRAM display buffer. While supporting all other panel types, the S1D13708 also directly interfaces to a variety of TFT products, thus removing the requirement of an external Timing Control IC. This high level of integration provides a low cost, low power, single chip solution to meet the demands of embedded markets such as Mobile Communi- cations devices, and Palm-size PCs where board size and battery life are major concerns.

The S1D13708 utilizes a guaranteed low-latency CPU architecture providing support for microprocessors without READY/WAIT# handshaking signals. The 32-bit internal data path provides high performance bandwidth into display memory allowing for fast screen updates.

Products requiring a rotated display image can take advantage of the SwivelView TM feature which provides hardware rotation of the display memory transparent to the software appli- cation. The S1D13708 also provides support for Virtual screen sizes and Picture-in-Picture Plus (variable size Overlay window).

The S1D13708’s impartiality to CPU type or operating system makes it an ideal display solution for a wide variety of applications.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 22 of the Epson LCD Controller (S1D13708) user manual — 2.3 Display Support
Page 22 · click to enlarge
Page 22

2 Features

2.1 Integrated Frame Buffer

  • Embedded 80K byte SRAM display buffer.

2.2 CPU Interface

  • Direct support of the following interfaces: Generic MPU bus interface using WAIT# signal. Hitachi SH-3. Hitachi SH-4. Motorola M68K. Motorola MC68EZ328/MC68VZ328 DragonBall. Motorola “REDCAP2” - no WAIT# signal. Indirect Interface (Mode 68/Mode 80).
  • 8-bit processor support with “glue logic”.
  • “Fixed” low-latency CPU access times.
  • Registers are memory-mapped - M/R# input selects between memory and register address space.
  • The complete 80K byte display buffer is directly and contiguously available through the 17-bit address bus.
  • Single level CPU write buffer.

2.3 Display Support

  • 4/8-bit monochrome LCD interface.
  • 4/8/16-bit color LCD interface.
  • Single-panel, single-drive passive displays.
  • 9/12/18-bit Active Matrix TFT interface.
  • Direct support for 18-bit Epson D-TFD interface.
  • Direct support for 18-bit Sharp HR-TFT interface.
  • Direct support for 18-bit Type 2, 3, and 4 TFT interfaces.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 23 of the Epson LCD Controller (S1D13708) user manual — 2.6 Clock Source
Page 23 · click to enlarge
Page 23

2.4 Display Modes

  • 1/2/4/8/16 bit-per-pixel (bpp) color depths.
  • Up to 64 gray shades on monochrome passive LCD panels or 262144 colors on color passive LCD panels using Frame Rate Modulation (FRM) and dithering.
  • Up to 64 gray shades or 262144 colors on active matrix LCD panels.
  • Up to 64 gray shades or 256 colors can be simultaneously displayed in 8 bpp mode.
  • Up to 64 gray shades or 65536 colors can be simultaneously displayed in 16 bpp mode.
  • Example resolutions: 320x240 at a color depth of 8 bpp 160x160 at a color depth of 16 bpp 160x240 at a color depth of 16 bpp
  • Example resolutions with Ink Layer enabled. 640x240 at a color depth of 2 bpp 320x240 at a color depth of 4 bpp 160x120 at a color depth of 16 bpp

2.5 Display Features

  • SwivelView™: 90°, 180°, 270° counter-clockwise hardware rotation of display image.
  • Virtual display support: displays images larger than the panel size through the use of panning and scrolling.
  • Picture-in-Picture Plus: displays a variable size window overlaid over background image.
  • Ink Layer.
  • Double Buffering/Multi-pages: provides smooth animation and instantaneous screen updates.

2.6 Clock Source

  • Three clock inputs: CLKI, CLKI2 and XTAL. It is possible to use one clock input only.
  • Bus clock can be internally divided by 2, 3, or 4.
  • Memory clock is derived from bus clock, CLKI2 or XTAL (XTAL is only available when configured for Indirect Interface). It can be internally divided by 2, 3, or 4.
  • Pixel clock can be derived from CLKI, CLKI2, XTAL, bus clock, or memory clock. It can be internally divided by 2, 3, 4, or 8.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 24 of the Epson LCD Controller (S1D13708) user manual — 2.8 Miscellaneous
Page 24 · click to enlarge
Page 24

2.7 Operating Voltage

  • CORE V DD 1.62 to 1.98 volts.
  • IO V DD 3.0 to 3.6 volts.

2.8 Miscellaneous

  • Hardware/Software Video Invert.
  • Software Power Save mode.
  • General Purpose Input/Output pins are available.
  • BCLK can be switched off while still maintaining LCD refresh, offering power savings.
  • 120-pin PFBGA package (also available in die form).
  • 12MHz maximum crystal oscillator (XTAL) available for Indirect Interface.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 25 of the Epson LCD Controller (S1D13708) user manual — 3 Typical System Implementation Diagrams
Page 25 · click to enlarge
Page 25

3 Typical System Implementation Diagrams

Epson LCD Controller (S1D13708) — 3 Typical System Implementation Diagrams diagram (page 25)
Fig. 5 · 3 Typical System Implementation Diagrams

Figure 3-1 Typical System Diagram (Generic #1 Bus)

Epson LCD Controller (S1D13708) — 3 Typical System Implementation Diagrams diagram (page 25)
Fig. 6 · 3 Typical System Implementation Diagrams

Figure 3-2 Typical System Diagram (Generic #2 Bus)

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 26 of the Epson LCD Controller (S1D13708) user manual — Figure 33 Typical System Diagram (Hitachi SH-4 Bus)
Page 26 · click to enlarge
Page 26
Epson LCD Controller (S1D13708) — Figure 33 Typical System Diagram (Hitachi SH-4 Bus) diagram (page 26)
Fig. 7 · Figure 33 Typical System Diagram (Hitachi SH-4 Bus)

Figure 3-3 Typical System Diagram (Hitachi SH-4 Bus)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 27 of the Epson LCD Controller (S1D13708) user manual — SH-3 BUS
Page 27 · click to enlarge
Page 27

SH-3 BUS

CLKI2

A[25:17]

M/R#

FPDAT[17:0]

D[17:0]

CS#

FPFRAME

FPFRAME

A[16:0]

AB[16:0]

FPLINE

FPLINE

D[15:0]

DB[15:0]

WE0#

FPSHIFT

FPSHIFT

WE0#

WE1#

WE1#

DRDY

DRDY

S1D13708

BS#

BS#

RD/WR#

RD/WR#

GPO0

RD#

RD#

WAIT#

WAIT#

CKIO

CLKI

RESET#

RESET#

Figure 3-4 Typical System Diagram (Hitachi SH-3 Bus)

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 6 more labels / short text on this page
Oscillator · Decoder · 18-bit · TFT Display · CSn# · Bias Power
Page 28 of the Epson LCD Controller (S1D13708) user manual — Figure 35 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000)
Page 28 · click to enlarge
Page 28
Epson LCD Controller (S1D13708) — Figure 35 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000) diagram (page 28)
Fig. 8 · Figure 35 Typical System Diagram (MC68K # 1, Motoro…

Figure 3-5 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 29 of the Epson LCD Controller (S1D13708) user manual — Figure 36 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030)
Page 29 · click to enlarge
Page 29
Epson LCD Controller (S1D13708) — Figure 36 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030) diagram (page 29)
Fig. 9 · Figure 36 Typical System Diagram (MC68K #2, Motorol…

Figure 3-6 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030)

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 30 of the Epson LCD Controller (S1D13708) user manual — Figure 37 Typical System Diagram (Motorola REDCAP2 Bus)
Page 30 · click to enlarge
Page 30
Epson LCD Controller (S1D13708) — Figure 37 Typical System Diagram (Motorola REDCAP2 Bus) diagram (page 30)
Fig. 10 · Figure 37 Typical System Diagram (Motorola REDCAP2…

Figure 3-7 Typical System Diagram (Motorola REDCAP2 Bus)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 31 of the Epson LCD Controller (S1D13708) user manual — Figure 38 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus)
Page 31 · click to enlarge
Page 31
Epson LCD Controller (S1D13708) — Figure 38 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus) diagram (page 31)
Fig. 11 · Figure 38 Typical System Diagram (Motorola MC68EZ32…

Figure 3-8 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus)

Epson LCD Controller (S1D13708) — Figure 38 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus) diagram (page 31)
Fig. 12 · Figure 38 Typical System Diagram (Motorola MC68EZ32…

Figure 3-9 Typical System Diagram (Indirect Interface, Mode 68)

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 32 of the Epson LCD Controller (S1D13708) user manual — IO V DD
Page 32 · click to enlarge
Page 32

IO V DD

XTAL0

XTAL1

BS#

FPDAT[7:4]

D[3:0]

AB[16:0] VSS

LCD

FPSHIFT

FPSHIFT

FPFRAME

FPFRAME

FPLINE

FPLINE

A[23:17]

CS#

DRDY

MOD

S1D13708

M/R#

A0

GPO0

D[15:0]

DB[15:0]

RD/WR# RDL#

RDU#

RD#

WE0# WRL#

WRU#

WE1#

BUSCLK

CLKI

RESET#

RESET#

Figure 3-10 Typical System Diagram (Indirect Interface, Mode 80)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 7 more labels / short text on this page
Indirect Interface · Mode 80 · 4-bit · Single · Display · Bias Power · Decoder
Page 33 of the Epson LCD Controller (S1D13708) user manual — 4.1 Pinout Diagram - PFBGA - 120pin
Page 33 · click to enlarge
Page 33

4 Pins

4.1 Pinout Diagram - PFBGA - 120pin

Epson LCD Controller (S1D13708) — 4.1 Pinout Diagram - PFBGA - 120pin diagram (page 33)
Fig. 13 · 4.1 Pinout Diagram - PFBGA - 120pin

1 2 3 4 5 6 7 8 9 10 11

Figure 4-1 Pinout Diagram - PFBGA 120-pin

Table 4-1PFBGA 120-pin Mapping

L COREVDD IOVDD AB6 AB2 DB7 DB4 DB0 WAIT# FPLINE GPIO5 IOVDD

K AB7 AB5 AB4 AB3 COREVDD DB3 M/R# IOVDD GPIO6 GPIO4 COREVDD

J AB10 AB9 AB8 AB1 DB6 DB2 BS# FPFRAME GPIO1 GPIO2 GPIO3

H AB14 AB13 AB11 AB0 DB5 DB1 RD# COREVDD PWMOUT GPIO0 DRDY

G XTAL0 IOVDD AB15 AB12 VSS VSS VSS GPO6 CLKI2 FPSHIFT CVOUT

F COREVDD CLKI XTAL1 AB16 VSS VSS GPO2 GPO5 GPO7 IOVDD

E DB11 DB10 DB8 VSS CNF7 GPO1 GPO3 GPO4

D DB15 DB14 DB12 DB9 FPDAT0 FPDAT6 FPDAT12 FPDAT16 CNF6 TESTEN GPO0

C WE0# CS# DB13 FPDAT1 FPDAT4 FPDAT7 IOVDD FPDAT13 FPDAT17 CNF4 CNF5

B COREVDD WE1# RD/WR# FPDAT2 COREVDD FPDAT8 FPDAT10 FPDAT14 CNF0 CNF2 CNF3

A IOVDD RESET# IOVDD FPDAT3 FPDAT5 FPDAT9 FPDAT11 FPDAT15 CNF1 COREVDD IOVDD

1 2 3 4 5 6 7 8 9 10 11

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 34 of the Epson LCD Controller (S1D13708) user manual — 34 COREVDD
Page 34 · click to enlarge
Page 34

4.2 Pinout Diagram - Die Form

Table 4-2S1D13708 Pad Layout

COREVDD

PWMOUT

COREVDD

TESTEN

FPSHIFT

CVOUT

IOVDD

CNF3

CNF4

CNF5

CNF6

CNF7

GPO0

GPO1

GPO2

GPO3

GPO4

GPO5

GPO6

GPO7

CLKI2

IOVDD

GPO0

GPIO0

GPIO1

GPIO2

GPIO3

GPIO4

GPIO5

VSS

VSS

VSS

VSS

COREVDD 99 65 VSS VSS 100

64 IOVDD CNF2 101 87 57 63 GPIO6 CNF1 102 88 56 62 FPLINE CNF0 103 89 55 61 FPFRAME FPDAT17 104 90 54 60 *CUT FPDAT16 105 91 53 59 VSS FPDAT15 106 92 52 58 IOVDD FPDAT14 107 93 51 57 WAIT# FPDAT13 108 94 50 56 RD# FPDAT12 109 95 49 55 BS# FPDAT11 110 96 48 54 M/R# FPDAT10 111 97 47 53 DB0 IOVDD 112 98 46 52 DB1 VSS 113 99 45 51 DB2 FPDAT9 114 100 44 50 DB3 FPDAT8 115 101 43 49 DB4 FPDAT7 116 102 42 48 DB5 FPDAT6 117 103 41 47 DB6 FPDAT5 118 104 40 46 DB7 COREVDD 119 105 39 45 VSS VSS 120 106 38 44 COREVDD FPDAT4 121 107 37 43 AB0 FPDAT3 122 108 36 42 AB1 FPDAT2 123 109 35 41 AB2 FPDAT1 124 110 34 40 AB3 FPDAT0 125 111 33 39 AB4 IOVDD 126 112 32 38 AB5 VSS 127 113 31 37 AB6 *CUT 128 114 30 36 AB7 IOVDD 129 35 VSS VSS 130

S1D13708

34 COREVDD

COREVDD

VSS

RESET#

WE1#

WE0#

RD/WR#

CS#

VSS

DB15

DB14

DB13

DB12

DB11

DB10

DB9

DB8

COREVDD

CLKI

IOVDD

XTAL1

XTAL0

VSS

AB16

AB15

AB14

AB13

AB12

AB11

AB10

AB9

AB8

IOVDD

VSS

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 35 of the Epson LCD Controller (S1D13708) user manual — F4,G3, G4,H1, H2,H3,
Page 35 · click to enlarge
Page 35

4.3 Pin Descriptions

Key:

I = Input O = Output IO = Bi-Directional (Input/Output) P = Power pin PCLKI1 = CMOS/LVTTL schmitt input clock buffer PIC = CMOS/LVTTL input buffer PICS = CMOS/LVTTL input buffer with Schmitt input POC8 = CMOS/LVTTL 8mA low noise output buffer PBCC8 = CMOS/LVTTL bi-directional low noise buffer with 8mA CMOS output PBCC8C = CMOS/LVTTL high-speed bi-directional low noise buffer with 8mA CMOS output Hi-Z = High Impedance POSC1 = Crystal oscillator IO cell

4.3.1 Host Interface

Table 4-3Host Interface Pin Descriptions

Pin Name Type PFBGA

Pin # Cell IO Voltage

RESET # State Description

This input pin has multiple functions.

  • For Generic #1, this pin inputs system address bit 0 (A0).
  • For Generic #2, this pin inputs system address bit 0 (A0).
  • For SH-3/SH-4, this pin inputs system address bit 0 (A0).
  • For MC68K #1, this pin inputs the lower data strobe (LDS#).
  • For MC68K #2, this pin inputs system address bit 0 (A0).
  • For REDCAP2, this pin inputs system address bit 0 (A0).
  • For DragonBall, this pin inputs system address bit 0 (A0).
  • For Indirect (Mode 68), this pin is tied to V SS .
  • For Indirect (Mode 80), this pin is tied to V SS .

AB0 I H4 PIC IOVDD 0

See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.

System address bus bits 16-1.

  • For Generic #1, these pins input system address bits 16-1.
  • For Generic #2, these pins input system address bits 16-1.
  • For SH-3/SH-4, these pins input system address bits 16-1.
  • For MC68K #1, these pins input system address bits 16-1.
  • For MC68K #2, these pins input system address bits 16-1.
  • For REDCAP2, these pins input system address bits 16-1.
  • For DragonBall, these pins input system address bits 16-1.
  • For Indirect (Mode 68), these pins are tied to V SS .
  • For Indirect (Mode 80), these pins are tied to V SS .

F4,G3, G4,H1, H2,H3,

J1,J2, J3,J4, K1,K2, K3,K4,

AB[16:1] I

PIC IOVDD 0

L3,L4

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 36 of the Epson LCD Controller (S1D13708) user manual — WE0# I C1 PIC IOVDD 1
Page 36 · click to enlarge
Page 36
Table 4-3Host Interface Pin Descriptions

Pin Name Type PFBGA

Pin # Cell IO Voltage

RESET # State Description

Input data from the system data bus.

  • For Generic #1, these pins are connected to D[15:0].
  • For Generic #2, these pins are connected to D[15:0].
  • For SH-3/SH-4, these pins are connected to D[15:0].
  • For MC68K #1, these pins are connected to D[15:0].
  • For MC68K #2, these pins are connected to D[31:16] for a 32bit device (e.g. MC68030) or D[15:0] for a 16-bit device (e.g. MC68340).
  • For REDCAP2, these pins are connected to D[15:0].
  • For DragonBall, these pins are connected to D[15:0].
  • For Indirect (Mode 68), these pins are connected to D[15:0].
  • For Indirect (Mode 80), these pins are connected to D[15:0].

C3,D1, D2,D3, D4,E1, E2,E3, H5,H6,

DB[15:0] IO

J5,J6, K6,L5,

L6,L7

Unused pins should be tied to VSS. See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.

This input pin has multiple functions.

  • For Generic #1, this pin inputs the write enable signal for the lower data byte (WE0#).
  • For Generic #2, this pin inputs the write enable signal (WE#)
  • For SH-3/SH-4, this pin inputs the write enable signal for data byte 0 (WE0#).
  • For MC68K #1, this pin must be tied to IO V DD
  • For MC68K #2, this pin inputs the bus size bit 0 (SIZ0).
  • For REDCAP2, this pin inputs the byte enable signal for the D[7:0] data byte (EB1).
  • For DragonBall, this pin inputs the byte enable signal for the D[7:0] data byte (LWE).
  • For Indirect (Mode 68), this pin inputs the byte enable signal for the D[7:0] data byte (EBL).
  • For Indirect (Mode 80), this pin inputs the write enable signal for data byte 0 (WRL#).

WE0# I C1 PIC IOVDD 1

See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

PBCC8 IOVDD Hi-Z

Page 37 of the Epson LCD Controller (S1D13708) user manual — BS# I J7 PIC IOVDD 1
Page 37 · click to enlarge
Page 37
Table 4-3Host Interface Pin Descriptions

Pin Name Type PFBGA

Pin # Cell IO Voltage

RESET # State Description

This input pin has multiple functions.

  • For Generic #1, this pin inputs the write enable signal for the upper data byte (WE1#).
  • For Generic #2, this pin inputs the byte enable signal for the high data byte (BHE#).
  • For SH-3/SH-4, this pin inputs the write enable signal for data byte 1 (WE1#).
  • For MC68K #1, this pin inputs the upper data strobe (UDS#).
  • For MC68K #2, this pin inputs the data strobe (DS#).
  • For REDCAP2, this pin inputs the byte enable signal for the D[15:8] data byte (EB0).
  • For DragonBall, this pin inputs the byte enable signal for the D[15:8] data byte (UWE).
  • For Indirect (Mode 68), this pin inputs the byte enable signal for the D[15:8] data byte (EBU).
  • For Indirect (Mode 80), this pin inputs the write enable signal for data byte 1 (WRU#).

WE1# I B2 PIC IOVDD 1

See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.

CS# I C2 PIC IOVDD 1 Chip select input. See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.

This input pin is used to select between the display buffer and register address spaces of the S1D13708. M/R# is set high to access the display buffer and low to access the registers. See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.

M/R# I K7 PIC IOVDD 0

This input pin has multiple functions.

  • For Generic #1, this pin must be tied to IO V DD .
  • For Generic #2, this pin must be tied to IO V DD .
  • For SH-3/SH-4, this pin inputs the bus start signal (BS#).
  • For MC68K #1, this pin inputs the address strobe (AS#).
  • For MC68K #2, this pin inputs the address strobe (AS#).
  • For REDCAP2, this pin must be tied to IO V DD .
  • For DragonBall, this pin must be tied to IO V DD .
  • For Indirect (Mode 68), this pin selects the Indirect Interface For Mode 68, this pin is tied to V SS .
  • For Indirect (Mode 80), this pin selects the Indirect Interface For Mode 80, this pin is tied to IO V DD .

BS# I J7 PIC IOVDD 1

See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 38 of the Epson LCD Controller (S1D13708) user manual — RD# I H7 PIC IOVDD 1
Page 38 · click to enlarge
Page 38
Table 4-3Host Interface Pin Descriptions

Pin Name Type PFBGA

Pin # Cell IO Voltage

RESET # State Description

This input pin has multiple functions.

  • For Generic #1, this pin inputs the read command for the upper data byte (RD1#).
  • For Generic #2, this pin must be tied to IO V DD .
  • For SH-3/SH-4, this pin inputs the RD/WR# signal. The S1D13708 needs this signal for early decode of the bus cycle.
  • For MC68K #1, this pin inputs the R/W# signal.
  • For MC68K #2, this pin inputs the R/W# signal.
  • For REDCAP2, this pin inputs the R/W signal.
  • For DragonBall, this pin must be tied to IO V DD .
  • For Indirect (Mode 68), this pin inputs the R/W# signal.
  • For Indirect (Mode 80, this pin inputs the read enable signal for data byte 0 (RDL#).

RD/WR# I B3 PIC IOVDD 1

See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.

This input pin has multiple functions.

  • For Generic #1, this pin inputs the read command for the lower data byte (RD0#).
  • For Generic #2, this pin inputs the read command (RD#).
  • For SH-3/SH-4, this pin inputs the read signal (RD#).
  • For MC68K #1, this pin must be tied to IO V DD .
  • For MC68K #2, this pin inputs the bus size bit 1 (SIZ1).
  • For REDCAP2, this pin inputs the output enable (OE).
  • For DragonBall, this pin inputs the output enable (OE).
  • For Indirect (Mode 68), this pin is tied to V SS .
  • For Indirect (Mode 80), this pin inputs the read enable signal for data byte 1 (RDU#).

RD# I H7 PIC IOVDD 1

See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 39 of the Epson LCD Controller (S1D13708) user manual — 4.3 Pin Descriptions
Page 39 · click to enlarge
Page 39
Table 4-3Host Interface Pin Descriptions

Pin Name Type PFBGA

Pin # Cell IO Voltage

RESET # State Description

During a data transfer, this output pin is driven active to force the system to insert wait states. It is driven inactive to indicate the completion of a data transfer. WAIT# is released to the high impedance state after the data transfer is complete. Its active polarity is configurable. See Table 4-8: “Summary of Power-On/Reset Options,” on page 38.

  • For Generic #1, this pin outputs the wait signal (WAIT#).
  • For Generic #2, this pin outputs the wait signal (WAIT#).
  • For SH-3 mode, this pin outputs the wait request signal (WAIT#).
  • For SH-4 mode, this pin outputs the device ready signal (RDY#).
  • For MC68K #1, this pin outputs the data transfer acknowledge signal (DTACK#).
  • For MC68K #2, this pin outputs the data transfer and size acknowledge bit 1 (DSACK1#).
  • For REDCAP2, this pin is unused (Hi-Z).
  • For DragonBall, this pin outputs the data transfer acknowledge signal (DTACK).
  • For Indirect (Mode 68), this pin is unused (Hi-Z).
  • For Indirect (Mode 80), this pin is unused (Hi-Z).

WAIT# O L8 PBCC8C IOVDD Hi-Z

See Table 4-9: “Host Bus Interface Pin Mapping,” on page 39 for summary.

RESET# I A2 PICS IOVDD 0 Active low input to set all internal registers to the default state and to force all signals to their inactive states.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 40 of the Epson LCD Controller (S1D13708) user manual — DRDY O H11 POC8 IOVDD 0
Page 40 · click to enlarge
Page 40

4.3.2 LCD Interface

Table 4-4LCD Interface Pin Descriptions

Pin Name Type PFBGA

Pin # Cell IO Voltage

RESET#

A4,A5, A6,A7, A8,B4, B6,B7, B8,C4, C5,C6, C8,C9, D5,D6,

FPDAT[17:0] O

PBCC8 IOVDD 0 Panel Data bits 17-0.

D7,D8

This output pin has multiple functions.

  • Frame Pulse
  • SPS for Sharp HR-TFT
  • DY for Epson D-TFD
  • STV for TFT Type 2
  • STV for Type 3

FPFRAME O J8 PBCC8 IOVDD 0

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.

This output pin has multiple functions.

  • Line Pulse
  • LP for Sharp HR-TFT
  • LP for Epson D-TFD
  • STB for TFT Type 2
  • LP for Type 3

FPLINE O L9 PBCC8 IOVDD 0

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.

This output pin has multiple functions.

  • Shift Clock
  • CLK for Sharp HR-TFT
  • XSCL for Epson D-TFD
  • CLK for TFT Type 2
  • CPH for Type 3

FPSHIFT O G10 PBCC8 IOVDD 0

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.

This output pin has multiple functions.

  • Display enable (DRDY) for TFT panels
  • 2nd shift clock (FPSHIFT2) for passive LCD with Format 1 interface
  • GCP for Epson D-TFD
  • INV for TFT Type 2
  • INV for TFT Type 3
  • LCD backplane bias signal (MOD) for all other LCD panels

DRDY O H11 POC8 IOVDD 0

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

State Description

Page 41 of the Epson LCD Controller (S1D13708) user manual — GPIO4 IO K10 PBCC8 IOVDD 0
Page 41 · click to enlarge
Page 41
Table 4-4LCD Interface Pin Descriptions

Pin Name Type PFBGA

Pin # Cell IO Voltage

RESET#

This pin has multiple functions.

  • PS for Sharp HR-TFT
  • XINH for Epson D-TFD
  • VCLK for TFT Type 2
  • CPV for Type 3
  • General purpose IO pin 0 (GPIO0)
  • Hardware Video Invert

GPIO0 IO H10 PBCC8 IOVDD 0

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.

This pin has multiple functions.

  • CLS for Sharp HR-TFT
  • YSCL for Epson D-TFD
  • AP for TFT Type 2
  • OE for Type 3
  • General purpose IO pin 1 (GPIO1)

GPIO1 IO J9 PBCC8 IOVDD 0

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.

This pin has multiple functions.

  • REV for Sharp HR-TFT
  • FR for Epson D-TFD
  • POL for TFT Type 2
  • POL for Type 3
  • General purpose IO pin 2 (GPIO2)

GPIO2 IO J10 PBCC8 IOVDD 0

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.

This pin has multiple functions.

  • SPL for Sharp HR-TFT
  • FRS for Epson D-TFD
  • STH for TFT Type 2
  • EIO for Type 3
  • General purpose IO pin 3 (GPIO3)

GPIO3 IO J11 PBCC8 IOVDD 0

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.

This pin has multiple functions.

  • RES for Epson D-TFD
  • VCOM for Type 3
  • General purpose IO pin 4 (GPIO4)

GPIO4 IO K10 PBCC8 IOVDD 0

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

State Description

Page 42 of the Epson LCD Controller (S1D13708) user manual — CVOUT O G11 PBCC8 IOVDD 0
Page 42 · click to enlarge
Page 42
Table 4-4LCD Interface Pin Descriptions

Pin Name Type PFBGA

Pin # Cell IO Voltage

RESET#

This pin has multiple functions.

  • DD_P1 for Epson D-TFD
  • XOEV for Type 3
  • General purpose IO pin 5 (GPIO5)

GPIO5 IO L10 PBCC8 IOVDD 0

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.

This pin has multiple functions.

  • YSCLD for Epson D-TFD
  • CMD for Type 3
  • General purpose IO pin 6 (GPIO6)

GPIO6 IO K9 PBCC8 IOVDD 0

See Table 4-10: “LCD Interface Pin Mapping,” on page 40 for summary.

This output pin has multiple functions.

PWMOUT O H9 PBCC8 IOVDD 0

  • PWM Clock output
  • General purpose output

This output pin has multiple functions.

CVOUT O G11 PBCC8 IOVDD 0

  • CV Pulse Output
  • General purpose output

GPO0 O D11 POC8 IOVDD 0 General Purpose Output (possibly used for controlling the LCD power). It may also be used for the MOD control signal of the Sharp HR-TFT panel.

GPO1 O E9 POC8 IOVDD 0 General Purpose Output pin 1 (GPO1). When used with a Type 3 panel this pin functions as PCLK1.

GPO2 O F8 POC8 IOVDD 0 General Purpose Output pin 2 (GPO2). When used with a Type 3 panel this pin functions as PCLK2.

GPO3 O E10 POC8 IOVDD 0 General Purpose Output pin 3 (GPO3). When used with a Type 3 panel this pin functions as XRESH.

GPO4 O E11 POC8 IOVDD 0 General Purpose Output pin 4 (GPO4). When used with a Type 3 panel this pin functions as XRESV.

GPO5 O F9 POC8 IOVDD 0 General Purpose Output pin 5 (GPO5). When used with a Type 3 panel this pin functions as XOHV.

GPO6 O G8 POC8 IOVDD 0 General Purpose Output pin 6 (GPO6). When used with a Type 3 panel this pin functions as XSTBY.

GPO7 O F10 POC8 IOVDD 0 General Purpose Output pin 7 (GPO7). When used with a Type 3 panel this pin functions as PMDE.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

State Description

Page 43 of the Epson LCD Controller (S1D13708) user manual — G7
Page 43 · click to enlarge
Page 43

4.3.3 Clock Input

Table 4-5Clock Input Pin Descriptions

Pin Name Type PFBGA

Pin # Cell IO Voltage

RESET#

CLKI I F2 PCLK1 IOVDD — Typically used as input clock source for bus clock and memory clock.

CLKI2 I G9 PCLK1 IOVDD — Typically used as input clock source for pixel clock This pin must be tied to VSS when a crystal is not used.

XTAL0 0 F3 POSC1 IOVDD — Crystal output. This pin must be left unconnected when a crystal is not used.

XTAL1 I G1 POSC1 IOVDD — Crystal input. This pin must be tied to VSS when a crystal is not used.

4.3.4 Miscellaneous

Table 4-6Miscellaneous Pin Descriptions

Pin Name Type PFBGA

Pin # Cell IO Voltage

RESET#

A9, B9, B10, B11, C10, C11,

These inputs are used to configure the S1D13708 - see Table 4-8: “Summary of Power-On/Reset Options,” on page 38.

CNF[7:0] I

PIC IOVDD —

D9, E8

TESTEN I D10 PIC IOVDD 0 Test Enable input used for production test only (has type 1 pull- down resistor with a typical value of 50Ω at 3.3V).

4.3.5 Power And Ground

Table 4-7Power And Ground Pin Descriptions

Pin Name Type PFBGA

Pin # Cell IO Voltage

RESET#

A1, A3, A11, C7, F11, G2,

IOVDD P

P — — IO VDD pins.

K8,L2,

A10, B1,

COREVDD P

B5, F1, H8, K5, K11, L1

P — — Core VDD. pins.

E4, E5, E6, E7,

VSS P

F5, F7, G5, G6,

P — — VSS pins.

G7

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

State Description · State Description · State Description

Page 44 of the Epson LCD Controller (S1D13708) user manual — CNF[7:6]
Page 44 · click to enlarge
Page 44

4.4 Summary of Configuration Options

Table 4-8Summary of Power-On/Reset Options

Select host bus interface as follows:

CNF4 CNF2 CNF1 CNF0 Host Bus 1 0 0 0 SH-4/SH-3 interface, Big Endian 0 SH-4/SH-3 interface, Little Endian 1 0 0 1 MC68K #1, Big Endian 0 0 0 1 Reserved 1 0 1 0 MC68K #2, Big Endian 0 0 1 0 Reserved 1 0 1 1 Generic #1, Big Endian 0 0 1 1 Generic #1, Little Endian 1 1 0 0 Reserved 0 1 0 0 Generic #2, Little Endian 1 1 0 1 REDCAP2, Big Endian 0 1 0 1 Reserved 1 1 1 0 DragonBall (MC68EZ328/MC68VZ328), Big Endian 0 1 1 0 Reserved 1 Indirect Interface, Big Endian 0 1 1 1 Indirect Interface, Little Endian

CNF4,CNF[2:0]

Configure GPIO pins as outputs at power-on (for use by HR-TFT/D-TFD/TFT Type 2/TFT Type 3 when selected)

CNF3 Configure GPIO pins as inputs at power-on

CNF5 WAIT# is active high WAIT# is active low

BCLK Source (CLKI/XTAL) to BCLK divide select: Note: XTAL should only be used when configured for Indirect Interface (CNF[2:0] = 111).

CNF7 CNF6 BCLK Divide Ratio 0 0 1 : 1 0 1 2 : 1 1 0 3 : 1 1 1 4 : 1

CNF[7:6]

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

S1D13708 Configuration · Power-On/Reset State · Input

Page 45 of the Epson LCD Controller (S1D13708) user manual — Note
Page 45 · click to enlarge
Page 45

4.5 Host Bus Interface Pin Mapping

Table 4-9Host Bus Interface Pin Mapping

S1D13708

Pin Name Generic #1 Generic #2 Hitachi SH-3 /SH-4

AB[16:1] A[16:1] Connected to VSS AB0 A01 A0 A01 LDS# A0 A01 A01 Connected to VSS DB[15:0] D[15:0]2 D[15:0]

CS# External Decode CSn# External Decode CSn CSn External Decode

M/R# External Decode A0 A0

CLKI BUSCLK BUSCLK CKIO CLKO BUSCLK BUSCLK

BS# Connected to IO VDD BS# AS# AS# Connected to IO VDD

to IO VDD

to IO VDD RD/WR# R/W# R/W# R/W Connected

to IO VDD R/W# RDL#

RD# RD0# RD# RD# Connected

Decode OE OE Connected

to VSS RDU#

to IO VDD

WE0# WE0# WE# WE0# Connected

to IO VDD SIZ0 EB1 LWE EBL WRL#

WE1# WE1# BHE# WE1# UDS# DS# EB0 UWE EBU WRU#

WAIT#/

RDY# DTACK# DSACK1# N/A DTACK N/A N/A

RESET# RESET_OUT RESET RESET# RESET#

Note

1 A0 for these busses is not used internally by the S1D13708. 2 If the target MC68K bus is 32-bit, then these signals should be connected to D[31:16].

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 14 more labels / short text on this page
Motorola MC68EZ328/ · Indirect Interface · Indirect Interface · Motorola MC68K #1 · Motorola MC68K #2 · Motorola REDCAP2 · MC68VZ328 DragonBall · Mode 68 · Mode 80 · Connected · Connected · to VSS · RD/WR# RD1# Connected · External
Page 46 of the Epson LCD Controller (S1D13708) user manual — GPO1 GPO1 GPO1 PCLK1 GPO1
Page 46 · click to enlarge
Page 46

4.6 LCD Interface Pin Mapping

Table 4-10LCD Interface Pin Mapping

Panel Color Passive Panel Color TFT Panel

Single Single Generic TFT (TFT Type 1) Sharp HR-

Epson D-TFD1 TFT Type 2 TFT Type 3 TFT Type 4

TFT 1

8-bit 16-Bit 4-bit 8-bit 9-bit 12-bit 18-bit

FPFRAME FPFRAME SPS DY STV STV FPFRAME

FPLINE FPLINE LP LP STB LP FPLINE

FPSHIFT FPSHIFT DCLK XSCL CLK CPH FPSHIFT

DRDY MOD FPSHIFT2 MOD DRDY no connect GCP INV INV DRDY

FPDAT0 driven 0 D0 driven 0 D0 (B5)2 D0 (G3)2 D0 (R6)2 R2 R3 R5

FPDAT1 driven 0 D1 driven 0 D1 (R5)2 D1 (R3)2 D1 (G5)2 R1 R2 R4

FPDAT2 driven 0 D2 driven 0 D2 (G4)2 D2 (B2)2 D2 (B4)2 R0 R1 R3

FPDAT3 driven 0 D3 driven 0 D3 (B3)2 D3 (G2)2 D3 (R4)2 G2 G3 G5

FPDAT4 D0 D4 D0 (R2)2 D4 (R3)2 D4 (R2)2 D8 (B5)2 G1 G2 G4

FPDAT5 D1 D5 D1 (B1)2 D5 (G2)2 D5 (B1)2 D9 (R5)2 G0 G1 G3

FPDAT6 D2 D6 D2 (G1)2 D6 (B1)2 D6 (G1)2 D10 (G4)2 B2 B3 B5

FPDAT7 D3 D7 D3 (R1)2 D7 (R1)2 D7 (R1)2 D11 (B3)2 B1 B2 B4

FPDAT8 driven 0 driven 0 driven 0 driven 0 driven 0 D4 (G3)2 B0 B1 B3

FPDAT9 driven 0 driven 0 driven 0 driven 0 driven 0 D5 (B2)2 driven 0 R0 R2

FPDAT10 driven 0 driven 0 driven 0 driven 0 driven 0 D6 (R2)2 driven 0 driven 0 R1

FPDAT11 driven 0 driven 0 driven 0 driven 0 driven 0 D7 (G1)2 driven 0 driven 0 R0

FPDAT12 driven 0 driven 0 driven 0 driven 0 driven 0 D12 (R3)2 driven 0 G0 G2

FPDAT13 driven 0 driven 0 driven 0 driven 0 driven 0 D13 (G2)2 driven 0 driven 0 G1

FPDAT14 driven 0 driven 0 driven 0 driven 0 driven 0 D14 (B1)2 driven 0 driven 0 G0

FPDAT15 driven 0 driven 0 driven 0 driven 0 driven 0 D15 (R1)2 driven 0 B0 B2

FPDAT16 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 B1

FPDAT17 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 driven 0 B0

GPIO0 PS XINH VCLK CPV GPIO0

GPIO1 CLS YSCL AP OE GPIO1

GPIO2 REV FR POL POL GPIO2

GPIO3 SPL FRS STH EIO GPIO3

GPIO4 (output only) RES GPIO4 (output only) VCOM GPIO4

GPIO5 (output only) DD_P1 GPIO5 (output only) XOEV GPIO5

GPIO6 (output only) YSCLD GPIO6 (output only) CMD GPIO6

GPO0 GPO0 (General Purpose Output) MOD GPO0

GPO1 GPO1 GPO1 PCLK1 GPO1

GPO2 GPO2 GPO2 PCLK2 GPO2

GPO3 GPO3 GPO3 XRESH GPO3

GPO4 GPO4 GPO4 XRESV GPO4

GPO5 GPO5 GPO5 XOHV GPO5

GPO6 GPO6 GPO6 XSTBY GPO6

GPO7 GPO7 GPO7 PMDE GPO7

CVOUT CVOUT CVOUT CVOUT CVOUT

PWMOUT PWMOUT PWMOUT PWMOUT PWMOUT

Note

1 GPIO pins must be configured as outputs (CNF3 = 0 at RESET#) when TFT-Type 2, TFT-Type 3, HR-TFT or D-TFD panels are selected. 2 These pin mappings use signal names commonly used for each panel type, however signal names may differ between panel manufacturers. The values shown in brackets represent the color components as mapped to the corresponding FPDATxx signals at the first valid edge of FPSHIFT. For further FPDATxx to LCD interface mapping, see Section 6.4, “Display Interface” on page 68.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 4 more labels / short text on this page
Monochrome Passive · Pin Name · 4-bit Format 1 · 8-bit Format 2
Page 47 of the Epson LCD Controller (S1D13708) user manual — Note
Page 47 · click to enlarge
Page 47

5 D.C. Characteristics

Note

When applying Supply Voltages to the S1D13708, Core VDD must be applied to the chip before, or simultaneously with IO VDD, or damage to the chip may result.

Table 5-1Absolute Maximum Ratings (Preliminary - Subject to Change)

Symbol Parameter Rating Units

Core VDD Supply Voltage VSS - 0.3 to 4.0 V

IO VDD Supply Voltage VSS - 0.3 to 4.0 V

VIN Input Voltage VSS - 0.3 to IO VDD + 0.5 V

VOUT Output Voltage VSS - 0.3 to IO VDD + 0.5 V

TSTG Storage Temperature -65 to 150 ° C

TSOL Solder Temperature/Time 260 for 10 sec. max at lead ° C

Table 5-2Recommended Operating Conditions

Symbol Parameter Condition Min Typ Max Units

Core VDD Supply Voltage VSS = 0 V 1.62 1.8 1.98 V

IO VDD Supply Voltage VSS = 0 V 3.0 3.3 3.6 V

VIN Input Voltage VSS IO VDD V

TOPR Operating Temperature 0 70 ° C

Table 5-3Electrical Characteristics for VDD = 3.3V typical

Symbol Parameter Condition Min Typ Max Units IDDS Quiescent Current Quiescent Conditions 170 µA IIZ Input Leakage Current -1 1 µA IOZ Output Leakage Current -1 1 µA

VOH High Level Output Voltage VDD = min. IOH = -8mA VDD - 0.4 V

VOL Low Level Output Voltage VDD = min. IOL = 8mA 0.4 V

VIH High Level Input Voltage LVTTL Level, VDD = max 2.0 V VIL Low Level Input Voltage LVTTL Level, VDD = min 0.8 V VT+ High Level Input Voltage LVTTL Schmitt 1.1 2.4 V VT- Low Level Input Voltage LVTTL Schmitt 0.6 1.8 V VH1 Hysteresis Voltage LVTTL Schmitt 0.1 V RPD Pull Down Resistance VI = VDD 20 50 120 kΩ CI Input Pin Capacitance 10 pF CO Output Pin Capacitance 10 pF CIO Bi-Directional Pin Capacitance 10 pF

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 48 of the Epson LCD Controller (S1D13708) user manual — Note
Page 48 · click to enlarge
Page 48

6 A.C. Characteristics

Conditions: CORE VDD = 1.8V ± 10% IO VDD = 3.3V ± 10% TA = TBD ° C tr and tf for all inputs must be < 5 nsec (10% ~ 90%) CL = 50pF (Bus/MPU Interface) CL = 0pF (LCD Panel Interface)

6.1 Clock Timing

6.1.1 Input Clocks

VIH

VIL 10%

TOSC

Figure 6-1 Clock Input Requirements

Table 6-1Clock Input Requirements for CLKI when CLKI to BCLK divide > 1

Symbol Parameter Min Max Units

fOSC Input Clock Frequency (CLKI) 100 MHz

TOSC Input Clock period (CLKI) 1/fOSC ns

tPWH Input Clock Pulse Width High (CLKI) 4.5 ns

tPWL Input Clock Pulse Width Low (CLKI) 4.5 ns

tf Input Clock Fall Time (10% - 90%) 5 ns

tr Input Clock Rise Time (10% - 90%) 5 ns

Note

Maximum internal requirements for clocks derived from CLKI must be considered when determining the frequency of CLKI. See Section 6.1.2, “Internal Clocks” on page 43 for internal clock requirements.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 5 more labels / short text on this page
Clock Input Waveform · tPWL tPWH · 90% · t f · tr
Page 49 of the Epson LCD Controller (S1D13708) user manual — Note
Page 49 · click to enlarge
Page 49
Table 6-2Clock Input Requirements for CLKI when CLKI to BCLK divide = 1

Symbol Parameter Min Max Units

fOSC Input Clock Frequency (CLKI) 66 MHz

TOSC Input Clock period (CLKI) 1/fOSC ns

tPWH Input Clock Pulse Width High (CLKI) 3 ns

tPWL Input Clock Pulse Width Low (CLKI) 3 ns

tf Input Clock Fall Time (10% - 90%) 5 ns

tr Input Clock Rise Time (10% - 90%) 5 ns

Note

Maximum internal requirements for clocks derived from CLKI must be considered when determining the frequency of CLKI. See Section 6.1.2, “Internal Clocks” on page 43 for internal clock requirements.

Table 6-3Clock Input Requirements for CLKI2

Symbol Parameter Min Max Units

fOSC Input Clock Frequency (CLKI2) 66 MHz

TOSC Input Clock period (CLKI2) 1/fOSC ns

tPWH Input Clock Pulse Width High (CLKI2) 3 ns

tPWL Input Clock Pulse Width Low (CLKI2) 3 ns

tf Input Clock Fall Time (10% - 90%) 5 ns

tr Input Clock Rise Time (10% - 90%) 5 ns

Note

Maximum internal requirements for clocks derived from CLKI2 must be considered when determining the frequency of CLKI2. See Section 6.1.2, “Internal Clocks” on page 43 for internal clock requirements.

6.1.2 Internal Clocks

Table 6-4Internal Clock Requirements

Symbol Parameter Min Max Units

fBCLK Bus Clock frequency 66 MHz

fMCLK Memory Clock frequency 50 MHz

fPCLK Pixel Clock frequency 50 MHz

fPWMCLK PWM Clock frequency 66 MHz

fXTAL XTAL Clock frequency 12 MHz

Note

For further information on internal clocks, refer to Section 7, “Clocks” on page 112.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 50 of the Epson LCD Controller (S1D13708) user manual — Note
Page 50 · click to enlarge
Page 50

6.2 CPU Interface Timing

The following section includes CPU interface AC Timing. These timings are based on IO VDD = 3.3V and Core VDD = 1.8V.

6.2.1 Generic #1 Interface Timing

Epson LCD Controller (S1D13708) — 6.2.1 Generic #1 Interface Timing diagram (page 50)
Fig. 14 · 6.2.1 Generic #1 Interface Timing

Figure 6-2 Generic #1 Interface Timing

Note

The above diagram assumes that WAIT# is used and that MCLK = BCLK.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 51 of the Epson LCD Controller (S1D13708) user manual — Table 65: Generic #1 Interface Timing
Page 51 · click to enlarge
Page 51
Table 6-5Generic #1 Interface Timing

Symbol Parameter Min Max Unit fCLK Bus Clock frequency 50 MHz TCLK Bus Clock period 1/fCLK ns

t3 A[16:0], M/R# setup to first CLK rising edge where CS# = 0 and either RD0#, RD1# = 0 or WE0#, WE1# = 0 1 ns

t4 A[16:0], M/R# hold from either RD0#, RD1# or WE0#, WE1# rising edge 0 ns t5 CS# setup to CLK rising edge 1 ns t6 CS# hold from either RD0#, RD1# or WE0#, WE1# rising edge 0 ns t7a WAIT# asserted for MCLK = BCLK 8 TCLK t7b WAIT# asserted for MCLK = BCLK ÷ 2 13 TCLK t7c WAIT# asserted for MCLK = BCLK ÷ 3 17 TCLK t7d WAIT# asserted for MCLK = BCLK ÷ 4 20 TCLK t8 RD0#, RD1#, WE0#, WE1# setup to CLK rising edge 1 ns t9 Falling edge of either RD0#, RD1# or WE0#, WE1# to WAIT# driven low 5 12 ns t10 Rising edge of either RD0#, RD1# or WE0#, WE1# to WAIT# high impedance 3 8 ns

t11 D[15:0] setup to third CLK rising edge where CS# = 0 and WE0#, WE1# = 0 (write cycle) (see note 1) 1 ns

t12 D[15:0] hold from WAIT# rising edge (write cycle) 0 ns t13 RD0#, RD1# falling edge to D[15:0] driven (read cycle) 4 11 ns t14 WAIT# rising edge to D[15:0] valid (read cycle) 2 ns t15 RD0#, RD1# rising edge to D[15:0] high impedance (read cycle) 3 9 ns

1. t11 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 52 of the Epson LCD Controller (S1D13708) user manual — 6.2.2 Generic #2 Interface Timing
Page 52 · click to enlarge
Page 52

6.2.2 Generic #2 Interface Timing

Epson LCD Controller (S1D13708) — 6.2.2 Generic #2 Interface Timing diagram (page 52)
Fig. 15 · 6.2.2 Generic #2 Interface Timing

Figure 6-3 Generic #2 Interface Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 53 of the Epson LCD Controller (S1D13708) user manual — Table 66: Generic #2 Interface Timing
Page 53 · click to enlarge
Page 53
Table 6-6Generic #2 Interface Timing

Symbol Parameter Min Max Unit fBUSCLK Bus Clock frequency 50 MHz TBUSCLK Bus Clock period 1/fBUSCLK ns

t3 A[16:0], M/R#, BHE# setup to first BUSCLK rising edge where CS# = 0 and either RD# = 0 or WE# = 0 1 ns

t4 A[16:0], M/R#, BHE# hold from either RD# or WE# rising edge 0 ns t5 CS# setup to BUSCLK rising edge 1 ns t6 CS# hold from either RD# or WE# rising edge 0 ns t7a WAIT# asserted for MCLK = BCLK 8 TBUSCLK t7b WAIT# asserted for MCLK = BCLK ÷ 2 13 TBUSCLK t7c WAIT# asserted for MCLK = BCLK ÷ 3 15 TBUSCLK t7d WAIT# asserted for MCLK = BCLK ÷ 4 21 TBUSCLK t8 RD# or WE# setup to BUSCLK rising edge 1 ns t9 Falling edge of either RD# or WE# to WAIT# driven low 5 12 ns t10 Rising edge of either RD# or WE# to WAIT# high impedance 3 8 ns

t11 D[15:0] setup to third BUSCLK rising edge where CS# = 0 and WE# = 0 (write cycle) (see note 1) 1 ns

t12 D[15:0] hold from WAIT# rising edge (write cycle) 0 ns t13 RD# falling edge to D[15:0] driven (read cycle) 5 11 ns t14 WAIT# rising edge to D[15:0] valid (read cycle) 2 ns t15 Rising edge of RD# to D[15:0] high impedance (read cycle) 3 9 ns

1. t11 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 54 of the Epson LCD Controller (S1D13708) user manual — 6.2.3 Hitachi SH-4 Interface Timing
Page 54 · click to enlarge
Page 54

6.2.3 Hitachi SH-4 Interface Timing

Epson LCD Controller (S1D13708) — 6.2.3 Hitachi SH-4 Interface Timing diagram (page 54)
Fig. 16 · 6.2.3 Hitachi SH-4 Interface Timing

Figure 6-4 Hitachi SH-4 Interface Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 55 of the Epson LCD Controller (S1D13708) user manual — Note
Page 55 · click to enlarge
Page 55
Table 6-7Hitachi SH-4 Interface Timing

Symbol Parameter Min Max Unit

fCKIO Clock frequency 66 MHz

TCKIO Clock period 1/fCKIO ns

t3 A[16:0], M/R#, RD/WR# setup to CKIO 1 ns

t4 A[16:0], M/R#, RD/WR# hold from CSn# 0 ns

t5 BS# setup 1 ns

t6 BS# hold 5 ns

t7 CSn# setup 1 ns

t8 CSn# high setup to CKIO 2 ns

t9a RDY asserted for MCLK = BCLK (max. MCLK = 50MHz) 7 TCKIO t9b RDY asserted for MCLK = BCLK ÷ 2 14 TCKIO t9c RDY asserted for MCLK = BCLK ÷ 3 16 TCKIO t9d RDY asserted for MCLK = BCLK ÷ 4 23 TCKIO t10 Falling edge RD# to D[15:0] driven (read cycle) 4 9 ns

t11 Falling edge CSn# to RDY# driven high 4 9 ns

t12 CKIO to RDY# low 5 14 ns

t13 CSn# high to RDY# high 5 12 ns

t14 Falling edge CKIO to RDY# high impedance 4 10 ns

t15 D[15:0] setup to 2nd CKIO after BS# (write cycle) (see note 1) 0 ns

t16 D[15:0] hold (write cycle) 0 ns

t17 RDY# falling edge to D[15:0] valid (read cycle) 2 ns

t18 Rising edge RD# to D[15:0] high impedance (read cycle) 3 9 ns

1. t15 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Note

Minimum one software WAIT state is required.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 56 of the Epson LCD Controller (S1D13708) user manual — 6.2.4 Hitachi SH-3 Interface Timing
Page 56 · click to enlarge
Page 56

6.2.4 Hitachi SH-3 Interface Timing

Epson LCD Controller (S1D13708) — 6.2.4 Hitachi SH-3 Interface Timing diagram (page 56)
Fig. 17 · 6.2.4 Hitachi SH-3 Interface Timing

Figure 6-5 Hitachi SH-3 Interface Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 57 of the Epson LCD Controller (S1D13708) user manual — Note
Page 57 · click to enlarge
Page 57
Table 6-8Hitachi SH-3 Interface Timing

Symbol Parameter Min Max Unit

fCKIO Bus Clock frequency 66 MHz

TCKIO Bus Clock period 1/fCKIO ns

t3 A[16:0], M/R#, RD/WR# setup to CKIO 1 ns

t4 CSn# high setup to CKIO 1 ns

t5 BS# setup 0 ns

t6 BS# hold 5 ns

t7 CSn# setup 1 ns

t8 A[16:0], M/R#, RD/WR# hold from CS# 0 ns

t9a WAIT# asserted for MCLK = BCLK (max. MCLK = 50MHz) 6 TCKIO t9b WAIT# asserted for MCLK = BCLK ÷ 2 13 TCKIO t9c WAIT# asserted for MCLK = BCLK ÷ 3 15 TCKIO t9d WAIT# asserted for MCLK = BCLK ÷ 4 23 TCKIO t10 Falling edge RD# to D[15:0] driven (read cycle) 4 9 ns

t11 Rising edge CSn# to WAIT# high impedance 3 7 ns

t12 Falling edge CSn# to WAIT# driven low 4 11 ns

t13 CKIO to WAIT# delay 5 14 ns

t14 D[15:0] setup to 2nd CKIO after BS# (write cycle) (see note 1) 0 ns

t15 D[15:0] hold (write cycle) 0 ns

t16 WAIT# rising edge to D[15:0] valid (read cycle) 2 ns

t17 Rising edge RD# to D[15:0] high impedance (read cycle) 3 9 ns

1. t14 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Note

Minimum one software WAIT state is required.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 58 of the Epson LCD Controller (S1D13708) user manual — 6.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000)
Page 58 · click to enlarge
Page 58

6.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000)

Epson LCD Controller (S1D13708) — 6.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000) diagram (page 58)
Fig. 18 · 6.2.5 Motorola MC68K #1 Interface Timing (e.g. MC680…

Figure 6-6 Motorola MC68K #1 Interface Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 59 of the Epson LCD Controller (S1D13708) user manual — Table 69: Motorola MC68K #1 Interface Timing
Page 59 · click to enlarge
Page 59
Table 6-9Motorola MC68K #1 Interface Timing

Symbol Parameter Min Max Unit

fCLK Bus Clock Frequency 50 MHz

TCLK Bus Clock period 1/fCLK ns

t3 A[16:1], R/W#, M/R# setup to first CLK rising edge where CS# = 0, AS# = 0, UDS# = 0, and LDS# = 0 1 ns

t4 A[16:1], M/R# hold from AS# rising edge 0 ns

t5 CS# setup to CLK rising edge while CS#, AS#, UDS#/LDS# = 0 1 ns

t6 CS# hold from AS# rising edge 0 ns

t7a DTACK# asserted for MCLK = BCLK 8 TCLK t7b DTACK# asserted for MCLK = BCLK ÷ 2 13 TCLK t7c DTACK# asserted for MCLK = BCLK ÷ 3 17 TCLK t7d DTACK# asserted for MCLK = BCLK ÷ 4 23 TCLK t8 AS# setup to CLK rising edge while CS#, AS#, UDS#/LDS# = 0 1 ns

t9 AS# setup to CLK rising edge 1 ns

t10 UDS#/LDS# setup to CLK rising edge while CS#, AS#, UDS#/LDS# = 0 1 ns

t11 UDS#/LDS# high setup to CLK rising edge 1 ns

t12 First CLK rising edge where AS# = 1 to DTACK# high impedance 3 10 ns

t13 R/W# setup to CLK rising edge before all CS#, AS#, UDS# and/or LDS# = 0 1 ns

t15 AS# = 0 and CS# = 0 to DTACK# driven high 4 10 ns

t16 AS# rising edge to DTACK# rising edge 5 14 ns

t17 D[15:0] valid to third CLK rising edge where CS# = 0, AS# = 0 and either UDS# = 0 or LDS# = 0 (write cycle) (see note 1) 1 ns

t18 D[15:0] hold from DTACK# falling edge (write cycle) 0 ns

t19 UDS# = 0 and/or LDS# = 0 to D[15:0] driven (read cycle) 3 9 ns

t20 DTACK# falling edge to D[15:0] valid (read cycle) 0 ns

t21 UDS#, LDS# rising edge to D[15:0] high impedance (read cycle) 3 4 ns

1. t17 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 60 of the Epson LCD Controller (S1D13708) user manual — 6.2.6 Motorola MC68K #2 Interface Timing (e.g. MC68030)
Page 60 · click to enlarge
Page 60

6.2.6 Motorola MC68K #2 Interface Timing (e.g. MC68030)

Epson LCD Controller (S1D13708) — 6.2.6 Motorola MC68K #2 Interface Timing (e.g. MC68030) diagram (page 60)
Fig. 19 · 6.2.6 Motorola MC68K #2 Interface Timing (e.g. MC680…

Figure 6-7 Motorola MC68K #2 Interface Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 61 of the Epson LCD Controller (S1D13708) user manual — Table 610: Motorola MC68K #2 Interface Timing
Page 61 · click to enlarge
Page 61
Table 6-10Motorola MC68K #2 Interface Timing

Symbol Parameter Min Max Unit

fCLK Bus Clock frequency 50 MHz

TCLK Bus Clock period 1/fCLK ns

t3 A[16:0], SIZ[1:0], M/R# setup to first CLK rising edge where CS# = 0, AS# = 0, DS# = 0 4 ns

t4 A[16:0], SIZ[1:0], M/R#, R/W# hold from AS# rising edge 0 ns

t5 CS# setup to CLK rising edge 3 ns

t6 CS# hold from AS# rising edge 0 ns

t7a DSACK1# asserted for MCLK = BCLK 8 TCLK t7b DSACK1# asserted for MCLK = BCLK ÷ 2 13 TCLK t7c DSACK1# asserted for MCLK = BCLK ÷ 3 17 TCLK t7d DSACK1# asserted for MCLK = BCLK ÷ 4 22 TCLK t8 AS# falling edge to CLK rising edge 4 ns

t9 AS# rising edge to CLK rising edge 4 ns

t10 DS# falling edge to CLK rising edge 4 ns

t11 DS# setup to CLK rising edge 4 ns

t12 First CLK where AS# = 1 to DSACK1# high impedance 2 28 ns

t13 R/W# setup to CLK rising edge before all CS# = 0, AS# = 0, and DS# = 0 1 ns

t15 AS# = 0 and CS# = 0 to DSACK1# rising edge 3 10 ns

t16 AS# rising edge to DSACK1# rising edge 5 14 ns

t17 D[31:16] valid to third CLK rising edge where CS# = 0, AS# = 0, and DS# = 0 (write cycle) (see note 1) 1 ns

t18 D[31:16] hold from falling edge of DSACK1# (write cycle) 0 ns

t19 DS# falling edge to D[31:16] driven (read cycle) 5 14 ns

t20 DSACK1# falling edge to D[31:16] valid (read cycle) 0 ns

t21 DS# rising edge to D[31:16] invalid/high impedance (read cycle) 3 10 ns

1. t17 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 62 of the Epson LCD Controller (S1D13708) user manual — 6.2.7 Motorola REDCAP2 Interface Timing
Page 62 · click to enlarge
Page 62

6.2.7 Motorola REDCAP2 Interface Timing

Epson LCD Controller (S1D13708) — 6.2.7 Motorola REDCAP2 Interface Timing diagram (page 62)
Fig. 20 · 6.2.7 Motorola REDCAP2 Interface Timing

Figure 6-8 Motorola REDCAP2 Interface Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 63 of the Epson LCD Controller (S1D13708) user manual — Table 611: Motorola REDCAP2 Interface Timing
Page 63 · click to enlarge
Page 63
Table 6-11Motorola REDCAP2 Interface Timing

Symbol Parameter Min Max Units

fCLK Bus Clock frequency 17 MHz

TCLK Bus Clock period 1/fCLK ns

t3 A[16:0], M/R#, R/W, CSn setup to CLK rising edge 1 ns

t4 A[16:0], M/R#, R/W, CSn hold from CLK rising edge 0 ns

t5a CSn asserted for MCLK = BCLK 8 TCLK t5b CSn asserted for MCLK = BCLK ÷ 2 10 TCLK t5c CSn asserted for MCLK = BCLK ÷ 3 13 TCLK t5d CSn asserted for MCLK = BCLK ÷ 4 15 TCLK t6 EB0, EB1 asserted to CLK rising edge (write cycle) 2 ns

t7 EB0, EB1 de-asserted to CLK rising edge (write cycle) 3 ns

t8 D[15:0] input setup to 3rd CLK rising edge after EB0 or EB1 asserted low (write cycle) (see note 1) 1 ns

t9 D[15:0] input hold from 3rd CLK rising edge after EB0 or EB1 asserted low (write cycle) 1 ns

t10 OE, EB0, EB1 setup to CLK rising edge (read cycle) 1 ns

t11 OE, EB0, EB1 hold to CLK rising edge (read cycle) 1 ns

t12 D[15:0] output delay from OE, EB0, EB1 falling edge (read cycle) 5 11 ns

t13a 1st CLK rising edge after EB0 or EB1 asserted low to D[15:0] valid for MCLK = BCLK (read cycle) 5CLK + 16 ns

t13b 1st CLK rising edge after EB0 or EB1 asserted low to D[15:0] valid for MCLK = BCLK ÷ 2 (read cycle) 8CLK + 16 ns

t13c 1st CLK rising edge after EB0 or EB1 asserted low to D[15:0] valid for MCLK = BCLK ÷ 3 (read cycle) 9CLK + 16 ns

t13d 1st CLK rising edge after EB0 or EB1 asserted low to D[15:0] valid for MCLK = BCLK ÷ 4 (read cycle) 11CLK + 16 ns

t14 CLK rising edge to D[15:0] output in Hi-Z (read cycle) 3 9 ns

1. t8 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 64 of the Epson LCD Controller (S1D13708) user manual — 6.2.8 Motorola DragonBall Interface Timing with DTACK (e.g. MC68EZ328/MC68VZ328)
Page 64 · click to enlarge
Page 64

6.2.8 Motorola DragonBall Interface Timing with DTACK (e.g. MC68EZ328/MC68VZ328)

Epson LCD Controller (S1D13708) — 6.2.8 Motorola DragonBall Interface Timing with DTACK (e.g. MC68EZ328/MC68VZ328) diagram (page 64)
Fig. 21 · 6.2.8 Motorola DragonBall Interface Timing with DTAC…

Figure 6-9 Motorola DragonBall Interface with DTACK Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 65 of the Epson LCD Controller (S1D13708) user manual — Table 612: Motorola DragonBall Interface with DTACK Timing
Page 65 · click to enlarge
Page 65
Table 6-12Motorola DragonBall Interface with DTACK Timing

Symbol Parameter MC68EZ328 MC68VZ328 Unit Min Max Min Max

fCLKO Bus Clock frequency 16 33 MHz

TCLKO Bus Clock period 1/fCLKO 1/fCLKO ns

t3 A[16:0] setup 1st CLKO when CSX = 0 and either UWE/LWE or OE = 0 0 0 ns

t4 A[16:0] hold from CSX rising edge 0 0 ns

t5a DTACK asserted for MCLK = BCLK 8 8 TCLKO t5b DTACK asserted for MCLK = BCLK ÷ 2 13 13 TCLKO t5c DTACK asserted for MCLK = BCLK ÷ 3 16 16 TCLKO t5d DTACK asserted for MCLK = BCLK ÷ 4 22 22 TCLKO t6 CSX setup to CLKO rising edge 2 2 ns

t7 CSX rising edge to CLKO rising edge 2 2 ns

t8 UWE/LWE falling edge to CLKO rising edge 2 2 ns

t9 UWE/LWE rising edge to CSX rising edge 0 0 ns

t10 OE falling edge to CLKO rising edge 2 2 ns

t11 OE hold from CSX rising edge 0 0 ns

t12 D[15:0] setup to 3rd CLKO when CSX, UWE/LWE asserted (write cycle) (see note 1) 0 1 ns

t13 D[15:0] in hold from CSX rising edge (write cycle) 0 0 ns

t14 Falling edge of OE to D[15:0] driven (read cycle) 4 10 4 10 ns

t15 CSX rising edge to D[15:0] output Hi-Z (read cycle) 3 9 3 9 ns

t16 CSX falling edge to DTACK driven high 4 9 4 10 ns

t17 DTACK falling edge to D[15:0] valid (read cycle) 0 0 ns

t18 CSX high to DTACK high 5 13 5 14 ns

t19 CLKO rising edge to DTACK Hi-Z 4 9 4 10 ns

1. t12 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 66 of the Epson LCD Controller (S1D13708) user manual — 6.2.9 Motorola DragonBall Interface Timing w/o DTACK (e.g. MC68EZ328/MC68VZ328)
Page 66 · click to enlarge
Page 66

6.2.9 Motorola DragonBall Interface Timing w/o DTACK (e.g. MC68EZ328/MC68VZ328)

Epson LCD Controller (S1D13708) — 6.2.9 Motorola DragonBall Interface Timing w/o DTACK (e.g. MC68EZ328/MC68VZ328) diagram (page 66)
Fig. 22 · 6.2.9 Motorola DragonBall Interface Timing w/o DTACK…

Figure 6-10 Motorola DragonBall Interface without DTACK# Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 67 of the Epson LCD Controller (S1D13708) user manual — 7 7 T CLKO
Page 67 · click to enlarge
Page 67
Table 6-13Motorola DragonBall Interface without DTACK Timing

Symbol Parameter MC68EZ328 MC68VZ328 Unit Min Max Min Max

fCLKO Bus Clock frequency 16 33 MHz

TCLKO Bus Clock period 1/fCLKO 1/fCLKO ns

t3 A[16:0] setup 1st CLKO when CSX = 0 and either UWE/LWE or OE = 0 0 0 ns

t4 A[16:0] hold from CSX rising edge 0 0 ns

CSX asserted for MCLK = BCLK (CPU wait state register should be programmed to 4 wait states)

7 7 T CLKO

CSX asserted for MCLK = BCLK ÷ 2 (CPU wait state register should be programmed to 8 wait states)

Not Supported 11 TCLKO

CSX asserted for MCLK = BCLK ÷ 3 (CPU wait state register should be programmed to 10 wait states)

Not Supported 13 TCLKO

t6 CSX setup to CLKO rising edge 2 2 ns

t7 CSX rising edge setup to CLKO rising edge 2 2 ns

t8 UWE/LWE setup to CLKO rising edge 2 2 ns

t9 UWE/LWE rising edge to CSX rising edge 0 0 ns

t10 OE setup to CLKO rising edge 2 2 ns

t11 OE hold from CSX rising edge 0 0 ns

t12 D[15:0] setup to 3rd CLKO after CSX, UWE/LWE asserted (write cycle) (see note 1) 1 1 ns

t13 CSX rising edge to D[15:0] output Hi-Z (write cycle) 0 0 ns

t14 Falling edge of OE to D[15:0] driven (read cycle) 5 11 5 11 ns

t15a 1st CLKO rising edge after OE and CSX asserted low to D[15:0] valid for MCLK = BCLK (read cycle)

6TCLKO + 6 6TCLKO + 6 ns

t15b 1st CLKO rising edge after OE and CSX asserted low to D[15:0] valid for MCLK = BCLK ÷ 2 (read cycle) Not Supported 9TCLKO + 6 ns

t15c 1st CLKO rising edge after OE and CSX asserted low to D[15:0] valid for MCLK = BCLK ÷ 3 (read cycle) Not Supported 12TCLKO + 6 ns

t16 CSX rising edge to D[15:0] output Hi-Z (read cycle) 3 9 3 9 ns

1. t12 is the delay from when data is placed on the bus until the data is latched into the write buffer.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

t5a · t5b · t5c

Page 68 of the Epson LCD Controller (S1D13708) user manual — 6.2.10 Indirect Interface Timing (Mode 68)
Page 68 · click to enlarge
Page 68

6.2.10 Indirect Interface Timing (Mode 68)

Epson LCD Controller (S1D13708) — 6.2.10 Indirect Interface Timing (Mode 68) diagram (page 68)
Fig. 23 · 6.2.10 Indirect Interface Timing (Mode 68)

Figure 6-11 Indirect Interface Timing (Mode 68)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 69 of the Epson LCD Controller (S1D13708) user manual — Note
Page 69 · click to enlarge
Page 69
Table 6-14Indirect Interface Timing (Mode 68)

Symbol Parameter Min Max Units

fBUSCLK Bus Clock frequency 50 MHz

TBUSCLK Bus Clock period 1/fBUSCLK ns

t1 A0 / R/W# setup to (CS# | EBU), (CS# | EBL) falling edge 1 ns

t2 A0 / R/W# hold to (CS# | EBU), (CS# | EBL) rising edge 3 ns

t3 D[15:0] setup to (CS# | EBU) rising edge (write cycle) 1 TBUSCLK t4 D[15:0] hold to (CS# | EBU) rising edge (write cycle) 4 ns

t5 Falling edge of (CS# | EBL) to D[15:0] driven (read cycle) 2 TBUSCLK

t6a Falling edge of (CS# | EBL) to valid D[15:0] driven for MCLK = BCLK (read cycle) 7.5 TBUSCLK

t6b Falling edge of (CS# | EBL) to valid D[15:0] driven for MCLK = BCLK/2 (read cycle) 9.5 TBUSCLK

t6c Falling edge of (CS# | EBL) to valid D[15:0] driven for MCLK = BCLK/3 (read cycle) 12.5 TBUSCLK

t6d Falling edge of (CS# | EBL) to valid D[15:0] driven for MCLK = BCLK/4 (read cycle) 16.5 TBUSCLK

t7 Valid D[15:0] hold to (CS# | EBL) rising edge 0.5 TBUSCLK t8a (CS# | EBU) High pulse width (write cycle) 4 TBUSCLK t8b (CS# | EBL) High pulse width for MCLK = BCLK (read cycle) 8 TBUSCLK t8c (CS# | EBL) High pulse width for MCLK = BCLK/2 (read cycle) 11 TBUSCLK t8d (CS# | EBL) High pulse width for MCLK = BCLK/3 (read cycle) 15 TBUSCLK t8e (CS# | EBL) High pulse width for MCLK = BCLK/4 (read cycle) 17 TBUSCLK t9a (CS# | EBL) Low pulse width (read turnaround) 2.5 TBUSCLK t9b (CS# | EBU) Low pulse width for MCLK = BCLK (write turnaround) 2.5 TBUSCLK t9c (CS# | EBU) Low pulse width for MCLK = BCLK/2 (write turnaround) 5.5 TBUSCLK t9d (CS# | EBU) Low pulse width for MCLK = BCLK/3 (write turnaround) 7.5 TBUSCLK t9e (CS# | EBU) Low pulse width for MCLK = BCLK/4 (write turnaround) 9.5 TBUSCLK

Note

Max frequency (fBUSCLK) when using crystal oscillator is 12MHz.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 70 of the Epson LCD Controller (S1D13708) user manual — 6.2.11 Indirect Interface Timing (Mode 80)
Page 70 · click to enlarge
Page 70

6.2.11 Indirect Interface Timing (Mode 80)

Epson LCD Controller (S1D13708) — 6.2.11 Indirect Interface Timing (Mode 80) diagram (page 70)
Fig. 24 · 6.2.11 Indirect Interface Timing (Mode 80)

Figure 6-12 Indirect Interface Timing (Mode 80)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 71 of the Epson LCD Controller (S1D13708) user manual — Note
Page 71 · click to enlarge
Page 71
Table 6-15Indirect Interface Timing (Mode 80)

Symbol Parameter Min Max Units

fBUSCLK Bus Clock frequency 50 MHz

TBUSCLK Bus Clock period 1/fBUSCLK ns

t3 A0 setup to (CS# | WRn#), (CS# | RDn#) falling edge 1 ns

t4 A0 hold to (CS# | WRn#), (CS# | RDn#) rising edge 3 ns

t5 D[15:0] setup to (CS# | WRn#) rising edge (write cycle) 1 TBUSCLK t6 D[15:0] hold to (CS# | WRn#) rising edge (write cycle) 4 ns

t7 Falling edge of (CS# | RDn#) to D[15:0] driven (read cycle) 2 TBUSCLK

t8a Falling edge of (CS# | RDn#) to valid D[15:0] driven for MCLK = BCLK (read cycle) 7.5 TBUSCLK

t8b Falling edge of (CS# | RDn#) to valid D[15:0] driven for MCLK = BCLK/2 (read cycle) 10.5 TBUSCLK

t8c Falling edge of (CS# | RDn#) to valid D[15:0] driven for MCLK = BCLK/3 (read cycle) 13.5 TBUSCLK

t8d Falling edge of (CS# | RDn#) to valid D[15:0] driven for MCLK = BCLK/4 (read cycle) 15.5 TBUSCLK

t9 Valid D[15:0] hold to (CS# | RDn#) rising edge 0.5 TBUSCLK t10a (CS# | WRn#) Low pulse width (write cycle) 4 TBUSCLK t10b (CS# | RDn#) Low pulse width for MCLK = BCLK (read cycle) 8 TBUSCLK t10c (CS# | RDn#) Low pulse width for MCLK = BCLK/2 (read cycle) 11 TBUSCLK t10d (CS# | RDn#) Low pulse width for MCLK = BCLK/3 (read cycle) 15 TBUSCLK t10e (CS# | RDn#) Low pulse width for MCLK = BCLK/4 (read cycle) 17 TBUSCLK t11a (CS# | RDn#) High pulse width (read turnaround) 2 TBUSCLK t11b (CS# | WRn#) High pulse width for MCLK = BCLK (write turnaround) 2.5 TBUSCLK t11c (CS# | WRn#) High pulse width for MCLK = BCLK/2 (write turnaround) 5.5 TBUSCLK t11d (CS# | WRn#) High pulse width for MCLK = BCLK/3 (write turnaround) 7.5 TBUSCLK t11e (CS# | WRn#) High pulse width for MCLK = BCLK/4 (write turnaround) 9.5 TBUSCLK

Note

Max frequency (fBUSCLK) when using crystal oscillator is 12MHz.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 72 of the Epson LCD Controller (S1D13708) user manual — GPO0*
Page 72 · click to enlarge
Page 72

6.3 LCD Power Sequencing

6.3.1 Passive/TFT Power-On Sequence

GPO0*

*It is recommended to use the general purpose output pin GPO0 to control the LCD bias power.

**The LCD power-on sequence is activated by programming the Power Save Mode Enable bit (REG[A0h] bit 0) to 0. ***LCD Signals include: FPDAT[17:0], FPSHIFT, FPLINE, FPFRAME, and DRDY.

Figure 6-13 Passive/TFT Power-On Sequence Timing

Table 6-16Passive/TFT Power-On Sequence Timing

Symbol Parameter Min Max Units

t1 LCD signals active to LCD bias active Note 1 Note 1

t2 Power Save Mode disabled to LCD signals active 0 20 ns

1. t1 is controlled by software and must be determined from the bias power supply delay requirements of the panel connected.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 5 more labels / short text on this page
Power Save t1 · Mode Enable** · (REG[A0h] bit 0) · t2 · LCD Signals***
Page 73 of the Epson LCD Controller (S1D13708) user manual — GPO0*
Page 73 · click to enlarge
Page 73

6.3.2 Passive/TFT Power-Off Sequence

GPO0*

*It is recommended to use the general purpose output pin GPO0 to control the LCD bias power. **The LCD power-off sequence is activated by programming the Power Save Mode Enable bit (REG[A0h] bit 0) to 1. ***LCD Signals include: FPDAT[17:0], FPSHIFT, FPLINE, FPFRAME, and DRDY.

Figure 6-14 Passive/TFT Power-Off Sequence Timing

Table 6-17Passive/TFT Power-Off Sequence Timing

Symbol Parameter Min Max Units

t1 LCD bias deactivated to LCD signals inactive Note 1 Note 1

t2 Power Save Mode enabled to LCD signals low 0 20 ns

1. t1 is controlled by software and must be determined from the bias power supply delay requirements of the panel connected.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 6 more labels / short text on this page
t1 · Power Save · Mode Enable** · (REG[A0h] bit 0) · t2 · LCD Signals***
Page 74 of the Epson LCD Controller (S1D13708) user manual — HT
Page 74 · click to enlarge
Page 74

6.4 Display Interface

The timing parameters required to drive a flat panel display are shown below. Timing details for each supported panel type are provided in the remainder of this section.

HT

HDPS

HPW HPS

VPS

VDPS VPW

HDP

VDP VT

Figure 6-15 Panel Timing Parameters

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 75 of the Epson LCD Controller (S1D13708) user manual — Table 618: Panel Timing Parameter Definition and Register Summary
Page 75 · click to enlarge
Page 75
Table 6-18Panel Timing Parameter Definition and Register Summary

Symbol Description Derived From Units HT Horizontal Total ((REG[12h] bits 6-0) + 1) x 8

HDP1 Horizontal Display Period1 ((REG[44h] bits 6-0) + 1) x 8

HDPS Horizontal Display Period Start Position For STN panels: ((REG[17h] bits 1-0, REG[16h] bits 7-0) + 22) For TFT panels: ((REG[17h] bits 1-0, REG[16h] bits 7-0) + 5) HPS FPLINE Pulse Start Position (REG[23h] bits 1-0, REG[22h] bits 7-0) + 1 HPW FPLINE Pulse Width (REG[20h] bits 6-0) + 1 VT Vertical Total (REG[19h] bits 1-0, REG[18h] bits 7-0) + 1

Lines (HT) VDP Vertical Display Period (REG[1Dh] bits 1-0, REG[1Ch] bits 7-0) + 1 VDPS Vertical Display Period Start Position REG[1Fh] bits 1-0, REG[1Eh] bits 7-0 VPS FPFRAME Pulse Start Position REG[27h] bits 1-0, REG[26h] bits 7-0 VPW FPFRAME Pulse Width (REG[24h] bits 6-0) + 1

1. For passive panels, the HDP must be a minimum of 32 pixels and must be increased by multiples of 16. For TFT panels, the HDP must be a minimum of 8 pixels and must be increased by multiples of 8. 2. The following formulas must be valid for all panel timings:

HDPS + HDP < HT VDPS + VDP < VT

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Ts

Page 76 of the Epson LCD Controller (S1D13708) user manual — 6.4.1 Generic STN Panel Timing
Page 76 · click to enlarge
Page 76

6.4.1 Generic STN Panel Timing

Epson LCD Controller (S1D13708) — 6.4.1 Generic STN Panel Timing diagram (page 76)
Fig. 25 · 6.4.1 Generic STN Panel Timing

Figure 6-16 Generic STN Panel Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 77 of the Epson LCD Controller (S1D13708) user manual — 6.4.1 Generic STN Panel Timing
Page 77 · click to enlarge
Page 77

VT = Vertical Total = [(REG[19h] bits 1-0, REG[18h] bits 7-0) + 1] lines VPS = FPFRAME Pulse Start Position = 0 lines, because [(REG[27h] bits 1-0, REG[26h] bits 7-0)] = 0 VPW = FPFRAME Pulse Width = [(REG[24h] bits 2-0) + 1] lines VDPS = Vertical Display Period Start Position = 0 lines, because [(REG[1Fh] bits 1-0, REG[1Eh] bits 7-0)] = 0 VDP = Vertical Display Period = [(REG[1Dh] bits 1-0, REG[1Ch] bits 7-0) + 1] lines HT = Horizontal Total = [((REG[12h] bits 6-0) + 1) x 8] pixels HPS = FPLINE Pulse Start Position = [(REG[23h] bits 1-0, REG[22h] bits 7-0) + 1] pixels HPW = FPLINE Pulse Width = [(REG[20h] bits 6-0) + 1] pixels HDPS = Horizontal Display Period Start Position= 22 pixels, because [(REG[17h] bits 1-0, REG[16h] bits 7-0)] = 0 HDP = Horizontal Display Period = [((REG[14h] bits 6-0) + 1) x 8] pixels *For passive panels, the HDP must be a minimum of 32 pixels and must be increased by multiples of 16. *HPS must comply with the following formula: HPS > HDP + 22 HPS + HPW < HT *Panel Type Bits (REG[10h] bits 1-0) = 00b (STN) *FPFRAME Pulse Polarity Bit (REG[24h] bit 23) = 1 (active high) *FPLINE Pulse Polarity Bit (REG[20h] bit 7) = 1 (active high) *MOD1 is the MOD signal when REG[11h] bits 5-0 = 0 (MOD toggles every FPFRAME) *MOD2 is the MOD signal when REG[11h] bits 5-0 = n (MOD toggles every n FPLINE)

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 78 of the Epson LCD Controller (S1D13708) user manual — 6.4.2 Single Monochrome 4-Bit Panel Timing
Page 78 · click to enlarge
Page 78

6.4.2 Single Monochrome 4-Bit Panel Timing

Epson LCD Controller (S1D13708) — 6.4.2 Single Monochrome 4-Bit Panel Timing diagram (page 78)
Fig. 26 · 6.4.2 Single Monochrome 4-Bit Panel Timing

* Diagram drawn with 2 FPLINE vertical blank period Example timing for a 320x240 panel

Figure 6-17 Single Monochrome 4-Bit Panel Timing

VDP = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = Vertical Non-Display Period = VT - VDP = (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 79 of the Epson LCD Controller (S1D13708) user manual — Figure 618 Single Monochrome 4-Bit Panel A.C. Timing
Page 79 · click to enlarge
Page 79
Epson LCD Controller (S1D13708) — Figure 618 Single Monochrome 4-Bit Panel A.C. Timing diagram (page 79)
Fig. 27 · Figure 618 Single Monochrome 4-Bit Panel A.C. Timin…

Figure 6-18 Single Monochrome 4-Bit Panel A.C. Timing

Table 6-19Single Monochrome 4-Bit Panel A.C. Timing

Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t5 MOD transition to FPLINE rising edge note 6 Ts t6 FPSHIFT falling edge to FPLINE rising edge note 7 Ts t7 FPSHIFT falling edge to FPLINE falling edge t6 + t4 Ts t8 FPLINE falling edge to FPSHIFT falling edge t14 + 2 Ts t9 FPSHIFT period 4 Ts t10 FPSHIFT pulse width low 2 Ts t11 FPSHIFT pulse width high 2 Ts t12 FPDAT[7:4] setup to FPSHIFT falling edge 1 Ts t13 FPDAT[7:4] hold to FPSHIFT falling edge 2 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts

1. Ts = pixel clock period 2. t1 min = HPS + t4 min 3. t2 min = t3 min - (HPS + t4 min ) 4. t3 min = HT 5. t4 min = HPW 6. t5 min = HPS - 1 7. t6 min = HPS - (HDP + HDPS) + 2, if negative add t3 min 8. t14 min = HDPS - (HPS + t4 min ), if negative add t3 min

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 80 of the Epson LCD Controller (S1D13708) user manual — 6.4.3 Single Monochrome 8-Bit Panel Timing
Page 80 · click to enlarge
Page 80

6.4.3 Single Monochrome 8-Bit Panel Timing

Epson LCD Controller (S1D13708) — 6.4.3 Single Monochrome 8-Bit Panel Timing diagram (page 80)
Fig. 28 · 6.4.3 Single Monochrome 8-Bit Panel Timing

* Diagram drawn with 2 FPLINE vertical blank period Example timing for a 640x480 panel

Figure 6-19 Single Monochrome 8-Bit Panel Timing

VDP = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = Vertical Non-Display Period = VT - VDP = (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 81 of the Epson LCD Controller (S1D13708) user manual — Figure 620 Single Monochrome 8-Bit Panel A.C. Timing
Page 81 · click to enlarge
Page 81
Epson LCD Controller (S1D13708) — Figure 620 Single Monochrome 8-Bit Panel A.C. Timing diagram (page 81)
Fig. 29 · Figure 620 Single Monochrome 8-Bit Panel A.C. Timin…

Figure 6-20 Single Monochrome 8-Bit Panel A.C. Timing

Table 6-20Single Monochrome 8-Bit Panel A.C. Timing

Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t5 MOD transition to FPLINE rising edge note 6 Ts t6 FPSHIFT falling edge to FPLINE rising edge note 7 Ts t7 FPSHIFT falling edge to FPLINE falling edge t6 + t4 Ts t8 FPLINE falling edge to FPSHIFT falling edge t14 + 4 Ts t9 FPSHIFT period 8 Ts t10 FPSHIFT pulse width low 4 Ts t11 FPSHIFT pulse width high 4 Ts t12 FPDAT[7:0] setup to FPSHIFT falling edge 4 Ts t13 FPDAT[7:0] hold to FPSHIFT falling edge 4 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts

1. Ts = pixel clock period 2. t1 min = HPS + t4 min 3. t2 min = t3 min - (HPS + t4 min ) 4. t3 min = HT 5. t4 min = HPW 6. t5 min = HPS - 1 7. t6 min = HPS - (HDP + HDPS) + 4, if negative add t3 min 8. t14 min = HDPS - (HPS + t4 min ), if negative add t3 min

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 82 of the Epson LCD Controller (S1D13708) user manual — 6.4.4 Single Color 4-Bit Panel Timing
Page 82 · click to enlarge
Page 82

6.4.4 Single Color 4-Bit Panel Timing

Epson LCD Controller (S1D13708) — 6.4.4 Single Color 4-Bit Panel Timing diagram (page 82)
Fig. 30 · 6.4.4 Single Color 4-Bit Panel Timing

.5Ts

- Ts = Pixel clock period (PCLK) - FPSHIFT uses extended low states in order to process 8 pixels in 6 FPSHIFT clocks

- Diagram drawn with 2 FPLINE vertical blank period - Example timing for a 320x240 panel

Figure 6-21 Single Color 4-Bit Panel Timing

VDP = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = Vertical Non-Display Period = VT - VDP = (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 83 of the Epson LCD Controller (S1D13708) user manual — Figure 622 Single Color 4-Bit Panel A.C. Timing
Page 83 · click to enlarge
Page 83
Epson LCD Controller (S1D13708) — Figure 622 Single Color 4-Bit Panel A.C. Timing diagram (page 83)
Fig. 31 · Figure 622 Single Color 4-Bit Panel A.C. Timing

Figure 6-22 Single Color 4-Bit Panel A.C. Timing

Table 6-21Single Color 4-Bit Panel A.C. Timing

Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t5 MOD transition to FPLINE rising edge note 6 Ts t6 FPSHIFT falling edge to FPLINE rising edge note 7 Ts t7 FPSHIFT falling edge to FPLINE falling edge t6 + t4 Ts t8 FPLINE falling edge to FPSHIFT falling edge t14 + 0.5 Ts t9 FPSHIFT period 1 Ts t10 FPSHIFT pulse width low 0.5 Ts t11 FPSHIFT pulse width high 0.5 Ts t12 FPDAT[7:4] setup to FPSHIFT falling edge 0.5 Ts t13 FPDAT[7:4] hold to FPSHIFT falling edge 0.5 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts

1. Ts = pixel clock period 2. t1 min = HPS + t4 min 3. t2 min = t3 min - (HPS + t4 min ) 4. t3 min = HT 5. t4 min = HPW 6. t5 min = HPS - 1 7. t6 min = HPS - (HDP + HDPS) + 1.5), if negative add t3 min 8. t14 min = HDPS - (HPS + t4 min ) + 1, if negative add t3 min

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 84 of the Epson LCD Controller (S1D13708) user manual — 6.4.5 Single Color 8-Bit Panel Timing (Format 1)
Page 84 · click to enlarge
Page 84

6.4.5 Single Color 8-Bit Panel Timing (Format 1)

Epson LCD Controller (S1D13708) — 6.4.5 Single Color 8-Bit Panel Timing (Format 1) diagram (page 84)
Fig. 32 · 6.4.5 Single Color 8-Bit Panel Timing (Format 1)

2Ts

- Ts = Pixel clock period (PCLK) - The duty cycle of FPSHIFT changes in order to process 16 pixels in 6 FPSHIFT/FPSHIFT2 rising edges

- Diagram drawn with 2 FPLINE vertical blank period - Example timing for a 320x240 panel

Figure 6-23 Single Color 8-Bit Panel Timing (Format 1)

VDP = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = Vertical Non-Display Period = VT - VDP = (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 85 of the Epson LCD Controller (S1D13708) user manual — Figure 624 Single Color 8-Bit Panel A.C. Timing (Format 1)
Page 85 · click to enlarge
Page 85
Epson LCD Controller (S1D13708) — Figure 624 Single Color 8-Bit Panel A.C. Timing (Format 1) diagram (page 85)
Fig. 33 · Figure 624 Single Color 8-Bit Panel A.C. Timing (Fo…

Figure 6-24 Single Color 8-Bit Panel A.C. Timing (Format 1)

Table 6-22Single Color 8-Bit Panel A.C. Timing (Format 1)

Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t6a FPSHIFT falling edge to FPLINE rising edge note 6 Ts t6b FPSHIFT2 falling edge to FPLINE rising edge note 7 Ts t7a FPSHIFT falling edge to FPLINE falling edge t6a + t4 Ts t7b FPSHIFT2 falling edge to FPLINE falling edge t6b + t4 Ts t8 FPLINE falling edge to FPSHIFT rising, FPSHIFT2 falling edge t14 + 2 Ts t9 FPSHIFT2, FPSHIFT period 4 6 Ts t10 FPSHIFT2, FPSHIFT pulse width low 2 Ts t11 FPSHIFT2, FPSHIFT pulse width high 2 Ts t12 FPDAT[7:0] setup to FPSHIFT2, FPSHIFT falling edge 1 Ts t13 FPDAT[7:0] hold from FPSHIFT2, FPSHIFT falling edge 1 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts

1. Ts = pixel clock period 2. t1min = HPS + t4min 3. t2min = t3min - (HPS + t4min) 4. t3min = HT 5. t4min = HPW 6. t6amin = HPS - (HDP + HDPS), if negative add t3min 7. t6bmin = HPS - (HDP + HDPS) + 2, if negative add t3min 8. t14min = HDPS - (HPS + t4min), if negative add t3min

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 86 of the Epson LCD Controller (S1D13708) user manual — 6.4.6 Single Color 8-Bit Panel Timing (Format 2)
Page 86 · click to enlarge
Page 86

6.4.6 Single Color 8-Bit Panel Timing (Format 2)

Epson LCD Controller (S1D13708) — 6.4.6 Single Color 8-Bit Panel Timing (Format 2) diagram (page 86)
Fig. 34 · 6.4.6 Single Color 8-Bit Panel Timing (Format 2)

- Ts = Pixel clock period (PCLK) - The duty cycle of FPSHIFT changes in order to process 8 pixels in 3 FPSHIFT rising clocks

- Diagram drawn with 2 FPLINE vertical blank period - Example timing for a 320x240 panel

Figure 6-25 Single Color 8-Bit Panel Timing (Format 2)

VDP = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = Vertical Non-Display Period = VT - VDP = (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 87 of the Epson LCD Controller (S1D13708) user manual — Figure 626 Single Color 8-Bit Panel A.C. Timing (Format 2)
Page 87 · click to enlarge
Page 87
Epson LCD Controller (S1D13708) — Figure 626 Single Color 8-Bit Panel A.C. Timing (Format 2) diagram (page 87)
Fig. 35 · Figure 626 Single Color 8-Bit Panel A.C. Timing (Fo…

Figure 6-26 Single Color 8-Bit Panel A.C. Timing (Format 2)

Table 6-23Single Color 8-Bit Panel A.C. Timing (Format 2)

Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t5 MOD transition to FPLINE rising edge note 6 Ts t6 FPSHIFT falling edge to FPLINE rising edge note 7 Ts t7 FPSHIFT falling edge to FPLINE falling edge t6 + t4 Ts t8 FPLINE falling edge to FPSHIFT falling edge t14 + 2 Ts t9 FPSHIFT period 2 Ts t10 FPSHIFT pulse width low 1 Ts t11 FPSHIFT pulse width high 1 Ts t12 FPDAT[7:0] setup to FPSHIFT falling edge 1 Ts t13 FPDAT[7:0] hold to FPSHIFT falling edge 1 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts

1. Ts = pixel clock period 2. t1 min = HPS + t4 min 3. t2 min = t3 min - (HPS + t4 min ) 4. t3 min = HT 5. t4 min = HPW 6. t5 min = HPS - 1 7. t6 min = HPS - (HDP + HDPS) + 1, if negative add t3 min 8. t14 min = HDPS - (HPS + t4 min ), if negative add t3 min

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 88 of the Epson LCD Controller (S1D13708) user manual — 6.4.7 Single Color 16-Bit Panel Timing
Page 88 · click to enlarge
Page 88

6.4.7 Single Color 16-Bit Panel Timing

Epson LCD Controller (S1D13708) — 6.4.7 Single Color 16-Bit Panel Timing diagram (page 88)
Fig. 36 · 6.4.7 Single Color 16-Bit Panel Timing

- Ts = Pixel clock period (PCLK) - The duty cycle of FPSHIFT changes in order to process 16 pixels in 3 FPSHIFT rising clocks

- Diagram drawn with 2 FPLINE vertical blank period - Example timing for a 640x480 panel

Figure 6-27 Single Color 16-Bit Panel Timing

VDP = Vertical Display Period = (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) + 1 Lines VNDP = Vertical Non-Display Period = VT - VDP = (REG[19h] bits 1:0, REG[18h] bits 7:0) - (REG[1Dh] bits 1:0, REG[1Ch] bits 7:0) Lines HDP = Horizontal Display Period = ((REG[14h] bits 6:0) + 1) x 8Ts HNDP = Horizontal Non-Display Period = HT - HDP = (((REG[12h] bits 6:0) + 1) x 8Ts) - (((REG[14h] bits 6:0) + 1) x 8Ts)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 89 of the Epson LCD Controller (S1D13708) user manual — Figure 628 Single Color 16-Bit Panel A.C. Timing
Page 89 · click to enlarge
Page 89
Epson LCD Controller (S1D13708) — Figure 628 Single Color 16-Bit Panel A.C. Timing diagram (page 89)
Fig. 37 · Figure 628 Single Color 16-Bit Panel A.C. Timing

Figure 6-28 Single Color 16-Bit Panel A.C. Timing

Table 6-24Single Color 16-Bit Panel A.C. Timing

Symbol Parameter Min Typ Max Units t1 FPFRAME setup to FPLINE falling edge note 2 Ts (note 1) t2 FPFRAME hold from FPLINE falling edge note 3 Ts t3 FPLINE period note 4 Ts t4 FPLINE pulse width note 5 Ts t5 MOD transition to FPLINE rising edge note 6 Ts t6 FPSHIFT falling edge to FPLINE rising edge note 7 Ts t7 FPSHIFT falling edge to FPLINE falling edge t6 + t4 Ts t8 FPLINE falling edge to FPSHIFT falling edge t14 + 3 Ts t9 FPSHIFT period 5 Ts t10 FPSHIFT pulse width low 2 Ts t11 FPSHIFT pulse width high 2 Ts t12 FPDAT[15:0] setup to FPSHIFT rising edge 2 Ts t13 FPDAT[15:0] hold to FPSHIFT rising edge 2 Ts t14 FPLINE falling edge to FPSHIFT rising edge note 8 Ts

1. Ts = pixel clock period 2. t1 min = HPS + t4 min 3. t2 min = t3 min - (HPS + t4 min ) 4. t3 min = HT 5. t4 min = HPW 6. t5 min = HPS - 1 7. t6 min = HPS - (HDP + HDPS) + 2, if negative add t3 min 8. t14 min = HDPS - (HPS + t4 min ), if negative add t3 min

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 90 of the Epson LCD Controller (S1D13708) user manual — 6.4.8 Generic TFT Panel Timing
Page 90 · click to enlarge
Page 90

6.4.8 Generic TFT Panel Timing

Epson LCD Controller (S1D13708) — 6.4.8 Generic TFT Panel Timing diagram (page 90)
Fig. 38 · 6.4.8 Generic TFT Panel Timing

Figure 6-29 Generic TFT Panel Timing

VT = Vertical Total = [(REG[19h] bits 1-0, REG[18h] bits 7-0) + 1] lines VPS = FPFRAME Pulse Start Position = (REG[27h] bits 1-0, REG[26h] bits 7-0) lines VPW = FPFRAME Pulse Width = [(REG[24h] bits 2-0) + 1] lines VDPS = Vertical Display Period Start Position = (REG[1Fh] bits 1-0, REG[1Eh] bits 7-0) lines VDP = Vertical Display Period = [(REG[1Dh] bits 1-0, REG[1Ch] bits 7-0) + 1] lines HT = Horizontal Total = [((REG[12h] bits 6-0) + 1) x 8] pixels HPS = FPLINE Pulse Start Position = [(REG[23h] bits 1-0, REG[22h] bits 7-0) + 1] pixels HPW = FPLINE Pulse Width = [(REG[20h] bits 6-0) + 1] pixels HDPS = Horizontal Display Period Start Position= [(REG[17h] bits 1-0, REG[16h] bits 7-0) + 5] pixels HDP = Horizontal Display Period = [((REG[14h] bits 6-0) + 1) x 8] pixels

*For TFT panels, the HDP must be a minimum of 16 pixels and must be increased by multiples of 8. *Panel Type Bits (REG[10h] bits 1-0) = 01 (TFT) *FPLINE Pulse Polarity Bit (REG[20h] bit 7) = 0 (active low) *FPFRAME Polarity Bit (REG[24h] bit 7) = 0 (active low)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 91 of the Epson LCD Controller (S1D13708) user manual — 6.4.9 9/12/18-Bit TFT Panel Timing
Page 91 · click to enlarge
Page 91

6.4.9 9/12/18-Bit TFT Panel Timing

Epson LCD Controller (S1D13708) — 6.4.9 9/12/18-Bit TFT Panel Timing diagram (page 91)
Fig. 39 · 6.4.9 9/12/18-Bit TFT Panel Timing

Figure 6-30 18-Bit TFT Panel Timing

VDP = Vertical Display Period = VDP Lines VNDP = Vertical Non-Display Period = VNDP1 + VNDP2 = VT - VDP Lines VNDP1 = Vertical Non-Display Period 1 = VNDP - VNDP2 Lines VNDP2 = Vertical Non-Display Period 2 = VDPS - VPS Lines if negative add VT HDP = Horizontal Display Period = HDP Ts HNDP = Horizontal Non-Display Period = HNDP1 + HNDP2 = HT - HDP Ts HNDP1 = Horizontal Non-Display Period 1 = HDPS - HPS Ts if negative add HT HNDP2 = Horizontal Non-Display Period 2 = HPS - (HDP + HDPS) Ts if negative add HT

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 92 of the Epson LCD Controller (S1D13708) user manual — Figure 631 TFT A.C. Timing
Page 92 · click to enlarge
Page 92
Epson LCD Controller (S1D13708) — Figure 631 TFT A.C. Timing diagram (page 92)
Fig. 40 · Figure 631 TFT A.C. Timing

Figure 6-31 TFT A.C. Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 93 of the Epson LCD Controller (S1D13708) user manual — Table 625: TFT A.C. Timing
Page 93 · click to enlarge
Page 93
Table 6-25TFT A.C. Timing

Symbol Parameter Min Typ Max Units

t1 FPFRAME cycle time VT Lines

t2 FPFRAME pulse width low VPW Lines

t3 FPFRAME falling edge to FPLINE falling edge phase difference HPS Ts (note 1)

t4 FPLINE cycle time HT Ts

t5 FPLINE pulse width low HPW Ts

t6 FPLINE Falling edge to DRDY active note 2 250 Ts

t7 DRDY pulse width HDP Ts t8 DRDY falling edge to FPLINE falling edge note 3 Ts t9 FPSHIFT period 1 Ts t10 FPSHIFT pulse width high 0.5 Ts t11 FPSHIFT pulse width low 0.5 Ts t12 FPLINE setup to FPSHIFT falling edge 0.5 Ts t13 DRDY to FPSHIFT falling edge setup time 0.5 Ts t14 DRDY hold from FPSHIFT falling edge 0.5 Ts t15 Data setup to FPSHIFT falling edge 0.5 Ts t16 Data hold from FPSHIFT falling edge 0.5 Ts

1. Ts = pixel clock period 2. t6min = HDPS - HPS if negative add HT 3. t8min = HPS - (HDP + HDPS) if negative add HT

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 94 of the Epson LCD Controller (S1D13708) user manual — 6.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx)
Page 94 · click to enlarge
Page 94

6.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx)

Epson LCD Controller (S1D13708) — 6.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx) diagram (page 94)
Fig. 41 · 6.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e…

Figure 6-32 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 95 of the Epson LCD Controller (S1D13708) user manual — Table 626: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timing
Page 95 · click to enlarge
Page 95
Table 6-26160x160 Sharp ‘Direct’ HR-TFT Horizontal Timing

Symbol Parameter Min Typ Max Units

t1 FPLINE start position 13 (note 2) Ts (note 1)

t2 Horizontal total period 180 note 3 220 Ts

t3 FPLINE width 2 (note 4) Ts

t4 FPSHIFT period 1 Ts t5 Data setup to FPSHIFT rising edge 0.5 Ts t6 Data hold from FPSHIFT rising edge 0.5 Ts

t7 Horizontal display start position 5 (note 5) Ts

t8 Horizontal display period 160 (note 6) Ts

t9 FPLINE rising edge to GPIO3 rising edge 4 Ts t10 GPIO3 pulse width 1 Ts t11 GPIO1, GPIO0 pulse width 136 Ts t12 GPIO1 rising edge (GPIO0 falling edge) to FPLINE rise edge 4 Ts t13 GPIO2 toggle edge to FPLINE rise edge 10 Ts

1. Ts = pixel clock period 2. t1typ = (REG[23h] bits 1-0, REG[22h] bits 7-0) + 1 3. t2typ = ((REG[12h] bits 6-0) + 1) x 8 4. t3typ = (REG[20h] bits 6-0) + 1 5. t7typ = ((REG[17h] bits 1-0, REG[16h] bits 7-0) + 5) - ((REG[23h] bits 1-0, REG[22h] bits 7-0) + 1) 6. t8typ = (((REG[14h] bits 6-0)) + 1) x 8

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 96 of the Epson LCD Controller (S1D13708) user manual — Figure 633 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing
Page 96 · click to enlarge
Page 96
Epson LCD Controller (S1D13708) — Figure 633 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing diagram (page 96)
Fig. 42 · Figure 633 160x160 Sharp ‘Direct’ HR-TFT Panel Vert…

Figure 6-33 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 97 of the Epson LCD Controller (S1D13708) user manual — Table 627: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing
Page 97 · click to enlarge
Page 97
Table 6-27160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timing

Symbol Parameter Min Typ Max Units

t1 Vertical total period 203 264 Lines

t2 Vertical display start position 40 Lines

t3 Vertical display period 160 Lines

t4 Vertical sync pulse width 2 Lines

t5 FPFRAME falling edge to GPIO1 alternate timing start 5 Lines

t6 GPIO1 alternate timing period 4 Lines

t7 FPFRAME falling edge to GPIO0 alternate timing start 40 Lines t8 GPIO0 alternate timing period 162 Lines t9 GPIO1 first pulse rising edge to FPLINE rising edge 4 Ts (note 1) t10 GPIO1 first pulse width 48 Ts t11 GPIO1 first pulse falling edge to second pulse rising edge 40 Ts t12 GPIO1 second pulse width 48 Ts t13 GPIO0 falling edge to FPLINE rising edge 4 Ts t14 GPIO0 low pulse width 24 Ts

1. Ts = pixel clock period

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 98 of the Epson LCD Controller (S1D13708) user manual — 6.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01)
Page 98 · click to enlarge
Page 98

6.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01)

Epson LCD Controller (S1D13708) — 6.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01) diagram (page 98)
Fig. 43 · 6.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e…

Figure 6-34 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 99 of the Epson LCD Controller (S1D13708) user manual — Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing
Page 99 · click to enlarge
Page 99
Table 6-28320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing
Epson LCD Controller (S1D13708) — Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing diagram (page 99)
Fig. 44 · Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Hori…

t1 FPLINE start position 14 (note 2) Ts (note 1)

t2 Horizontal total period 400 note 3 440 Ts

t4 FPSHIFT period 1 Ts t5 Data setup to FPSHIFT rising edge 0.5 Ts t6 Data hold from FPSHIFT rising edge 0.5 Ts

t7 Horizontal display start position 60 (note 5) Ts

t9 FPLINE rising edge to GPIO3 rising edge 59 Ts t10 GPIO3 pulse width 1 Ts t11 GPIO1, GPIO0 pulse width 353 Ts t12 GPIO1 rising edge (GPIO0 falling edge) to FPLINE rise edge 5 Ts t13 GPIO2 toggle edge to FPLINE rise edge 11 Ts

1. Ts = pixel clock period 2. t1typ = (REG[23h] bits 1-0, REG[22h] bits 7-0) + 1 3. t2typ = ((REG[12h] bits 6-0) + 1) x 8 4. t3typ = (REG[20h] bits 6-0) + 1 5. t7typ = ((REG[17h] bits 1-0, REG[16h] bits 7-0) + 5) - ((REG[23h] bits 1-0, REG[22h] bits 7-0) + 1) 6. t8typ = ((REG[14h] bits 6-0) + 1) x 8
Epson LCD Controller (S1D13708) — Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing diagram (page 99)
Fig. 45 · Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Hori…

Figure 6-35 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timing

Table 6-29320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timing
Epson LCD Controller (S1D13708) — Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timing diagram (page 99)
Fig. 46 · Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Hori…

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 100 of the Epson LCD Controller (S1D13708) user manual — 6.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR)
Page 100 · click to enlarge
Page 100

6.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR)

Epson LCD Controller (S1D13708) — 6.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR) diagram (page 100)
Fig. 47 · 6.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SC…

Figure 6-36 160x240 Epson D-TFD Panel Horizontal Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 101 of the Epson LCD Controller (S1D13708) user manual — Table 630: 160x240 Epson D-TFD Panel Horizontal Timing
Page 101 · click to enlarge
Page 101
Table 6-30160x240 Epson D-TFD Panel Horizontal Timing

Symbol Parameter Min Typ Max Units

t1 FPLINE pulse width 9 Ts (note 1)

t2 FPLINE falling edge to FPSHIFT start position 8.5 Ts

t3 FPSHIFT active period 167 Ts

t4 FPSHIFT start to first data 4 Ts

t5 Horizontal display period 160 Ts t6 Last data to FPSHIFT inactive 3 Ts

t7 FPLINE falling edge to GPIO4 first pulse falling edge 1 Ts

t8 Horizontal total period 400 Ts t9 GPIO4 first pulse falling edge to second pulse falling edge 200 Ts t10 GPIO4 pulse width 11 Ts t11 GPIO1 pulse width 100 Ts t12 GPIO1 low period 100) Ts t13 GPIO0 pulse width 200 Ts t14 GPIO6 low pulse width 90 Ts t15 GPIO6 rising edge to GPIO0 falling edge 10 Ts t16 GPIO2 toggle to GPIO3 toggle 1 Ts t17 GPIO5 low pulse width 7 Ts

1. Ts = pixel clock period

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 102 of the Epson LCD Controller (S1D13708) user manual — Figure 637 160x240 Epson D-TFD Panel GCP Horizontal Timing
Page 102 · click to enlarge
Page 102
Epson LCD Controller (S1D13708) — Figure 637 160x240 Epson D-TFD Panel GCP Horizontal Timing diagram (page 102)
Fig. 48 · Figure 637 160x240 Epson D-TFD Panel GCP Horizontal…

Figure 6-37 160x240 Epson D-TFD Panel GCP Horizontal Timing

Table 6-31160x240 Epson D-TFD Panel GCP Horizontal Timing

Symbol Parameter Min Typ Max Units

t1 Half of the horizontal total period 200 Ts (note 1)

t2 GCP clock period 1 Ts

1. Ts = pixel clock period

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 103 of the Epson LCD Controller (S1D13708) user manual — Figure 638 160x240 Epson D-TFD Panel Vertical Timing
Page 103 · click to enlarge
Page 103
Epson LCD Controller (S1D13708) — Figure 638 160x240 Epson D-TFD Panel Vertical Timing diagram (page 103)
Fig. 49 · Figure 638 160x240 Epson D-TFD Panel Vertical Timin…

Figure 6-38 160x240 Epson D-TFD Panel Vertical Timing

Table 6-32160x240 Epson D-TFD Panel Vertical Timing
Epson LCD Controller (S1D13708) — Figure 638 160x240 Epson D-TFD Panel Vertical Timing diagram (page 103)
Fig. 50 · Figure 638 160x240 Epson D-TFD Panel Vertical Timin…

t2 Horizontal total period 400 Ts t3 Vertical display start 400 Ts

1. Ts = pixel clock period

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 104 of the Epson LCD Controller (S1D13708) user manual — 6.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR)
Page 104 · click to enlarge
Page 104

6.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR)

Epson LCD Controller (S1D13708) — 6.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR) diagram (page 104)
Fig. 51 · 6.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQ…

Figure 6-39 320x240 Epson D-TFD Panel Horizontal Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 105 of the Epson LCD Controller (S1D13708) user manual — Table 633: 320x240 Epson D-TFD Panel Horizontal Timing
Page 105 · click to enlarge
Page 105
Table 6-33320x240 Epson D-TFD Panel Horizontal Timing

Symbol Parameter Min Typ Max Units

t1 FPLINE pulse width 9 Ts (note 1)

t2 FPLINE falling edge to FPSHIFT start position 8.5 Ts

t3 FPSHIFT active period 331 Ts

t4 FPSHIFT start to first data 6 Ts

t5 Horizontal display period 320 Ts t6 Last data to FPSHIFT inactive 5 Ts

t7 FPLINE falling edge to GPIO4 first pulse falling edge 1 Ts

t8 Horizontal total period 400 Ts t9 GPIO4 first pulse falling edge to second pulse falling edge 200 Ts t10 GPIO4 pulse width 11 Ts t11 GPIO1 pulse width 100 Ts t12 GPIO1 low period 100 Ts t13 GPIO0 pulse width 200 Ts t14 GPIO6 low pulse width 90 Ts t15 GPIO6 rising edge to GPIO0 falling edge 10 Ts t16 GPIO2 toggle to GPIO3 toggle 1 Ts t17 GPIO5 low pulse width 7 Ts

1. Ts = pixel clock period

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 106 of the Epson LCD Controller (S1D13708) user manual — Figure 640 320x240 Epson D-TFD Panel GCP Horizontal Timing
Page 106 · click to enlarge
Page 106
Epson LCD Controller (S1D13708) — Figure 640 320x240 Epson D-TFD Panel GCP Horizontal Timing diagram (page 106)
Fig. 52 · Figure 640 320x240 Epson D-TFD Panel GCP Horizontal…

Figure 6-40 320x240 Epson D-TFD Panel GCP Horizontal Timing

Table 6-34320x240 Epson D-TFD Panel GCP Horizontal Timing

Symbol Parameter Min Typ Max Units

t1 Half of the horizontal total period 200 Ts (note 1)

t2 GCP clock period 1 Ts

1. Ts = pixel clock period

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 107 of the Epson LCD Controller (S1D13708) user manual — Figure 641 320x240 Epson D-TFD Panel Vertical Timing
Page 107 · click to enlarge
Page 107
Epson LCD Controller (S1D13708) — Figure 641 320x240 Epson D-TFD Panel Vertical Timing diagram (page 107)
Fig. 53 · Figure 641 320x240 Epson D-TFD Panel Vertical Timin…

Figure 6-41 320x240 Epson D-TFD Panel Vertical Timing

Table 6-35320x240 Epson D-TFD Panel Vertical Timing
Epson LCD Controller (S1D13708) — Figure 641 320x240 Epson D-TFD Panel Vertical Timing diagram (page 107)
Fig. 54 · Figure 641 320x240 Epson D-TFD Panel Vertical Timin…

t2 Horizontal total period 400 Ts t3 Vertical display start 400 Ts

1. Ts = pixel clock period

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 108 of the Epson LCD Controller (S1D13708) user manual — 6.4.14 TFT Type 2 Panel Timing
Page 108 · click to enlarge
Page 108

6.4.14 TFT Type 2 Panel Timing

Epson LCD Controller (S1D13708) — 6.4.14 TFT Type 2 Panel Timing diagram (page 108)
Fig. 55 · 6.4.14 TFT Type 2 Panel Timing

Figure 6-42 TFT Type 2 Horizontal Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 109 of the Epson LCD Controller (S1D13708) user manual — Table 636: TFT Type 2 Horizontal Timing
Page 109 · click to enlarge
Page 109
Table 6-36TFT Type 2 Horizontal Timing

Symbol Parameter Min Typ Max Units

t1 Horizontal total period 1 note 2 1024 Ts (note 1)

t2 FPLINE pulse width 5 Ts

t3 GPIO0 rising edge to FPLINE rising edge 7 note 3 16 Ts

t4 FPLINE rising edge to GPIO0 falling edge 7 note 4 16 Ts

t5 FPLINE rising edge to GPIO3 rising edge note 5 Ts

t6 GPIO3 pulse width 1 Ts t7 Data setup time 0.5 Ts t8 Data hold time 0.5 Ts

t9 Horizontal display period 8 note 6 1024 Ts t10 FPLINE rising edge to GPIO1 rising edge 40 note 7 90 Ts t11 GPIO1 pulse width 20 note 8 270 Ts t12 FPLINE rising edge to GPIO2 toggle position 10 Ts

1. Ts = pixel clock period 2. t1typ = (REG[12h] bits 6-0) +1) x 8 3. t3typ = Selected from 7, 9, 12 or 16 Ts in REG[D0h] bits 1-0 4. t4typ = Selected from 7, 9, 12 or 16 Ts in REG[D0h] bits 4-3 5. t5typ = (REG[17h] bits 1-0, REG[16h] bits 7-0) + 3 6. t9typ = ((REG[14h] bits 6-0) +1) x 8 7. t10typ = Selected from 40, 52, 68 or 90 Ts in REG[D1h] bits 1-0 8. t11typ = Selected from 20, 40, 80, 120, 150, 190, 240 or 270 Ts in REG[D1h] bits 5-3

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 110 of the Epson LCD Controller (S1D13708) user manual — Figure 643 TFT Type 2 Vertical Timing
Page 110 · click to enlarge
Page 110
Epson LCD Controller (S1D13708) — Figure 643 TFT Type 2 Vertical Timing diagram (page 110)
Fig. 56 · Figure 643 TFT Type 2 Vertical Timing

Figure 6-43 TFT Type 2 Vertical Timing

Table 6-37TFT Type 2 Vertical Timing
Epson LCD Controller (S1D13708) — Figure 643 TFT Type 2 Vertical Timing diagram (page 110)
Fig. 57 · Figure 643 TFT Type 2 Vertical Timing

t1 Vertical total period 8 note 1 1024 Lines

t3 GPIO3 rising edge to FPFRAME rising edge 0 Ts (note 1)

t4 Vertical display start position 0 note 2 1024 Lines

t5 Vertical display period 1 note 3 1024 Ts

1. Ts = pixel clock period 2. t1typ = (REG[19h] bits 1-0, REG[18h] bits 7-0) +1 3. t4typ = (REG[1Fh] bits 1-0, REG[1Eh] bits 7-0) 4. t5typ = (REG[1Dh] bits 1-0], REG[1Ch] bits 7-0) + 1

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 111 of the Epson LCD Controller (S1D13708) user manual — 6.4.15 TFT Type 3 Panel Timing
Page 111 · click to enlarge
Page 111

6.4.15 TFT Type 3 Panel Timing

Epson LCD Controller (S1D13708) — 6.4.15 TFT Type 3 Panel Timing diagram (page 111)
Fig. 58 · 6.4.15 TFT Type 3 Panel Timing

Figure 6-44 TFT Type 3 Horizontal Timing

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 112 of the Epson LCD Controller (S1D13708) user manual — Note
Page 112 · click to enlarge
Page 112
Table 6-38TFT Type 3 Horizontal Timing

Symbol Parameter Min Typ Max Units

t1 Horizontal total period 8 note 2 1024 Ts (note 1)

t2 FPLINE pulse width 1 note 3 256 Ts

t3 FPLINE rising edge to GPIO3 rising edge note 4 Ts t4 GPIO3 pulse width Ts

t5 GPIO3 rising edge to 1st data 1 Ts

t6 Data setup time 0.5 Ts

t7 Data hold time 0.5 Ts

t8 Horizontal display period 8 note 5 1024 Ts t9 FPLINE rising edge to GPIO1 rising edge 0 note 6 512 Ts t10 GPIO1 pulse width 2 note 7 512 Ts t11 FPLINE rising edge to GPIO2 toggle position 0 note 8 512 Ts t12 FPLINE rising edge to GPIO4 toggle position 0 note 9 512 Ts t13 FPLINE rising edge to GPIO0 rising edge 0 Ts t14 GPIO0 pulse width 2 note 10 512 Ts

1. Ts = pixel clock period 2. t1typ = ((REG[12h] bits 6-0) + 1) x 8 3. t2typ = (REG[20h] bits 6-0) + 1 4. t3typ = (REG[17h] bits 1-0, REG[16h] bits 7-0) + 3 5. t8typ = (REG[14h] bits 6-0) x 8 6. t9typ = ((REG[D5h] bits 7-0) x 2 7. t10typ = ((REG[D6h] bits 7-0) x 2 8. t11typ = ((REG[D7h] bits 7-0) x 2 9. t12typ = ((REG[D8h] bits 7-0) x 2 10. t14typ = ((REG[D9h] bits 7-0) x 2

Note

When TFT type 3 panel interface is selected, the following formula must be satisfied.

HTP - (HDS + HDP) > (Number of Source Driver IC * 3) + 3

Note

When REG[D6h] = 0, GPIO1 (OE) pulse width equals FPLINE (LP) pulse width.

Note

When REG[D9h] = 0, t13 = 4ns and GPIO0 (CPV) pulse width equals FPLINE (LP) pulse width.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 113 of the Epson LCD Controller (S1D13708) user manual — Figure 645 TFT Type 3 Vertical Timing
Page 113 · click to enlarge
Page 113
Epson LCD Controller (S1D13708) — Figure 645 TFT Type 3 Vertical Timing diagram (page 113)
Fig. 59 · Figure 645 TFT Type 3 Vertical Timing

Figure 6-45 TFT Type 3 Vertical Timing

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 114 of the Epson LCD Controller (S1D13708) user manual — Note
Page 114 · click to enlarge
Page 114
Table 6-39TFT Type 3 Vertical Timing

Symbol Parameter Min Typ Max Units

t1 Vertical total period 1 1024 Lines

t2 FPFRAME pulse width 1 Lines

t3 GPIO0 rising edge to FPFRAME rising (falling) edge 0.5 Lines t4 Vertical display start position 1 note 2 Lines

t5 Vertical display period 1 note 3 1024 Lines

t6 GPIO5 rising edge to GPIO0 rising edge 0 note 4 512 Ts t7 GPIO0 rising edge to GPIO5 falling edge 0 note 5 512 Ts

1. Ts = pixel clock period 2. t4typ = (REG[1Fh] bits 1-0, REG[1Eh] bits 7-0) 3. t5typ = (REG[1Dh] bits 1-0, REG[1Ch] bits 7-0) + 1 4. t6typ = ((REG[DAh] bits 7-0) x 2 5. t7typ = ((REG[DBh] bits 7-0) x 2

Note

When REG[DAh] = 0, GPIO5 (XOEV) stays HIGH.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 115 of the Epson LCD Controller (S1D13708) user manual — 6.4.16 TFT Type 4 Panel Timing
Page 115 · click to enlarge
Page 115

6.4.16 TFT Type 4 Panel Timing

Epson LCD Controller (S1D13708) — 6.4.16 TFT Type 4 Panel Timing diagram (page 115)
Fig. 60 · 6.4.16 TFT Type 4 Panel Timing

Figure 6-46 TFT Type 4 Panel Timing

VDP = Vertical Display Period = VDP Lines VNDP = Vertical Non-Display Period = VNDP1 + VNDP2 = VT - VDP Lines VNDP1 = Vertical Non-Display Period 1 = VNDP - VNDP2 Lines VNDP2 = Vertical Non-Display Period 2 = VDPS - VPS Lines if negative add VT HDP = Horizontal Display Period = HDP Ts HNDP = Horizontal Non-Display Period = HNDP1 + HNDP2 = HT - HDP Ts HNDP1 = Horizontal Non-Display Period 1 = HDPS - (HPS + 1) + 5 Ts if negative add HT HNDP2 = Horizontal Non-Display Period 2 = (HPS + 1) - (HDP + HDPS + 5) Ts if negative add HT

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 116 of the Epson LCD Controller (S1D13708) user manual — Figure 647 TFT Type 4 A.C. Timing
Page 116 · click to enlarge
Page 116
Epson LCD Controller (S1D13708) — Figure 647 TFT Type 4 A.C. Timing diagram (page 116)
Fig. 61 · Figure 647 TFT Type 4 A.C. Timing

Figure 6-47 TFT Type 4 A.C. Timing

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 117 of the Epson LCD Controller (S1D13708) user manual — Table 640: TFT Type 4 A.C. Timing
Page 117 · click to enlarge
Page 117
Table 6-40TFT Type 4 A.C. Timing

Symbol Parameter Min Typ Max Units

t1 FPFRAME cycle time VT note 2 Lines

t2 FPFRAME pulse width low VPW note 3 Lines

t3 FPFRAME falling edge to FPLINE falling edge phase difference HPS note 4 Ts (note 1)

t4 FPLINE cycle time HT note 5 Ts

t5 FPLINE pulse width low HPW note 6 Ts

t6 FPLINE Falling edge to DRDY active note 7 250 Ts t7 DRDY active to data setup 8 Ts

t8 DRDY pulse width HDP note 8 Ts t9 DRDY falling edge to FPLINE falling edge note 9 Ts t10 FPSHIFT period 1 Ts t11 FPSHIFT pulse width high 0.5 Ts t12 FPSHIFT pulse width low 0.5 Ts t13 FPLINE setup to FPSHIFT falling edge 0.5 Ts t14 DRDY to FPSHIFT falling edge setup time 0.5 Ts t15 DRDY hold from FPSHIFT falling edge 0.5 Ts t16 Data setup to FPSHIFT falling edge 0.5 Ts t17 Data hold from FPSHIFT falling edge 0.5 Ts

1. Ts = pixel clock period 2. t1typ = (REG[19h] bits 1-0, REG[18h] bits 7-0) +1 3. t2typ = (REG[24h] bits 2-0) + 1 4. t3typ = (REG[23h] bits 1-0, REG[22h] bits 7-0) + 1 5. t4typ = ((REG[12h] bits 6-0) + 1) x 8 6. t5typ = (REG[12h] bits 6-0) + 1 7. t6typ = HDPS- (HPS + 1) x 8 8. t8typ = ((REG[14h] bits 6-0) + 1) x 8 9. t9typ = HPS - HDPS - HDP

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 118 of the Epson LCD Controller (S1D13708) user manual — 7.1.2 MCLK
Page 118 · click to enlarge
Page 118

7 Clocks

7.1 Clock Descriptions

7.1.1 BCLK

BCLK is an internal clock derived from CLKI or XTAL. CLKI is typically provided from the host CPU bus clock. The source clock options for BCLK may be selected as in the following table.

Table 7-1BCLK Clock Selection

Source Clock Options BCLK Selection

CLKI CNF[7:6] = 00, REG[CAh] bit 0 = 0

CLKI ÷2 CNF[7:6] = 01, REG[CAh] bit 0 = 0

CLKI ÷31 CNF[7:6] = 10, REG[CAh] bit 0 = 0

CLKI ÷41 CNF[7:6] = 11, REG[CAh] bit 0 = 0

XTAL2 CNF[7:6] = 00, REG[CAh] bit 0 = 1

XTAL2 ÷2 CNF[7:6] = 01, REG[CAh] bit 0 = 1

XTAL2 ÷31 CNF[7:6] = 10, REG[CAh] bit 0 = 1

XTAL2 ÷41 CNF[7:6] = 11, REG[CAh] bit 0 = 1

Note

1 The ÷ 3 and ÷ 4 options may not work properly with bus interfaces which have short back-to-back cycle timing. 2 XTAL should only be used for BCLK when using the Indirect Interface.

7.1.2 MCLK

MCLK provides the internal clock required to access the embedded SRAM. The S1D13708 is designed with efficient power saving control for clocks (clocks are turned off when not used); reducing the frequency of MCLK does not necessarily save more power. Furthermore, reducing the MCLK frequency relative to the BCLK frequency increases the CPU cycle latency and so reduces screen update performance. For a balance of power saving and performance, MCLK should be configured to have a high enough frequency setting to provide sufficient screen refresh as well as acceptable CPU cycle latency.

The source clock options for MCLK may be selected as in the following table.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 119 of the Epson LCD Controller (S1D13708) user manual — 7.1.3 PCLK
Page 119 · click to enlarge
Page 119
Table 7-2MCLK Clock Selection

Source Clock Options MCLK Selection

BCLK REG[04h] bit 5,4 = 00

BCLK ÷2 REG[04h] bit 5,4 = 01

BCLK ÷3 REG[04h] bit 5,4 = 10

BCLK ÷4 REG[04h] bit 5,4 = 11

7.1.3 PCLK

PCLK is the internal clock used to control the LCD panel. PCLK should be chosen to match the optimum frame rate of the LCD panel. See Section 9, “Frame Rate Calculation” on page 171 for details on the relationship between PCLK and frame rate.

Some flexibility is possible in the selection of PCLK. Firstly, LCD panels typically have a range of permissible frame rates. Secondly, it may be possible to choose a higher PCLK frequency and tailor the horizontal and vertical non-display periods to lower the frame-rate to its optimal value.

The source clock options for PCLK may be selected as in the following table.

Table 7-3PCLK Clock Selection

Source Clock Options PCLK Selection

MCLK REG[05h] = 00h

MCLK ÷2 REG[05h] = 10h

MCLK ÷3 REG[05h] = 20h

MCLK ÷4 REG[05h] = 30h

MCLK ÷8 REG[05h] = 40h

BCLK REG[05h] = 01h

BCLK ÷2 REG[05h] = 11h

BCLK ÷3 REG[05h] = 21h

BCLK ÷4 REG[05h] = 31h

BCLK ÷8 REG[05h] = 41h

CLKI REG[05h] = 02h

CLKI ÷2 REG[05h] = 12h

CLKI ÷3 REG[05h] = 22h

CLKI ÷4 REG[05h] = 32h

CLKI ÷8 REG[05h] = 42h

CLKI2 REG[CAh] bit 1 = 0, REG[05h] = 03h

CLKI2 ÷2 REG[CAh] bit 1 = 0, REG[05h] = 13h

CLKI2 ÷3 REG[CAh] bit 1 = 0, REG[05h] = 23h

CLKI2 ÷4 REG[CAh] bit 1 = 0, REG[05h] = 33h

CLKI2 ÷8 REG[CAh] bit 1 = 0, REG[05h] = 43h

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 120 of the Epson LCD Controller (S1D13708) user manual — Table 72: MCLK Clock Selection
Page 120 · click to enlarge
Page 120
Table 7-3PCLK Clock Selection (Continued)

Source Clock Options PCLK Selection

XTAL REG[CAh] bit 1 = 1, REG[05h] = 03h

XTAL ÷2 REG[CAh] bit 1 = 1, REG[05h] = 13h

XTAL ÷3 REG[CAh] bit 1 = 1, REG[05h] = 23h

XTAL ÷4 REG[CAh] bit 1 = 1, REG[05h] = 33h

XTAL ÷8 REG[CAh] bit 1 = 1, REG[05h] = 43h

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 121 of the Epson LCD Controller (S1D13708) user manual — Note
Page 121 · click to enlarge
Page 121

There is a relationship between the frequency of MCLK and PCLK that must be maintained.

Table 7-4Relationship between MCLK and PCLK

SwivelView Orientation Color Depth (bpp) MCLK to PCLK Relationship

16 fMCLK ≥ fPCLK 8 fMCLK ≥ fPCLK ÷ 2

4 fMCLK ≥ fPCLK ÷ 4

SwivelView 0° and 180°

2 fMCLK ≥ fPCLK ÷ 8

1 fMCLK ≥ fPCLK ÷16

SwivelView 90° and 270° 16/8/4/2/1 fMCLK ≥ 1.25fPCLK

7.1.4 PWMCLK

PWMCLK is the internal clock used by the Pulse Width Modulator for output to the panel.

The source clock options for PWMCLK may be selected as in the following table.

Table 7-5PWMCLK Clock Selection

Source Clock Options PWMCLK Selection

CLKI REG[B1h] bit 0 = 0

CLKI2 REG[CAh] bit 1 = 0, REG[B1h] bit 0 = 1

XTAL REG[CAh] bit 1 = 1, REG[B1h] bit 0 = 1

For further information on controlling PWMCLK, see Section 8.3.9, “Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registers” on page 150.

Note

The S1D13708 provides Pulse Width Modulation output on the pin PWMOUT. PWMOUT can be used to control LCD panels which support PWM control of the back- light inverter.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 122 of the Epson LCD Controller (S1D13708) user manual — Note
Page 122 · click to enlarge
Page 122

7.2 Clock Selection

The following diagram provides a logical representation of the S1D13708 internal clocks.

Epson LCD Controller (S1D13708) — 7.2 Clock Selection diagram (page 122)
Fig. 62 · 7.2 Clock Selection

Figure 7-1 Clock Selection

Note

1 CNF[7:6] must be set at RESET#.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 123 of the Epson LCD Controller (S1D13708) user manual — Note
Page 123 · click to enlarge
Page 123

7.3 Clocks versus Functions

Table 7-6: “S1D13708 Internal Clock Requirements”, lists the internal clocks required for the following S1D13708 functions.

Table 7-6S1D13708 Internal Clock Requirements

(BCLK)

(MCLK)

(PCLK)

(PWMCLK)

Register Read/Write Required Not Required Not Required Not Required1

Memory Read/Write Required Required Not Required Not Required1

Read/Write Required Required Not Required Not Required1

Software Power Save Required Not Required Not Required Not Required1

LCD Output Not Required Required Required Not Required1

Note

1PWMCLK is an optional clock (see Section 7.1.4, “PWMCLK” on page 115).

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 5 more labels / short text on this page
Function Bus Clock · Memory Clock · Pixel Clock · PWM Clock · Look-Up Table Register
Page 124 of the Epson LCD Controller (S1D13708) user manual — 8.1 Register Mapping
Page 124 · click to enlarge
Page 124

8 Registers

This section discusses how and where to access the S1D13708 registers. It also provides detailed information about the layout and usage of each register.

8.1 Register Mapping

The S1D13708 registers are memory-mapped. When the system decodes the input pins as CS# = 0 and M/R# = 0, the registers may be accessed. The register space is decoded by A[16:0].

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 125 of the Epson LCD Controller (S1D13708) user manual — 8.2 Register Set
Page 125 · click to enlarge
Page 125

8.2 Register Set

The S1D13708 register set is as follows.

Table 8-1S1D13708 Register Set

Register Pg Register Pg

REG[00h] Revision Code Register 121 REG[01h] Display Buffer Size Register 121

REG[02h] Configuration Readback Register 121

REG[04h] Memory Clock Configuration Register 122 REG[05h] Pixel Clock Configuration Register 122

REG[08h] Look-Up Table Blue Write Data Register 123 REG[09h] Look-Up Table Green Write Data Register 123

REG[0Ah] Look-Up Table Red Write Data Register 124 REG[0Bh] Look-Up Table Write Address Register 124

REG[0Ch] Look-Up Table Blue Read Data Register 124 REG[0Dh] Look-Up Table Green Read Data Register 125

REG[0Eh] Look-Up Table Red Read Data Register 125 REG[0Fh] Look-Up Table Read Address Register 125

REG[10h] Panel Type Register 126 REG[11h] MOD Rate Register 127

REG[12h] Horizontal Total Register 127 REG[14h] Horizontal Display Period Register 128

REG[16h] Horizontal Display Period Start Position Register 0 128 REG[17h] Horizontal Display Period Start Position Register 1 128

REG[18h] Vertical Total Register 0 129 REG[19h] Vertical Total Register 1 129

REG[1Ch] Vertical Display Period Register 0 129 REG[1Dh] Vertical Display Period Register 1 129

REG[1Eh] Vertical Display Period Start Position Register 0 130 REG[1Fh] Vertical Display Period Start Position Register 1 130

REG[20h] FPLINE Pulse Width Register 130 REG[22h] FPLINE Pulse Start Position Register 0 131

REG[23h] FPLINE Pulse Start Position Register 1 131 REG[24h] FPFRAME Pulse Width Register 131

REG[26h] FPFRAME Pulse Start Position Register 0 132 REG[27h] FPFRAME Pulse Start Position Register 1 132

REG[28h] D-TFD GCP Index Register 132 REG[2Ch] D-TFD GCP Data Register 132

REG[70h] Display Mode Register 133 REG[71h] Special Effects Register 135

REG[74h] Main Window Display Start Address Register 0 137 REG[75h] Main Window Display Start Address Register 1 137

REG[76h] Main Window Display Start Address Register 2 137 REG[78h] Main Window Line Address Offset Register 0 137

REG[79h] Main Window Line Address Offset Register 1 137

REG[7Ch] PIP+ Window Display Start Address Register 0 138 REG[7Dh] PIP+ Window Display Start Address Register 1 138

REG[7Eh] PIP+ Window Display Start Address Register 2 138 REG[80h] PIP+ Window Line Address Offset Register 0 138

REG[81h] PIP+ Window Line Address Offset Register 1 138 REG[84h] PIP+ Window X Start Position Register 0 139

REG[85h] PIP+ Window X Start Position Register 1 139 REG[88h] PIP+ Window Y Start Position Register 0 140

REG[89h] PIP+ Window Y Start Position Register 1 140 REG[8Ch] PIP+ Window X End Position Register 0 141

REG[8Dh] PIP+ Window X End Position Register 1 141 REG[90h] PIP+ Window Y End Position Register 0 142

REG[91h] PIP+ Window Y End Position Register 1 142

REG[A0h] Power Save Configuration Register 143 REG[A1h] Reserved 143

REG[A2h] Reserved 144 REG[A3h] Reserved 144

REG[A4h] Scratch Pad Register 0 144 REG[A5h] Scratch Pad Register 1 144

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 7 more labels / short text on this page
Read-Only Configuration Registers · Clock Configuration Registers · Look-Up Table Registers · Panel Configuration Registers · Display Mode Registers · Picture-in-Picture Plus Registers · Miscellaneous Registers
Page 126 of the Epson LCD Controller (S1D13708) user manual — 8.2 Register Set
Page 126 · click to enlarge
Page 126
Table 8-1S1D13708 Register Set

Register Pg Register Pg

General Purpose IO Pins Registers

REG[A8h] General Purpose IO Pins Configuration Register 0 145 REG[A9h] General Purpose IO Pins Configuration Register 1 146

REG[ACh] General Purpose IO Pins Status/Control Register 0 146 REG[ADh] General Purpose IO Pins Status/Control Register 1 149

PWM Clock and CV Pulse Configuration Registers

REG[B0h] PWM Clock / CV Pulse Control Register 150 REG[B1h] PWM Clock / CV Pulse Configuration Register 152

REG[B2h] CV Pulse Burst Length Register 153 REG[B3h] PWMOUT Duty Cycle Register 153

REG[C0h] Memory Access Pointer 0 154 REG[C1h] Memory Access Pointer 1 154

REG[C2h] Memory Access Pointer 2 154 REG[C4h] Memory Access Start 154

REG[C5h] Extended Panel Type Register 155 REG[C6h] Memory Access Select Register 155

REG[C7h] Ink Layer Transparent Color Register 0 156 REG[C8h] Ink Layer Transparent Color Register 1 156

REG[C9h] Ink Layer Register 157 REG[CAh] BCLK Source Select Register 157

REG[CBh] Data Compare Invert Enable Register 158

REG[D0h] TFT Type 2 VCLK Configuration Register 159 REG[D1h] TFT Type 2 AP Configuration Register 160

REG[D4h] TFT Type 3 Control Signal Enable Register 161 REG[D5h] TFT Type 3 OE Rising Edge Position Register 162

REG[D6h] TFT Type 3 OE Pulse Width Register 162 REG[D7h] TFT Type 3 POL Toggle Position Register 162

REG[D8h] TFT Type 3 VCOM Toggle Position Register 162 REG[D9h] TFT Type 3 CPV Pulse Width Register 163

REG[DAh] TFT Type 3 XOEV Rising Edge Position Register 163 REG[DBh] TFT Type 3 XOEV Falling Edge Position Register 163

REG[DCh] TFT Type 3 PCLK Divide Register 164 REG[E0h] TFT Type 3 Partial Mode Display Area Control Register 165

REG[E1h] TFT Type 3 Partial Mode Display Refresh Cycle Register165 REG[E2h] TFT Type 3 Partial Area 0 X Start Position Register 166

REG[E3h] TFT Type 3 Partial Area 0 Y Start Position Register 166 REG[E4h] TFT Type 3 Partial Area 0 X End Position Register 166

REG[E5h] TFT Type 3 Partial Area 0 Y End Position Register 166 REG[E6h] TFT Type 3 Partial Area 1 X Start Position Register 167

REG[E7h] TFT Type 3 Partial Area 1 Y Start Position Register 167 REG[E8h] TFT Type 3 Partial Area 1 X End Position Register 167

REG[E9h] TFT Type 3 Partial Area 1 Y End Position Register 167 REG[EAh] TFT Type 3 Partial Area 2 X Start Position Register 168

REG[EBh] TFT Type 3 TFT Partial Area 2 Y Start Position Register 168 REG[ECh] TFT Type 3 Partial Area 2 X End Position Register 168

REG[EDh] TFT Type 3 Partial Area 2 Y End Position Register 168 REG[F0h] TFT Type 3 Command 0 Store Register 0 169

REG[F1h] TFT Type 3 Command 0 Store Register 1 169 REG[F2h] TFT Type 3 Command 1 Store Register 0 169

REG[F3h] TFT Type 3 Command 1 Store Register 1 169 REG[F4h] TFT Type 3 Command Send Request Register 169

REG[F5h] TFT Type 3 Source Driver IC Number Register 170

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Extended Registers

Page 127 of the Epson LCD Controller (S1D13708) user manual — Note
Page 127 · click to enlarge
Page 127

8.3 Register Descriptions

Unless specified otherwise, all register bits are set to 0 during power-on.

8.3.1 Read-Only Configuration Registers

Revision Code Register REG[00h] Read Only

Product Code Bits 5-0 Revision Code Bits 1-0

7 6 5 4 3 2 1 0

Note

The S1D13708 returns a value of 34h.

bits 7-2 Product Code These are read-only bits that indicates the product code. The product code is 001101.

bits 1-0 Revision Code These are read-only bits that indicates the revision code. The revision code is 00.

Display Buffer Size Register REG[01h] Read Only

Display Buffer Size Bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 Display Buffer Size Bits [7:0] This is a read-only register that indicates the size of the SRAM display buffer measured in 4K byte increments. The S1D13708 display buffer is 80K bytes and therefore this register returns a value of 20 (14h).

Value of this register = display buffer size ÷ 4K bytes

= 80K bytes ÷ 4K bytes = 20 (14h)

Configuration Readback Register REG[02h] Read Only

CNF7 Status CNF6 Status CNF5 Status CNF4 Status CNF3 Status CNF2 Status CNF1 Status CNF0 Status

7 6 5 4 3 2 1 0

bits 7-0 CNF[7:0] Status These read-only status bits return the status of the configuration pins CNF[7:0]. CNF[7:0] are latched at the rising edge of RESET#.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 128 of the Epson LCD Controller (S1D13708) user manual — 1XX 8:1
Page 128 · click to enlarge
Page 128

8.3.2 Clock Configuration Registers

Memory Clock Configuration Register REG[04h] Read/Write

n/a MCLK Divide Select Bits 1-0 n/a

7 6 5 4 3 2 1 0

bits 5-4 MCLK Divide Select Bits [1:0] These bits determine the divide used to generate the Memory Clock (MCLK) from the Bus Clock (BCLK).

Table 8-2MCLK Divide Selection

MCLK Divide Select Bits BCLK to MCLK Frequency Ratio

00 1:1

01 2:1

10 3:1

11 4:1

Pixel Clock Configuration Register REG[05h] Read/Write

n/a PCLK Divide Select Bits 2-0 n/a PCLK Source Select Bits 1-0

7 6 5 4 3 2 1 0

bits 6-4 PCLK Divide Select Bits [1:0] These bits determine the divide used to generate the Pixel Clock (PCLK) from the Pixel Clock Source.

Table 8-3PCLK Divide Selection

PCLK Divide Select Bits PCLK Source to PCLK Frequency Ratio

000 1:1

001 2:1

010 3:1

011 4:1

1XX 8:1

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 129 of the Epson LCD Controller (S1D13708) user manual — Note
Page 129 · click to enlarge
Page 129

bits 1-0 PCLK Source Select Bits [1:0] These bits determine the source of the Pixel Clock (PCLK).

Table 8-4PCLK Source Selection

PCLK Source Select Bits 1:0 PCLK Source

00 MCLK

01 BCLK

10 CLKI

11 CLKI2 / XTAL

Note

Selecting XTAL as the PCLK source is controlled by the BCLK Source Select bit (REG[C9h] bit 0).

8.3.3 Look-Up Table Registers

Look-Up Table Blue Write Data Register REG[08h] Write Only

LUT Blue Write Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

bits 7-2 LUT Blue Write Data Bits [5:0] This register contains the data to be written to the blue component of the Look-Up Table. The data is stored in this register until a write to the LUT Write Address register (REG[0Bh]) moves the data into the Look-Up Table.

Note

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is written to.

Look-Up Table Green Write Data Register REG[09h] Write Only

LUT Green Write Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

bits 7-2 LUT Green Write Data Bits [5:0] This register contains the data to be written to the green component of the Look-Up Table. The data is stored in this register until a write to the LUT Write Address register (REG[0Bh]) moves the data into the Look-Up Table.

Note

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is written to.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 130 of the Epson LCD Controller (S1D13708) user manual — Note
Page 130 · click to enlarge
Page 130

Look-Up Table Red Write Data Register REG[0Ah] Write Only

LUT Red Write Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

bits 7-2 LUT Red Write Data Bits [5:0] This register contains the data to be written to the red component of the Look-Up Table. The data is stored in this register until a write to the LUT Write Address register (REG[0Bh]) moves the data into the Look-Up Table.

Note

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is written to.

Look-Up Table Write Address Register REG[0Bh] Write Only

LUT Write Address Bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 LUT Write Address Bits [7:0] This register forms a pointer into the Look-Up Table (LUT) which is used to write LUT data stored in REG[08h], REG[09h] and REG[0Ah. The LUT Read Address Register (REG[0Fh]) and all corresponding Read Data Registers will also be updated with the newly written address and data. This is a write-only register and returns 00h if read.Fh

Note

The S1D13708 has three 256-position, 6-bit wide LUTs, one for each of red, green, and blue (see Section 11, “Look-Up Table Architecture” on page 173).

Look-Up Table Blue Read Data Register REG[0Ch] Read Only

LUT Blue Read Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

bits 7-2 LUT Blue Read Data Bits [5:0] This register contains the data from the blue component of the Look-Up Table. The LUT entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a read- only register.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 131 of the Epson LCD Controller (S1D13708) user manual — Note
Page 131 · click to enlarge
Page 131

Look-Up Table Green Read Data Register REG[0Dh] Read Only

LUT Green Read Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

bits 7-2 LUT Green Read Data Bits [5:0] This register contains the data from the green component of the Look-Up Table. The LUT entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a read- only register.

Look-Up Table Red Read Data Register REG[0Eh] Read Only

LUT Red Read Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

bits 7-2 LUT Red Read Data Bits [5:0] This register contains the data from the red component of the Look-Up Table. The LUT entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a read- only register.

Look-Up Table Read Address Register REG[0Fh] Write Only

LUT Read Address Bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 LUT Read Address Bits [7:0] This register forms a pointer into the Look-Up Table (LUT) which is used to read LUT data and store it in REG[0Ch], REG[0Dh], REG[0Eh]. This is a write-only register and returns 00h if read.

Note

The S1D13708 has three 256-position, 6-bit wide LUTs, one for each of red, green, and blue (see Section 11, “Look-Up Table Architecture” on page 173).

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 132 of the Epson LCD Controller (S1D13708) user manual — Note
Page 132 · click to enlarge
Page 132

8.3.4 Panel Configuration Registers

Panel Type Register REG[10h] Read/Write

HRTFT/

Panel Data Format Select

Color/Mono. Panel Select Panel Data Width Bits 1-0

n/a Panel Type Select Bits 1-0

7 6 5 4 3 2 1 0

bit 7 Panel Data Format Select When this bit = 0, 8-bit single color passive LCD panel data format 1 is selected. For AC timing see Section 6.4.5, “Single Color 8-Bit Panel Timing (Format 1)” on page 78. When this bit = 1, 8-bit single color passive LCD panel data format 2 is selected. For AC timing see Section 6.4.6, “Single Color 8-Bit Panel Timing (Format 2)” on page 80.

bit 6 Color/Mono Panel Select When this bit = 0, a monochrome LCD panel is selected. When this bit = 1, a color LCD panel is selected.

bits 5-4 Panel Data Width Bits [1:0] These bits select the data width size of the LCD panel.

Table 8-5Panel Data Width Selection

Panel Data Width Bits [1:0] Passive Panel Data Width

Size Active Panel Data Width Size

bit 3 HRTFT/D-TFD Control Bit This bit selects one of two modes of operation for HR-TFT/D-TFD panels depending on the panel resolution. This bit has no effect for other panel types.

Table 8-6HRTFT/D-TFD Panel Resolution Selection

HRTFT/D-TFD Control Bit HR-TFT Resolution D-TFD Resolution

Note

This bit sets some internal non-configurable timing values for the selected panel. How- ever, all panel configuration registers (REG[12h] - REG[27h]) still require program- ming with the appropriate values for the selected panel. For panel AC timing, see Section 6.4, “Display Interface” on page 68.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 7 more labels / short text on this page
D-TFD Control Bit · 00 4-bit 9-bit · 01 8-bit 12-bit · 10 16-bit 18-bit · 11 Reserved Reserved · 0 160x160 160x240 · 1 320x240 320x240
Page 133 of the Epson LCD Controller (S1D13708) user manual — Note
Page 133 · click to enlarge
Page 133

bits 1-0 Panel Type Select Bits[1:0] These bits select the panel type.

Table 8-7LCD Panel Type Selection

REG[10h] Bits[1:0] Panel Type Select

00 STN

01 TFT

10 HR-TFT

11 D-TFD

MOD Rate Register REG[11h] Read/Write

n/a MOD Rate Bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 MOD Rate Bits [5:0] These bits are for passive LCD panels only. When these bits are all 0, the MOD output signal (DRDY) toggles every FPFRAME. For a non-zero value n, the MOD output signal (DRDY) toggles every n FPLINE.

Horizontal Total Register REG[12h] Read/Write

n/a Horizontal Total Bits 6-0

7 6 5 4 3 2 1 0

bits 6-0 Horizontal Total Bits [6:0] These bits specify the LCD panel Horizontal Total period, in 8 pixel resolution. The Hori- zontal Total is the sum of the Horizontal Display period and the Horizontal Non-Display period. Since the maximum Horizontal Total is 1024 pixels, the maximum panel resolu- tion supported is 800x600.

Horizontal Total in number of pixels = ((REG[12h] bits 6:0) + 1) × 8

Note

For TFT Type 3 panels this register must be programmed such that the following formula is valid. HT - HDPS - HDP < 11 PCLKs

Note

This register must be programmed such that the following formula is valid. HDPS + HDP < HT

Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 134 of the Epson LCD Controller (S1D13708) user manual — HDPS + HDP < HT
Page 134 · click to enlarge
Page 134

Horizontal Display Period Register REG[14h] Read/Write

n/a Horizontal Display Period Bits 6-0

7 6 5 4 3 2 1 0

bits 6-0 Horizontal Display Period Bits [6:0] These bits specify the LCD panel Horizontal Display period, in 8 pixel resolution. The Horizontal Display period should be less than the Horizontal Total to allow for a sufficient Horizontal Non-Display period.

Horizontal Display Period in number of pixels = ((REG[14h] bits 6:0) + 1) × 8

Note

For passive panels, HDP must be a minimum of 32 pixels and can be increased by mul- tiples of 16. For TFT panels, HDP must be a minimum of 16 pixels and can be increased by multiples of 8.

Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.

Horizontal Display Period Start Position Register 0 REG[16h] Read/Write

Horizontal Display Period Start Position Bits 7-0

7 6 5 4 3 2 1 0

Horizontal Display Period Start Position Register 1 REG[17h] Read/Write

n/a Horizontal Display Period

Start Position Bits 9-8

7 6 5 4 3 2 1 0

bits 9-0 Horizontal Display Period Start Position Bits [9:0] These bits specify a value used in the calculation of the Horizontal Display Period Start Position (in 1 pixel resolution) for TFT, ‘Direct’ HR-TFT and ‘Direct’ D-TFD panels. For passive LCD panels these bits must be set to 00h.

To calculate the Horizontal Display Period Start Position (HDPS) an offset which depends on the panel type is required. For further information on calculating the HDPS, see the specific panel AC timing in Section 6.4, “Display Interface” on page 68.

Note

This register must be programmed such that the following formula is valid.

HDPS + HDP < HT

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 135 of the Epson LCD Controller (S1D13708) user manual — Note
Page 135 · click to enlarge
Page 135

Vertical Total Register 0 REG[18h] Read/Write

Vertical Total Bits 7-0

7 6 5 4 3 2 1 0

Vertical Total Register 1 REG[19h] Read/Write

n/a Vertical Total Bits 9-8

7 6 5 4 3 2 1 0

bits 9-0 Vertical Total Bits [9:0] These bits specify the LCD panel Vertical Total period, in 1 line resolution. The Vertical Total is the sum of the Vertical Display Period and the Vertical Non-Display Period. The maximum Vertical Total is 1024 lines.

Vertical Total in number of lines = (REG[18h] bits 7:0, REG[19h] bits 1:0) + 1

Note

1 This register must be programmed such that the following formula is valid. VDPS + VDP < VT 2 For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.

Vertical Display Period Register 0 REG[1Ch] Read/Write

Vertical Display Period Bits 7-0

7 6 5 4 3 2 1 0

Vertical Display Period Register 1 REG[1Dh] Read/Write

n/a Vertical Display Period

7 6 5 4 3 2 1 0

bits 9-0 Vertical Display Period Bits [9:0] These bits specify the LCD panel Vertical Display period, in 1 line resolution. The Vertical Display period should be less than the Vertical Total to allow for a sufficient Vertical Non-Display period.

Vertical Display Period in number of lines = (REG[1Ch] bits 7:0, REG[1Dh] bits 1:0) + 1

Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Bits 9-8

Page 136 of the Epson LCD Controller (S1D13708) user manual — Note
Page 136 · click to enlarge
Page 136

Vertical Display Period Start Position Register 0 REG[1Eh] Read/Write

Vertical Display Period Start Position Bits 7-0

7 6 5 4 3 2 1 0

Vertical Display Period Start Position Register 1 REG[1Fh] Read/Write

n/a Vertical Display Period Start

7 6 5 4 3 2 1 0

bits 9-0 Vertical Display Period Start Position Bits [9:0] These bits specify the Vertical Display Period Start Position for HR-TFT and D-TFD panels in 1 line resolution.

Note

For passive LCD and TFT (non-HR-TFT/D-TFD) panels these bits must be set to 00h.

Note

This register must be programmed such that the following formula is valid. VDPS + VDP < VT

Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.

FPLINE Pulse Width Register REG[20h] Read/Write

Polarity FPLINE Pulse Width Bits 6-0

7 6 5 4 3 2 1 0

bit 7 FPLINE Pulse Polarity This bit selects the polarity of the horizontal sync signal. For most passive panels this bit should be set to 1. For TFT panels this bit is set according to the horizontal sync signal required by the panel, typically FPLINE or LP, depending on the panel type. When this bit = 0, the horizontal sync signal is active low. When this bit = 1, the horizontal sync signal is active high.

bits 6-0 FPLINE Pulse Width Bits [6:0] These bits specify the width of the panel horizontal sync signal, in 1 pixel resolution. The horizontal sync signal is typically FPLINE or LP, depending on the panel type.

FPLINE Pulse Width in number of pixels = (REG[20h] bits 6:0) + 1

Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Position Bits 9-8 · FPLINE Pulse

Page 137 of the Epson LCD Controller (S1D13708) user manual — Note
Page 137 · click to enlarge
Page 137

FPLINE Pulse Start Position Register 0 REG[22h] Read/Write

FPLINE Pulse Start Position Bits 7-0

7 6 5 4 3 2 1 0

FPLINE Pulse Start Position Register 1 REG[23h] Read/Write

n/a FPLINE Pulse Start Position

7 6 5 4 3 2 1 0

bits 9-0 FPLINE Pulse Start Position Bits [9:0] These bits specify the start position of the horizontal sync signal, in 1 pixel resolution.

FPLINE Pulse Start Position in pixels = [(REG[23h] bits 1-0, REG[22h] bits 7-0) + 1]

Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.

FPFRAME Pulse Width Register REG[24h] Read/Write

FPFRAME Pulse Polarity n/a FPFRAME Pulse Width Bits 2-0

7 6 5 4 3 2 1 0

bit 7 FPFRAME Pulse Polarity This bit selects the polarity of the vertical sync signal. For most passive panels this bit should be set to 1. For TFT panels this bit is set according to the vertical sync signal required by the panel, typically FPFRAME, SPS or DY, depending on the panel type. When this bit = 0, the vertical sync signal is active low. When this bit = 1, the vertical sync signal is active high.

bits 2-0 FPFRAME Pulse Width Bits [2:0] These bits specify the width of the panel vertical sync signal, in 1 line resolution. The ver- tical sync signal is typically FPFRAME, SPS or DY, depending on the panel type.

FPFRAME Pulse Width in number of lines = (REG[24h] bits 2:0) + 1

Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Bits 9-8

Page 138 of the Epson LCD Controller (S1D13708) user manual — Note
Page 138 · click to enlarge
Page 138

FPFRAME Pulse Start Position Register 0 REG[26h] Read/Write

FPFRAME Pulse Start Position Bits 7-0

7 6 5 4 3 2 1 0

FPFRAME Pulse Start Position Register 1 REG[27h] Read/Write

n/a FPFRAME Pulse Start

7 6 5 4 3 2 1 0

bits 9-0 FPFRAME Pulse Start Position Bits [9:0] These bits specify the start position of the vertical sync signal, in 1 line resolution.

Note

For panel AC timing and timing parameter definitions, see Section 6.4, “Display Inter- face” on page 68.

D-TFD GCP Index Register REG[28h] Read/Write

n/a D-TFD GCP Index Bits 4-0

7 6 5 4 3 2 1 0

bits 4-0 D-TFD GCP Index Bits [4:0] For D-TFD panels only. These bits form the index that points to 32 8-bit GCP data regis- ters.

D-TFD GCP Data Register REG[2Ch] Read/Write

D-TFD GCP Data Bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 D-TFD GCP Data Bits [7:0] For D-TFD panel only. This register stores the data to be written to the GCP data bits and is controlled by the D-TFD GCP Index register (REG[28h]).

Note

The Panel Type bits (REG[10h] bits 1:0) must be set to 11 (D-TFD) for the GCP Data bits to have any hardware effect.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Position Bits 9-8

Page 139 of the Epson LCD Controller (S1D13708) user manual — Note
Page 139 · click to enlarge
Page 139

8.3.5 Display Mode Registers

Display Mode Register REG[70h] Read/Write

Software Video Invert n/a Bit-per-pixel Select Bits 2-0

7 6 5 4 3 2 1 0

bit 7 Display Blank When this bit = 0, the LCD display pipeline is enabled. When this bit = 1, the LCD display pipeline is disabled and all LCD data outputs are forced to zero (i.e., the screen is blanked).

bit 6 Dithering Disable When this bit = 0, dithering on the passive LCD panel is enabled, allowing a maximum of 256K colors (218) or 64 gray shades in 1/2/4/8 bpp mode. In 16bpp mode, only 64K colors (216) is allowed because the LUT is bypassed. When this bit = 1, dithering on the passive LCD panel is disabled, allowing a maximum of 4096 colors (212) or 16 gray shades.

Note

For a summary of the results of dithering for each color depth, see Table 8-9: “LCD Bit- per-pixel Selection,” on page 135.

All passive STN color panels are controlled using 3 bits for each pixel (RGB) for a total of 8 possible colors. LCD controllers use a combination of Frame Rate Modulation (FRM) and dithering to achieve more than 8 colors per pixel. FRM can achieve 16 shades of color for each RGB component resulting in a total of 4096 possible colors (16x16x16). Dithering uses a 4 pixel square formation and applies a set of 4 hard-coded patterns for each of the 16 shades of color. This expands the original 16 shades of color from the FRM logic to 64 shades per RGB component which results in 256K colors per pixel (64x64x64).

For the S1D13708, 16 bpp is arranged as 5-6-5 RGB. In this mode, when dithering is enabled, the LUT is bypassed and the original 16-bit data is used as a pointer into the 64 shades per color in the following manner.

(5-6-5 RGB) 32 possible Red, 64 possible Green, 32 possible Blue

This combination of FRM and dithering results in 256K colors/pixel, however, the 16 bpp limitation of the S1D13708 limits this to 64K colors/pixel.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 4 more labels / short text on this page
Hardware Video Invert · Display Blank Dithering · Disable · Enable
Page 140 of the Epson LCD Controller (S1D13708) user manual — Note
Page 140 · click to enlarge
Page 140

bit 5 Hardware Video Invert Enable This bit allows the Video Invert feature to be controlled using the General Purpose IO pin GPIO0. This option is not available if configured for a HR-TFT, D-TFD, TFT Type 2, or TFT Type 3 as GPIO0 is used as an LCD control signal by these panels. When this bit = 0, GPIO0 has no effect on the video data. When this bit = 1, video data may be inverted via GPIO0.

Note

The S1D13708 requires some configuration before the hardware video invert feature can be enabled.

  • CNF3 must be set to 1 at RESET#
  • GPIO Pin Input Enable (REG[A9h] bit 7) must be set to 1
  • GPIO0 Pin IO Configuration (REG[A8h] bit 0) must be set to 0

If Hardware Video Invert is not available, the video invert function can be controlled by software using REG[70h] bit 4. The following table summarizes the video invert options available.

Table 8-8Inverse Video Mode Select Options

Invert GPIO0 Video Data

0 0 X Normal

0 1 X Inverse

1 X 0 Normal

1 X 1 Inverse

Note

Video data is inverted after the Look-Up Table.

bit 4 Software Video Invert When this bit = 0, video data is normal. When this bit = 1, video data is inverted. See Table 8-8: “Inverse Video Mode Select Options”.

Note

Video data is inverted after the Look-Up Table

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Hardware Video · Software Video · Invert Enable

Page 141 of the Epson LCD Controller (S1D13708) user manual — Note
Page 141 · click to enlarge
Page 141

bits 2-0 Bit-per-pixel Select Bits [2:0] These bits select the color depth (bit-per-pixel) for the displayed data for both the main window and the PIP+ window (if active).

1, 2, 4 and 8 bpp modes use the 18-bit LUT, allowing maximum 256K colors. 16 bpp mode bypasses the LUT, allowing only 64K colors.

Table 8-9LCD Bit-per-pixel Selection

Maximum Number of Colors/Shades Max. No. Of Simultaneously

Bit-per-pixel Select Bits [2:0] Color Depth (bpp)

Passive Panel (Dithering On) TFT Panel

000 1 bpp 256K/64 256K/64 2/2

001 2 bpp 256K/64 256K/64 4/4

010 4 bpp 256K/64 256K/64 16/16

011 8 bpp 256K/64 256K/64 256/64

100 16 bpp 64K/64 64K/64 64K/64

101, 110, 111 Reserved n/a n/a n/a

Special Effects Register REG[71h] Read/Write

Byte Swap n/a PIP+ Window

Enable n/a SwivelView Mode Select

7 6 5 4 3 2 1 0

bit 7 Display Data Word Swap The display pipe fetches 32-bits of data from the display buffer. This bit enables the lower 16-bit word and the upper 16-bit word to be swapped before sending them to the LCD dis- play. If the Display Data Byte Swap bit is also enabled, then the byte order of the fetched 32-bit data is reversed.

Note

For further information on byte swapping for Big Endian mode, see Section 17, “Big- Endian Bus Interface” on page 212.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 5 more labels / short text on this page
Displayed Colors/Shades · Display Data · Display Data · Word Swap · Bits 1-0
Page 142 of the Epson LCD Controller (S1D13708) user manual — Note
Page 142 · click to enlarge
Page 142

bit 6 Display Data Byte Swap The display pipe fetches 32-bits of data from the display buffer. This bit enables byte 0 and byte 1 to be swapped, and byte 2 and byte 3 to be swapped, before sending them to the LCD display. If the Display Data Word Swap bit is also enabled, then the byte order of the fetched 32-bit data is reversed.

Epson LCD Controller (S1D13708) — Figure 81 Display Data Byte/Word Swap diagram (page 142)
Fig. 63 · Figure 81 Display Data Byte/Word Swap

Figure 8-1 Display Data Byte/Word Swap

Note

For further information on byte swapping for Big Endian mode, see Section 17, “Big- Endian Bus Interface” on page 212.

bit 4 PIP+ Window Enable This bit enables the PIP+ window within the main window used for the Picture-in-Picture Plus feature. The location of the PIP+ window within the landscape window is determined by the PIP+ Window X Position registers (REG[84h], REG[85h], REG[8Ch], REG[8Dh]) and PIP+ Window Y Position registers (REG[88h], REG[89h], REG[90h], REG[91h]). The PIP+ window has its own Display Start Address register (REG[7Ch, REG[7Dh], REG[7Eh]) and Memory Address Offset register (REG[80h], REG[81h]). The PIP+ win- dow shares the same color depth and SwivelViewTM orientation as the main window.

Note

Picture-in-Picture Plus (PIP+) is not available when the Ink Layer is enabled (REG[C9h] bit 0 = 1).

bits 1-0 SwivelView Mode Select Bits [1:0] These bits select different SwivelViewTM orientations:

Table 8-10SwivelView TM Mode Select Options
Epson LCD Controller (S1D13708) — Note diagram (page 142)
Fig. 64 · Note

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 143 of the Epson LCD Controller (S1D13708) user manual — Figure 81 Display Data Byte/Word Swap
Page 143 · click to enlarge
Page 143

Main Window Display Start Address Register 0 REG[74h] Read/Write

Main window Display Start Address Bits 7-0

7 6 5 4 3 2 1 0

Main Window Display Start Address Register 1 REG[75h] Read/Write

Main window Display Start Address Bits 15-8

7 6 5 4 3 2 1 0

Main Window Display Start Address Register 2 REG[76h] Read/Write

Main window Display Start

7 6 5 4 3 2 1 0

bits 16-0 Main Window Display Start Address Bits [16:0] These bits form the 17-bit address for the starting double-word of the LCD image in the display buffer for the main window.

Main Window Line Address Offset Register 0 REG[78h] Read/Write

Main window Line Address Offset Bits 7-0

7 6 5 4 3 2 1 0

Main Window Line Address Offset Register 1 REG[79h] Read/Write

n/a Main window Line Address

7 6 5 4 3 2 1 0

bits 9-0 Main Window Line Address Offset Bits [9:0] These bits are the LCD display’s 10-bit address offset from the starting double-word of line “n” to the starting double-word of line “n + 1” for the main window. Note that this is a 32-bit address increment.

A virtual image can be formed by setting this register to a value greater than the width of the main window. The displayed image is a window into the larger virtual image.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 4 more labels / short text on this page
n/a · Address · Bit 16 · Offset Bits 9-8
Page 144 of the Epson LCD Controller (S1D13708) user manual — Note
Page 144 · click to enlarge
Page 144

8.3.6 Picture-in-Picture Plus Registers

PIP+ Window Display Start Address Register 0 REG[7C] Read/Write

PIP+ Window Display Start Address Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window Display Start Address Register 1 REG[7Dh] Read/Write

PIP+ Window Display Start Address Bits 15-8

7 6 5 4 3 2 1 0

PIP+ Window Display Start Address Register 2 REG[7Eh] Read/Write

7 6 5 4 3 2 1 0

bits 16-0 PIP+ Window Display Start Address Bits [16:0] These bits form the 17-bit address for the starting double-word of the PIP+ window.

Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is set to 1 (REG[71h] bit 4).

PIP+ Window Line Address Offset Register 0 REG[80h] Read/Write

PIP+ Window Line Address Offset Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window Line Address Offset Register 1 REG[81h] Read/Write

n/a PIP+ Window Line Address

7 6 5 4 3 2 1 0

bits 9-0 PIP+ Window Line Address Offset Bits [9:0] These bits are the LCD display’s 10-bit address offset from the starting double-word of line “n” to the starting double-word of line “n + 1” for the PIP+ window. Note that this is a 32-bit address increment.

Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is set to 1 (REG[71h] bit 4).

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 6 more labels / short text on this page
PIP+ Window · Display Start · n/a · Address · Bit 16 · Offset Bits 9-8
Page 145 of the Epson LCD Controller (S1D13708) user manual — Note
Page 145 · click to enlarge
Page 145

PIP+ Window X Start Position Register 0 REG[84h] Read/Write

PIP+ Window X Start Position Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window X Start Position Register 1 REG[85h] Read/Write

n/a PIP+ Window X Start Position

7 6 5 4 3 2 1 0

bits 9-0 PIP+ Window X Start Position Bits [9:0] These bits determine the X start position of the PIP+ window in relation to the origin of the panel. Due to the S1D13708 SwivelView feature, the X start position may not be a horizontal position value (only true in 0° and 180° SwivelView). For further information on defining the value of the X Start Position register, see Section 13, “Picture-in-Picture Plus (PIP+)” on page 184.

The register is also incremented differently based on the SwivelView orientation. For 0° and 180° SwivelView the X start position is incremented by x pixels where x is relative to the current color depth.

Table 8-1132-bit Address Increments for Color Depth

Color Depth Pixel Increment (x)

For 90° and 270° SwivelView the X start position is incremented in 1 line increments.

Depending on the color depth, some of the higher bits in this register are unused because the maximum horizontal display width is 1024 pixels.

Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is set to 1 (REG[71h] bit 4).

Note

The effect of REG[84h] through REG[91h] takes place only after REG[91h] is written and at the next vertical non-display period.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 6 more labels / short text on this page
Bits 9-8 · 1 bpp 32 · 2 bpp 16 · 4 bpp 8 · 8 bpp 4 · 16 bpp 2
Page 146 of the Epson LCD Controller (S1D13708) user manual — Note
Page 146 · click to enlarge
Page 146

PIP+ Window Y Start Position Register 0 REG[88h] Read/Write

PIP+ Window Y Start Position Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window Y Start Position Register 1 REG[89h] Read/Write

n/a PIP+ Window Y Start Position

7 6 5 4 3 2 1 0

bits 9-0 PIP+ Window Y Start Position Bits [9:0] These bits determine the Y start position of the PIP+ window in relation to the origin of the panel. Due to the S1D13708 SwivelView feature, the Y start position may not be a vertical position value (only true in 0° and 180° SwivelView). For further information on defining the value of the Y Start Position register, see Section 13, “Picture-in-Picture Plus (PIP+)” on page 184.

The register is also incremented differently based on the SwivelView orientation. For 0° and 180° SwivelView the Y start position is incremented in 1 line increments. For 90° and 270° SwivelView the Y start position is incremented by y pixels where y is relative to the current color depth.

Table 8-1232-bit Address Increments for Color Depth

Color Depth Pixel Increment (y)

Depending on the color depth, some of the higher bits in this register are unused because the maximum vertical display height is 1024 pixels.

Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is set to 1 (REG[71h] bit 4).

Note

The effect of REG[84h] through REG[91h] takes place only after REG[91h] is written and at the next vertical non-display period.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 6 more labels / short text on this page
Bits 9-8 · 1 bpp 32 · 2 bpp 16 · 4 bpp 8 · 8 bpp 4 · 16 bpp 2
Page 147 of the Epson LCD Controller (S1D13708) user manual — Note
Page 147 · click to enlarge
Page 147

PIP+ Window X End Position Register 0 REG[8Ch] Read/Write

PIP+ Window X End Position Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window X End Position Register 1 REG[8Dh] Read/Write

n/a PIP+ Window X End Position

7 6 5 4 3 2 1 0

bits 9-0 PIP+ Window X End Position Bits [9:0] These bits determine the X end position of the PIP+ window in relation to the origin of the panel. Due to the S1D13708 SwivelView feature, the X end position may not be a horizontal position value (only true in 0° and 180° SwivelView). For further information on defining the value of the X End Position register, see Section 13, “Picture-in-Picture Plus (PIP+)” on page 184.

The register is also incremented differently based on the SwivelView orientation. For 0° and 180° SwivelView the X end position is incremented by x pixels where x is relative to the current color depth.

Table 8-1332-bit Address Increments for Color Depth

Color Depth Pixel Increment (x)

For 90° and 270° SwivelView the X end position is incremented in 1 line increments.

Depending on the color depth, some of the higher bits in this register are unused because the maximum horizontal display width is 1024 pixels.

Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is set to 1 (REG[71h] bit 4).

Note

The effect of REG[84h] through REG[91h] takes place only after REG[91h] is written and at the next vertical non-display period.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 6 more labels / short text on this page
Bits 9-8 · 1 bpp 32 · 2 bpp 16 · 4 bpp 8 · 8 bpp 4 · 16 bpp 2
Page 148 of the Epson LCD Controller (S1D13708) user manual — Note
Page 148 · click to enlarge
Page 148

PIP+ Window Y End Position Register 0 REG[90h] Read/Write

PIP+ Window Y End Position Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window Y End Position Register 1 REG[91h] Read/Write

n/a PIP+ Window Y End Position

7 6 5 4 3 2 1 0

bits 9-0 PIP+ Window Y End Position Bits [9:0] These bits determine the Y end position of the PIP+ window in relation to the origin of the panel. Due to the S1D13708 SwivelView feature, the Y end position may not be a vertical position value (only true in 0° and 180° SwivelView). For further information on defining the value of the Y End Position register, see Section 13, “Picture-in-Picture Plus (PIP+)” on page 184.

The register is also incremented differently based on the SwivelView orientation. For 0° and 180° SwivelView the Y end position is incremented in 1 line increments. For 90° and 270° SwivelView the Y end position is incremented by y pixels where y is relative to the current color depth.

Table 8-1432-bit Address Increments for Color Depth

Color Depth Pixel Increment (y)

Depending on the color depth, some of the higher bits in this register are unused because the maximum vertical display height is 1024 pixels.

Note

These bits have no effect unless the Picture-in-Picture Plus PIP+ Window Enable bit is set to 1 (REG[71h] bit 4).

Note

The effect of REG[84h] through REG[91h] takes place only after REG[91h] is written and at the next vertical non-display period.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 6 more labels / short text on this page
Bits 9-8 · 1 bpp 32 · 2 bpp 16 · 4 bpp 8 · 8 bpp 4 · 16 bpp 2
Page 149 of the Epson LCD Controller (S1D13708) user manual — Note
Page 149 · click to enlarge
Page 149

8.3.7 Miscellaneous Registers

Power Save Configuration Register REG[A0h] Read/Write

Memory Controller Power Save Status (RO)

n/a Power Save Mode Enable

(RO)

7 6 5 4 3 2 1 0

bit 7 Vertical Non-Display Period Status This is a read-only status bit. When this bit = 0, the LCD panel output is in a Vertical Display Period. When this bit = 1, the LCD panel output is in a Vertical Non-Display Period.

bit 3 Memory Controller Power Save Status This read-only status bit indicates the power save state of the memory controller. When this bit = 0, the memory controller is powered up. When this bit = 1, the memory controller is powered down and the MCLK source can be turned off.

Note

Memory writes are possible during power save mode because the S1D13708 dynamical- ly enables the memory controller for display buffer writes.

bit 0 Power Save Mode Enable When this bit = 1, the software initiated power save mode is enabled. When this bit = 0, the software initiated power save mode is disabled. At reset, this bit is set to 1. For a summary of Power Save Mode, see Section 18, “Power Save Mode” on page 215.

Note

Memory writes are possible during power save mode because the S1D13708 dynamical- ly enables the memory controller for display buffer writes.

7 6 5 4 3 2 1 0

bit 0 Reserved. This bit must be set to 0.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 5 more labels / short text on this page
Vertical Non- · Display Period Status · n/a · Reserved REG[A1h] Read/Write · n/a Reserved
Page 150 of the Epson LCD Controller (S1D13708) user manual — 8.3.7 Miscellaneous Registers
Page 150 · click to enlarge
Page 150

7 6 5 4 3 2 1 0

bit 7 Reserved. This bit must be set to 0.

bit 0 Reserved. This bit must be set to 0.

7 6 5 4 3 2 1 0

bit 7 Reserved. This bit must be set to 0.

Scratch Pad Register 0 REG[A4h] Read/Write

Scratch Pad Bits 7-0

7 6 5 4 3 2 1 0

Scratch Pad Register 1 REG[A5h] Read/Write

Scratch Pad Bits 15-8

7 6 5 4 3 2 1 0

bits 15-0 Scratch Pad Bits [15:0] This register contains general purpose read/write bits. These bits have no effect on hardware.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 4 more labels / short text on this page
Reserved REG[A2h] Read/Write · Reserved n/a Reserved · Reserved REG[A3h] Read/Write · Reserved n/a
Page 151 of the Epson LCD Controller (S1D13708) user manual — Note
Page 151 · click to enlarge
Page 151

8.3.8 General IO Pins Registers

General Purpose IO Pins Configuration Register 0 REG[A8h] Read/Write

n/a GPIO6 Pin IO

7 6 5 4 3 2 1 0

Note

If CNF3 = 0 at RESET#, then all GPIO pins are configured as outputs only and this reg- ister has no effect. This case allows the GPIO pins to be used by the HR-TFT/D-TFD panel interfaces. For a summary of GPIO usage for HR-TFT/D-TFD, see Table 4-10: “LCD Interface Pin Mapping,” on page 40.

Note

The input functions of the GPIO pins are not enabled until REG[A9h] bit 7 is set to 1.

bit 6 GPIO6 Pin IO Configuration When this bit = 0 (default), GPIO6 is configured as an input pin. When this bit = 1, GPIO6 is configured as an output pin.

bit 5 GPIO5 Pin IO Configuration When this bit = 0 (default), GPIO5 is configured as an input pin. When this bit = 1, GPIO5 is configured as an output pin.

bit 4 GPIO4 Pin IO Configuration When this bit = 0 (default), GPIO4 is configured as an input pin. When this bit = 1, GPIO4 is configured as an output pin.

bit 3 GPIO3 Pin IO Configuration When this bit = 0 (default), GPIO3 is configured as an input pin. When this bit = 1, GPIO3 is configured as an output pin.

bit 2 GPIO2 Pin IO Configuration When this bit = 0 (default), GPIO2 is configured as an input pin. When this bit = 1, GPIO2 is configured as an output pin.

bit 1 GPIO1 Pin IO Configuration When this bit = 0 (default), GPIO1 is configured as an input pin. When this bit = 1, GPIO1 is configured as an output pin.

bit 0 GPIO0 Pin IO Configuration When this bit = 0 (default), GPIO0 is configured as an input pin. When this bit = 1, GPIO0 is configured as an output pin.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 13 more labels / short text on this page
GPIO5 Pin IO · GPIO4 Pin IO · GPIO3 Pin IO · GPIO2 Pin IO · GPIO1 Pin IO · GPIO0 Pin IO · Configuration · Configuration · Configuration · Configuration · Configuration · Configuration · Configuration
Page 152 of the Epson LCD Controller (S1D13708) user manual — Note
Page 152 · click to enlarge
Page 152

General Purpose IO Pins Configuration Register 1 REG[A9h] Read/Write

GPIO Pin Input Enable n/a

7 6 5 4 3 2 1 0

bit 7 GPIO Pin Input Enable This bit is used to enable the input function of the GPIO pins. It must be changed to a 1 after power-on reset to enable the input function of the GPIO pins (default is 0).

General Purpose IO Pins Status/Control Register 0 REG[ACh] Read/Write

n/a GPIO6 Pin IO

7 6 5 4 3 2 1 0

Note

For information on GPIO pin mapping when HR-TFT/D-TFD panels are selected, see Table 4-10: “LCD Interface Pin Mapping,” on page 40.

bit 6 GPIO6 Pin IO Status When GPIO6 is not used as a LCD signal and GPIO6 is configured as an output, writing a 1 to this bit drives GPIO6 high and writing a 0 to this bit drives GPIO6 low. When GPIO6 is not used as a LCD signal and GPIO6 is configured as an input, a read from this bit returns the status of GPIO6.

When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) writing to this bit has no effect.

When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) writing to this bit has no effect.

bit 5 GPIO5 Pin IO Status When GPIO5 is not used as a LCD signal and GPIO5 is configured as an output, writing a 1 to this bit drives GPIO5 high and writing a 0 to this bit drives GPIO5 low. When GPIO5 is not used as a LCD signal and GPIO5 is configured as an input, a read from this bit returns the status of GPIO5.

When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 1 is written to this bit, the D-TFD signal DD_P1 signal is enabled. When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 0 is written to this bit, the D-TFD signal DD_P1 signal is forced low.

When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 1 is written to this bit, the GPIO5 (XOEV) signal is enabled. When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 0 is written to this bit, the GPIO5 (XOEV) signal is forced high when the FPFRAME Polarity bit = 1 (REG[24h] bit 7 = 1) and forced low when the FPFRAME Polarity bit = 0 (REG[24h] bit 7 = 0).

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 13 more labels / short text on this page
GPIO5 Pin IO · GPIO4 Pin IO · GPIO3 Pin IO · GPIO2 Pin IO · GPIO1 Pin IO · GPIO0 Pin IO · Status · Status · Status · Status · Status · Status · Status
Page 153 of the Epson LCD Controller (S1D13708) user manual — 8.3.8 General IO Pins Registers
Page 153 · click to enlarge
Page 153

bit 4 GPIO4 Pin IO Status When GPIO4 is not used as a LCD signal and GPIO4 is configured as an output, writing a 1 to this bit drives GPIO4 high and writing a 0 to this bit drives GPIO4 low. When GPIO4 is not used as a LCD signal and GPIO4 is configured as an input, a read from this bit returns the status of GPIO4.

When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 1 is written to this bit, the D-TFD signal RES signal is enabled. When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 0 is written to this bit, the D-TFD signal RES signal is forced low.

When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 1 is written to this bit, the GPIO4 (VCOM) signal is enabled. When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 0 is written to this bit, the GPIO4 (VCOM) signal is forced low.

bit 3 GPIO3 Pin IO Status When GPIO3 is not used as a LCD signal and GPIO3 is configured as an output, writing a 1 to this bit drives GPIO3 high and writing a 0 to this bit drives GPIO3 low. When GPIO3 is not used as a LCD signal and GPIO3 is configured as an input, a read from this bit returns the status of GPIO3.

When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) writing to this bit has no effect.

When a HR-TFT panel is enabled (REG[10h] bits 1:0 = 10) writing to this bit has no effect.

When a TFT Type 2 panel is enabled (REG[C5h] bits 1:0 = 01) writing to this bit has no effect.

When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) writing to this bit has no effect.

bit 2 GPIO2 Pin IO Status When GPIO2 is not used as a LCD signal and GPIO2 is configured as an output, writing a 1 to this bit drives GPIO2 high and writing a 0 to this bit drives GPIO2 low. When GPIO2 is not used as a LCD signal and GPIO2 is configured as an input, a read from this bit returns the status of GPIO2.

When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) writing to this bit has no effect.

When a HR-TFT panel is enabled (REG[10h] bits 1:0 = 10) writing to this bit has no effect.

When a TFT Type 2 panel is enabled (REG[C5h] bits 1:0 = 01) writing to this bit has no effect.

When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) writing to this bit has no effect.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 154 of the Epson LCD Controller (S1D13708) user manual — 8.3.8 General IO Pins Registers
Page 154 · click to enlarge
Page 154

bit 1 GPIO1 Pin IO Status When GPIO1 is not used as a LCD signal and GPIO1 is configured as an output, writing a 1 to this bit drives GPIO1 high and writing a 0 to this bit drives GPIO1 low. When GPIO1 is not used as a LCD signal and GPIO1 is configured as an input, a read from this bit returns the status of GPIO1.

When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 1 is written to this bit, the D-TFD signal YSCL signal is enabled. When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) and a 0 is written to this bit, the D-TFD signal YSCL signal is forced low.

When a HR-TFT panel is enabled (REG[10h] bits 1:0 = 10) and a 1 is written to this bit, the HR-TFT signal CLS signal is enabled. When a HR-TFT panel is enabled (REG[10h] bits 1:0 = 10) and a 0 is written to this bit, the HR-TFT signal CLS signal is forced low.

When a TFT Type 2 panel is enabled (REG[C5h] bits 1:0 = 01) and a 1 is written to this bit, the AP signal is enabled. When a TFT Type 2 panel is enabled (REG[C5h] bits 1:0 = 01) and a 0 is written to this bit, the AP signal is forced low.

When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 1 is written to this bit, the OE signal is enabled. When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) and a 0 is written to this bit, the OE signal is forced low.

bit 0 GPIO0 Pin IO Status When GPIO1 is not used as a LCD signal and GPIO0 is configured as an output, writing a 1 to this bit drives GPIO0 high and writing a 0 to this bit drives GPIO0 low. When GPIO1 is not used as a LCD signal and GPIO0 is configured as an input, a read from this bit returns the status of GPIO0.

When a D-TFD panel is enabled (REG[10h] bits 1:0 = 11) writing to this bit has no effect.

When a HR-TFT panel is enabled (REG[10h] bits 1:0 = 10) writing to this bit has no effect.

When a TFT Type 2 panel is enabled (REG[C5h] bits 1:0 = 01) writing to this bit has no effect.

When a TFT Type 3 panel is enabled (REG[C5h] bits 1:0 = 10) writing to this bit has no effect.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 155 of the Epson LCD Controller (S1D13708) user manual — Note
Page 155 · click to enlarge
Page 155

General Purpose IO Pins Status/Control Register 1 REG[ADh] Read/Write

7 6 5 4 3 2 1 0

bit 7 GPO0 Control This bit controls the General Purpose Output 0 pin. Writing a 0 to this bit drives GPO0 to low. Writing a 1 to this bit drives GPO0 to high.

This bit has no effect when HR-TFT panel type is selected.

Note

Many implementations use the GPO0 pin to control the LCD bias power (see Section 6.3, “LCD Power Sequencing” on page 66).

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

GPO0 Control n/a

Page 156 of the Epson LCD Controller (S1D13708) user manual — Note
Page 156 · click to enlarge
Page 156

8.3.9 Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registers

Epson LCD Controller (S1D13708) — 8.3.9 Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registers diagram (page 156)
Fig. 65 · 8.3.9 Pulse Width Modulation (PWM) Clock and Contras…

frequency = Clock Source / (2m X 256)

frequency = Clock Source / (2x X 2)

x = CV Pulse Divide Select value y = Burst Length value

Figure 8-2 PWM Clock/CV Pulse Block Diagram

Note

For further information on PWMCLK, see Section 7.1.4, “PWMCLK” on page 115.

Epson LCD Controller (S1D13708) — Note diagram (page 156)
Fig. 66 · Note

PWM Clock / CV Pulse Control Register REG[B0h] Read/Write

bit 7 and bit 4 PWM Clock Force High (bit 7) and PWM Clock Enable (bit 4) These bits control the PWMOUT pin and PWM Clock circuitry as follows.

Table 8-15PWM Clock Control
Epson LCD Controller (S1D13708) — Note diagram (page 156)
Fig. 67 · Note

0 1 PWM Clock circuitry enabled (controlled by REG[B1h] and REG[B3h])

x = don’t care

When PWMOUT is forced low or forced high it can be used as a general purpose output.

Note

The PWM Clock circuitry is disabled when Power Save Mode is enabled.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 157 of the Epson LCD Controller (S1D13708) user manual — Note
Page 157 · click to enlarge
Page 157

bit 3 and bit 0 CV Pulse Force High (bit 3) and CV Pulse Enable (bit 0) These bits control the CVOUT pin and CV Pulse circuitry as follows.

Table 8-16CV Pulse Control

Bit 3 Bit 0 Result

0 1 CV Pulse circuitry enabled (controlled by REG[B1h] and REG[B2h])

0 0 CVOUT forced low

1 x CVOUT forced high

x = don’t care

When CVOUT is forced low or forced high it can be used as a general purpose output.

Note

Bit 0 must be set to 1 before initiating a new burst using the CV Pulse Burst Start bit.

Note

The CV Pulse circuitry is disabled when Power Save Mode is enabled.

bit 2 CV Pulse Burst Status This is a read-only bit. A “1” indicates a CV pulse burst is occurring. A “0” indicates no CV pulse burst is occurring. Software should wait for this bit to clear before starting another burst.

bit 1 CV Pulse Burst Start A 1 in this bit initiates a single CVOUT pulse burst. The number of clock pulses generated is programmable from 1 to 256. The frequency of the pulses is the divided CV Pulse source divided by 2, with 50/50 duty cycle. This bit should be cleared to 0 by software before initiating a new burst.

Note

This bit has effect only if the CV Pulse Enable bit is 1.

bit 0 CV Pulse Enable See description for bit 3.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 158 of the Epson LCD Controller (S1D13708) user manual — Note
Page 158 · click to enlarge
Page 158

PWM Clock / CV Pulse Configuration Register REG[B1h] Read/Write

PWM Clock Divide Select Bits 3-0 CV Pulse Divide Select Bits 2-0 PWMCLK Source Select

7 6 5 4 3 2 1 0

bits 7-4 PWM Clock Divide Select Bits [3:0] The value of these bits represents the power of 2 by which the selected PWM clock source is divided.

Table 8-17PWM Clock Divide Select Options

PWM Clock Divide Select Bits [3:0] PWM Clock Divide Amount

Note

This divided clock is further divided by 256 before it is output at PWMOUT.

bits 3-1 CV Pulse Divide Select Bits [2:0] The value of these bits represents the power of 2 by which the selected CV Pulse source is divided.

Table 8-18CV Pulse Divide Select Options

CV Pulse Divide Select Bits [2:0] CV Pulse Divide Amount

Note

This divided clock is further divided by 2 before it is output at the CVOUT.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 11 more labels / short text on this page
0h 1 · 1h 2 · 2h 4 · 3h 8 · Ch 4096 · Dh-Fh Reserved · 0h 1 · 1h 2 · 2h 4 · 3h 8 · 7h 128
Page 159 of the Epson LCD Controller (S1D13708) user manual — Note
Page 159 · click to enlarge
Page 159

bit 0 PWMCLK Source Select When this bit = 0, the clock source for PWMCLK is the BCLK source. When this bit = 1, the clock source for PWMCLK is CLKI2 or XTAL (see BCLK Source Select Register on page 157).

Note

For further information on the PWMCLK source select, see Section 7.2, “Clock Selec- tion” on page 116.

CV Pulse Burst Length Register REG[B2h] Read/Write

CV Pulse Burst Length Bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 CV Pulse Burst Length Bits [7:0] The value of this register determines the number of pulses generated in a single CV Pulse burst:

Number of pulses in a burst = (ContentsOfThisRegister) + 1

PWMOUT Duty Cycle Register REG[B3h] Read/Write

PWMOUT Duty Cycle Bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 PWMOUT Duty Cycle Bits [7:0] This register determines the duty cycle of the PWMOUT output.

Table 8-19PWMOUT Duty Cycle Select Options

PWMOUT Duty Cycle [7:0] PWMOUT Duty Cycle

01h High for 1 out of 256 clock periods

02h High for 2 out of 256 clock periods

FFh High for 255 out of 256 clock periods

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

00h Always Low

Page 160 of the Epson LCD Controller (S1D13708) user manual — Note
Page 160 · click to enlarge
Page 160

8.3.10 Extended Registers

Memory Access Pointer 0 REG[C0h] Read/Write

Memory Access Pointer Bits 7-0

7 6 5 4 3 2 1 0

Memory Access Pointer 1 REG[C1h] Read/Write

Memory Access Pointer Bits 15-8

7 6 5 4 3 2 1 0

Memory Access Pointer 2 REG[C2h] Read/Write

7 6 5 4 3 2 1 0

bits 16-0 Memory Access Pointer Bits [16:0] These registers control memory accesses for the Indirect Interface only (CNF[2:0] = 111). These bits contain a pointer to the address position in the display buffer (memory) used when a “data” read/write is executed. At reset, these registers are set to 0. After each byte read/write, the Memory Access Pointer is incremented by 1. After each word read/write, the Memory Access Pointer is incremented by 2. For further information on accessing the S1D13708 display buffer, see Section 17, “Big-Endian Bus Interface” on page 212.

Note

1 If the Memory Access Pointer programmed specifies an odd memory address, only byte accesses may be performed. 2 These bits take effect only after a “command” write to the Memory Access Start register (REG[C4h]).

Memory Access Start REG[C4h] Write only

7 6 5 4 3 2 1 0

bits 7-0 Memory Access Start [7:0] This register controls memory accesses for the Indirect Interface only (CNF[2:0] = 111). This register is the trigger which readies the interface for reads/writes from/to the display buffer. After a “command” write to this register, successive reads/writes may be performed. After each byte read/write, the Memory Access Pointer is incremented by 1. After each word read/write, the Memory Access Pointer is incremented by 2.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 5 more labels / short text on this page
Memory · Access Pointer · n/a · Bit 16 · n/a
Page 161 of the Epson LCD Controller (S1D13708) user manual — Note
Page 161 · click to enlarge
Page 161

Extended Panel Type Register REG[C5h] Read/Write

n/a Extended Panel Type Bits 1-0

7 6 5 4 3 2 1 0

bits 1-0 Extended Panel Type Bits [1:0] These bits override the setting in REG[10h] bits 1-0 and allow selection of the alternate TFT panel types.

Table 8-20Extended Panel Type Selection

REG[C5h] Bits [1:0] Panel Type

00 no effect from REG[10h] bits 1-0

01 TFT Type 2

10 TFT Type 3

11 TFT Type 4

Memory Access Select Register REG[C6h] Read/Write

n/a Memory Access Select

7 6 5 4 3 2 1 0

bit 0 Memory Access Select Bit This register only has an effect when the Indirect Interface is enabled (CNF[2:0] = 111). This bit selects the type of memory access, byte or word, used for memory accesses when the Indirect Interface is enabled. When this bit = 0, byte or word accesses are allowed. For Mode 68, EBL and EBU indi- cate the transfer size. For Mode 80, WRU#, WRL#, RDU#, and RDL# indicate the trans- fer size. When this bit = 1, only word accesses are allowed and WRU#, RDU#, EBU are ignored when determining the transfer size. This bit affects memory accesses only, the signals are not ignored for register accesses.

Note

All word accesses must be byte aligned on even addresses.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 162 of the Epson LCD Controller (S1D13708) user manual — Table 820: Extended Panel Type Selection
Page 162 · click to enlarge
Page 162

Ink Layer Transparent Color Register 0 REG[C7h] Read/Write

Ink Layer Transparent Color Bits 7-0

7 6 5 4 3 2 1 0

Ink Layer Transparent Color Register 1 REG[C8h] Read/Write

Ink Layer Transparent Color Bits 15-8

7 6 5 4 3 2 1 0

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 163 of the Epson LCD Controller (S1D13708) user manual — Note
Page 163 · click to enlarge
Page 163

bits 15-0 Ink Layer Transparent Color Bits [15:0] The Ink Layer requires a transparent color to be selected. This transparent color is com- pared with the values in the foreground image during display refresh. If the pixel value matches the transparent color, the pixel from the background image is shown. If the pixel value does not match the transparent color, the foreground image is shown.

For further information on the Ink Layer, see Section 14, “Ink Layer” on page 187.

Ink Layer Register REG[C9h] Read/Write

7 6 5 4 3 2 1 0

bit 0 Ink Layer Enable This bit controls whether the Ink Layer is enabled or disabled. When this bit = 0, the Ink Layer is disabled. When this bit = 1, the Ink Layer is enabled.

For further information on the Ink Layer, see Section 14, “Ink Layer” on page 187.

Note

Picture-in-Picture Plus (PIP+) is not available when the Ink Layer is enabled.

BCLK Source Select Register REG[CAh] Read/Write

n/a XTAL Enable Bits 1-0 n/a

7 6 5 4 3 2 1 0

bits 5-4 XTAL Enable Bits [1:0] These two bits enable the crystal input/drive circuitry. When these bits = 00, the XTAL circuitry is disabled. When these bits = 11, the XTAL circuitry is enabled.

For further information on the crystal usage, see Section 16, “Embedded Crystal Oscilla- tor” on page 211.

bit 1 Extended PCLK / PWMCLK Source Select This bit selects the source (between CLKI2 and XTAL) used for PCLK and the PWM clock when CLKI2 is selected as the source for PCLK (see REG[05h] bits 1-0) and PWM clock (see REG[B1h] bit 0). When this bit = 0, the source used for PCLK and PWMCLK is CLKI2. When this bit = 1, the source used for PCLK and PWMCLK is XTAL.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 6 more labels / short text on this page
n/a Ink Layer · Enable · Extended PCLK/PWMCLK · BCLK Source · Select · Source Select
Page 164 of the Epson LCD Controller (S1D13708) user manual — Note
Page 164 · click to enlarge
Page 164

bit 0 BCLK Source Select This bit selects the BCLK source between CLKI and XTAL (XTAL is recommended only when configured for the Indirect Interface, see CNF[2:0]). When this bit is used the BCLK source switches in a glitch free manner. When this bit = 0, the BCLK source is CLKI. When this bit = 1, the BCLK source is XTAL.

Note

There must be a CLKI source initially for this bit to operate.

Note

The BCLK source may be divided down using the BCLK Source to BCLK divide ratio select (CNF[7:6]).

Data Compare Invert Enable Register REG[CBh] Read/Write

Data Compare Invert Enable

7 6 5 4 3 2 1 0

bit 0 Data Compare Invert Enable This bit can be used to lower power consumption for TFT Type 2 and TFT Type 3 Inter- faces. The Data Compare and Invert function reduces the amount of data toggled by count- ing the number of bits that are changed (1 to 0 or 0 to 1) from the previous pixel data. For all other panel interfaces it has no effect. When this bit = 0, the Data Compare and Invert functions are disabled. When this bit = 1, the Data Compare and Invert functions are enabled.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

n/a

Page 165 of the Epson LCD Controller (S1D13708) user manual — Table 821: VCLK Hold
Page 165 · click to enlarge
Page 165

TFT Type 2 VCLK Configuration Register REG[D0h] Read/Write

n/a VCLK Hold bits 1-0 n/a VCLK Setup bits 1-0

7 6 5 4 3 2 1 0

bits 4-3 VCLK Hold Bits [1:0] These bits control the TFT Type 2 AC timing parameter from the rising edge of STB to the falling edge of VCLK. The parameter is selected as follows. For all other panel interfaces it has no effect.

Table 8-21VCLK Hold

REG[D0h] bits 1-0 VCLK Hold (in PCLKs)

bits 1-0 VCLK Setup Bits [1:0] These bits control the TFT Type 2 AC timing parameter from the rising edge of VCLK to the rising edge of STB. The parameter is selected as follows. For all other panel interfaces it has no effect.

Table 8-22VCLK Setup

REG[D0h] bits 4-3 VCLK Setup (in PCLKs)

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 166 of the Epson LCD Controller (S1D13708) user manual — Table 823: AP Pulse Width
Page 166 · click to enlarge
Page 166

TFT Type 2 AP Configuration Register REG[D1h] Read/Write

POL Type n/a AP Pulse Width bits 2-0 n/a AP Rising Position bits 1-0

7 6 5 4 3 2 1 0

bit 7 POL Type This bit selects how often the POL signal is toggled. The POL signal is used for the TFT Type 2 Interface. For all other panel interfaces this bit has no effect. When this bit = 0, the POL signal is toggled every line. When this bit = 1, the POL signal is toggled every frame.

bits 5-3 AP Pulse Width Bits [2:0] These bits specify the AP Pulse Width used for the TFT Type Interface. For all other panel interfaces it has no effect.

Table 8-23AP Pulse Width

REG[D1h] bits 5-3 AP Pulse Width (in PCLKs)

bits 1-0 AP Rising Position Bits [1:0] These bits control the TFT Type 2 AC timing parameter from the rising edge of STB to the rising edge of AP. The parameter is selected as follows. For all other panel interfaces it has no effect.

Table 8-24AP Rising Position

REG[D1h] bits 1-0 GPIO1 (AP) Rising Position (in PCLKs)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 5 more labels / short text on this page
011 120 · 100 150 · 101 190 · 110 240 · 111 270
Page 167 of the Epson LCD Controller (S1D13708) user manual — Note
Page 167 · click to enlarge
Page 167

TFT Type 3 Signal Control Register REG[D4h] Read/Write

XSTBY Control XOHV Control XRESV

XRESH

7 6 5 4 3 2 1 0

Note

The GPO pins are used by the TFT Type 3 interface when REG[C5h] bits 1-0 = 10. For pin mapping for TFT Type 3, see Table 4-10: “LCD Interface Pin Mapping,” on page 40.

bit 7 PDME Control If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit controls the LCD signal PDME. When this bit = 1, PDME = 1. When this bit = 0, PDME = 0.

bit 6 XSTBY Control If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit controls the LCD signal XSTBY. When this bit = 1, XSTBY = 1. When this bit = 0, XSTBY = 0.

bit 5 XOHV Control If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit controls the LCD signal XOHV. When this bit = 1, XOHV = 1. When this bit = 0, XOHV = 0.

bit 4 XRESV Control If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit controls the LCD signal XRESV. When this bit = 1, XRESV = 1. When this bit = 0, XRESV = 0.

bit 3 XRESH Control If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit controls the LCD signal XRESH. When this bit = 1, XRESH = 1. When this bit = 0, XRESH = 0.

bit 2 PCLK2 Control If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit enables the LCD signal PCLK2. When this bit = 1, PCLK2 = 1. When this bit = 0, PCLK2 = 0.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 5 more labels / short text on this page
PDME Control · PCLK2 Enable · PCLK1 Enable n/a · Control · Control
Page 168 of the Epson LCD Controller (S1D13708) user manual — Table 823: AP Pulse Width
Page 168 · click to enlarge
Page 168

bit 1 PCLK1 Control If the TFT Type 3 interface is selected (REG[C5h] bits 1-0 = 10), this bit enables the LCD signal PCLK1. When this bit = 1, PCLK1 = 1. When this bit = 0, PCLK1 = 0.

TFT Type 3 OE Rising Edge Position Register REG[D5h] Read/Write

OE Rising Edge Position bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 OE Rising Edge Position Bits [7:0] These bits specify the rising edge position of the OE signal in 2 pixel resolution. This reg- ister is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 OE Pulse Width Register REG[D6h] Read/Write

OE Pulse Width bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 OE Pulse Width Bits [7:0] These bits specify the pulse width of the OE signal in 2 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 POL Toggle Position Register REG[D7h] Read/Write

POL Toggle Position bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 POL Toggle Position Bits [7:0] These bits specify the toggle position of the POL signal in 2 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 VCOM Toggle Position Register REG[D8h] Read/Write

VCOM Toggle Position bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 VCOM Toggle Position Bits [7:0] These bits specify the toggle position of the VCOM signal in 2 pixel resolution. This reg- ister is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 169 of the Epson LCD Controller (S1D13708) user manual — Table 823: AP Pulse Width
Page 169 · click to enlarge
Page 169

TFT Type 3 CPV Pulse Width Register REG[D9h] Read/Write

CPV Pulse Width bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 CPV Pulse Width Bits [7:0] These bits specify the pulse width of the CPV signal in 2 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 XOEV Rising Edge Position Register REG[DAh] Read/Write

XOEV Rising Edge Position bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 XOEV Rising Edge Position Bits [7:0] These bits specify the rising edge position of the XOEV signal in 2 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel inter- faces. The value of this register must be greater than zero.

TFT Type 3 XOEV Falling Edge Position Register REG[DBh] Read/Write

XOEV Falling Edge Position bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 XOEV Falling Edge Position Bits [7:0] These bits specify the falling edge position of the XOEV signal in 2 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel inter- faces.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 170 of the Epson LCD Controller (S1D13708) user manual — Table 825: GPO2 PCLK2 Divide Rate
Page 170 · click to enlarge
Page 170

TFT Type 3 PCLK Divide Register REG[DCh] Read/Write

n/a PCLK2 Divide Rate PCLK1 Divide Rate

7 6 5 4 3 2 1 0

bit 5-4 PCLK2 Divide Rate Bits [1:0] These bits specify the divide rate for PCLK2. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

Table 8-25GPO2 PCLK2 Divide Rate

REG[DBh] bits 5-4 PCLK2 Divide Rate

bits 3-0 PCLK1 Divide Rate Bits [3:0] These bits specify the divide rate for PCLK1. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

Table 8-26GPO1 PCLK1 Divide Rate

REG[DBh] bits 3-0 GPO1 PCLK1 Divide Rate

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 13 more labels / short text on this page
0011 16 · 0100 32 · 0101 64 · 0110 128 · 0111 256 · 1000 512 · 1001 1024 · 1010 2048 · 1011 4096 · 1100 8192 · 1101 16384 · 1110 32768 · 1111 65536
Page 171 of the Epson LCD Controller (S1D13708) user manual — Table 825: GPO2 PCLK2 Divide Rate
Page 171 · click to enlarge
Page 171

TFT Type 3 Partial Mode Display Area Control Register REG[E0h] Read/Write

Partial Mode Display Type

7 6 5 4 3 2 1 0

bit 4 Partial Mode Display Enable This bit enables/disables the Partial Mode Display for the TFT Type 3 and has no effect for all other panel interfaces. When this bit = 1, Partial Mode Display is enabled. When this bit = 0, Partial Mode Display is disabled.

bit 3 Partial Mode Display Type Select This bit selects the type of partial mode display. When this bit =0, the Stripe type of partial mode display is selected. If Stripe is enabled only the Y Position registers are used in calculating the partial display. When this bit = 1, type Block type of partial mode display is selected. If Block is enabled both the X and Y Position registers are used in calculating the partial display.

bit 2 Area 2 Display Enable This bit enables/disables the Area 2 for Partial Mode Display on the TFT Type 3 and has no effect for all other panel interfaces. When this bit = 1, Area 2 is enabled. When this bit = 0, Area 2 is disabled.

bit 1 Area 1 Display Enable This bit enables/disables the Area 1 for Partial Mode Display on the TFT Type 3 and has no effect for all other panel interfaces. When this bit = 1, Area 1 is enabled. When this bit = 0, Area 1 is disabled.

bit 0 Area 0 Display Enable This bit enables/disables the Area 0 for Partial Mode Display on the TFT Type 3 and has no effect for all other panel interfaces. When this bit = 1, Area 0 is enabled. When this bit = 0, Area 0 is disabled.

TFT Type 3 Partial Mode Display Refresh Cycle Register REG[E1h] Read/Write

n/a Partial Mode Display Refresh Cycle bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Mode Display Refresh Cycle Bits [5:0] These bits specify the refresh cycle for the Partial Mode Display. The refresh cycle can be a value from 0 to 63. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 11 more labels / short text on this page
Partial Mode · Area 2 Display · Area 1 Display · Area 0 Display · n/a · Display · Enable · Select · Enable · Enable · Enable
Page 172 of the Epson LCD Controller (S1D13708) user manual — Table 825: GPO2 PCLK2 Divide Rate
Page 172 · click to enlarge
Page 172

TFT Type 3 Partial Area 0 X Start Position Register REG[E2h] Read/Write

n/a Partial Area 0 X Start Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 0 X Start Position Bits [5:0] These bits specify the X Start Position of Partial Area 0 in 8 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 0 Y Start Position Register REG[E3h] Read/Write

n/a Partial Area 0 Y Start Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 0 Y Start Position Bits [5:0] These bits specify the Y Start Position of Partial Area 0 in 8 line resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 0 X End Position Register REG[E4h] Read/Write

n/a Partial Area 0 X End Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 0 X End Position Bits [5:0] These bits specify the X End Position of Partial Area 0 in 8 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 0 Y End Position Register REG[E5h] Read/Write

n/a Partial Area 0 Y End Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 0 Y End Position Bits [5:0] These bits specify the Y End Position of Partial Area 0 in 8 line resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 173 of the Epson LCD Controller (S1D13708) user manual — Table 825: GPO2 PCLK2 Divide Rate
Page 173 · click to enlarge
Page 173

TFT Type 3 Partial Area 1 X Start Position Register REG[E6h] Read/Write

n/a Partial Area 1 X Start Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 1 X Start Position Bits [5:0] These bits specify the X Start Position of Partial Area 1 in 8 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 1 Y Start Position Register REG[E7h] Read/Write

n/a Partial Area 1 Y Start Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 1 Y Start Position Bits [5:0] These bits specify the Y Start Position of Partial Area 1 in 8 line resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 1 X End Position Register REG[E8h] Read/Write

n/a Partial Area 1 X End Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 1 X End Position Bits [5:0] These bits specify the X End Position of Partial Area 1 in 8 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 1 Y End Position Register REG[E9h] Read/Write

n/a Partial Area 1 Y End Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 1 Y End Position Bits [5:0] These bits specify the Y End Position of Partial Area 1 in 8 line resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 174 of the Epson LCD Controller (S1D13708) user manual — Table 825: GPO2 PCLK2 Divide Rate
Page 174 · click to enlarge
Page 174

TFT Type 3 Partial Area 2 X Start Position Register REG[EAh] Read/Write

n/a Partial Area 2 X Start Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 2 X Start Position Bits [5:0] These bits specify the X Start Position of Partial Area 2 in 8 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 2 Y Start Position Register REG[EBh] Read/Write

n/a Partial Area 2 Y Start Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 2 Y Start Position Bits [5:0] These bits specify the Y Start Position of Partial Area 2 in 8 line resolution. This register is used for the TFT Type 3Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 2 X End Position Register REG[ECh] Read/Write

n/a Partial Area 2 X End Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 2 X End Position Bits [5:0] These bits specify the X End Position of Partial Area 2 in 8 pixel resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

TFT Type 3 Partial Area 2 Y End Position Register REG[EDh] Read/Write

n/a Partial Area 2 Y End Position bits 5-0

7 6 5 4 3 2 1 0

bits 5-0 Partial Area 2 Y End Position Bits [5:0] These bits specify the Y End Position of Partial Area 2 in 8 line resolution. This register is used for the TFT Type 3 Interface and has no effect for all other panel interfaces.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 175 of the Epson LCD Controller (S1D13708) user manual — Table 825: GPO2 PCLK2 Divide Rate
Page 175 · click to enlarge
Page 175

TFT Type 3 Command 0 Store Register 0 REG[F0h] Read/Write

Command 0 Store bits 7-0

7 6 5 4 3 2 1 0

TFT Type 3 Command 0 Store Register 1 REG[F1h] Read/Write

n/a Command 0 Store bits 11-8

7 6 5 4 3 2 1 0

bits 11-0 Command 0 Store Bits [11:0] These bits store command 0 for the TFT Type 3 Interface. This register has no effect for all other panel interfaces.

TFT Type 3 Command 1 Store Register 0 REG[F2h] Read/Write

Command 1 Store bits 7-0

7 6 5 4 3 2 1 0

TFT Type 3 Command 1 Store Register 1 REG[F3h] Read/Write

n/a Command 1 Store bits 11-8

7 6 5 4 3 2 1 0

bits 11-0 Command 1 Store Bits [11:0] These bits store command 1 for the TFT Type 3 Interface. This register has no effect for all other panel interfaces.

TFT Type 3 Command Send Request Register REG[F4h] Read/Write

n/a Command Send Request

7 6 5 4 3 2 1 0

bit 0 Command Send Request After the CPU sets this bit, the S1D13708 sends the command in the next non-display period and clears this bit automatically. This register has no effect for all other panel inter- faces.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 176 of the Epson LCD Controller (S1D13708) user manual — Table 827: Number of Source Driver ICs
Page 176 · click to enlarge
Page 176

TFT Type 3 Source Driver IC Number Register REG[F5h] Read/Write

n/a Source Driver IC Number

7 6 5 4 3 2 1 0

bits 1-0 Source Driver IC Number Bits [1:0] These bits contain the number of Source Driver ICs.

Table 8-27Number of Source Driver ICs

REG[F5h] bits 1-0 Source Driver ICs

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Bits 1-0

Page 177 of the Epson LCD Controller (S1D13708) user manual — 9 Frame Rate Calculation
Page 177 · click to enlarge
Page 177

9 Frame Rate Calculation

The following formula is used to calculate the display frame rate.

HT ( ) VT ( ) × =

Where:

fPCLK = PClk frequency (Hz)

HT = Horizontal Total = ((REG[12h] bits 6-0) + 1) x 8 Pixels

VT = Vertical Total = ((REG[19h] bits 1-0, REG[18h] bits 7-0) + 1) Lines

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

FrameRate fPCLK

Page 178 of the Epson LCD Controller (S1D13708) user manual — Note
Page 178 · click to enlarge
Page 178

10 Display Data Formats

The following diagrams show the display mode data formats for a little-endian system.

1 bpp:

bit 7 bit 0

P0P1P2P3P4P5P6P7

A0 A1 A2 A3 A4 A5 A6 A7

A8 A9 A10 A11 A12 A13 A14 A15

LUT

Pn = RGB value from LUT

A16 A17 A18 A19 A20 A21 A22 A23

Index (An)

2 bpp:

bit 7 bit 0

P0P1P2P3P4P5P6P7

A0 B0 A1 B1 A2 B2 A3 B3

A4 B4 A5 B5 A6 B6 A7 B7

LUT

Pn = RGB value from LUT

A8 B8 A9 B9 A10 B10 A11 B11

Index (An, Bn)

4 bpp:

bit 7 bit 0

P0P1P2P3P4P5P6P7

A0 B0 C0 D0 A1 B1 C1 D1

A2 B2 C2 D2 A3 B3 C3 D3

LUT

Pn = RGB value from LUT

A4 B4 C4 D4 A5 B5 C5 D5

Index (An, Bn, Cn, Dn)

bit 7 bit 0 8 bpp:

P0P1P2P3P4P5P6P7

A0 B0 C0 D0 E0 F0 G0 H0

A1 B1 C1 D1 E1 F1 G1 H1

LUT

Pn = RGB value from LUT Index

(An, Bn, Cn, Dn, En, Fn, Gn, Hn)

A2 B2 C2 D2 E2 F2 G2 H2

16 bpp:

5-6-5 RGB

bit 7 bit 0

P0P1P2P3P4P5P6P7

2 G0 1 G00 B04 B0

1 B 0 0

G 0

3 B 0

2 B 0

R 0

R 0 3 R 0 2 R 0

1 R 0

0 G0 5 G0 4 G0 3

Pn = (Rn

4-0, Gn 5-0, Bn 4-0)

G 1

2 G 11 G 1 0 B 1

4 B 1

3 B 1

2 B 1 1 B 1 0

R 1 4 R 1 3 R 1

2 R 1 1 R 1

0 G 1 5 G 14 G 13

Host Address Display Buffer

Figure 10-1 4/8/16 Bit-Per-Pixel Display Data Memory Organization

Note

1. The Host-to-Display mapping shown here is for a little endian system. 2. For 16 bpp format, R n , G n , B n represent the red, green, and blue color components.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 30 more labels / short text on this page
Byte 0 · Byte 1 · Byte 2 · Host Address · Display Memory · Panel Display · Byte 0 · Byte 1 · Byte 2 · Host Address · Display Memory · Panel Display · Byte 0 · Byte 1 · Byte 2 · Host Address · Display Memory · Panel Display · Byte 0 · Byte 1 · Byte 2 · Host Address · Display Memory · Panel Display · Byte 0 · Bypasses LUT · Byte 1 · Byte 2 · Byte 3 · Panel Display
Page 179 of the Epson LCD Controller (S1D13708) user manual — 2 Bit-per-pixel Monochrome Mode
Page 179 · click to enlarge
Page 179

11 Look-Up Table Architecture

The following figures are intended to show the display data output path only.

Note

When Video Data Invert is enabled the video data is inverted after the Look-Up Table.

11.1 Monochrome Modes

The green Look-Up Table (LUT) is used for all monochrome modes.

1 Bit-per-pixel Monochrome Mode

Epson LCD Controller (S1D13708) — 1 Bit-per-pixel Monochrome Mode diagram (page 179)
Fig. 68 · 1 Bit-per-pixel Monochrome Mode

Figure 11-1 1 Bit-per-pixel Monochrome Mode Data Output Path

2 Bit-per-pixel Monochrome Mode

Epson LCD Controller (S1D13708) — 2 Bit-per-pixel Monochrome Mode diagram (page 179)
Fig. 69 · 2 Bit-per-pixel Monochrome Mode

Figure 11-2 2 Bit-per-pixel Monochrome Mode Data Output Path

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 180 of the Epson LCD Controller (S1D13708) user manual — 8 Bit-per-pixel Monochrome Mode
Page 180 · click to enlarge
Page 180

4 Bit-per-pixel Monochrome Mode

Epson LCD Controller (S1D13708) — 4 Bit-per-pixel Monochrome Mode diagram (page 180)
Fig. 70 · 4 Bit-per-pixel Monochrome Mode

0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111

04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

Figure 11-3 4 Bit-per-pixel Monochrome Mode Data Output Path

8 Bit-per-pixel Monochrome Mode

Epson LCD Controller (S1D13708) — 8 Bit-per-pixel Monochrome Mode diagram (page 180)
Fig. 71 · 8 Bit-per-pixel Monochrome Mode

0000 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111

1111 1000 1111 1001 1111 1010 1111 1011 1111 1100 1111 1101 1111 1110 1111 1111

Figure 11-4 8 Bit-per-pixel Monochrome Mode Data Output Path

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 181 of the Epson LCD Controller (S1D13708) user manual — 1 Bit-Per-Pixel Color
Page 181 · click to enlarge
Page 181

16 Bit-Per-Pixel Monochrome Mode

The LUT is bypassed and the green data is directly mapped for this color depth– See “Display Data Formats” on page 172..

11.2 Color Modes

1 Bit-Per-Pixel Color

Epson LCD Controller (S1D13708) — 1 Bit-Per-Pixel Color diagram (page 181)
Fig. 72 · 1 Bit-Per-Pixel Color

Figure 11-5 1 Bit-Per-Pixel Color Mode Data Output Path

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 182 of the Epson LCD Controller (S1D13708) user manual — 2 Bit-Per-Pixel Color
Page 182 · click to enlarge
Page 182

2 Bit-Per-Pixel Color

Epson LCD Controller (S1D13708) — 2 Bit-Per-Pixel Color diagram (page 182)
Fig. 73 · 2 Bit-Per-Pixel Color

Figure 11-6 2 Bit-Per-Pixel Color Mode Data Output Path

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 183 of the Epson LCD Controller (S1D13708) user manual — 4 Bit-Per-Pixel Color
Page 183 · click to enlarge
Page 183

4 Bit-Per-Pixel Color

Epson LCD Controller (S1D13708) — 4 Bit-Per-Pixel Color diagram (page 183)
Fig. 74 · 4 Bit-Per-Pixel Color

0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111

04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111

04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1111

04 05 06 07 08 09 0A 0B 0C 0D 0E 0F

Figure 11-7 4 Bit-Per-Pixel Color Mode Data Output Path

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 184 of the Epson LCD Controller (S1D13708) user manual — 16 Bit-Per-Pixel Color Mode
Page 184 · click to enlarge
Page 184

8 Bit-per-pixel Color Mode

Epson LCD Controller (S1D13708) — 8 Bit-per-pixel Color Mode diagram (page 184)
Fig. 75 · 8 Bit-per-pixel Color Mode

1111 1000 1111 1001 1111 1010 1111 1011 1111 1100 1111 1101 1111 1110 1111 1111

Green Look-Up Table 256x6 00 01 02 03 04 05 06 07

0000 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111

1111 1000 1111 1001 1111 1010 1111 1011 1111 1100 1111 1101 1111 1110 1111 1111

Blue Look-Up Table 256x6 00 01 02 03 04 05 06 07

0000 0010 0000 0011 0000 0100 0000 0101 0000 0110 0000 0111

1111 1000 1111 1001 1111 1010 1111 1011 1111 1100 1111 1101 1111 1110 1111 1111

Figure 11-8 8 Bit-per-pixel Color Mode Data Output Path

16 Bit-Per-Pixel Color Mode

The LUT is bypassed and the color data is directly mapped for this color depth– See “Display Data Formats” on page 172.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 185 of the Epson LCD Controller (S1D13708) user manual — A B
Page 185 · click to enlarge
Page 185

12 SwivelView™

12.1 Concept

Most computer displays are refreshed in landscape orientation – from left to right and top to bottom. Computer images are stored in the same manner. SwivelView™ is designed to rotate the displayed image on an LCD by 90°, 180°, or 270° in an counter-clockwise direction. The rotation is done in hardware and is transparent to the user for all display buffer reads and writes. By processing the rotation in hardware, SwivelView™ offers a performance advantage over software rotation of the displayed image.

The image is not actually rotated in the display buffer since there is no address translation during CPU read/write. The image is rotated during display refresh.

12.2 90° SwivelView™

90° SwivelView™ requires the Memory Clock (MCLK) to be at least 1.25 times the frequency of the Pixel Clock (PCLK), i.e. MCLK ≥ 1.25PCLK.

The following figure shows how the programmer sees a 320x480 portrait image and how the image is being displayed. The application image is written to the S1D13708 in the following sense: A–B–C–D. The display is refreshed by the S1D13708 in the following sense: B-D-A-C.

A B

B A

D C

C D

image seen by programmer = image in display buffer

image refreshed by S1D13708

Figure 12-1 Relationship Between The Screen Image and the Image Refreshed in 90° SwivelView.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 8 more labels / short text on this page
physical memory · start address · SwivelView · SwivelView · window · display start address · window · (panel origin)
Page 186 of the Epson LCD Controller (S1D13708) user manual — Panning
Page 186 · click to enlarge
Page 186

12.2.1 Register Programming

Enable 90 ° SwivelView™ Mode

Set SwivelView™ Mode Select bits to 01.

Display Start Address

The display refresh circuitry starts at pixel “B”, therefore the Display Start Address register must be programmed with the address of pixel “B”. The example in the figure shows a 320- pixel wide display, and if we assume 8-bpp display mode, the Display Start Address will be 4Fh (the Display Start Address register is 0-based and in 32-bit increment).

Memory Address Offset

The Memory Address Offset register should be normally set to be the same as the display width, e.g. 320 pixels or 50h (the Memory Address Offset register is in 32-bit increment). This value may be increased to create a virtual display.

Panning

Panning is achieved by changing the Display Start Address register:

  • Increment/decrement the Display Start Address register pans the display window right/left by 32 bits, e.g. 4 pixels in 8-bpp mode.
  • Increase/decrease the Display Start Address register by an amount equals to the Memory Address Offset pans the display window down/up by 1 line.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 187 of the Epson LCD Controller (S1D13708) user manual — Memory Address Offset
Page 187 · click to enlarge
Page 187

12.3 180° SwivelView™

The following figure shows how the programmer sees a 480x320 landscape image and how the image is being displayed. The application image is written to the S1D13708 in the following sense: A–B–C–D. The display is refreshed by the S1D13708 in the following sense: D-C-B-A.

(panel origin) physical memory

A B

C D

C D

A B

image seen by programmer = image in display buffer

image refreshed by S1D13708

Figure 12-2 Relationship Between The Screen Image and the Image Refreshed in 180° SwivelView.

12.3.1 Register Programming

Enable 180 ° SwivelView™ Mode

Set SwivelView™ Mode Select bits to 10.

Display Start Address

The display refresh circuitry starts at pixel “D”, therefore the Display Start Address register must be programmed with the address of pixel “D”. The example in the figure shows a 480- pixel wide display, and if we assume 8-bpp display mode, the Display Start Address will be 95FFh (the Display Start Address register is 0-based and in 32-bit increment).

Memory Address Offset

The Memory Address Offset register should be normally set to be the same as the display width, e.g. 480 pixels or 78h (the Memory Address Offset register is in 32-bit increment). This value may be increased to create a virtual display.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 5 more labels / short text on this page
display start address · start address · SwivelView · SwivelView window · window
Page 188 of the Epson LCD Controller (S1D13708) user manual — A B
Page 188 · click to enlarge
Page 188

Panning

Panning is achieved by changing the Display Start Address register:

  • Increment/decrement the Display Start Address register pans the display window right/left by 32 bits, e.g. 4 pixels in 8-bpp mode.
  • Increase/decrease the Display Start Address register by an amount equals to the Memory Address Offset pans the display window down/up by 1 line.

12.4 270° SwivelView™

270° SwivelView™ requires the Memory Clock (MCLK) to be at least 1.25 times the frequency of the Pixel Clock (PCLK), i.e. MCLK ≥ 1.25PCLK.

The following figure shows how the programmer sees a 320x480 portrait image and how the image is being displayed. The application image is written to the S1D13708 in the following sense: A–B–C–D. The display is refreshed by the S1D13708 in the following sense: C-A-D-B.

A B

D C

B A

C D

image seen by programmer = image in display buffer

image refreshed by S1D13708

Figure 12-3 Relationship Between The Screen Image and the Image Refreshed in 270° SwivelView.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 7 more labels / short text on this page
physical memory · start address · SwivelView · SwivelView window · window · display start address · (panel origin)
Page 189 of the Epson LCD Controller (S1D13708) user manual — Panning
Page 189 · click to enlarge
Page 189

12.4.1 Register Programming

Enable 270 ° SwivelView™ Mode

Set SwivelView™ Mode Select bits to 11.

Display Start Address

The display refresh circuitry starts at pixel “C”, therefore the Display Start Address register must be programmed with the address of pixel “C”. The example in the figure shows a 320- pixel wide display, and if we assume 8-bpp display mode, the Display Start Address will be 95B0h (the Display Start Address register is 0-based and in 32-bit increment).

Memory Address Offset

The Memory Address Offset register should be normally set to be the same as the display width, e.g. 320 pixels or 50h (the Memory Address Offset register is in 32-bit increment). This value may be increased to create a virtual display.

Panning

Panning is achieved by changing the Display Start Address register:

  • Increment/decrement the Display Start Address register pans the display window right/left by 32 bits, e.g. 4 pixels in 8-bpp mode.
  • Increase/decrease the Display Start Address register by an amount equals to the Memory Address Offset pans the display window down/up by 1 line.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 190 of the Epson LCD Controller (S1D13708) user manual — 0° SwivelView TM
Page 190 · click to enlarge
Page 190

13 Picture-in-Picture Plus (PIP + )

13.1 Concept

Picture-in-Picture Plus enables a secondary window (or PIP+ window) within the main display window. The PIP+ window may be positioned anywhere within the virtual display and is controlled through the PIP+ Window control registers (REG[7Ch] through REG[91h]). The PIP+ window retains the same color depth and SwivelView orientation as the main window.

The following diagram shows an example of a PIP+ window within a main window and the registers used to position it.

0° SwivelView TM

PIP+ window y start position

PIP+ window y end position

PIP+ window x start position PIP+ window x end position

Figure 13-1 Picture-in-Picture Plus with SwivelView disabled

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 6 more labels / short text on this page
(REG[89h],REG[88h]) · panel’s origin · (REG[91h],REG[90h]) · main-window · PIP+ window · (REG[85h],REG[84h]) (REG[8Dh],REG[8Ch])
Page 191 of the Epson LCD Controller (S1D13708) user manual — 13.2.2 SwivelView 180°
Page 191 · click to enlarge
Page 191

13.2 With SwivelView Enabled

13.2.1 SwivelView 90°

90° SwivelView TM

PIP+ window x start position PIP+ window x end position

PIP+ window y start position

PIP+ window y end position

Figure 13-2 Picture-in-Picture Plus with SwivelView 90° enabled

13.2.2 SwivelView 180°

PIP+ window x start position PIP+ window x end position 180° SwivelViewTM

PIP+ window y start position panel’s origin PIP+ window y end position

Figure 13-3 Picture-in-Picture Plus with SwivelView 180° enabled

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 13 more labels / short text on this page
panel’s origin · (REG[85h],REG[84h]) · (REG[8Dh],REG[8Ch]) · PIP+ window · (REG[89h],REG[88h]) · (REG[91h],REG[90h]) · main-window · (REG[8Dh],REG[8Ch]) · (REG[85h],REG[84h]) · PIP+ window · main-window · (REG[91h],REG[90h]) · (REG[89h],REG[88h])
Page 192 of the Epson LCD Controller (S1D13708) user manual — 13.2.3 SwivelView 270°
Page 192 · click to enlarge
Page 192

13.2.3 SwivelView 270°

270° SwivelView TM

PIP+ window y end position

PIP+ window y start position

PIP+ window x start position

PIP+ window x end position

Figure 13-4 Picture-in-Picture Plus with SwivelView 270° enabled

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 7 more labels / short text on this page
main-window · (REG[91h],REG[90h]) · PIP+ window · (REG[89h],REG[88h]) · (REG[85h],REG[84h]) · (REG[8Dh],REG[8Ch]) · panel’s origin
Page 193 of the Epson LCD Controller (S1D13708) user manual — Enabling the Ink Layer
Page 193 · click to enlarge
Page 193

14 Ink Layer

The S1D13708 Ink Layer design provides support for a foreground image that can be overlaid on the background (or main) image. The Ink Layer supports all color depths and automatically adjusts to the resolution of the display.

14.1 Memory Mapping

The S1D13708 has 80K bytes of embedded SRAM. When the ink layer is enabled, this memory is divided into two 40K byte blocks which can be logically represented as shown below.

Ink Layer Disabled (REG[C9h] bit 0 = 0)

Ink Layer Enabled (REG[C9h] bit 0 = 1)

40K Byte Ink Layer

80K Byte Display Buffer

40K Byte Display Buffer

Figure 14-1 Memory Mapping for Ink Layer

14.2 Controlling the Ink Layer

The Ink Layer is controlled using REG[C7h] through REG[C9h].

Enabling the Ink Layer

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 7 more labels / short text on this page
00000h · 00000h · (foreground) · 0A000h · (background) · 13FFFh · 13FFFh
Page 194 of the Epson LCD Controller (S1D13708) user manual — 14.3 Limitations
Page 194 · click to enlarge
Page 194

The Ink Layer is enabled/disabled using REG[C9h] bit 0. When the Ink Layer Enable bit is set to 1, the display buffer is automatically configured for a foreground and background image as shown in Figure 14-1 Memory Mapping for Ink Layer.

Setting the Transparent Color

The Ink Layer requires a transparent color to be set. This transparent color is stored in REG[C7h], REG[C8h] and the value from these registers is compared with the values in the foreground image during display refresh. If the pixel value matches the transparent color, the corresponding pixel from the background image is shown. If the pixel value does not match the transparent color, the foreground image is shown.

Transparent Color = FFh (REG[C7h],REG[C8h])

Pixel Value = A0h

Example:

Compare first pixel in ink layer (A0h) with the first display color (00h). Pixel values do not match therefore pixel value from main display (00h) is used for display refresh.

40K Byte Ink Layer

Compare second pixel in ink layer (A0h) with display memory color (A0h). Pixel values do match therefore pixel value from ink layer (A0h) is used for display refresh.

Pixel Value = 00h

Pixel Value = A0h

40K Byte Display Buffer

Figure 14-2 Transparent Color Example

14.3 Limitations

There are certain limitations when the Ink Layer is enabled.

  • Available display buffer is only 40K byte. This limits the resolution and color depth of the display (e.g. 160x160 at 16 bpp is not possible).

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 5 more labels / short text on this page
00000h · (foreground) · 0A000h · (background) · 13FFFh
Page 195 of the Epson LCD Controller (S1D13708) user manual — 15 Indirect Interface
Page 195 · click to enlarge
Page 195

15 Indirect Interface

The Indirect Interface is an asynchronous interface with 2 modes of operation, mode 68 and mode 80. The address and data are multiplexed onto the data bus, thus providing a low pin count interface to the S1D13708. The modes are distinguished between one another by the polarity of BS#. Both modes support 8 and 16 bit accesses for both little and big endian.

The S1D13708 Indirect Interface use a combination of “command” and “data” reads/writes to program the LCD controller. First, register addresses are loaded using “command” writes. Then, register values and memory reads/writes are performed using “data” reads/writes. Memory addresses are performed by programming REG[C0h] through REG[C2h] with the desired 17-bit address.

If the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1), memory accesses are always word accesses and the signals WRU#, RDU# and EBU are ignored (WRL#, RDL# and EBL are used for accessing both the higher and lower bytes). If this bit is disabled, byte/word accesses to memory are controlled by WRn#, RDn# and EBn.

For details and examples, see the following sections. Also refer to Connecting to the Indirect Interface Bus, Document Number X39A-G-020-xx.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 196 of the Epson LCD Controller (S1D13708) user manual — STEP
Page 196 · click to enlarge
Page 196

15.1 Mode 68

The following shows an example of a “register write” with Mode 68.

Epson LCD Controller (S1D13708) — 15.1 Mode 68 diagram (page 196)
Fig. 76 · 15.1 Mode 68

CS#

A0

R/W#

EBL

EBU

D[7:0]

D[15:8]

even number even number data write data write data write byte access byte access word access byte access

STEP

Figure 15-1 Sample timing of “register write” with Mode 68

1. write register address (command write).
2. write register data (data write). Even numbered register uses the high byte.
3. write register address (command write).
4. write register data (data write). Demonstrates how to access an odd numbered register using the low byte. Note that the high byte could also have been used by asserting EBU instead of EBL.
5. write register address (command write)
6. write register data (data write). Word accesses (16-bit) use the higher byte for the even register address and the lower byte for the odd register address.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 197 of the Epson LCD Controller (S1D13708) user manual — STEP
Page 197 · click to enlarge
Page 197

The following shows an example of a “register read” with Mode 68.

Epson LCD Controller (S1D13708) — Figure 152 Sample timing of “register read” with Mode 68 diagram (page 197)
Fig. 77 · Figure 152 Sample timing of “register read” with Mo…

CS#

A0

R/W#

EBL

EBU

D[7:0]

D[15:8]

even number even number data read data read data read

STEP

Figure 15-2 Sample timing of “register read” with Mode 68

1. write register address (command write).
2. read register data (data read).
3. write register address (command write).
4. read register data (data read). Demonstrates how to access an odd numbered register using the low byte. Note that the high byte could also have been used by asserting EBU instead of EBL.
5. write register address (command write).
6. read register data (data read). Word accesses (16-bit) use the higher byte for the even register address and the lower byte for the odd register address.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 198 of the Epson LCD Controller (S1D13708) user manual — Note
Page 198 · click to enlarge
Page 198

The following shows an example of a “memory write” with Mode 68, Big Endian.

Epson LCD Controller (S1D13708) — Figure 153 Sample timing of “memory write” with Mode 68, Big Endian diagram (page 198)
Fig. 78 · Figure 153 Sample timing of “memory write” with Mod…

CS#

A0

R/W#

EBL

EBU

D[7:0]

D[15:8]

Data Write Data Write Data Write Data Write Data Write word access byte access byte access

REG[C4h] REG[C2h] even number

memory data even address even address odd address even address even address

memory data memory data memory data

1 2 3 4 5 6 STEP

Figure 15-3 Sample timing of “memory write” with Mode 68, Big Endian

1. write register address of Memory Access Pointer 0 (REG[C0h]) (command write).
2. write memory address[7:0] to the low byte and memory address[15:8] to the high byte (data write). This places data into RegC0 and RegC1, which form bits [7:0] and [15:8] of memory address respectfully.
3. write register address of Memory Access Pointer 2 (REG[C2h] bit 0) (command write).
4. write memory access pointer (REG[c2h] bit 0) (data write). This forms bit 16 of memory address.
5. write register number of Memory Access Start register (REG[C4h] (command write).

Note

No “data write” is required after a command write to the Memory Access Start register (REG[C4h]). This step configures the S1D13708 for burst memory access beginning with the next data write.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 11 more labels / short text on this page
REG[C0h] · memory data · even number · Address +1 · Address +1 · Address +2 · Address +2 · (byte) · (byte) · (word) · (word)
Page 199 of the Epson LCD Controller (S1D13708) user manual — Figure 153 Sample timing of “memory write” with Mode 68, Big Endian
Page 199 · click to enlarge
Page 199
6. write Memory data (data write) The S1D13708 indirect interface implements an auto increment function to allow burst memory accesses. For byte accesses, the Memory Address Pointer registers (REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word accesses, the Memory Address Pointer registers are automatically incremented “+2”.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 200 of the Epson LCD Controller (S1D13708) user manual — Note
Page 200 · click to enlarge
Page 200

The following shows an example of a “memory read” with Mode 68, Big Endian.

Epson LCD Controller (S1D13708) — Figure 154 Sample timing of “memory read” with Mode 68, Big Endian diagram (page 200)
Fig. 79 · Figure 154 Sample timing of “memory read” with Mode…

CS#

A0

R/W#

EBL

EBH

D[7:0]

D[15:8]

Data Read Data Read Data Read Data Read Data Read byte access word access word access

memory data odd address even address odd address even address even address

1 2 3 4 5 6 STEP

Figure 15-4 Sample timing of “memory read” with Mode 68, Big Endian

1. write register address of Memory Access Pointer 0 (REG[C0h]) (command write).
2. write memory address[7:0] to the low byte and memory address[15:8] to the high byte (data write). This places data into RegC0 and RegC1, which form bits [7:0] and [15:8] of memory address respectfully.
3. write register address of Memory Access Pointer 2 (REG[C2h] bit 0) (command write).
4. write memory access pointer (REG[c2h] bit 0) (data write). This forms bit 16 of memory address.
5. write register number of Memory Access Start register (REG[C4h] (command write).

Note

No “data write” is required after a command write to the Memory Access Start register (REG[C4h]). This step configures the S1D13708 for burst memory access beginning with the next data write.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 8 more labels / short text on this page
Address +2 · Address +2 · Address +1 · Address +1 · (word) · (word) · (byte) · (byte)
Page 201 of the Epson LCD Controller (S1D13708) user manual — Figure 154 Sample timing of “memory read” with Mode 68, Big Endian
Page 201 · click to enlarge
Page 201
6. read Memory data (data read) The S1D13708 indirect interface implements an auto increment function to allow burst memory accesses. For byte accesses, the Memory Address Pointer registers (REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word accesses, the Memory Address Pointer registers are automatically incremented “+2”.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 202 of the Epson LCD Controller (S1D13708) user manual — Note
Page 202 · click to enlarge
Page 202

The following shows an example of a “memory write” for Mode 68 when the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1).

Epson LCD Controller (S1D13708) — Figure 155 Sample timing of “register write” for Mode 68 when Memory Access Select Enabled diagram (page 202)
Fig. 80 · Figure 155 Sample timing of “register write” for Mo…

CS#

A0

R/W#

EBL

EBU

D[7:0]

D[15:8]

word access word access word access word access word access

1 2 STEP

Epson LCD Controller (S1D13708) — CS# diagram (page 202)
Fig. 81

Figure 15-5 Sample timing of “register write” for Mode 68 when Memory Access Select Enabled

1. write register number of Memory Access Start register (REG[C4h]) (command write).

Note

No “data write” is required after a command write to the Memory Access Start register (REG[C4h]). This step configures the S1D13708 for burst memory access beginning with the next data write.

2. write Memory data (data write). If the Memory Access Select bit (REG[C6h] bit 0 = 1), memory accesses are word accesses even if EBU is high (EBU is ignored and EBL is used to write both the upper and lower bytes). The big/little endian setting is used to determine the data arrangement for word accesses only.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 12 more labels / short text on this page
Address +2 · Address +2 · Address +2 · Address +2 · Address +2 · Address +2 · (word) · (word) · (word) · (word) · (word) · (word)
Page 203 of the Epson LCD Controller (S1D13708) user manual — Note
Page 203 · click to enlarge
Page 203

The S1D13708 indirect interface implements an auto increment function to allow burst memory accesses. For byte accesses, the Memory Address Pointer registers (REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word accesses, the Memory Address Pointer registers are automatically incremented “+2”.

Note

If the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1), all memory accesses are word accesses (EBU is ignored). Therefore, the memory address set in REG[C0h] through REG[C2h] must be an even address.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 204 of the Epson LCD Controller (S1D13708) user manual — Note
Page 204 · click to enlarge
Page 204

The following shows an example of a “memory read” for Mode 68 when the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1).

Epson LCD Controller (S1D13708) — Figure 156 Sample timing of “register read” for Mode 68 when Memory Access Select Enabled diagram (page 204)
Fig. 82 · Figure 156 Sample timing of “register read” for Mod…

CS#

A0

R/W#

EBL

EBU

D[7:0]

D[15:8]

word access word access word access word access word access

1 2 STEP

Epson LCD Controller (S1D13708) — CS# diagram (page 204)
Fig. 83

Figure 15-6 Sample timing of “register read” for Mode 68 when Memory Access Select Enabled

1. write register number of Memory Access Start register (REG[C4h]) (command write).

Note

No “data write” is required after a command write to the Memory Access Start register (REG[C4h]). This step configures the S1D13708 for burst memory access beginning with the next data read.

2. read Memory data (data read). If the Memory Access Select bit (REG[C6h] bit 0 = 1), memory accesses are word accesses even if EBU is high (EBU is ignored and EBL is used to read both the upper and lower bytes). The big/little endian setting is used to determine the data arrangement for word accesses only.

The S1D13708 indirect interface implements an auto increment function to allow

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Show 12 more labels / short text on this page
Address +2 · Address +2 · Address +2 · Address +2 · Address +2 · Address +2 · (word) · (word) · (word) · (word) · (word) · (word)
Page 205 of the Epson LCD Controller (S1D13708) user manual — Note
Page 205 · click to enlarge
Page 205

burst memory accesses. For byte accesses, the Memory Address Pointer registers (REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word accesses, the Memory Address Pointer registers are automatically incremented “+2”.

Note

If the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1), all memory accesses are word accesses (EBU is ignored). Therefore, the memory address set in REG[C0h] through REG[C2h] must be an even address.

Register access still uses EBU irrespective of REG[C6] bit 0 value.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 206 of the Epson LCD Controller (S1D13708) user manual — STEP
Page 206 · click to enlarge
Page 206

15.2 Mode 80

Mode 80 supports byte and word access for both register and memory access. It also allows both big and little endian modes. The following shows an example of a “register write” with Mode 80.

Epson LCD Controller (S1D13708) — 15.2 Mode 80 diagram (page 206)
Fig. 84 · 15.2 Mode 80

CS#

A0

WRL#

WRU#

RDL#

RDU#

D[7:0]

D[15:8]

even number even number data write data write data write

STEP

Figure 15-7 Sample timing of “register write” with Mode 80

1. write register address (command write). Command write is always the lower byte.
2. write register data (data write). Even numbered register uses the low byte.
3. write register address (command write).
4. write register data (data write). Demonstrates how to access an odd numbered register using the high byte. Note that the low byte could also have been used by asserting WRL# instead of WRU#.
5. write register address (command write)

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 207 of the Epson LCD Controller (S1D13708) user manual — 15.2 Mode 80
Page 207 · click to enlarge
Page 207
6. write register data (data write). Word accesses (16-bit) use the lower byte for the lower register number and the higher byte for the higher register number.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 208 of the Epson LCD Controller (S1D13708) user manual — CS#
Page 208 · click to enlarge
Page 208

The following shows an example of a “register read” with Mode 80.

Epson LCD Controller (S1D13708) — Figure 158 Sample timing of “register read” with Mode 80 diagram (page 208)
Fig. 85 · Figure 158 Sample timing of “register read” with Mo…

CS#

A0

WRL#

WRU#

RDL#

RDU#

D[7:0]

D[15:8]

even number even number data read data read data read

Figure 15-8 Sample timing of “register read” with Mode 80

1. write register address (command write). Command write is always the lower byte.
2. read register data (data read). Even numbered register uses the lower byte.
3. write register address (command write).
4. read register data (data read). Demonstrates how to access an odd numbered register using the high byte. Note that the low byte could also have been used by asserting WRL# instead of WRU#.
5. write register address (command write).
6. read register data (data read). Word accesses (16-bit) use the lower byte for the lower register number and the higher byte for the higher register number.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 209 of the Epson LCD Controller (S1D13708) user manual — Note
Page 209 · click to enlarge
Page 209

The following shows an example of a “memory write” with Mode 80, little endian.

Epson LCD Controller (S1D13708) — Figure 159 Sample timing of “memory write” with mode 80, little endian diagram (page 209)
Fig. 86 · Figure 159 Sample timing of “memory write” with mod…

CS#

A0

WRL#

WRU#

RDL#

RDU#

D[7:0]

D[15:8]

Data Write Data Write Data Write Data Write Data Write word access byte access byte access

memory data even address even address odd address even address even address

1 2 3 4 5 6 STEP

Figure 15-9 Sample timing of “memory write” with mode 80, little endian

1. write register number of Memory Access Pointer 0 (REG[C0h]) (command write).
2. write memory address 0 to the high byte and memory address 1 to the low byte (MA[15:0]) (data write).
3. write register number of Memory Access Pointer 2 (REG[C2h]) (command write).
4. write memory address 2 (MA16) to the low byte (data write).
5. write register number of Memory Access Start register (REG[C4h]) (command write).

Note

No “data write” is required after a command write to the Memory Access Start register (REG[C4h]). This step configures the S1D13708 for burst memory access beginning with the next data write.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 8 more labels / short text on this page
Address +1 · Address +2 · Address +2 · Address +1 · (byte) · (byte) · (word) · (word)
Page 210 of the Epson LCD Controller (S1D13708) user manual — Figure 159 Sample timing of “memory write” with mode 80, little endian
Page 210 · click to enlarge
Page 210
6. write Memory data (data write) The S1D13708 indirect interface implements an auto increment function to allow burst memory accesses. For byte accesses, the Memory Address Pointer registers (REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word accesses, the Memory Address Pointer registers are automatically incremented “+2”.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 211 of the Epson LCD Controller (S1D13708) user manual — Note
Page 211 · click to enlarge
Page 211

The following shows an example of a “memory read” with Mode 80, Little endian.

Epson LCD Controller (S1D13708) — Figure 1510 Sample timing of “memory read” with mode 80, Little endian diagram (page 211)
Fig. 87 · Figure 1510 Sample timing of “memory read” with mod…

CS#

A0

WRL#

WRU#

RDL#

RDU#

D[7:0]

D[15:8]

Data Read Data Read Data Read Data Read Data Read byte access word access word access

memory data odd address even address odd address even address even address

1 2 3 4 5 6 STEP

Figure 15-10 Sample timing of “memory read” with mode 80, Little endian

1. write register number of Memory Access Pointer 0 (REG[C0h]) (command write).
2. write memory address 0 to the high byte and memory address 1 to the low byte (MA[15:0]) (data write).
3. write register number of Memory Access Pointer 2 (REG[C2h]) (command write).
4. write memory address 2 (MA16) to the low byte (data write).
5. write register number of Memory Access Start register (REG[C4h]) (command write).

Note

No “data write” is required after a command write to the Memory Access Start register (REG[C4h]). This step configures the S1D13708 for burst memory access beginning with the next data write.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 8 more labels / short text on this page
Address +2 · Address +2 · Address +1 · Address +1 · (word) · (word) · (byte) · (byte)
Page 212 of the Epson LCD Controller (S1D13708) user manual — Figure 1510 Sample timing of “memory read” with mode 80, Little endian
Page 212 · click to enlarge
Page 212
6. read Memory data (data read) The S1D13708 indirect interface implements an auto increment function to allow burst memory accesses. For byte accesses, the Memory Address Pointer registers (REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word accesses, the Memory Address Pointer registers are automatically incremented “+2”.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 213 of the Epson LCD Controller (S1D13708) user manual — Note
Page 213 · click to enlarge
Page 213

The following shows an example of a “memory write” for Mode 80 when the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1).

Epson LCD Controller (S1D13708) — Figure 1511 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabled diagram (page 213)
Fig. 88 · Figure 1511 Sample timing of “memory write” for Mod…

CS#

A0

WRL#

WRU#

RDL#

RDU#

D[7:0]

D[15:8]

word access word access word access word access word access

Epson LCD Controller (S1D13708) — CS# diagram (page 213)
Fig. 89

1 2 STEP

Figure 15-11 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabled

1. write register address of Memory Access Start register (REG[C4h]) (command write).

Note

No “data write” is required after a command write to the memory Access Start register (REG[C4h]). This step configures the S1D13708 for burst memory access beginning with the next data write.

2. write Memory data (data write). If the Memory Access Select bit (REG[C6h] bit 0 = 1), memory accesses are word accesses even if WRU# is high (WRU# is ignored and WRL# is used to write both the

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 12 more labels / short text on this page
Address +2 · Address +2 · Address +2 · Address +2 · Address +2 · Address +2 · (word) · (word) · (word) · (word) · (word) · (word)
Page 214 of the Epson LCD Controller (S1D13708) user manual — Note
Page 214 · click to enlarge
Page 214

upper and lower bytes). The bit/Little endian setting is used to determine the data ar- rangement for word accesses only.

The S1D13708 indirect interface implements an auto increment function to allow burst memory accesses. For byte accesses, the Memory Address Pointer registers (REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word accesses, the Memory Address Pointer registers are automatically incremented “+2”.

Note

If the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1), all memory accesses are word accesses (WRU# is ignored). Therefore, the memory address set in REG[C0h] through REG[C2h] must be an even address.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 215 of the Epson LCD Controller (S1D13708) user manual — Note
Page 215 · click to enlarge
Page 215

The following shows an example of a “memory read” for Mode 80 when the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1).

Epson LCD Controller (S1D13708) — Figure 1512 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabled diagram (page 215)
Fig. 90 · Figure 1512 Sample timing of “memory read” for Mode…

CS#

A0

WRL#

WRU#

RDL#

RDU#

D[7:0]

D[15:8]

word access word access word access word access word access

1 2 STEP

Epson LCD Controller (S1D13708) — CS# diagram (page 215)
Fig. 91

Figure 15-12 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabled

1. write register address of Memory Access Start register (REG[C4h] (command write).

Note

No “data write” is required after a command write to the memory Access Start register (REG[C4h]). This step configures the S1D13708 for burst memory access beginning with the next data read.

2. read Memory data (data write) If the Memory Access Select bit (REG[C6h] bit 0 = 1), memory accesses are word accesses even if RDU# is high (RDU# is ignored and RDL# is used to write both the upper and lower bytes). The bit/Little endian setting is used to determine the data

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Show 12 more labels / short text on this page
Address +2 · Address +2 · Address +2 · Address +2 · Address +2 · Address +2 · (word) · (word) · (word) · (word) · (word) · (word)
Page 216 of the Epson LCD Controller (S1D13708) user manual — 15.3 Limitations
Page 216 · click to enlarge
Page 216

arrangement for word accesses only.

The S1D13708 indirect interface implements an auto increment function to allow burst memory accesses. For byte accesses, the Memory Address Pointer registers (REG[C0h], REG[C1h], REG[C2h]) are automatically incremented “+1”. For word accesses, the Memory Address Pointer registers are automatically incremented “+2”.

Note

If the Memory Access Select bit is enabled (REG[C6h] bit 0 = 1), all memory accesses are word accesses (RDU# is ignored). Therefore, the memory address set in REG[C0h] through REG[C2h] must be an even address.

15.3 Limitations

Each Indirect cycle requires a certain number of BCLK cycles to setup/complete (refer to Indirect Interface Timing (Mode 68) on page 62 and Indirect Interface Timing (Mode 80) on page 64). The BCLK source can be derived from either XTAL or CLKI. When XTAL is used, and has a different frequency than the CPU, the CPU must take the speed difference into account and change the cycle time accordingly.

Example: If the CPU clock is running at 20MHz and the S1D13708 is running with a 10MHz crystal, referring to Table 6-14, item t6a requires 7.5 BUSCLKs. Since the CPU will be running 2 times faster than BUSCLK, t6a will require to be doubled to15 BUSCLKs.

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 217 of the Epson LCD Controller (S1D13708) user manual — Note
Page 217 · click to enlarge
Page 217

16 Embedded Crystal Oscillator

The S1D13708 includes an embedded crystal oscillator which is available when the Indirect Interface is selected.

16.1 Oscillator Circuit

When a crystal is used in conjunction with the S1D13708, the designer must connect an external resistor and capacitors as recommended in the following figure.

XTAL1 XTAL0

C 1 C 2

(12MHz Max.)

Figure 16-1 Recommended Crystal Oscillator Circuit

Where Rfb is a feedback resistor, and C1 and C2 are load capacitances. To determine the appropriate values for the system, a good starting point is 1 megOhm (MΩ) for Rfb, 10 picoFarads (pF) for C1, and 10 picoFarads (pF) for C2. The values of Rfb, C1, and C2 should be further refined to meet the frequency requirements of the system.

Note

The XTAL Enable bits (REG[CAh] bits 5 and 4) are used to enable the oscillator circuit. See the BCLK Source Select Register on page 157 for further information on these two bits.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Rfb · Crystal

Page 218 of the Epson LCD Controller (S1D13708) user manual — 17.1 Byte Swapping Bus Data
Page 218 · click to enlarge
Page 218

17 Big-Endian Bus Interface

17.1 Byte Swapping Bus Data

The display buffer and register architecture of the S1D13708 is inherently little-endian. If configured as big-endian (CNF4 = 1 at reset), bus accesses are automatically handled by byte swapping all read/write data to/from the internal display buffer and registers.

Bus data byte swapping translates all byte accesses correctly to the S1D13708 register and display buffer locations. To maintain the correct translation for 16-bit word access, even address bytes must be mapped to the MSB of the 16-bit word, and odd address bytes to the LSB of the 16-bit word. For example:

Byte write 11h to register address 1Eh -> REG[1Eh] REG[1Fh]

Word write 1122h to register address 1Eh-> REG[1Eh]

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 219 of the Epson LCD Controller (S1D13708) user manual — 17.1.1 16 Bpp Color Depth
Page 219 · click to enlarge
Page 219

17.1.1 16 Bpp Color Depth

For 16 bpp color depth, the Display Data Byte Swap bit (REG[71h] bit 6) must be set to 1.

Epson LCD Controller (S1D13708) — 17.1.1 16 Bpp Color Depth diagram (page 219)
Fig. 92 · 17.1.1 16 Bpp Color Depth

* MSB is assumed to be associated with even address. * LSB is assumed to be associated with odd address.

Figure 17-1 Byte-swapping for 16 Bpp

For 16 bpp color depth, the MSB of the 16-bit pixel data is stored at the even system memory address location and the LSB of the 16-bit pixel data is stored at the odd system memory address location. Bus data byte swapping (automatic when the S1D13708 is configured for Big-Endian) causes the 16-bit pixel data to be stored byte-swapped in the S1D13708 display buffer. During display refresh this stored data must be byte-swapped again before it is sent to the display.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 220 of the Epson LCD Controller (S1D13708) user manual — 17.1.2 1/2/4/8 Bpp Color Depth
Page 220 · click to enlarge
Page 220

17.1.2 1/2/4/8 Bpp Color Depth

For 1/2/4/8 bpp color depth, byte swapping must be performed on the bus data but not the display data.

For 1/2/4/8 bpp color depth, the Display Data Byte Swap bit (REG[71h] bit 6) must be set to 0.

Epson LCD Controller (S1D13708) — 17.1.2 1/2/4/8 Bpp Color Depth diagram (page 220)
Fig. 93 · 17.1.2 1/2/4/8 Bpp Color Depth

* High byte lane (D[15:8]) data (e.g. 11) is associated with even address. * Low byte lane (D[7:0]) data (e.g. 22) is associated with odd address.

Figure 17-2 Byte-swapping for 1/2/4/8 Bpp

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 221 of the Epson LCD Controller (S1D13708) user manual — Note
Page 221 · click to enlarge
Page 221

18 Power Save Mode

A software initiated Power Save Mode is incorporated into the S1D13708 to accommodate the need for power reduction in the hand-held devices market. This mode is enabled via the Power Save Mode Enable bit (REG[A0h] bit 0).

Software Power Save Mode saves power by powering down the panel and stopping display refresh accesses to the display buffer.

Table 18-1Power Save Mode Function Summary

Software Power Save Normal

IO Access Possible? Yes Yes

Memory Writes Possible? Yes1 Yes

Memory Reads Possible? No1 Yes

Look-Up Table Registers Access Possible? Yes Yes

Display Active? No Yes

LCD Interface Outputs Forced Low Active

GPIO Pins configured for HR-TFT/D-TFD/TFT Type 2/32 Forced Low Active

GPIO Pins configured as GPIOs Access Possible? Yes3 Yes

Note

1 When power save mode is enabled, the memory controller is powered down and the status of the memory controller is indicated by the Memory Controller Power Save Sta- tus bit (REG[A0h] bit 3). However, memory writes are possible during power save mode because the S1D13708 dynamically enables the memory controller for display buffer writes. 2 GPIO Pins are configured using the configuration pin CNF3 which is latched on the rising edge of RESET#. For information on CNF3, see Table 4-8: “Summary of Power- On/Reset Options,” on page 38. 3 GPIOs can be accessed and if configured as outputs can be changed.

After reset, the S1D13708 is always in Power Save Mode. Software must initialize the chip (i.e. programs all registers) and then clear the Power Save Mode Enable bit.

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

PWMCLK Stopped Active

Page 222 of the Epson LCD Controller (S1D13708) user manual — 19 Mechanical Data
Page 222 · click to enlarge
Page 222

19 Mechanical Data

Epson LCD Controller (S1D13708) — 19 Mechanical Data diagram (page 222)
Fig. 94 · 19 Mechanical Data

1 2 3 4 5 6 7 8 9 10 11

Figure 19-1 Mechanical Data PFBGA 120-pin Package

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 223 of the Epson LCD Controller (S1D13708) user manual — 20 References
Page 223 · click to enlarge
Page 223

20 References

The following is a partial list of documents which contain additional information related to the S1D13708. Document numbers are listed in parenthesis after the document name. All documentation for the S1D13708 can be found at the Epson Research and Development Website at www.erd.epson.com.

  • 13708CFG Configuration Utility Users Manual (X39A-B-001-xx)
  • 13708PLAY Diagnostic Utility Users Manual (X39A-B-002-xx)
  • 13708BMP Demonstration Program Users Manual (X39A-B-003-xx)
  • S1D13708 Product Brief (X39A-C-001-xx)
  • S1D13708 Programming Notes And Examples (X39A-G-003-xx)
  • S1D13708 Power Consumption (X39A-G-006-xx)
  • Interfacing to the NEC VR4102/VR4111 Microprocessors (X39A-G-007-xx)
  • Interfacing to the NEC VR4181 Microprocessor (X39A-G-008-xx)
  • Interfacing to the Motorola MPC821 Microprocessor (X39A-G-009-xx)
  • Interfacing to the Motorola MCF5307 “Coldfire” Microprocessors (X39A-G-010-xx)
  • Connecting to the Sharp HR-TFT Panels (X39A-G-011-xx)
  • Interfacing to the Motorola RedCap2 DSP (X39A-G-014-xx)
  • Interfacing to 8-Bit Processors (X39A-G-015-xx)
  • Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor (X39A-G-016-xx)
  • Interfacing to the Intel StrongARM SA-1110 Microprocessor (X39A-G-019-xx)
  • S1D13708 Register Summary (X39A-R-001-xx)

Hardware Functional Specification S1D13708 Issue Date: 02/03/07 X39A-A-001-02

Page 224 of the Epson LCD Controller (S1D13708) user manual — 21 Technical Support
Page 224 · click to enlarge
Page 224

21 Technical Support

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

S1D13708 Hardware Functional Specification X39A-A-001-02 Issue Date: 02/03/07

Page 225 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-003-01
Page 225 · click to enlarge
Page 225

S1D13708 Embedded Memory LCD Controller

ADVANCED INFORMATION

Programming Notes and Examples

Subject to Change

Document Number: X39A-G-003-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.

Page 226 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 226 · click to enlarge
Page 226

ADVANCED INFORMATION

Subject to Change

THIS PAGE LEFT BLANK

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 229 of the Epson LCD Controller (S1D13708) user manual — Table of contents
Page 229 · click to enlarge
Page 229

Table of contents

S1D13708 TECHNICAL MANUALp.1COMPREHENSIVE SUPPORT TOOLSp.3Documentationp.3Evaluation/Demonstration Boardp.3Application Engineering Supportp.3Application Engineering Supportp.3S1D13708 Embedded Memory LCD Controller July 2001p.5FEATURESp.5System Block Diagramp.5DESCRIPTIONp.6Memory Interfacep.6CPU Interfacep.6Display Supportp.6Power Down Modesp.6Display Modesp.6Clock Sourcep.6Operating Voltagep.6Packagep.6Hardware Functional Specificationp.7Table of Contentsp.9List of Tablesp.13List of Figuresp.171 Introductionp.211.1 Scopep.211.2 Overview Descriptionp.212 Featuresp.222.1 Integrated Frame Bufferp.222.2 CPU Interfacep.222.3 Display Supportp.222.4 Display Modesp.232.5 Display Featuresp.232.6 Clock Sourcep.232.7 Operating Voltagep.242.8 Miscellaneousp.243 Typical System Implementation Diagramsp.25Figure 31 Typical System Diagram (Generic #1 Bus)p.25Figure 32 Typical System Diagram (Generic #2 Bus)p.25Figure 33 Typical System Diagram (Hitachi SH-4 Bus)p.26Figure 34 Typical System Diagram (Hitachi SH-3 Bus)p.27Figure 35 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000)p.28Figure 36 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030)p.29Figure 37 Typical System Diagram (Motorola REDCAP2 Bus)p.30Figure 38 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus)p.31Figure 39 Typical System Diagram (Indirect Interface, Mode 68)p.31Figure 310 Typical System Diagram (Indirect Interface, Mode 80)p.324 Pinsp.334.1 Pinout Diagram - PFBGA - 120pinp.33Figure 41 Pinout Diagram - PFBGA 120-pinp.33Table 41: PFBGA 120-pin Mappingp.334.2 Pinout Diagram - Die Formp.34Table 42: S1D13708 Pad Layoutp.344.3 Pin Descriptionsp.354.3.1 Host Interfacep.35Table 43: Host Interface Pin Descriptionsp.354.3.2 LCD Interfacep.40Table 44: LCD Interface Pin Descriptionsp.404.3.3 Clock Inputp.43Table 45: Clock Input Pin Descriptionsp.434.3.4 Miscellaneousp.43Table 46: Miscellaneous Pin Descriptionsp.434.3.5 Power And Groundp.43Table 47: Power And Ground Pin Descriptionsp.434.4 Summary of Configuration Optionsp.44Table 48: Summary of Power-On/Reset Optionsp.444.5 Host Bus Interface Pin Mappingp.45Table 49: Host Bus Interface Pin Mappingp.454.6 LCD Interface Pin Mappingp.46Table 410: LCD Interface Pin Mappingp.465 D.C. Characteristicsp.47Table 51: Absolute Maximum Ratings (Preliminary - Subject to Change)p.47Table 52: Recommended Operating Conditionsp.47Table 53: Electrical Characteristics for VDD = 3.3V typicalp.476 A.C. Characteristicsp.486.1 Clock Timingp.486.1.1 Input Clocksp.48Figure 61 Clock Input Requirementsp.48Table 61: Clock Input Requirements for CLKI when CLKI to BCLK divide > 1p.48Table 62: Clock Input Requirements for CLKI when CLKI to BCLK divide = 1p.49Table 63: Clock Input Requirements for CLKI2p.496.1.2 Internal Clocksp.49Table 64: Internal Clock Requirementsp.496.2 CPU Interface Timingp.506.2.1 Generic #1 Interface Timingp.50Figure 62 Generic #1 Interface Timingp.50Table 65: Generic #1 Interface Timingp.516.2.2 Generic #2 Interface Timingp.52Figure 63 Generic #2 Interface Timingp.52Table 66: Generic #2 Interface Timingp.536.2.3 Hitachi SH-4 Interface Timingp.54Figure 64 Hitachi SH-4 Interface Timingp.54Table 67: Hitachi SH-4 Interface Timingp.556.2.4 Hitachi SH-3 Interface Timingp.56Figure 65 Hitachi SH-3 Interface Timingp.56Table 68: Hitachi SH-3 Interface Timingp.576.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000)p.58Figure 66 Motorola MC68K #1 Interface Timingp.58Table 69: Motorola MC68K #1 Interface Timingp.596.2.6 Motorola MC68K #2 Interface Timing (e.g. MC68030)p.60Figure 67 Motorola MC68K #2 Interface Timingp.60Table 610: Motorola MC68K #2 Interface Timingp.616.2.7 Motorola REDCAP2 Interface Timingp.62Figure 68 Motorola REDCAP2 Interface Timingp.62Table 611: Motorola REDCAP2 Interface Timingp.636.2.8 Motorola DragonBall Interface Timing with DTACK (e.g. MC68EZ328/MC68VZ328)p.64Figure 69 Motorola DragonBall Interface with DTACK Timingp.64Table 612: Motorola DragonBall Interface with DTACK Timingp.656.2.9 Motorola DragonBall Interface Timing w/o DTACK (e.g. MC68EZ328/MC68VZ328)p.66Figure 610 Motorola DragonBall Interface without DTACK# Timingp.66Table 613: Motorola DragonBall Interface without DTACK Timingp.676.2.10 Indirect Interface Timing (Mode 68)p.68Figure 611 Indirect Interface Timing (Mode 68)p.68Table 614: Indirect Interface Timing (Mode 68)p.696.2.11 Indirect Interface Timing (Mode 80)p.70Figure 612 Indirect Interface Timing (Mode 80)p.70Table 615: Indirect Interface Timing (Mode 80)p.716.3 LCD Power Sequencingp.726.3.1 Passive/TFT Power-On Sequencep.72Figure 613 Passive/TFT Power-On Sequence Timingp.72Table 616: Passive/TFT Power-On Sequence Timingp.726.3.2 Passive/TFT Power-Off Sequencep.73Figure 614 Passive/TFT Power-Off Sequence Timingp.73Table 617: Passive/TFT Power-Off Sequence Timingp.736.4 Display Interfacep.74Figure 615 Panel Timing Parametersp.74Table 618: Panel Timing Parameter Definition and Register Summaryp.756.4.1 Generic STN Panel Timingp.76Figure 616 Generic STN Panel Timingp.766.4.2 Single Monochrome 4-Bit Panel Timingp.78Figure 617 Single Monochrome 4-Bit Panel Timingp.78Figure 618 Single Monochrome 4-Bit Panel A.C. Timingp.79Table 619: Single Monochrome 4-Bit Panel A.C. Timingp.796.4.3 Single Monochrome 8-Bit Panel Timingp.80Figure 619 Single Monochrome 8-Bit Panel Timingp.80Figure 620 Single Monochrome 8-Bit Panel A.C. Timingp.81Table 620: Single Monochrome 8-Bit Panel A.C. Timingp.816.4.4 Single Color 4-Bit Panel Timingp.82Figure 621 Single Color 4-Bit Panel Timingp.82Figure 622 Single Color 4-Bit Panel A.C. Timingp.83Table 621: Single Color 4-Bit Panel A.C. Timingp.836.4.5 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 623 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 624 Single Color 8-Bit Panel A.C. Timing (Format 1)p.85Table 622: Single Color 8-Bit Panel A.C. Timing (Format 1)p.856.4.6 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 625 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 626 Single Color 8-Bit Panel A.C. Timing (Format 2)p.87Table 623: Single Color 8-Bit Panel A.C. Timing (Format 2)p.876.4.7 Single Color 16-Bit Panel Timingp.88Figure 627 Single Color 16-Bit Panel Timingp.88Figure 628 Single Color 16-Bit Panel A.C. Timingp.89Table 624: Single Color 16-Bit Panel A.C. Timingp.896.4.8 Generic TFT Panel Timingp.90Figure 629 Generic TFT Panel Timingp.906.4.9 9/12/18-Bit TFT Panel Timingp.91Figure 630 18-Bit TFT Panel Timingp.91Figure 631 TFT A.C. Timingp.92Table 625: TFT A.C. Timingp.936.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx)p.94Figure 632 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.94Table 626: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timingp.95Figure 633 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.96Table 627: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.976.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01)p.98Figure 634 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.98Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.99Figure 635 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.99Table 629: 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.996.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR)p.100Figure 636 160x240 Epson D-TFD Panel Horizontal Timingp.100Table 630: 160x240 Epson D-TFD Panel Horizontal Timingp.101Figure 637 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Table 631: 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Figure 638 160x240 Epson D-TFD Panel Vertical Timingp.103Table 632: 160x240 Epson D-TFD Panel Vertical Timingp.1036.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR)p.104Figure 639 320x240 Epson D-TFD Panel Horizontal Timingp.104Table 633: 320x240 Epson D-TFD Panel Horizontal Timingp.105Figure 640 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Table 634: 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Figure 641 320x240 Epson D-TFD Panel Vertical Timingp.107Table 635: 320x240 Epson D-TFD Panel Vertical Timingp.1076.4.14 TFT Type 2 Panel Timingp.108Figure 642 TFT Type 2 Horizontal Timingp.108Table 636: TFT Type 2 Horizontal Timingp.109Figure 643 TFT Type 2 Vertical Timingp.110Table 637: TFT Type 2 Vertical Timingp.1106.4.15 TFT Type 3 Panel Timingp.111Figure 644 TFT Type 3 Horizontal Timingp.111Table 638: TFT Type 3 Horizontal Timingp.112Figure 645 TFT Type 3 Vertical Timingp.113Table 639: TFT Type 3 Vertical Timingp.1146.4.16 TFT Type 4 Panel Timingp.115Figure 646 TFT Type 4 Panel Timingp.115Figure 647 TFT Type 4 A.C. Timingp.116Table 640: TFT Type 4 A.C. Timingp.1177 Clocksp.1187.1 Clock Descriptionsp.1187.1.1 BCLKp.118Table 71: BCLK Clock Selectionp.1187.1.2 MCLKp.118Table 72: MCLK Clock Selectionp.1197.1.3 PCLKp.119Table 73: PCLK Clock Selection p.119Table 74: Relationship between MCLK and PCLKp.1217.1.4 PWMCLKp.121Table 75: PWMCLK Clock Selectionp.1217.2 Clock Selectionp.122Figure 71 Clock Selectionp.1227.3 Clocks versus Functionsp.123Table 76: S1D13708 Internal Clock Requirementsp.1238 Registersp.1248.1 Register Mappingp.1248.2 Register Setp.125Table 81: S1D13708 Register Setp.1258.3 Register Descriptionsp.1278.3.1 Read-Only Configuration Registersp.1278.3.2 Clock Configuration Registersp.128Table 82: MCLK Divide Selectionp.128Table 83: PCLK Divide Selectionp.128Table 84: PCLK Source Selectionp.1298.3.3 Look-Up Table Registersp.1298.3.4 Panel Configuration Registersp.132Table 85: Panel Data Width Selectionp.132Table 86: HRTFT/D-TFD Panel Resolution Selectionp.132Table 87: LCD Panel Type Selectionp.1338.3.5 Display Mode Registersp.139Table 88: Inverse Video Mode Select Optionsp.140Table 89: LCD Bit-per-pixel Selectionp.141Figure 81 Display Data Byte/Word Swapp.142Table 810: SwivelViewTM Mode Select Optionsp.1428.3.6 Picture-in-Picture Plus Registersp.144Table 811: 32-bit Address Increments for Color Depthp.145Table 812: 32-bit Address Increments for Color Depthp.146Table 813: 32-bit Address Increments for Color Depthp.147Table 814: 32-bit Address Increments for Color Depthp.1488.3.7 Miscellaneous Registersp.1498.3.8 General IO Pins Registersp.1518.3.9 Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registersp.156Figure 82 PWM Clock/CV Pulse Block Diagramp.156Table 815: PWM Clock Controlp.156Table 816: CV Pulse Controlp.157Table 817: PWM Clock Divide Select Optionsp.158Table 818: CV Pulse Divide Select Optionsp.158Table 819: PWMOUT Duty Cycle Select Optionsp.1598.3.10 Extended Registersp.160Table 820: Extended Panel Type Selectionp.161Table 821: VCLK Holdp.165Table 822: VCLK Setupp.165Table 823: AP Pulse Widthp.166Table 824: AP Rising Positionp.166Table 825: GPO2 PCLK2 Divide Ratep.170Table 826: GPO1 PCLK1 Divide Ratep.170Table 827: Number of Source Driver ICsp.1769 Frame Rate Calculationp.17710 Display Data Formatsp.178Figure 101 4/8/16 Bit-Per-Pixel Display Data Memory Organizationp.17811 Look-Up Table Architecturep.17911.1 Monochrome Modesp.1791 Bit-per-pixel Monochrome Modep.179Figure 111 1 Bit-per-pixel Monochrome Mode Data Output Pathp.1792 Bit-per-pixel Monochrome Modep.179Figure 112 2 Bit-per-pixel Monochrome Mode Data Output Pathp.1794 Bit-per-pixel Monochrome Modep.180Figure 113 4 Bit-per-pixel Monochrome Mode Data Output Pathp.1808 Bit-per-pixel Monochrome Modep.180Figure 114 8 Bit-per-pixel Monochrome Mode Data Output Pathp.18016 Bit-Per-Pixel Monochrome Modep.18111.2 Color Modesp.1811 Bit-Per-Pixel Colorp.181Figure 115 1 Bit-Per-Pixel Color Mode Data Output Pathp.1812 Bit-Per-Pixel Colorp.182Figure 116 2 Bit-Per-Pixel Color Mode Data Output Pathp.1824 Bit-Per-Pixel Colorp.183Figure 117 4 Bit-Per-Pixel Color Mode Data Output Pathp.1838 Bit-per-pixel Color Modep.184Figure 118 8 Bit-per-pixel Color Mode Data Output Pathp.18416 Bit-Per-Pixel Color Modep.18412 SwivelView™p.18512.1 Conceptp.18512.2 90˚ SwivelView™p.185Figure 121 Relationship Between The Screen Image and the Image Refreshed in 90° SwivelView.p.18512.2.1 Register Programmingp.18612.3 180˚ SwivelView™p.187Figure 122 Relationship Between The Screen Image and the Image Refreshed in 180° SwivelView.p.18712.3.1 Register Programmingp.18712.4 270˚ SwivelView™p.188Figure 123 Relationship Between The Screen Image and the Image Refreshed in 270° SwivelView.p.18812.4.1 Register Programmingp.18913 Picture-in-Picture Plus (PIP+)p.19013.1 Conceptp.190Figure 131 Picture-in-Picture Plus with SwivelView disabledp.19013.2 With SwivelView Enabledp.19113.2.1 SwivelView 90˚p.191Figure 132 Picture-in-Picture Plus with SwivelView 90˚ enabledp.19113.2.2 SwivelView 180˚p.191Figure 133 Picture-in-Picture Plus with SwivelView 180˚ enabledp.19113.2.3 SwivelView 270˚p.192Figure 134 Picture-in-Picture Plus with SwivelView 270˚ enabledp.19214 Ink Layerp.19314.1 Memory Mappingp.193Figure 141 Memory Mapping for Ink Layerp.19314.2 Controlling the Ink Layerp.193Figure 142 Transparent Color Examplep.19414.3 Limitationsp.19415 Indirect Interfacep.19515.1 Mode 68p.196Figure 151 Sample timing of “register write” with Mode 68p.196Figure 152 Sample timing of “register read” with Mode 68p.197Figure 153 Sample timing of “memory write” with Mode 68, Big Endianp.198Figure 154 Sample timing of “memory read” with Mode 68, Big Endianp.200Figure 155 Sample timing of “register write” for Mode 68 when Memory Access Select Enabledp.202Figure 156 Sample timing of “register read” for Mode 68 when Memory Access Select Enabledp.20415.2 Mode 80p.206Figure 157 Sample timing of “register write” with Mode 80p.206Figure 158 Sample timing of “register read” with Mode 80p.208Figure 159 Sample timing of “memory write” with mode 80, little endianp.209Figure 1510 Sample timing of “memory read” with mode 80, Little endianp.211Figure 1511 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabledp.213Figure 1512 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabledp.21515.3 Limitationsp.21616 Embedded Crystal Oscillatorp.21716.1 Oscillator Circuitp.217Figure 161 Recommended Crystal Oscillator Circuitp.21717 Big-Endian Bus Interfacep.21817.1 Byte Swapping Bus Datap.21817.1.1 16 Bpp Color Depthp.219Figure 171 Byte-swapping for 16 Bppp.21917.1.2 1/2/4/8 Bpp Color Depthp.220Figure 172 Byte-swapping for 1/2/4/8 Bppp.22018 Power Save Modep.221Table 181: Power Save Mode Function Summaryp.22119 Mechanical Datap.222Figure 191 Mechanical Data PFBGA 120-pin Packagep.22220 Referencesp.22321 Technical Supportp.224S1D13708 Embedded Memory LCD Controllerp.225Table of Contentsp.227List of Tablesp.229List of Figuresp.2311 Introductionp.2332 Identifying the S1D13708p.2343 Initializationp.2354 Memory Modelsp.2364.1 Memory Organization for One Bit-per-pixel (2 Colors/Gray Shades)p.236Figure 41: Pixel Storage for 1 Bpp in One Byte of Display Bufferp.2364.2 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades)p.236Figure 42: Pixel Storage for 2 Bpp in One Byte of Display Bufferp.2364.3 Memory Organization for Four Bit-per-pixel (16 Colors/Gray Shades)p.237Figure 43: Pixel Storage for 4 Bpp in One Byte of Display Bufferp.2374.4 Memory Organization for 8 Bpp (256 Colors/64 Gray Shades)p.237Figure 44: Pixel Storage for 8 Bpp in One Byte of Display Bufferp.2374.5 Memory Organization for 16 Bpp (65536 Colors/64 Gray Shades)p.238Figure 45: Pixel Storage for 16 Bpp in Two Bytes of Display Bufferp.2385 Look-Up Table (LUT)p.2395.1 Registersp.2395.1.1 Look-Up Table Registersp.2395.2 Look-Up Table Organizationp.242Table 51: Look-Up Table Configurationsp.2425.2.1 Gray Shade Modesp.243Table 52: Suggested LUT Values for 1 Bpp Gray Shadep.243Table 53: Suggested LUT Values for 4 Bpp Gray Shadep.243Table 54: Suggested LUT Values for 4 Bpp Gray Shadep.244Table 55: Suggested LUT Values for 8 Bpp Gray Shadep.2455.2.2 Color Modesp.247Table 56: Suggested LUT Values for 1 bpp Colorp.247Table 57: Suggested LUT Values for 2 bpp Colorp.247Table 58: Suggested LUT Values for 4 bpp Colorp.248Table 59: Suggested LUT Values for 8 bpp Colorp.2496 Power Save Modep.2516.1 Overviewp.2516.2 Registersp.2526.2.1 Power Save Mode Enablep.2526.2.2 Memory Controller Power Save Statusp.2526.3 LCD Power Sequencingp.2536.4 Enabling Power Save Modep.2546.5 Disabling Power Save Modep.2547 SwivelView‘p.2557.1 SwivelView Registersp.255Table 71: SwivelViewTM Mode Select Optionsp.2557.2 Examplesp.2577.3 Limitationsp.2617.3.1 SwivelView 0˚ and 180˚p.2617.3.2 SwivelView 90˚ and 270˚p.2618 Picture-In-Picture Plusp.2628.1 Conceptp.262Figure 81: Picture-in-Picture Plus with SwivelView disabledp.2628.2 Registersp.262Table 81: 32-bit Address Increments for Color Depthp.265Table 82: 32-bit Address Increments for Color Depthp.267Table 83: 32-bit Address Increments for Color Depthp.269Table 84: 32-bit Address Increments for Color Depthp.2708.3 Picture-In-Picture-Plus Examplesp.2728.3.1 SwivelView 0˚ (Landscape Mode)p.272Figure 82: Picture-in-Picture Plus with SwivelView disabledp.2728.3.2 SwivelView 90˚p.275Figure 83: Picture-in-Picture Plus with SwivelView 90˚ enabledp.2758.3.3 SwivelView 180˚p.278Figure 84: Picture-in-Picture Plus with SwivelView 180˚ enabledp.2788.3.4 SwivelView 270˚p.282Figure 85: Picture-in-Picture Plus with SwivelView 270˚ enabledp.2828.4 Limitationsp.2868.4.1 SwivelView 0˚ and 180˚p.2868.4.2 SwivelView 90˚ and 270˚p.2869 Hardware Abstraction Layerp.2879.1 Introductionp.2879.2 API for the HAL Libraryp.287Table 91: HAL Library APIp.2879.2.1 Startup Routinesp.2889.2.2 Memory Accessp.2909.2.3 Register Accessp.2919.2.4 Clock Supportp.2939.2.5 Miscellaneousp.29410 Sample Codep.29611 Sales and Technical Supportp.297S1D13708 Register Summary X39A-R-001-01p.29913708CFG Configuration Programp.303Table of Contentsp.30513708CFGp.307S1D13708 Supported Evaluation Platformsp.307Installationp.307Usagep.30713708CFG Configuration Tabsp.308General Tabp.308Preferences Tabp.310Clocks Tabp.311Panel Tabp.316Panel Power Tabp.320Registers Tabp.32113708CFG Menusp.322Open...p.322Savep.323Save As...p.323Configure Multiplep.323Exportp.325Enable Tooltipsp.326ERD on the Webp.326About 13708CFGp.326Commentsp.32613708PLAY Diagnostic Utilityp.32713708PLAYp.329S1D13708 Supported Evaluation Platformsp.329Installationp.330Usagep.330Commandsp.33113708PLAY Examplep.337Script Filesp.33813708BMP Demonstration Programp.33913708BMPp.341S1D13708 Supported Evaluation Platformsp.341Installationp.341Usagep.34213708BMP Examplesp.342Commentsp.342Wind River WindML v2.0 Display Driversp.343Wind River WindML v2.0 DISPLAY DRIVERSp.345Building a WindML v2.0 Display Driverp.3461. Create a working directory and unzip the WindML display driver into it.p.3462. Configure for the target execution model.p.3463. Build a boot ROM image.p.3464. Create a bootable disk (in drive A:).p.3465. If necessary, generate a new mode0.h configuration file.p.3466. Build the WindML v2.0 library.p.3477. Open the S1D13708 workspace.p.3478. Add support for single line comments.p.347a. In the Tornado “Workspace Views” window, click on the “Builds” tab.p.347b. Expand the “8bpp Builds” (or “16bpp Builds”) view by clicking on the “+” next to it. The expan...p.347c. Select the “C/C++ compiler” tab to display the command switches used in the build. Remove the ...p.3479. Compile the VxWorks image.p.34710. Copy the VxWorks file to the diskette.p.34711. Start the VxWorks demo.p.347Linux Console Driverp.349Linux Console Driverp.351Building the Console Driver for Linux Kernel 2.2.xp.3521. Acquire the Linux kernel source code.p.3522. Unzip the console driver files.p.3523. Copy the console driver files to the build directory.p.3524. Modify s1d13708.hp.3535. Configure the video options.p.3536. Compile and install the kernel.p.3537. Boot to the Linux operating system.p.354Building the Console Driver for Linux Kernel 2.4.xp.3551. Acquire the Linux kernel source code.p.3552. Unzip the console driver files.p.3553. Copy the console driver files to the build directory. Make the directory /usr/src/linux/driver...p.3554. Modify s1d13708.hp.3565. Configure the video options.p.3566. Compile and install the kernelp.3577. Boot to the Linux operating systemp.357QNX Photon v2.0 Display Driverp.359QNX Photon v2.0 Display Driverp.361Building the Photon v2.0 Display Driverp.362Unpack the Graphics Driver Development Kit Archivep.362Configure the Driverp.362Build the Driverp.362Installing the Driverp.363Run the Driverp.363Commentsp.364Windows® CE 3.x Display Driversp.365WINDOWS® CE 3.0 DISPLAY DRIVERp.367Example Driver Buildsp.368Installation for CEPC Environmentp.372Configurationp.373Compile Switchesp.373Mode Filep.374Resource Management Issuesp.375Commentsp.378Power Consumptionp.3791 S1D13708 Power Consumptionp.3811.1 Conditionsp.382Table 11: S1D13708 Power Consumptionp.3822 Summaryp.383Interfacing to the NEC VR4102 / VR4111 Microprocessorsp.385Table of Contentsp.387List of Tablesp.389List of Figuresp.3891 Introductionp.3912 Interfacing to the NEC VR4102/VR4111p.3922.1 The NEC VR41XX System Busp.3922.1.1 Overviewp.3922.1.2 LCD Memory Access Cyclesp.393Figure 21: NEC VR4102/VR4111 Read/Write Cyclesp.3933 S1D13708 Host Bus Interfacep.3943.1 Host Bus Interface Pin Mappingp.394Table 31: Host Bus Interface Pin Mappingp.3943.2 Host Bus Interface Signalsp.3954 VR4102/VR4111 to S1D13708 Interfacep.3964.1 Hardware Descriptionp.396Figure 41: Typical Implementation of VR4102/VR4111 to S1D13708 Interfacep.3964.2 S1D13708 Hardware Configurationp.397Table 41: Summary of Power-On/Reset Configuration Optionsp.397Table 42: CLKI to BCLK Divide Selectionp.3974.3 NEC VR4102/VR4111 Configurationp.3985 Softwarep.3996 Referencesp.4006.1 Documentsp.4006.2 Document Sourcesp.4007 Technical Supportp.4017.1 Epson LCD Controllers (S1D13708)p.4017.2 NEC Electronics Inc.p.401Interfacing to the NEC VR4181A™ Microprocessorp.403Table of Contentsp.405List of Tablesp.407List of Figuresp.4071 Introductionp.4092 Interfacing to the NEC VR4181Ap.4102.1 The NEC VR4181A System Busp.4102.1.1 Overviewp.4102.1.2 LCD Memory Access Signalsp.4113 S1D13708 Host Bus Interfacep.4123.1 Host Bus Interface Pin Mappingp.412Table 31: Host Bus Interface Pin Mappingp.4123.2 Host Bus Interface Signalsp.4134 VR4181A to S1D13708 Interfacep.4144.1 Hardware Descriptionp.414Figure 41: Typical Implementation of VR4181A to S1D13708 Interfacep.4144.2 S1D13708 Hardware Configurationp.415Table 41: Summary of Power-On/Reset Configuration Optionsp.415Table 42: CLKI to BCLK Divide Selectionp.4154.3 NEC VR4181A Configurationp.4165 Softwarep.4176 Referencesp.4186.1 Documentsp.4186.2 Document Sourcesp.4187 Technical Supportp.4197.1 Epson LCD Controllers (S1D13708)p.4197.2 NEC Electronics Inc.p.419Interfacing to the Motorola MPC821 Microprocessorp.421Document Number: X39A-G-009-01p.421Table of Contentsp.423List of Tablesp.425List of Figuresp.4251 Introductionp.4272 Interfacing to the MPC821p.4282.1 The MPC8XX System Busp.4282.2 MPC8XX Bus Overviewp.4282.2.1 Normal (Non-Burst) Bus Transactionsp.429Figure 21: Power PC Memory Read Cyclep.429Figure 22: Power PC Memory Write Cyclep.4302.2.2 Burst Cyclesp.4302.3 Memory Controller Modulep.4312.3.1 General-Purpose Chip Select Module (GPCM)p.431Figure 23: GPCM Memory Devices Timingp.4322.3.2 User-Programmable Machine (UPM)p.4323 S1D13708 Host Bus Interfacep.4333.1 Host Bus Interface Pin Mappingp.433Table 31: Host Bus Interface Pin Mappingp.4333.2 Host Bus Interface Signalsp.4344 MPC821 to S1D13708 Interfacep.4354.1 Hardware Descriptionp.435Figure 41: Typical Implementation of MPC821 to S1D13708 Interfacep.4354.2 MPC821ADS Evaluation Board Hardware Connectionsp.436Table 41: List of Connections from MPC821ADS to S1D13708 p.4364.3 S1D13708 Hardware Configurationp.438Table 42: Summary of Power-On/Reset Configuration Optionsp.438Table 43: CLKI to BCLK Divide Selectionp.4384.4 Register/Memory Mappingp.4384.5 MPC821 Chip Select Configurationp.4394.6 Test Softwarep.4405 Softwarep.4416 Referencesp.4426.1 Documentsp.4426.2 Document Sourcesp.4427 Technical Supportp.4437.1 EPSON LCD/CRT Controllers (S1D13708)p.4437.2 Motorola MPC821 Processorp.443Interfacing to the Motorola MCF5307 "ColdFire" Microprocessorp.445Table of Contentsp.447List of Tablesp.449List of Figuresp.4491 Introductionp.4512 Interfacing to the MCF5307p.4522.1 The MCF5307 System Busp.4522.1.1 Overviewp.4522.1.2 Normal (Non-Burst) Bus Transactionsp.452Figure 21: MCF5307 Memory Read Cyclep.453Figure 22: MCF5307 Memory Write Cyclep.4532.1.3 Burst Cyclesp.4532.2 Chip-Select Modulep.454Figure 23: Chip Select Module Outputs Timingp.4543 S1D13708 Host Bus Interfacep.4553.1 Host Bus Interface Pin Mappingp.455Table 31: Host Bus Interface Pin Mappingp.4553.2 Host Bus Interface Signalsp.4564 MCF5307 To S1D13708 Interfacep.4574.1 Hardware Descriptionp.457Figure 41: Typical Implementation of MCF5307 to S1D13708 Interfacep.4574.2 S1D13708 Hardware Configurationp.458Table 41: Summary of Power-On/Reset Configuration Optionsp.458Table 42: CLKI to BCLK Divide Selectionp.4584.3 Register/Memory Mappingp.4594.4 MCF5307 Chip Select Configurationp.4595 Softwarep.4606 Referencesp.4616.1 Documentsp.4616.2 Document Sourcesp.4617 Technical Supportp.4627.1 EPSON LCD Controllers (S1D13708)p.4627.2 Motorola MCF5307 Processorp.462Connecting to the Sharp HR-TFT Panelsp.463Table of Contentsp.465List of Tablesp.467List of Figuresp.4671 Introductionp.4692 Connecting to the Sharp LQ039Q2DS01 HR-TFTp.4702.1 External Power Suppliesp.4702.1.1 Gray Scale Voltages for Gamma Correctionp.470Figure 21: Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generationp.4702.1.2 Digital/Analog Power Suppliesp.4712.1.3 DC Gate Driver Power Suppliesp.471Figure 22: Panel Gate Driver DC Power Suppliesp.4712.1.4 AC Gate Driver Power Suppliesp.472Figure 23: Panel Gate Driver AC Power Suppliesp.4722.2 HR-TFT MOD Signalp.473Figure 24: HR-TFT Power-On/Off Sequence Timingp.473Table 21: HR-TFT Power-On/Off Sequence Timingp.4732.3 S1D13708 to LQ039Q2DS01 Pin Mappingp.474Table 22: S1D13708 to LQ039Q2DS01 Pin Mappingp.4743 Connecting to the Sharp LQ031B1DDxx HR-TFTp.4763.1 External Power Suppliesp.4763.1.1 Gray Scale Voltages for Gamma Correctionp.476Figure 31: Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generationp.4763.1.2 Digital/Analog Power Suppliesp.4773.1.3 DC Gate Driver Power Suppliesp.4773.1.4 AC Gate Driver Power Suppliesp.4773.2 HR-TFT MOD Signalp.4773.3 S1D13708 to LQ031B1DDxx Pin Mappingp.478Table 31: S1D13708 to LQ031B1DDxx Pin Mappingp.4784 Test Softwarep.4805 Referencesp.4815.1 Documentsp.4815.2 Document Sourcesp.4816 Technical Supportp.4826.1 EPSON LCD Controllers (S1D13708)p.4826.2 Sharp HR-TFT Panelp.482Interfacing to the Motorola RedCap2p.483Table of Contentsp.485List of Tablesp.487List of Figuresp.4871 Introductionp.4892 Interfacing to the REDCAP2p.4902.1 The REDCAP2 System Busp.4902.2 Overviewp.4902.3 Bus Transactionsp.490Figure 21: REDCAP2 Memory Read Cyclep.491Figure 22: REDCAP2 Memory Write Cyclep.4913 S1D13708 Host Bus Interfacep.4923.1 Host Bus Interface Pin Mappingp.492Table 31: Host Bus Interface Pin Mappingp.4923.2 Host Bus Interface Signalsp.4934 REDCAP2 to S1D13708 Interfacep.4944.1 Hardware Descriptionp.494Figure 41: Typical Implementation of REDCAP2 to S1D13708 Interfacep.4944.2 Hardware Connectionsp.495Table 41: List of Connections for REDCAP2 ADMp.4954.3 S1D13708 Hardware Configurationp.497Table 42: Summary of Power-On/Reset Optionsp.4974.4 Register/Memory Mappingp.4974.5 REDCAP2 Chip Select Configurationp.4985 Softwarep.4996 Referencesp.5006.1 Documentsp.5006.2 Document Sourcesp.5007 Technical Supportp.5017.1 EPSON LCD/CRT Controllers (S1D13708)p.5017.2 Motorola REDCAP2 Processorp.501Interfacing to 8-bit Processorsp.503Table of Contentsp.505List of Tablesp.507List of Figuresp.5071 Introductionp.5092 Interfacing to an 8-bit Processorp.5102.1 The Generic 8-bit Processor System Busp.5103 S1D13708 Host Bus Interfacep.5113.1 Host Bus Interface Pin Mappingp.511Table 31: Host Bus Interface Pin Mappingp.5113.2 Host Bus Interface Signalsp.5124 8-Bit Processor to S1D13708 Interfacep.5134.1 Hardware Connectionsp.513Figure 41: Typical Implementation of 8-bit Processor to S1D13708 Interfacep.5134.2 S1D13708 Hardware Configurationp.514Table 41: Summary of Power-On/Reset Configuration Optionsp.514Table 42: CLKI to BCLK Divide Selectionp.5144.3 Register/Memory Mappingp.5145 Softwarep.5156 Referencesp.5166.1 Documentsp.5166.2 Document Sourcesp.5167 Technical Supportp.5177.1 EPSON LCD Controllers (S1D13708)p.517Interfacing to the Motorola MC68VZ328 Dragonball Microprocessorp.519Document Number: X39A-G-016-01p.519Table of Contentsp.521List of Tablesp.523List of Figuresp.5231 Introductionp.5252 Interfacing to the MC68VZ328p.5262.1 The MC68VZ328 System Busp.5262.2 Chip-Select Modulep.5263 S1D13708 Host Bus Interfacep.5273.1 Host Bus Interface Pin Mappingp.527Table 31: Host Bus Interface Pin Mappingp.5273.2 Host Bus Interface Signalsp.5284 MC68VZ328 to S1D13708 Interfacep.5294.1 Hardware Descriptionp.529Figure 41: Typical Implementation of MC68VZ328 to S1D13708 Interfacep.5294.2 S1D13708 Hardware Configurationp.530Table 41: Summary of Power-On/Reset Configuration Optionsp.530Table 42: CLKI to BCLK Divide Selectionp.5304.2.1 Register/Memory Mappingp.5314.2.2 MC68VZ328 Chip Select and Pin Configurationp.531Table 43: WS Bit Programmingp.5315 Softwarep.5326 Referencesp.5336.1 Documentsp.5336.2 Document Sourcesp.5337 Technical Supportp.5347.1 EPSON LCD/CRT Controllers (S1D13708)p.5347.2 Motorola MC68VZ328 Processorp.534Interfacing to the Intel StrongARM SA-1110 Microprocessorp.535Document Number: X39A-G-019-01p.535Table of Contentsp.537List of Tablesp.539List of Figuresp.5391 Introductionp.5412 Interfacing to the StrongARM SA-1110 Busp.5422.1 The StrongARM SA-1110 System Busp.5422.1.1 StrongARM SA-1110 Overviewp.5422.1.2 Variable-Latency IO Access Overviewp.5422.1.3 Variable-Latency IO Access Cyclesp.543Figure 21: SA-1110 Variable-Latency IO Read Cyclep.543Figure 22: SA-1110 Variable-Latency IO Write Cyclep.5443 S1D13708 Host Bus Interfacep.5453.1 Host Bus Interface Pin Mappingp.545Table 31: Host Bus Interface Pin Mappingp.5453.2 Host Bus Interface Signal Descriptionsp.5464 StrongARM SA-1110 to S1D13708 Interfacep.5474.1 Hardware Descriptionp.547Figure 41: Typical Implementation of SA-1110 to S1D13708 Interfacep.5474.2 S1D13708 Hardware Configurationp.548Table 41: Summary of Power-On/Reset Configuration Optionsp.548Table 42: CLKI to BCLK Divide Selectionp.5484.3 StrongARM SA-1110 Register Configurationp.549Table 43: RDFx Parameter Value versus CPU Maximum Frequencyp.5494.4 Register/Memory Mappingp.5505 Softwarep.5516 Referencesp.5526.1 Documentsp.5526.2 Document Sourcesp.5527 Technical Supportp.5537.1 EPSON LCD Controllers (S1D13708)p.5537.2 Intel StrongARM SA-1110 Processorp.553Connecting to a Micro-Controller via the Indirect Interfacep.555Table of Contentsp.557List of Tablesp.559List of Figuresp.5591 Introductionp.5612 Interfacing to a Micro-Controllerp.5622.1 The Indirect Interfacep.5623 S1D13708 Host Bus Interfacep.5633.1 Indirect Mode Bus Interface Pin Mappingp.563Table 31: Mode 68 8-Bit Data Host Bus Interface Pin Mappingp.563Table 32: Mode 68 16-Bit Data Host Bus Interface Pin Mappingp.564Table 33: Mode 80 8-Bit Data Host Bus Interface Pin Mappingp.564Table 34: Mode 80 16-Bit Data Host Bus Interface Pin Mappingp.5653.2 Host Bus Interface Signalsp.5664 Micro-Controller to S1D13708 Interfacep.5674.1 Hardware Connectionsp.567Figure 41: Typical Implementation of Micro-Controller to S1D13708 Interfacep.5674.2 S1D13708 Hardware Configurationp.568Table 41: Summary of Power-On/Reset Configuration Optionsp.568Table 42: CLKI to BCLK Divide Selectionp.5684.3 Register/Memory Mappingp.5695 Softwarep.5706 Referencesp.5726.1 Documentsp.5726.2 Document Sourcesp.5727 Technical Supportp.5737.1 EPSON LCD Controllers (S1D13708)p.573
Page 230 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 230 · click to enlarge
Page 230

ADVANCED INFORMATION

Subject to Change

THIS PAGE LEFT BLANK

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 231 of the Epson LCD Controller (S1D13708) user manual — ADVANCED INFORMATION
Page 231 · click to enlarge
Page 231

List of Figures

Figure 4-1: Pixel Storage for 1 Bpp in One Byte of Display Buffer 13 Figure 4-2: Pixel Storage for 2 Bpp in One Byte of Display Buffer 14 Figure 4-3: Pixel Storage for 4 Bpp in One Byte of Display Buffer 14 Figure 4-4: Pixel Storage for 8 Bpp in One Byte of Display Buffer 15 Figure 4-5: Pixel Storage for 16 Bpp in Two Bytes of Display Buffer 15 Figure 8-1: Picture-in-Picture Plus with SwivelView disabled 39 Figure 8-2: Picture-in-Picture Plus with SwivelView disabled 49 Figure 8-3: Picture-in-Picture Plus with SwivelView 90° enabled 52 Figure 8-4: Picture-in-Picture Plus with SwivelView 180° enabled 55 Figure 8-5: Picture-in-Picture Plus with SwivelView 270° enabled 59

ADVANCED INFORMATION

Subject to Change

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 232 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 232 · click to enlarge
Page 232

ADVANCED INFORMATION

Subject to Change

THIS PAGE LEFT BLANK

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 233 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 233 · click to enlarge
Page 233

1 Introduction

This guide discusses programming issues and provides examples for the main features of the S1D13708, such as SwivelView and Picture-in-Picture Plus (PiP+). The example source code referenced in this guide is available on the web at www.erd.epson.com

This guide also introduces the Hardware Abstraction Layer (HAL), which is designed to simplify the programming of the S1D13708. Most S1D13xxx products have HAL support, thus allowing OEMs to do multiple designs with a common code base.

ADVANCED INFORMATION

This document is updated as appropriate. Please check the Epson Research and Devel- opment website at www.erd.epson.com for the latest revision of this document and source before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Subject to Change

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 234 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 234 · click to enlarge
Page 234

2 Identifying the S1D13708

The S1D13708 can be identified by reading the value contained in the Revision Code Register (REG[00h]). To identify the S1D13708 follow the steps below.

1. Read REG[00h].
2. The production version of the S1D13708 returns a value of 34h. This value can be broken down into the following.

ADVANCED INFORMATION

a. The product code for the S1D13708 is 0Dh (001101 binary) and can be found in

bits 7-2.

b. The revision code is 0h (00 binary) and can be found in bits 1-0.

Subject to Change

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 235 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 235 · click to enlarge
Page 235

3 Initialization

This section describes how to initialize the S1D13708. Sample code for performing initial- ization of the S1D13708 is provided in the file init13708.c which is available on the internet at www.erd.epson.com

S1D13708 initialization can be broken into the following steps.

1. Set all registers to initial values. The values are obtained by using the s1d13708.h file that is exported by the 13708CFG.EXE configuration utility. For more information on 13708CFG, see the 13708CFG User Manual , document number X39A-B-001-xx.

ADVANCED INFORMATION

2. Program the Look-Up Table (LUT) with color values. For details on programming the LUT, see Section 5, “Look-Up Table (LUT)” on page 15.
3. Clear the display buffer.

If the system implementation uses a clock chip instead of a fixed oscillator, refer to the HAL (Hardware Abstraction Layer) sample code available on the internet at www.erd.epson.com The Epson S5U13708B00B evaluation board uses a Cypress clock chip.

Subject to Change

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 236 of the Epson LCD Controller (S1D13708) user manual — 4.2 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades)
Page 236 · click to enlarge
Page 236

4 Memory Models

The S1D13708 contains a display buffer of 80K bytes and supports color depths of 1, 2, 4, 8, and 16 bit-per-pixel. For each color depth, the data format is packed pixel.

Packed pixel data may be envisioned as a stream of pixels. In this stream, pixels are packed adjacent to each other. If a pixel requires four bits, then it is located in the four most signif- icant bits of a byte. The pixel to the immediate right on the display occupies the lower four bits of the same byte. The next two pixels to the immediate right are located in the following byte, etc.

ADVANCED INFORMATION

4.1 Memory Organization for One Bit-per-pixel (2 Colors/Gray Shades)

Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

Subject to Change

Pixel 0 Pixel 1 Pixel 2 Pixel 3 Pixel 4 Pixel 5 Pixel 6 Pixel 7

Figure 4-1Pixel Storage for 1 Bpp in One Byte of Display Buffer

At a color depth of 1 bpp, each byte of display buffer contains eight adjacent pixels. Setting or resetting any pixel requires reading the entire byte, masking out the unchanged bits and setting the appropriate bits to 1.

One bit pixels provide 2 gray shades/color possibilities. For monochrome panels the gray shades are generated by indexing into the first two elements of the green component of the Look-Up Table (LUT). For color panels the 2 colors are derived by indexing into the first 2 positions of the LUT.

4.2 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades)

Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

Pixel 0 Bits 1-0

Pixel 1 Bits 1-0

Pixel 2 Bits 1-0

Pixel 3 Bits 1-0

Figure 4-2Pixel Storage for 2 Bpp in One Byte of Display Buffer

At a color depth of 2 bpp, each byte of display buffer contains four adjacent pixels. Setting or resetting any pixel requires reading the entire byte, masking out the unchanged bits and setting the appropriate bits to 1.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 237 of the Epson LCD Controller (S1D13708) user manual — 4.4 Memory Organization for 8 Bpp (256 Colors/64 Gray Shades)
Page 237 · click to enlarge
Page 237

Two bit pixels provide 4 gray shades/color possibilities. For monochrome panels the gray shades are generated by indexing into the first 4 elements of the green component of the Look-Up Table (LUT). For color panels the 4 colors are derived by indexing into the first 4 positions of the LUT.

4.3 Memory Organization for Four Bit-per-pixel (16 Colors/Gray Shades)

Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

ADVANCED INFORMATION

Pixel 0 Bits 3-0

Pixel 1 Bits 3-0

Figure 4-3Pixel Storage for 4 Bpp in One Byte of Display Buffer

At a color depth of 4 bpp, each byte of display buffer contains two adjacent pixels. Setting or resetting any pixel requires reading the entire byte, masking out the upper or lower nibble (4 bits) and setting the appropriate bits to 1.

Subject to Change

Four bit pixels provide 16 gray shades/color possibilities. For monochrome panels the gray shades are generated by indexing into the first 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.

4.4 Memory Organization for 8 Bpp (256 Colors/64 Gray Shades)

Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

Pixel 0 Bits 7-0

Figure 4-4Pixel Storage for 8 Bpp in One Byte of Display Buffer

At a color depth of 8 bpp, each byte of display buffer represents one pixel on the display. At this color depth the read-modify-write cycles are eliminated making pixel updates faster.

Each byte indexes into one of the 256 positions of the LUT. The S1D13708 LUT supports six bits per primary color. This translates into 256K possible colors when color mode is selected. Therefore the display has 256 colors available out of a possible 256K colors.

When a monochrome panel is selected, the green component of the LUT is used to determine the intensity. The green LUT, with six bits, can resolve 64 unique gray shades of a possible 256. It is recommended that LUT indexes 00h through 3Fh be used for the 64 gray shades to be displayed.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 238 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 238 · click to enlarge
Page 238

4.5 Memory Organization for 16 Bpp (65536 Colors/64 Gray Shades)

Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8

Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0

ADVANCED INFORMATION

Figure 4-5Pixel Storage for 16 Bpp in Two Bytes of Display Buffer

At a color depth of 16 bpp the S1D13708 is capable of displaying 64K (65536) colors. The 64K color pixel is divided into three parts: five bits for red, six bits for green, and five bits for blue. In this mode the LUT is bypassed and output goes directly into the Frame Rate Modulator.

Subject to Change

Should monochrome mode be chosen at this color depth, the output sends the six bits of the green component to the modulator for a total of 64 possible gray shades. Note that since 8 bpp also provides 64 gray shades, it is recommended to use 8 bpp for monochrome mode in order to reduce the amount of display memory used.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Show 8 more labels / short text on this page
Red Component · Green Component · Bits 4-0 · Bits 5-3 · Green Component · Blue Component · Bits 2-0 · Bits 4-0
Page 239 of the Epson LCD Controller (S1D13708) user manual — Note
Page 239 · click to enlarge
Page 239

5 Look-Up Table (LUT)

This section discusses programming the S1D13708 Look-Up Table (LUT). Included is a summary of the LUT registers, recommendations for color/gray shade LUT values, and additional programming considerations. For a discussion of the LUT architecture, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

The S1D13708 is designed with a LUT consisting of 256 indexed red/green/blue entries. Each LUT entry is six bits wide. The color depth (bpp) determines how many indices are used. For example, 1 bpp uses the first 2 indices, 2 bpp uses the first 4 indices, 4 bpp uses the first 16 indices and 8 bpp uses all 256 indices. 16 bpp bypasses the LUT.

ADVANCED INFORMATION

In color modes, the pixel values stored in the display buffer index directly to an RGB value stored in the LUT. In monochrome modes, the pixel value indexes into the green component of the LUT and the amount of green at that index controls the intensity.

Subject to Change

5.1 Registers

5.1.1 Look-Up Table Registers

Look-Up Table Blue Write Data Register REG[08h] Write Only

LUT Blue Write Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

bits 7-2 LUT Blue Write Data Bits [5:0] This register contains the data to be written to the blue component of the Look-Up Table. The data is stored in this register until a write to the LUT Write Address register (REG[0Bh]) moves the data into the Look-Up Table.

Note

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is written to.

Look-Up Table Green Write Data Register REG[09h] Write Only

LUT Green Write Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

bits 7-2 LUT Green Write Data Bits [5:0] This register contains the data to be written to the green component of the Look-Up Table. The data is stored in this register until a write to the LUT Write Address register (REG[0Bh]) moves the data into the Look-Up Table.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 240 of the Epson LCD Controller (S1D13708) user manual — Note
Page 240 · click to enlarge
Page 240

Note

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is written to.

Look-Up Table Red Write Data Register REG[0Ah] Write Only

LUT Red Write Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

ADVANCED INFORMATION

bits 7-2 LUT Red Write Data Bits [5:0] This register contains the data to be written to the red component of the Look-Up Table. The data is stored in this register until a write to the LUT Write Address register (REG[0Bh]) moves the data into the Look-Up Table.

Note

The LUT entry is updated only when the LUT Write Address Register (REG[0Bh]) is written to.

Subject to Change

Look-Up Table Write Address Register REG[0Bh] Write Only

LUT Write Address Bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 LUT Write Address Bits [7:0] This register forms a pointer into the Look-Up Table (LUT) which is used to write LUT data stored in REG[08h], REG[09h], and REG[0Ah]. The data is updated to the LUT only with the completion of a write to this register. This is a write-only register and returns 00h if read.

Look-Up Table Blue Read Data Register REG[0Ch] Read Only

LUT Blue Read Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

bits 7-2 LUT Blue Read Data Bits [5:0] This register contains the data from the blue component of the Look-Up Table. The LUT entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a read- only register.

Note

This register is updated only when the LUT Read Address Register (REG[0Fh]) is writ- ten to.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 241 of the Epson LCD Controller (S1D13708) user manual — Note
Page 241 · click to enlarge
Page 241

Look-Up Table Green Read Data Register REG[0Dh] Read Only

LUT Green Read Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

bits 7-2 LUT Green Read Data Bits [5:0] This register contains the data from the green component of the Look-Up Table. The LUT entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a read- only register.

ADVANCED INFORMATION

Note

This register is updated only when the LUT Read Address Register (REG[0Fh]) is writ- ten to.

Look-Up Table Red Read Data Register REG[0Eh] Read Only

Subject to Change

LUT Red Read Data Bits 5-0 n/a

7 6 5 4 3 2 1 0

bits 7-2 LUT Red Read Data Bits [5:0] This register contains the data from the red component of the Look-Up Table. The LUT entry read is controlled by the LUT Read Address Register (REG[0Fh]). This is a read- only register.

Note

This register is updated only when the LUT Read Address Register (REG[0Fh]) is writ- ten to.

Look-Up Table Read Address Register REG[0Fh] Write Only

LUT Read Address Bits 7-0

7 6 5 4 3 2 1 0

bits 7-0 LUT Read Address Bits [7:0] This register forms a pointer into the Look-Up Table (LUT) which is used to read LUT data and store it in REG[0Ch], REG[0Dh], REG[0Eh]. The data is read from the LUT only when a write to this register is completed. This is a write-only register and returns 00h if read.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 242 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 242 · click to enlarge
Page 242

5.2 Look-Up Table Organization

  • The Look-Up Table treats the value of a pixel as an index into an array. For example, a pixel value of zero would point to the first LUT entry, whereas a pixel value of seven would point to the eighth LUT entry.
  • The value contained in each LUT entry represents the intensity of the given color or gray shade.
  • The S1D13708 Look-Up Table is linear. This means increasing the LUT entry number results in a brighter color or gray shade. For example, a LUT entry of FCh in the red bank results in bright red output while a LUT entry of 1Ch results in dull red.

ADVANCED INFORMATION

Table 5-1Look-Up Table Configurations

Color Depth Look-Up Table Indices Used Effective Gray Shades/Colors RED GREEN BLUE 1 bpp gray 2 2 gray shades 2 bpp gray 4 4 gray shades 4 bpp gray 16 16 gray shades 8 bpp gray 256 64 gray shades 16 bpp gray 64 gray shades 1 bpp color 2 colors 2 bpp color 4 colors 4 bpp color 16 colors 8 bpp color 256 colors 16 bpp color 65536 colors

Subject to Change

= Indicates the Look-Up Table is not used for that display mode

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 243 of the Epson LCD Controller (S1D13708) user manual — 2 bpp gray shade
Page 243 · click to enlarge
Page 243

5.2.1 Gray Shade Modes

Gray shade (monochrome) modes are defined by the Color/Mono Panel Select bit (REG[10h] bit 6). When this bit is set to 0, the value output to the panel is derived solely from the green component of the pixel.

For each bits-per-pixel mode (excluding 16 bpp) a table of sample LUT values is provided. These LUT values are a standardized set of intensities used by the Epson S1D13708 utility programs.

ADVANCED INFORMATION

Note

These LUT values carry eight bits of significance. The S1D13708 LUT uses only the six most-significant bits. The 2 least-significant bits are ignored.

1 bpp gray shade

The 1 bpp gray shade mode uses the green component of the first 2 LUT entries. The remaining indices of the LUT are unused.

Subject to Change

Table 5-2Suggested LUT Values for 1 Bpp Gray Shade

Index Red Green Blue 00 01 00 FF 00 02 00 00 00 ... 00 00 00 FF 00 00 00

2 bpp gray shade

The 2 bpp gray shade mode uses the green component of the first 4 LUT entries. The remaining indices of the LUT are unused.

Table 5-3Suggested LUT Values for 4 Bpp Gray Shade

Index Red Green Blue 00 01 00 55 00 02 00 AA 00 03 00 FF 00 04 00 00 00 ... 00 00 00 FF 00 00 00

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Unused entries · Unused entries

Page 244 of the Epson LCD Controller (S1D13708) user manual — ADVANCED INFORMATION
Page 244 · click to enlarge
Page 244

4 bpp gray shade

The 4 bpp gray shade mode uses the green component of the first 16 LUT entries. The remaining indices of the LUT are unused.

Table 5-4Suggested LUT Values for 4 Bpp Gray Shade

Index Red Green Blue 00 01 00 11 00 02 00 22 00 03 00 33 00 04 00 44 00 05 00 55 00 06 00 66 00 07 00 77 00 08 00 88 00 09 00 99 00 0A 00 AA 00 0B 00 BB 00 0C 00 CC 00 0D 00 DD 00 0E 00 EE 00 0F 00 FF 00 10 00 00 00 ... 00 00 00 FF 00 00 00

ADVANCED INFORMATION

Subject to Change

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Unused entries

Page 245 of the Epson LCD Controller (S1D13708) user manual — ADVANCED INFORMATION
Page 245 · click to enlarge
Page 245

8 bpp gray shade

When configured for 8 bpp gray shade mode, the green component of all 256 LUT entries may be used. However, the green component alone only provides 64 intensities (6 bits).

Table 5-5Suggested LUT Values for 8 Bpp Gray Shade

Index Red Green Blue Index Red Green Blue 00 20 00 80 00 01 00 04 00 21 00 84 00 02 00 08 00 22 00 88 00 03 00 0C 00 23 00 8C 00 04 00 10 00 24 00 90 00 05 00 14 00 25 00 94 00 06 00 18 00 26 00 98 00 07 00 1C 00 27 00 9C 00 08 00 20 00 28 00 A0 00 09 00 24 00 29 00 A4 00 0A 00 28 00 2A 00 A8 00 0B 00 2C 00 2B 00 AC 00 0C 00 30 00 2C 00 B0 00 0D 00 34 00 2D 00 B4 00 0E 00 38 00 2E 00 B8 00 0F 00 3C 00 2F 00 BC 00 10 00 40 00 30 00 C0 00 11 00 44 00 31 00 C4 00 12 00 48 00 32 00 C8 00 13 00 4C 00 33 00 CC 00 14 00 50 00 34 00 D0 00 15 00 54 00 35 00 D4 00 16 00 58 00 36 00 D8 00 17 00 5C 00 37 00 DC 00 18 00 60 00 38 00 E0 00 19 00 64 00 39 00 E4 00 1A 00 68 00 3A 00 E8 00 1B 00 6C 00 3B 00 EC 00 1C 00 70 00 3C 00 F0 00 1D 00 74 00 3D 00 F4 00 1E 00 78 00 3E 00 F8 00 1F 00 7C 00 3F 00 FC 00 40 00 00 00 ... 00 00 00 FF 00 00 00

ADVANCED INFORMATION

Subject to Change

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Unused entries

Page 246 of the Epson LCD Controller (S1D13708) user manual — ADVANCED INFORMATION
Page 246 · click to enlarge
Page 246

16 bpp gray shade

The Look-Up Table is bypassed at this color depth, therefore programming the LUT is not required.

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.

ADVANCED INFORMATION

Subject to Change

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 247 of the Epson LCD Controller (S1D13708) user manual — 2 bpp color
Page 247 · click to enlarge
Page 247

5.2.2 Color Modes

In color display modes, the number of LUT entries used is determined by the color depth.

For each color depth (excluding 16 bpp) a table of sample LUT values is provided. These LUT values are a standardized set of colors used by the Epson S1D13708 utility programs.

Note

The S1D13708 LUT uses only the six most-significant bits of the LUT. The 2 least-sig- nificant bits are ignored.

ADVANCED INFORMATION

1 bpp color

When the S1D13708 is configured for 1 bpp color mode the first 2 entries in the LUT are used. The remaining indices of the LUT are unused.

Table 5-6Suggested LUT Values for 1 bpp Color

Subject to Change

Index Red Green Blue 00 01 FF FF FF 02 00 00 00 ... 00 00 00 FF 00 00 00

= Indicates unused entries in the LUT

2 bpp color

When the S1D13708 is configured for 2 bpp color mode the first 4 entries in the LUT are used. The remaining indices of the LUT are unused.

Table 5-7Suggested LUT Values for 2 bpp Color

Index Red Green Blue 00 01 00 00 FF 02 FF 00 00 03 FF FF FF 04 00 00 00 ... 00 00 00 FF 00 00 00

= Indicates unused entries in the LUT

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 248 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 248 · click to enlarge
Page 248

4 bpp color

When the S1D13708 is configured for 4 bpp color mode the first 16 entries in the LUT are used. The remaining indices of the LUT are unused.

The following table shows LUT values that simulate those of a VGA operating in 16 color mode.

Table 5-8Suggested LUT Values for 4 bpp Color

ADVANCED INFORMATION

Index Red Green Blue 00 01 00 00 AA 02 00 AA 00 03 00 AA AA 04 AA 00 00 05 AA 00 AA 06 AA AA 00 07 AA AA AA 08 00 00 00 09 00 00 FF 0A 00 FF 00 0B 00 FF FF 0C FF 00 00 0D FF 00 FF 0E FF FF 00 0F FF FF FF 10 00 00 00 ... 00 00 00 FF 00 00 00

Subject to Change

= Indicates unused entries in the LUT

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 249 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 249 · click to enlarge
Page 249

8 bpp color

When the S1D13708 is configured for 8 bpp color mode all 256 entries in the LUT are used.

The S1D13708 LUT has six bits (64 values) of intensity control per primary color which is the same as a standard VGA RAMDAC.

The following table shows LUT values that simulate the VGA default color palette.

Table 5-9Suggested LUT Values for 8 bpp Color

ADVANCED INFORMATION

Index R G B Index R G B Index R G B Index R G B 00 40 00 00 00 80 FF FF 00 C0 00 00 00 01 00 00 AA 41 00 00 11 81 FF EF 00 C1 00 11 11 02 00 AA 00 42 00 00 22 82 FF DE 00 C2 00 22 22 03 00 AA AA 43 00 00 33 83 FF CD 00 C3 00 33 33 04 AA 00 00 44 00 00 44 84 FF BC 00 C4 00 44 44 05 AA 00 AA 45 00 00 55 85 FF AB 00 C5 00 55 55 06 AA AA 00 46 00 00 66 86 FF 9A 00 C6 00 66 66 07 AA AA AA 47 00 00 77 87 FF 89 00 C7 00 77 77 08 55 55 55 48 00 00 89 88 FF 77 00 C8 00 89 89 09 00 00 FF 49 00 00 9A 89 FF 66 00 C9 00 9A 9A 0A 00 FF 00 4A 00 00 AB 8A FF 55 00 CA 00 AB AB 0B 00 FF FF 4B 00 00 BC 8B FF 44 00 CB 00 BC BC 0C FF 00 00 4C 00 00 CD 8C FF 33 00 CC 00 CD CD 0D FF 00 FF 4D 00 00 DE 8D FF 22 00 CD 00 DE DE 0E FF FF 00 4E 00 00 EF 8E FF 11 00 CE 00 EF EF 0F FF FF FF 4F 00 00 FF 8F FF 00 00 CF 00 FF FF 10 00 00 00 50 00 00 FF 90 FF 00 00 D0 FF 00 00 11 51 00 11 FF 91 FF 00 11 D1 FF 11 11 12 22 22 22 52 00 22 FF 92 FF 00 22 D2 FF 22 22 13 33 33 33 53 00 33 FF 93 FF 00 33 D3 FF 33 33 14 44 44 44 54 00 44 FF 94 FF 00 44 D4 FF 44 44 15 55 00 55 FF 95 FF 00 55 D5 FF 55 55 16 66 66 66 56 00 66 FF 96 FF 00 66 D6 FF 66 66 17 77 77 77 57 00 77 FF 97 FF 00 77 D7 FF 77 77 18 89 89 89 58 00 89 FF 98 FF 00 89 D8 FF 89 89 19 9A 9A 9A 59 00 9A FF 99 FF 00 9A D9 FF 9A 9A 1A AB AB AB 5A 00 AB FF 9A FF 00 AB DA FF AB AB 1B BC BC BC 5B 00 BC FF 9B FF 00 BC DB FF BC BC 1C CD CD CD 5C 00 CD FF 9C FF 00 CD DC FF CD CD 1D DE DE DE 5D 00 DE FF 9D FF 00 DE DD FF DE DE 1E EF EF EF 5E 00 EF FF 9E FF 00 EF DE FF EF EF 1F FF FF FF 5F 00 FF FF 9F FF 00 FF DF FF FF FF 20 00 00 00 60 00 FF FF A0 FF 00 FF E0 00 FF 00 21 11 00 00 61 00 FF EF A1 EF 00 FF E1 11 FF 11 22 22 00 00 62 00 FF DE A2 DE 00 FF E2 22 FF 22 23 33 00 00 63 00 FF CD A3 CD 00 FF E3 33 FF 33 24 44 00 00 64 00 FF BC A4 BC 00 FF E4 44 FF 44

Subject to Change

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 250 of the Epson LCD Controller (S1D13708) user manual — 16 bpp color
Page 250 · click to enlarge
Page 250
Table 5-9Suggested LUT Values for 8 bpp Color (Continued)

Index R G B Index R G B Index R G B Index R G B

25 55 00 00 65 00 FF AB A5 AB 00 FF E5 55 FF 55 26 66 00 00 66 00 FF 9A A6 9A 00 FF E6 66 FF 66 27 77 00 00 67 00 FF 89 A7 89 00 FF E7 77 FF 77 28 89 00 00 68 00 FF 77 A8 77 00 FF E8 89 FF 89 29 9A 00 00 69 00 FF 66 A9 66 00 FF E9 9A FF 9A 2A AB 00 00 6A 00 FF 55 AA 55 00 FF EA AB FF AB 2B BC 00 00 6B 00 FF 44 AB 44 00 FF EB BC FF BC 2C CD 00 00 6C 00 FF 33 AC 33 00 FF EC CD FF CD 2D DE 00 00 6D 00 FF 22 AD 22 00 FF ED DE FF DE 2E EF 00 00 6E 00 FF 11 AE 11 00 FF EE EF FF EF 2F FF 00 00 6F 00 FF 00 AF 00 00 FF EF FF FF FF 30 00 00 00 70 00 FF 00 B0 00 00 00 F0 00 00 FF 31 00 11 00 71 11 FF 00 B1 11 00 11 F1 11 11 FF 32 00 22 00 72 22 FF 00 B2 22 00 22 F2 22 22 FF 33 00 33 00 73 33 FF 00 B3 33 00 33 F3 33 33 FF 34 00 44 00 74 44 FF 00 B4 44 00 44 F4 44 44 FF 35 00 55 00 75 55 FF 00 B5 55 00 55 F5 55 55 FF 36 00 66 00 76 66 FF 00 B6 66 00 66 F6 66 66 FF 37 00 77 00 77 77 FF 00 B7 77 00 77 F7 77 77 FF 38 00 89 00 78 89 FF 00 B8 89 00 89 F8 89 89 FF 39 00 9A 00 79 9A FF 00 B9 9A 00 9A F9 9A 9A FF 3A 00 AB 00 7A AB FF 00 BA AB 00 AB FA AB AB FF 3B 00 BC 00 7B BC FF 00 BB BC 00 BC FB BC BC FF 3C 00 CD 00 7C CD FF 00 BC CD 00 CD FC CD CD FF 3D 00 DE 00 7D DE FF 00 BD DE 00 DE FD DE DE FF 3E 00 EF 00 7E EF FF 00 BE EF 00 EF FE EF EF FF 3F 00 FF 00 7F FF FF 00 BF FF 00 FF

ADVANCED INFORMATION

Subject to Change

16 bpp color

The Look-Up Table is bypassed at this color depth, therefore programming the LUT is not required.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 251 of the Epson LCD Controller (S1D13708) user manual — Note
Page 251 · click to enlarge
Page 251

6 Power Save Mode

The S1D13708 is designed for very low-power applications. During normal operation, the internal clocks are dynamically disabled when not required. The S1D13708 design also includes a Power Save Mode to further save power. When Power Save Mode is initiated, LCD power sequencing is required to ensure the LCD bias power supply is disabled properly. For further information on LCD power sequencing, see Section 6.3, “LCD Power Sequencing” on page 29.

ADVANCED INFORMATION

For Power Save Mode AC Timing, see the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

6.1 Overview

The S1D13708 includes a software initiated Power Save Mode. Enabling/disabling Power Save Mode is controlled using the Power Save Mode Enable bit (REG[A0h] bit 0).

Subject to Change

While Power Save Mode is enabled the following conditions apply.

  • Registers are accessible
  • Memory writes are possible 1
  • Memory reads are not possible
  • Look-Up Table registers are accessible.
  • LCD display is inactive.
  • LCD interface outputs are forced low.

Note

1 Memory writes are possible during power save mode because the S1D13708 dynami- cally enables the memory controller for display buffer writes.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 252 of the Epson LCD Controller (S1D13708) user manual — Note
Page 252 · click to enlarge
Page 252

6.2 Registers

6.2.1 Power Save Mode Enable

Power Save Configuration Register REG[A0h] Read/Write

Memory Controller Power Save Status (RO)

n/a Power Save Mode Enable

ADVANCED INFORMATION

(RO)

7 6 5 4 3 2 1 0

The Power Save Mode Enable bit initiates Power Save Mode when set to 1. Setting the bit to 0 disables Power Save Mode and returns the S1D13708 to normal mode. At reset this bit is set to 1.

Note

Subject to Change

Enabling/disabling Power Save Mode requires proper LCD Power Sequencing. See Sec- tion 6.3, “LCD Power Sequencing” on page 29.

6.2.2 Memory Controller Power Save Status

Power Save Configuration Register REG[A0h] Read/Write

Memory Controller Power Save Status (RO)

n/a Power Save Mode Enable

(RO)

7 6 5 4 3 2 1 0

The Memory Controller Power Save Status bit is a read-only status bit which indicates the power save state of the S1D13708 SRAM interface. When this bit returns a 1, the SRAM interface is powered down and the memory clock source may be disabled. When this bit returns a 0, the SRAM interface is active. This bit returns a 0 after a chip reset.

Note

Memory writes are possible during power save mode because the S1D13708 dynamical- ly enables the memory controller for display buffer writes.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Show 6 more labels / short text on this page
Vertical Non- · Display Period Status · n/a · Vertical Non- · Display Period Status · n/a
Page 253 of the Epson LCD Controller (S1D13708) user manual — Note
Page 253 · click to enlarge
Page 253

6.3 LCD Power Sequencing

The S1D13708 requires LCD power sequencing (the process of powering-on and powering-off the LCD panel). LCD power sequencing allows the LCD bias voltage to discharge prior to shutting down the LCD signals, preventing long term damage to the panel and avoiding unsightly “lines” at power-on/power-off.

Proper LCD power sequencing for power-off requires a delay from the time the LCD power is disabled to the time the LCD signals are shut down. Power-on requires the LCD signals to be active prior to applying power to the LCD. This time interval depends on the LCD bias power supply design. For example, the LCD bias power supply on the S5U13708B00B Evaluation Board requires about 50 ms to fully discharge. Other power supply designs may vary.

ADVANCED INFORMATION

This section assumes the LCD bias power is controlled through GPO0. The S1D13708 GPIO pins are multi-use pins and may not be available in all system designs. For further information on the availability of GPIO pins, see the S1D13708 Hardware Functional Specification, document number X36A-A-001-xx.

Subject to Change

Note

This section discusses LCD power sequencing for passive and TFT (non-HR-TFT) pan- els only.

For further information on LCD power sequencing the HR-TFT, see Connecting to the Sharp HR-TFT Panels, document number X36A-G-011-xx.

For further information on LCD Power Sequencing the D-TFD, see Connecting to the Epson D-TFD Panels, document number X36A-G-012-xx.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 254 of the Epson LCD Controller (S1D13708) user manual — Note
Page 254 · click to enlarge
Page 254

6.4 Enabling Power Save Mode

Power Save Mode must be enabled using the following steps.

1. Disable the LCD bias power using GPO0.

Note

The S5U13708B00B uses GPO0 to control the LCD bias power supplies. Your system design may vary.

ADVANCED INFORMATION

2. Wait for the LCD bias power supply to discharge. The discharge time must be based on the time specified in the LCD panel specification.
3. Enable Power Save Mode - set REG[A0h] bit 0 to 1.
4. At this time, the LCD pixel clock source may be disabled (Optional).
5. Optionally, when the Memory Controller Power Save Status bit (REG[A0h] bit 3) returns a 1, the Memory Clock source may be safely shut down.

Subject to Change

6.5 Disabling Power Save Mode

Power Save Mode must be disabled using the following steps.

1. If the Memory Clock source is shut down, it must be started and the Memory Controller Power Save Status bit must return a 0. If the pixel clock source is disabled, it must be started before step 2.
2. Disable Power Save Mode - set REG[A0h] bit 0 to 0.
3. Wait for the LCD bias power supply to charge. The charge time must be based on the time specified in the LCD panel specification.
4. Enable the LCD bias power using GPO0.

Note

The S5U13708B00B uses GPO0 to control the LCD bias power supplies. Your system design may vary.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 255 of the Epson LCD Controller (S1D13708) user manual — 7.1 SwivelView Registers
Page 255 · click to enlarge
Page 255

7 SwivelView

Most computer displays operate in landscape mode. In landscape mode the display is typically wider than it is high. For example, a display size of 320x240 is 320 pixels wide and 240 lines high.

SwivelView rotates the display image counter-clockwise in ninety degree increments. Rotating the image on a 320x240 display by 90 or 270 degrees yields a display that is now 240 pixels wide and 320 lines high.

ADVANCED INFORMATION

The S1D13708 provides hardware support for SwivelView in all color depths (1, 2, 4, 8 and 16 bpp).

For further details on the SwivelView feature, see the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

Subject to Change

7.1 SwivelView Registers

The following registers control the SwivelView feature.

Special Effects Register REG[71h] Read/Write

Byte Swap n/a PIP+ Window

Enable n/a SwivelView Mode Select

7 6 5 4 3 2 1 0

The SwivelView modes are selected using the SwivelView Mode Select Bits[1:0] (bits 1- 0). The combinations of these bits provide the following rotations:

Table 7-1SwivelView TM Mode Select Options

SwivelView Mode Select Bits SwivelView Orientation

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Show 9 more labels / short text on this page
Display Data · Display Data · Word Swap · Bits 1-0 · SwivelView Mode Select · 00 0° (Normal) · 01 90° · 10 180° · 11 270°
Page 256 of the Epson LCD Controller (S1D13708) user manual — Note
Page 256 · click to enlarge
Page 256

Main Window Display Start Address Register 0 REG[74h] Read/Write

Main window Display Start Address Bits 7-0

7 6 5 4 3 2 1 0

Main Window Display Start Address Register 1 REG[75h] Read/Write

ADVANCED INFORMATION

Main window Display Start Address Bits 15-8

7 6 5 4 3 2 1 0

Main Window Display Start Address Register 2 REG[76h] Read/Write

Main window Display Start

Subject to Change

7 6 5 4 3 2 1 0

Main Window Display Start Address

The Main Window Display Start Address register represents a DWORD address which points to the start of the main window image in the display buffer. An address of 0 is the start of the display buffer. For the following SwivelView mode descriptions, the desired byte address is the starting display address for the main window image.

In SwivelView 0°, program the start address

= desired byte address ÷ 4

In SwivelView 90°, program the start address

= ((desired byte address + (panel height × bpp ÷ 8)

+ ((4 - (panel height × bpp ÷ 8)) & 03h)) ÷ 4) - 1

In SwivelView 180°, program the start address

= ((desired byte address + (Main Window Stride × (panel height − 1))

+ (panel width × bpp ÷ 8) + ((4 - (panel width × bpp ÷ 8)) & 03h)) ÷ 4) - 1

In SwivelView 270°, program the start address

= (desired byte address + ((panel width - 1) × Main Window Stride)) ÷ 4

Note

Truncate all fractional values before writing to the address registers.

Note

SwivelView 0° and 180° require the panel width to be a multiple of 32 ÷ bits-per-pixel. SwivelView 90° and 270° require the panel height to be a multiple of 32 ÷ bits-per-pix- el. If this is not possible, refer to Section 7.3, “Limitations” .

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

n/a · Address · Bit 16

Page 257 of the Epson LCD Controller (S1D13708) user manual — 7.2 Examples
Page 257 · click to enlarge
Page 257

Main Window Line Address Offset Register 0 REG[78h] Read/Write

Main window Line Address Offset Bits 7-0

7 6 5 4 3 2 1 0

Main Window Line Address Offset Register 1 REG[79h] Read/Write

n/a Main window Line Address

ADVANCED INFORMATION

7 6 5 4 3 2 1 0

Main Window Line Address Offset

The Main Window Line Address Offset register indicates the number of dwords per line in the main window image.

For SwivelView 0° and 180°, the image width must be at least the panel width. For SwivelView 90° and 270°, the image width must be at least the panel height. In addition, the image width must be a multiple of 32 ÷ bpp. If the image width is not such a multiple, a slightly larger width must be chosen (see Section 7.3, “Limitations” ).

Subject to Change

Panel width and panel height refer to the physical panel dimensions in pixels. Stride is the number of bytes required for one line of the image; the offset register represents the stride in DWORD steps.

Main Window Stride = image width × bpp ÷ 8

Note

Image width can be larger than panel width (or panel height, for SwivelView 90° or 270°).

number of dwords per line = image width ÷ (32 ÷ bpp)

7.2 Examples

Example 1In SwivelView 0° (normal) mode, program the main window registers for

a 320x240 panel at a color depth of 4 bpp.

1. Determine the main window display start address. The main window is typically placed at the start of display memory which is at display address 0.

main window display start address register

= desired byte address ÷ 4 = 0

Program the Main Window Display Start Address registers. REG[76h],REG[75h],REG[74h] are set to 000000h.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Offset Bits 9-8

Page 258 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 258 · click to enlarge
Page 258
2. Determine the main window line address offset.

number of dwords per line

= image width ÷ (32 ÷ bpp) = 320 ÷ (32 ÷ 4) = 40 = 28h

Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are set to 0028h.

ADVANCED INFORMATION

Example 2:In SwivelView 90° mode, program the main window registers for a

320x240 panel at a color depth of 4 bpp.

1. Determine the main window display start address. The main window is typically placed at the start of display memory, which is at display address 0.

Subject to Change

main window display start address register

= ((desired byte address + (panel height × bpp ÷ 8)

+ ((4 - (panel height × bpp ÷ 8)) & 03h)) ÷ 4) - 1 = ((0 + (240 × 4 ÷ 8) + ((4 - (240 × 4 ÷ 8)) & 03h)) ÷ 4) - 1 = 29 = 1Dh

Program the Main Window Display Start Address registers. REG[76h],REG[75h],REG[74h] are set to 00001Dh.

2. Determine the main window line address offset.

number of dwords per line

= image width ÷ (32 ÷ bpp) = 240 ÷ (32 ÷ 4) = 30 = 1Eh

Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are set to 001Eh.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 259 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 259 · click to enlarge
Page 259
Example 3In SwivelView 180 ° mode, program the main window registers for a

320x240 panel at a color depth of 4 bpp.

1. Determine the main window display start address. The main window is typically placed at the start of display memory which is at display address 0.

= image width × bpp ÷ 8 = 320 × 4 ÷ 8 = 160 = A0h

ADVANCED INFORMATION

main window display start address register

= ((desired byte address + (Main Window Stride × (panel height − 1))

+ (panel width × bpp ÷ 8) + ((4 - (panel width × bpp ÷ 8)) & 03h)) ÷ 4) - 1 = ((0+(160 × (240 − 1)) + (320 × 4 ÷ 8) + ((4 - (320 × 4 ÷ 8))& 03h)) ÷ 4) - 1 = 9599 = 257Fh

Subject to Change

Program the Main Window Display Start Address registers. REG[76h],REG[75h],REG[74h] are set to 00257Fh.

2. Determine the main window line address offset.

number of dwords per line

= image width ÷ (32 ÷ bpp) = 320 ÷ (32 ÷ 4) = 40 = 28h

Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are set to 0028h.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Main Window Stride

Page 260 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 260 · click to enlarge
Page 260

Example 4:In SwivelView 270° mode, program the main window registers for a

320x240 panel at a color depth of 4 bpp.

1. Determine the main window display start address. The main window is typically placed at the start of display memory, which is at display address 0.

= image width × bpp ÷ 8 = 240 × 4 ÷ 8 = 120 = 78h

ADVANCED INFORMATION

main window display start address register

= (desired byte address + ((panel width - 1) × Main Window Stride)) ÷ 4 = (0 + ((320 - 1) × 120)) ÷ 4 = 9570 = 2562h

Subject to Change

Program the Main Window Display Start Address registers. REG[76h],REG[75h],REG[74h] are set to 002562h.

2. Determine the main window line address offset.

number of dwords per line

= image width ÷ (32 ÷ bpp) = 240 ÷ (32 ÷ 4) = 30 = 1Eh

Program the Main Window Line Address Offset registers. REG[79h],REG[78h] are set to 001Eh.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Main Window Stride

Page 261 of the Epson LCD Controller (S1D13708) user manual — 7.3.2 SwivelView 90° and 270°
Page 261 · click to enlarge
Page 261

7.3 Limitations

7.3.1 SwivelView 0° and 180°

In SwivelView 0° and 180°, the Main Window Line Address Offset registers (REG[79h],REG[78h]) require the panel width to be a multiple of 32 ÷ bits-per-pixel. If this is not the case, then the Main Window Line Address Offset registers must be programmed to a longer line which meets this requirement. This longer line creates a virtual image where the width is main window line address offset registers × 32 ÷ bits-per-pixel. In SwivelView 0°, this virtual image should be drawn in display memory as left justified, and in SwivelView 180°, this virtual image should be drawn in display memory as right justified. A left-justified image is one drawn in display memory such that each of the image’s lines only use the left most portion of the line width defined by the line address offset register (i.e. starting at horizontal position 0). A right-justified image is one drawn in display memory such that each of the image’s lines only use the right most portion of the line width defined by the line address offset registers (i.e. starting at a non-zero horizontal position which is the virtual width - image width).

ADVANCED INFORMATION

Subject to Change

7.3.2 SwivelView 90° and 270°

In SwivelView 90° and 270°, the Main Window Line Address Offset registers (REG[79h],REG[78h]) require the panel height to be a multiple of 32 ÷ bits-per-pixel. If this is not the case, then the Main Window Line Address Offset registers must be programmed to a longer line which meets this requirement. This longer line creates a virtual image whose width is main window line address offset registers × 32 ÷ bits-per-pixel. In SwivelView 270°, this virtual image should be drawn in display memory as left justified, and in SwivelView 90°, this virtual image should be drawn in display memory as right justified. A left-justified image is one drawn in display memory such that each of the image’s lines only use the left most portion of the line width defined by the line address offset register (i.e. starting at horizontal position 0). A right-justified image is one drawn in display memory such that each of the image’s lines only use the right most portion of the line width defined by the line address offset register (i.e. starting at a non-zero horizontal position which is the virtual width - image width).

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 262 of the Epson LCD Controller (S1D13708) user manual — 8.2 Registers
Page 262 · click to enlarge
Page 262

8 Picture-In-Picture Plus

8.1 Concept

Picture-in-Picture Plus (PIP+) enables a secondary window (or PIP+ window) within the main display window. The PIP+ window may be positioned anywhere within the virtual display and is controlled through the PIP+ Window control registers (REG[7Ch] through REG[91h]). The PIP+ window retains the same color depth and SwivelView orientation as the main window.

ADVANCED INFORMATION

The following diagram shows an example of a PIP+ window within a main window.

0° SwivelView

Subject to Change

Figure 8-1Picture-in-Picture Plus with SwivelView disabled

8.2 Registers

The following registers control the Picture-In-Picture Plus feature.

Special Effects Register REG[71h] Read/Write

Byte Swap n/a PIP+ Window

Enable n/a SwivelView Mode Select

7 6 5 4 3 2 1 0

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Show 6 more labels / short text on this page
main-window · PIP+ window · Display Data · Display Data · Word Swap · Bits 1-0
Page 263 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 263 · click to enlarge
Page 263

PIP+ Window Enable

The PIP+ Window Enable bit enables a PIP+ window within the main window. The loca- tion of the PIP+ window within the landscape window is determined by the PIP+ X Posi- tion registers (REG[84h],REG[85h],REG[8Ch],REG[8Dh]) and PIP+ Y Position registers (REG[88h],REG[89h],REG[90h],REG[91h]). The PIP+ window has its own Display Start Address registers (REG[7Eh],REG[7Dh],REG[7Ch]) and Line Address Offset registers (REG[81h],REG[80h]). The PIP+ window shares the same color depth and SwivelViewTM orientation as the main window.

PIP+ Window Display Start Address Register 0 REG[7C] Read/Write

ADVANCED INFORMATION

PIP+ Window Display Start Address Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window Display Start Address Register 1 REG[7Dh] Read/Write

Subject to Change

PIP+ Window Display Start Address Bits 15-8

7 6 5 4 3 2 1 0

PIP+ Window Display Start Address Register 2 REG[7Eh] Read/Write

7 6 5 4 3 2 1 0

PIP+ Display Start Address

The PIP+ Display Start Address register is a DWORD which represents an address that points to the start of the PIP+ window image in the display buffer. An address of 0 is the start of the display buffer. For the following PIP+ descriptions, the desired byte address is the starting display address for the PIP+ window image.

In SwivelView 0°, program the start address

= desired byte address ÷ 4

In SwivelView 90°, program the start address

= ((desired byte address + (PIP+ width × bpp ÷ 8)

+ ((4 - (PIP+ width × bpp ÷ 8)) & 03h)) ÷ 4) - 1

In SwivelView 180°, program the start address

= ((desired byte address + (PIP+ Stride × (PIP+ height − 1))

+ (PIP+ width × bpp ÷ 8) + ((4 - (PIP+ width × bpp ÷ 8)) & 03h)) ÷ 4) - 1

In SwivelView 270°, program the start address

= (desired byte address + ((PIP+ height - 1) × PIP+ Stride)) ÷ 4

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Show 5 more labels / short text on this page
PIP+ Window · Display Start · n/a · Address · Bit 16
Page 264 of the Epson LCD Controller (S1D13708) user manual — Note
Page 264 · click to enlarge
Page 264

Note

Truncate all fractional values before writing to the address registers.

Note

SwivelView 0° and 180° require the PIP+ width to be a multiple of 32 ÷ bits-per-pixel. SwivelView 90° and 270° require the PIP+ height to be a multiple of 32 ÷ bits-per-pixel. If this is not possible, refer to Section 8.4, “Limitations” .

PIP+ Window Line Address Offset Register 0 REG[80h] Read/Write

ADVANCED INFORMATION

PIP+ Window Line Address Offset Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window Line Address Offset Register 1 REG[81h] Read/Write

Subject to Change

n/a PIP+ Window Line Address

7 6 5 4 3 2 1 0

PIP+ Line Address Offset

The PIP+ Line Address Offset register indicates the number of dwords per line in the PIP+ window image.

The image width must be a multiple of 32 ÷ bpp. If the image width is not such a multiple, a slightly larger width must be chosen (see Section 8.4, “Limitations” ).

PIP+ width and PIP+ height refer to the PIP+ dimensions as seen in SwivelView 0° (landscape mode). Stride is the number of bytes required for one line of the image; the offset register represents the stride in DWORD steps.

PIP+ Stride = image width × bpp ÷ 8

For SwivelView 0° and 180°,

PIP+ Width=((REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1) × (32 ÷ bpp)

PIP+ Height=(REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1

For SwivelView 90° and 270°,

PIP+ Width=((REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1) × (32 ÷ bpp)

PIP+ Height=(REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1

Note

Image width can be larger than PIP+ width (or PIP+ height, for SwivelView 90° or 270°).

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Offset Bits 9-8

Page 265 of the Epson LCD Controller (S1D13708) user manual — Note
Page 265 · click to enlarge
Page 265

number of dwords per line = image width ÷ (32 ÷ bpp)

PIP+ Window X Start Position Register 0 REG[84h] Read/Write

PIP+ Window X Start Position Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window X Start Position Register 1 REG[85h] Read/Write

ADVANCED INFORMATION

n/a PIP+ Window X Start Position

7 6 5 4 3 2 1 0

PIP+ X Start Position

The PIP+ X Start Position bits determine the horizontal position of the start of the PIP+ window in 0° and 180° SwivelView orientations. These bits determine the vertical start position in 90° and 270° SwivelView. For further information on defining the value of the X Start Position, see Section 8.3, “Picture-In-Picture-Plus Examples” on page 48.

Subject to Change

The register also increments differently based on the SwivelView orientation. For 0° and 180° SwivelView the X Start Position is incremented by X pixels where X is relative to the current color depth. For 90° and 270° SwivelView the X Start Position is incremented in 1 line increments.

Table 8-132-bit Address Increments for Color Depth

Bits-per-pixel (Color Depth) Pixel Increment (X)

In SwivelView 0°, these bits set the horizontal coordinates (x) of the PIP+ windows’s left edge. Increasing x moves the left edge towards the right in steps of (32 ÷ bits-per-pixel) (see Table 8-1:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start at pixel 0.

Program the PIP+ Window X Start Position so that

PIP+ Window X Start Position = x ÷ (32 ÷ bits-per-pixel)

Note

Truncate the fractional part of the above equation.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Show 6 more labels / short text on this page
Bits 9-8 · 1 bpp 32 · 2 bpp 16 · 4 bpp 8 · 8 bpp 4 · 16 bpp 2
Page 266 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 266 · click to enlarge
Page 266

In SwivelView 90°, these bits set the vertical coordinates (y) of the PIP+ window’s top edge. Increasing y moves the top edge downward in 1 line steps. The vertical coordinates start at line 0.

Program the PIP+ Window X Start Position so that

PIP+ Window X Start Position = y

In SwivelView 180°, these bits set the horizontal coordinates (x) of the PIP+ window’s right edge. Increasing x moves the right edge towards the right in steps of (32 ÷ bits-per- pixel) (see Table 8-2:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start at pixel 0.

ADVANCED INFORMATION

Program the PIP+ Window X Start Position so that

PIP+ Window X Start Position = (panel width - x - 1) ÷ (32 ÷ bits-per-pixel)

Note

Truncate the fractional part of the above equation.

Subject to Change

In SwivelView 270°, these bits set the vertical coordinates (y) of the PIP+ window’s bottom edge. Increasing y moves the bottom edge downwards in 1 line steps. The vertical coordi- nates start at line 0.

Program the PIP+ Window X Start Position so that

PIP+ Window X Start Position = panel width - y - 1

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 267 of the Epson LCD Controller (S1D13708) user manual — Note
Page 267 · click to enlarge
Page 267

PIP+ Window Y Start Position Register 0 REG[88h] Read/Write

PIP+ Window Y Start Position Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window Y Start Position Register 1 REG[89h] Read/Write

n/a PIP+ Window Y Start Position

ADVANCED INFORMATION

7 6 5 4 3 2 1 0

PIP+ Y Start Position

The PIP+ Y Start Position bits determine the vertical start position of the PIP+ window in 0° and 180° SwivelView orientations. These bits determine the horizontal start position in 90° and 270° SwivelView. For further information on defining the value of the Y Start Position, see Section 8.3, “Picture-In-Picture-Plus Examples” on page 48.

Subject to Change

The register also increments differently based on the SwivelView orientation. For 0° and 180° SwivelView the Y Start Position is incremented in 1 line increments. For 90° and 270° SwivelView the Y Start Position is incremented by Y pixels where Y is relative to the current color depth.

Table 8-232-bit Address Increments for Color Depth

Bits-Per-Pixel (Color Depth) Pixel Increment (Y)

In SwivelView 0°, these bits set the vertical coordinates (y) of the PIP+ windows’s top edge. Increasing y moves the top edge downwards in 1 line steps. The vertical coordinates start at line 0.

Program the PIP+ Window Y Start Position so that

PIP+ Window Y Start Position = y

In SwivelView 90°, these bits set the horizontal coordinates (x) of the PIP+ window’s right edge. Increasing x moves the right edge towards the right in steps of (32 ÷ bits-per-pixel) (see Table 8-2:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start at pixel 0.

Program the PIP+ Window Y Start Position so that

PIP+ Window Y Start Position = (panel height - x - 1) ÷ (32 ÷ bits-per-pixel)

Note

Truncate the fractional part of the above equation.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Show 6 more labels / short text on this page
Bits 9-8 · 1 bpp 32 · 2 bpp 16 · 4 bpp 8 · 8 bpp 4 · 16 bpp 2
Page 268 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 268 · click to enlarge
Page 268

In SwivelView 180°, these bits set the vertical coordinates (y) of the PIP+ window’s bottom edge. Increasing y moves the bottom edge downwards in 1 line steps. The vertical coordi- nates start at line 0.

Program the PIP+ Window Y Start Position so that

PIP+ Window Y Start Position = panel height - y - 1

In SwivelView 270°, these bits set the horizontal coordinates (x) of the PIP+ window’s left edge. Increasing x moves the left edge towards the right in steps of (32 ÷ bits-per-pixel) (see Table 8-2:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start at pixel 0.

ADVANCED INFORMATION

Program the PIP+ Window Y Start Position so that

PIP+ Window Y Start Position = x ÷ (32 ÷ bits-per-pixel)

Note

Truncate the fractional part of the above equation.

Subject to Change

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 269 of the Epson LCD Controller (S1D13708) user manual — Note
Page 269 · click to enlarge
Page 269

PIP+ Window X End Position Register 0 REG[8Ch] Read/Write

PIP+ Window X End Position Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window X End Position Register 1 REG[8Dh] Read/Write

n/a PIP+ Window X End Position

ADVANCED INFORMATION

7 6 5 4 3 2 1 0

PIP+ X End Position

The PIP+ X End Position bits determine the horizontal end of the PIP+ window in 0° and 180° SwivelView orientations. These bits determine the vertical end position in 90° and 270° SwivelView. For further information on defining the value of the X End Position, see Section 8.3, “Picture-In-Picture-Plus Examples” on page 48.

Subject to Change

This register also increments differently based on the SwivelView orientation. For 0° and 180° SwivelView the X End Position is incremented by X pixels where X is relative to the current color depth. For 90° and 270° SwivelView the X End Position is incremented in 1 line increments.

Table 8-332-bit Address Increments for Color Depth

Bits-Per-Pixel (Color Depth) Pixel Increment (X)

In SwivelView 0°, these bits set the horizontal coordinates (x) of the PIP+ window’s right edge. Increasing x moves the right edge towards the right in steps of 32 ÷ bits-per-pixel (see Table 8-3:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start at pixel 0.

Program the PIP+ Window X End Position so that

PIP+ Window X End Position = x ÷ (32 ÷ bits-per-pixel)

Note

Truncate the fractional part of the above equation.

In SwivelView 90°, these bits set the vertical coordinates (y) of the PIP+ window’s bottom edge. Increasing y moves the bottom edge downward in 1 line steps. The vertical coordi- nates start at line 0.

Program the PIP+ Window X End Position so that

PIP+ Window X End Position = y

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Show 6 more labels / short text on this page
Bits 9-8 · 1 bpp 32 · 2 bpp 16 · 4 bpp 8 · 8 bpp 4 · 16 bpp 2
Page 270 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 270 · click to enlarge
Page 270

In SwivelView 180°, these bits set the horizontal coordinates (x) of the PIP+ window’s left edge. Increasing x moves the left edge towards the right in steps of 32 ÷ bits-per-pixel (see Table 8-3:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start at pixel 0.

Program the PIP+ Window X End Position so that

PIP+ Window X End Position = (panel width - x - 1) ÷ (32 ÷ bits-per-pixel)

Note

Truncate the fractional part of the above equation.

ADVANCED INFORMATION

In SwivelView 270°, these bits set the vertical coordinates (y) of the PIP+ window’s top edge. Increasing y moves the top edge downwards in 1 line steps. The vertical coordinates start at line 0.

Program the PIP+ Window X End Position so that

PIP+ Window X End Position = panel width - y - 1

Subject to Change

PIP+ Window Y End Position Register 0 REG[90h] Read/Write

PIP+ Window Y End Position Bits 7-0

7 6 5 4 3 2 1 0

PIP+ Window Y End Position Register 1 REG[91h] Read/Write

n/a PIP+ Window Y End Position

7 6 5 4 3 2 1 0

PIP+ Y End Position

The PIP+ Y End Position bits determine the vertical end position of the PIP+ window in 0° and 180° SwivelView orientations. These bits determine the horizontal end position in 90° and 270° SwivelView. For further information on defining the value of the Y End Position, see Section 8.3, “Picture-In-Picture-Plus Examples” on page 48.

The register also increments differently based on the SwivelView orientation. For 0° and 180° SwivelView the Y End Position is incremented in 1 line increments. For 90° and 270° SwivelView the Y End Position is incremented by Y pixels where Y is relative to the current color depth.

Table 8-432-bit Address Increments for Color Depth

Bits-Per-Pixel (Color Depth) Pixel Increment (Y)

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Show 6 more labels / short text on this page
Bits 9-8 · 1 bpp 32 · 2 bpp 16 · 4 bpp 8 · 8 bpp 4 · 16 bpp 2
Page 271 of the Epson LCD Controller (S1D13708) user manual — Note
Page 271 · click to enlarge
Page 271

In SwivelView 0°, these bits set the vertical coordinates (y) of the PIP+ windows’s bottom edge. Increasing y moves the bottom edge downwards in 1 line steps. The vertical coordi- nates start at line 0.

Program the PIP+ Window Y End Position so that

PIP+ Window Y End Position = y

In SwivelView 90°, these bits set the horizontal coordinates (x) of the PIP+ window’s left edge. Increasing x moves the left edge towards the right in steps of (32 ÷ bits-per-pixel) (see Table 8-4:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start at pixel 0.

ADVANCED INFORMATION

Program the PIP+ Window Y End Position so that

PIP+ Window Y End Position = (panel height - x - 1) ÷ (32 ÷ bits-per-pixel)

Note

Truncate the fractional part of the above equation.

Subject to Change

In SwivelView 180°, these bits set the vertical coordinates (y) of the PIP+ window’s top edge. Increasing y moves the top edge downwards in 1 line steps. The vertical coordinates start at line 0.

Program the PIP+ Window Y End Position so that

PIP+ Window Y End Position = panel height - y - 1

In SwivelView 270°, these bits set the horizontal coordinates (x) of the PIP+ window’s right edge. Increasing x moves the right edge towards the right in steps of (32 ÷ bits-per- pixel) (see Table 8-4:, “32-bit Address Increments for Color Depth” ). The horizontal coordinates start at pixel 0.

Program the PIP+ Window Y End Position so that

PIP+ Window Y End Position = x ÷ (32 ÷ bits-per-pixel)

Note

Truncate the fractional part of the above equation.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 272 of the Epson LCD Controller (S1D13708) user manual — Note
Page 272 · click to enlarge
Page 272

8.3 Picture-In-Picture-Plus Examples

8.3.1 SwivelView 0° (Landscape Mode)

0° SwivelView TM

PIP+ window y start position

PIP+ window y end position

ADVANCED INFORMATION

Subject to Change

PIP+ window x start position PIP+ window x end position

Figure 8-2Picture-in-Picture Plus with SwivelView disabled

SwivelView 0° (or landscape) is a mode in which both the main and PIP+ window are non- rotated. The images for each window are typically placed consecutively, with the main window image starting at address 0 and followed by the PIP+ window image. In addition, both images must start at addresses which are dword-aligned (the last two bits of the starting address must be 0).

Note

It is possible to use the same image for both the main window and PIP+ window. To do so, set the PIP+ Line Address Offset register (REG[81h],REG[80h]) to the same value as the Main Window Line Address Offset register (REG[79h],REG[78h]).

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Show 6 more labels / short text on this page
(REG[89h],REG[88h]) · panel’s origin · (REG[91h],REG[90h]) · main-window · PIP+ window · (REG[85h],REG[84h]) (REG[8Dh],REG[8Ch])
Page 273 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 273 · click to enlarge
Page 273
Example 5Program the PIP + window registers for a 320x240 panel at 4 bpp, with

the PIP+ window positioned at (80, 60) with a width of 160 and a height of 120.

1. Determine the value for the PIP+ Window X Positions and PIP+ Window Y Positions registers. Let the top left corner of the PIP+ window be (x1, y1), and let the bottom right corner be (x2, y2), where x2 = x1 + width - 1 and y2 = y1 + height - 1. The PIP+ Window X Positions register sets the horizontal coordinates of the PIP+ window’s top left and bottom right corners. The PIP+ Window Y Positions register sets the vertical coordinates of the PIP+ window’s top left and bottom right corners.

ADVANCED INFORMATION

The required values are calculated as follows:

= x1 ÷ (32 ÷ bpp) = 80 ÷ (32 ÷ 4) = 10 = 0Ah

Subject to Change

= y1 = 60 = 3Ch

= x2 ÷ (32 ÷ bpp) = (80 + 160 - 1) ÷ (32 ÷ 4) = 29.875 = 1Dh (truncated fractional part)

= y2 = 60 + 120 - 1 = 179 = B3h

2. Program the PIP + Window X Positions register with the X Start Position in (REG[85h],REG[84h]) and the X End Position in (REG[8Dh],REG[8Ch]). REG[84h]=0Ah REG[85h]=00h REG[8Ch]=1Dh REG[8Dh]=00h Program the PIP + Window Y Positions register with the Y Start Position in (REG[89h],REG[88h]) and the Y End Position in (REG[91h],REG[90h]). REG[88h]=3Ch REG[89h]=00h REG[90h]=B3h REG[91h]=00h

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Show 4 more labels / short text on this page
X Start Position · Y Start Position · X End Position · Y End Position
Page 274 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 274 · click to enlarge
Page 274

after REG[91h] is written.

Due to truncation, the dimensions of the PIP+ window may have changed. Recalculate the PIP+ window width and height below: PIP+ Width

= ((REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1) × (32 ÷ bpp) = (1Dh - 0Ah + 1) × (32 ÷ 4) = 160 pixels

ADVANCED INFORMATION

= (REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1 = B3h - 3Ch + 1 = 120 lines

3. Determine the PIP + display start address. The main window image must take up 320 x 240 pixels × bpp ÷ 8 = 9600h bytes. If the main window starts at address 0h, the PIP + window can start at 9600h.

Subject to Change

PIP+ display start address

= desired byte address ÷ 4 = 9600h ÷ 4 = 2580h.

Program the PIP+ Display Start Address registers. REG[7Ch]=80h REG[7Dh]=25h REG[7Eh]=00h

4. Determine the PIP + line address offset.

number of dwords per line

= image width ÷ (32 ÷ bpp) = 160 ÷ (32 ÷ 4) = 20 = 14h

Program the PIP+ Line Address Offset registers. REG[80h]=14h REG[81h]=00h.

5. Enable the PIP + window.

Program the PIP+ Window Enable bit. REG[71h] bit 4 is set to 1.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

PIP Height

Page 275 of the Epson LCD Controller (S1D13708) user manual — Note
Page 275 · click to enlarge
Page 275

8.3.2 SwivelView 90°

90° SwivelView TM

PIP+ window x start position PIP+ window x end position

PIP+ window y start position

ADVANCED INFORMATION

PIP+ window y end position

Subject to Change

Figure 8-3Picture-in-Picture Plus with SwivelView 90° enabled

SwivelView 90° is a mode in which both the main and PIP+ windows are rotated 90° counter-clockwise when shown on the panel. The images for each window are typically placed consecutively, with the main window image starting at address 0 and followed by the PIP+ window image. In addition, both images must start at addresses which are dword- aligned (the last two bits of the starting address must be 0).

Note

It is possible to use the same image for both the main window and PIP+ window. To do so, set the PIP+ Line Address Offset register (REG[81h],REG[80h]) to the same value as the Main Window Line Address Offset register (REG[79h],REG[78h]).

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Show 7 more labels / short text on this page
panel’s origin · (REG[85h],REG[84h]) · (REG[8Dh],REG[8Ch]) · PIP+ window · (REG[89h],REG[88h]) · (REG[91h],REG[90h]) · main-window
Page 276 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 276 · click to enlarge
Page 276

Example 6:In SwivelView 90°, program the PIP+ window registers for a 320x240

panel at 4 bpp, with the PIP+ window positioned at SwivelView 90° coor- dinates (60, 80) with a width of 120 and a height of 160.

1. Determine the value for the PIP+ Window X Positions and PIP+ Window Y Positions registers. Let the top left corner of the PIP+ window be (x1, y1), and let the bottom right corner be (x2, y2), where x2 = x1 + width - 1 and y2 = y1 + height - 1. The PIP+ Window X Positions register sets the vertical coordinates of the PIP+ window’s top right and bottom left corners. The PIP+ Window Y Positions register sets the horizon- tal coordinates of the PIP+ window’s top right and bottom left corners.

ADVANCED INFORMATION

The required values are calculated as follows:

= y1 = 80 = 50h

Subject to Change

= (panel height - x2 - 1) ÷ (32 ÷ bpp) = (240 - (60 + 120 - 1) - 1) ÷ (32 ÷ 4) = 7.5 = 07h (truncated fractional part)

= y2 = 80 + 160 - 1 = 239 = EFh

= (panel height - x1 - 1) ÷ (32 ÷ bpp) = (240 - 60 - 1) ÷ (32 ÷ 4) = 22.375 = 16h (truncated fractional part)

2. Program the PIP + Window X Positions register with the X Start Position in (REG[85h],REG[84h]) and the X End Position in (REG[8Dh],REG[8Ch]). REG[84h]=50h REG[85h]=00h REG[8Ch]=EFh REG[8Dh]=00h Program the PIP + Window Y Positions register with the Y Start Position in (REG[89h],REG[88h]) and the Y End Position in (REG[91h],REG[90h]). REG[88h]=07h REG[89h]=00h REG[90h]=16h REG[91h]=00h

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Show 4 more labels / short text on this page
X Start Position · Y Start Position · X End Position · Y End Position
Page 277 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 277 · click to enlarge
Page 277

Due to truncation, the dimensions of the PIP+ window may have changed. Recalculate the PIP+ window width and height below: PIP Width

= ((REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1) × (32 ÷ bpp) = (16h - 07h + 1) × (32 ÷ 4) = 128 pixels (note that this is different from the desired width)

ADVANCED INFORMATION

= (REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1 = EFh - 50h + 1 = 160 lines

3. Determine the PIP + display start address. The main window image must take up 320 x 240 pixels × bpp ÷ 8 = 9600h bytes. If the main window starts at address 0h, then the PIP + window can start at 9600h.

Subject to Change

PIP+ display start address

= ((desired byte address + (PIP+ width × bpp ÷ 8)

+ ((4 - (PIP+ width × bpp ÷ 8)) & 03h)) ÷ 4) - 1 = ((9600h + (128 × 4 ÷ 8) + ((4 - (128 × 4 ÷ 8)) & 03h)) ÷ 4) - 1 = 9615 = 258Fh

Program the PIP+ Display Start Address registers. REG[7Ch]=8Fh REG[7Dh]=25h REG[7Eh]=00h

4. Determine the PIP + line address offset.

number of dwords per line

= image width ÷ (32 ÷ bpp) = 128 ÷ (32 ÷ 4) = 16 = 10h

Program the PIP+ Line Address Offset registers. REG[80h]=10h REG[81h]=00h.

5. Enable the PIP + window.

Program the PIP+ Window Enable bit. REG[71h] bit 4 is set to 1.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

PIP+ Height

Page 278 of the Epson LCD Controller (S1D13708) user manual — Note
Page 278 · click to enlarge
Page 278

8.3.3 SwivelView 180°

PIP+ window x start position PIP+ window x end position 180° SwivelViewTM

ADVANCED INFORMATION

PIP+ window y start position panel’s origin PIP+ window y end position

Subject to Change

Figure 8-4Picture-in-Picture Plus with SwivelView 180° enabled

SwivelView 180° is a mode in which both the main and PIP+ windows are rotated 180° counter-clockwise when shown on the panel. The images for each window are typically placed consecutively, with the main window image starting at address 0 and followed by the PIP+ window image. In addition, both images must start at addresses which are dword- aligned (the last two bits of the starting address must be 0).

Note

It is possible to use the same image for both the main window and PIP+ window. To do so, set the PIP+ Line Address Offset register (REG[81h],REG[80h]) to the same value as the Main Window Line Address Offset register (REG[79h],REG[78h]).

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Show 6 more labels / short text on this page
(REG[8Dh],REG[8Ch]) · (REG[85h],REG[84h]) · PIP+ window · main-window · (REG[91h],REG[90h]) · (REG[89h],REG[88h])
Page 279 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 279 · click to enlarge
Page 279
Example 7In SwivelView 180 ° , program the PIP + window registers for a 320x240

panel at 4 bpp, with the PIP+ window positioned at SwivelView 180° co- ordinates (80, 60) with a width of 160 and a height of 120.

1. Determine the value for the PIP+ Window X Positions and PIP+ Window Y Positions registers. Let the top left corner of the PIP+ window be (x1, y1), and let the bottom right corner be (x2, y2), where x2 = x1 + width - 1 and y2 = y1 + height - 1. The PIP+ Window X Positions register sets the horizontal coordinates of the PIP+ window’s bottom right and top left corner. The PIP+ Window Y Positions register sets the verti- cal coordinates of the PIP+ window’s bottom right and top left corner.

ADVANCED INFORMATION

The required values are calculated as follows:

= (panel width - x2 - 1) ÷ (32 ÷ bpp) = (320 - (80 + 160 - 1) - 1) ÷ (32 ÷ 4) = 10 = 0Ah Y Start Position

Subject to Change

= panel height - y2 - 1 = 240 - (60 + 120 - 1) - 1 = 60 = 3Ch X End Position

= (panel width - x1 - 1) ÷ (32 ÷ bpp) = (320 - 80 - 1) ÷ (32 ÷ 4) = 29.875 = 1Dh (truncated fractional part) Y End Position

= panel height - y1 - 1 = 240 - 60 - 1 = 179 = B3h

2. Program the PIP + Window X Positions register with the X Start Position in (REG[85h],REG[84h]) and the X End Position in (REG[8Dh],REG[8Ch]). REG[84h]=0Ah REG[85h]=00h REG[8Ch]=1Dh REG[8Dh]=00h Program the PIP + Window Y Positions register with the Y Start Position in (REG[89h],REG[88h]) and the Y End Position in (REG[91h],REG[90h]). REG[88h]=3Ch REG[89h]=00h REG[90h]=B3h REG[91h]=00h

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

X Start Position

Page 280 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 280 · click to enlarge
Page 280

Due to truncation, the dimensions of the PIP+ window may have changed. Recalculate the PIP+ window width and height below: PIP+ Width

= ((REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1) × (32 ÷ bpp) = (1Dh - 0Ah + 1) × (32 ÷ 4) = 160 pixels

= (REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1 = B3h - 3Ch + 1 = 120 lines

ADVANCED INFORMATION

3. Determine the PIP + display start address. The main window image must take up 320 x 240 pixels × bpp ÷ 8 = 9600h bytes. If the main window starts at address 0h, then the PIP + window can start at 9600h.

Subject to Change

= image width × bpp ÷ 8 = 160 × 4 ÷ 8 = 80 = 50h

PIP+ display start address

= ((desired byte address + (PIP+ Stride × (PIP+ height - 1))

+ (PIP+ width × bpp ÷ 8) + ((4 - (PIP width × bpp ÷ 8)) & 03h)) ÷ 4) - 1 = ((9600h + (80 × (120 - 1)) + (160 × 4 ÷ 8) + ((4 - (160 × 4 ÷ 8))&03h)) ÷ 4) - 1 = 11999 = 2EDFh

Program the PIP+ Display Start Address registers. REG[7Ch]=DFh REG[7Dh]=2Eh REG[7Eh]=00h

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

PIP Height · PIP+ Stride

Page 281 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 281 · click to enlarge
Page 281
4. Determine the PIP + line address offset.

number of dwords per line

= image width ÷ (32 ÷ bpp) = 160 ÷ (32 ÷ 4) = 20 = 14h

Program the PIP+ Line Address Offset registers. REG[80h]=14h REG[81h]=00h.

ADVANCED INFORMATION

5. Enable the PIP + window.

Program the PIP+ Window Enable bit. REG[71h] bit 4 is set to 1.

Subject to Change

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 282 of the Epson LCD Controller (S1D13708) user manual — Note
Page 282 · click to enlarge
Page 282

8.3.4 SwivelView 270°

270° SwivelView TM

PIP+ window y end position

ADVANCED INFORMATION

PIP+ window y start position

PIP+ window x start position

PIP+ window x end position

Subject to Change

Figure 8-5Picture-in-Picture Plus with SwivelView 270° enabled

SwivelView 270° is a mode in which both the main and PIP+ windows are rotated 270° counter-clockwise when shown on the panel. The images for each window are typically placed consecutively, with the main window image starting at address 0 and followed by the PIP+ window image. In addition, both images must start at addresses which are dword- aligned (the last two bits of the starting address must be 0).

Note

It is possible to use the same image for both the main window and PIP+ window. To do so, set the PIP+ Line Address Offset register (REG[81h],REG[80h]) to the same value as the Main Window Line Address Offset register (REG[79h],REG[78h]).

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Show 7 more labels / short text on this page
main-window · (REG[91h],REG[90h]) · (REG[89h],REG[88h]) · PIP+ window · (REG[85h],REG[84h]) · (REG[8Dh],REG[8Ch]) · panel’s origin
Page 283 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 283 · click to enlarge
Page 283
Example 8In SwivelView 270 ° , program the PIP + window registers for a 320x240

panel at 4 bpp, with the PIP+ window positioned at SwivelView 270° co- ordinates (60, 80) with a width of 120 and a height of 160.

1. Determine the value for the PIP+ Window X Positions and PIP+ Window Y Positions registers. Let the top left corner of the PIP+ window be (x1, y1), and let the bottom right corner be (x2, y2), where x2 = x1 + width - 1 and y2 = y1 + height - 1. The PIP+ Window X Positions register sets the vertical coordinates of the PIP+ window’s top right and bottom left corner. The PIP+ Window Y Positions register sets the horizontal coordinates of the PIP+ window’s top right and bottom left corner.

ADVANCED INFORMATION

The required values are calculated as follows:

= panel width - y2 - 1 = 320 - (80 + 160 - 1) - 1 = 80 = 50h

Subject to Change

= x1 ÷ (32 ÷ bpp) = 60 ÷ (32 ÷ 4) = 7.5 = 07h (truncated fractional part)

= panel width - y1 - 1 = 320 - 80 - 1 = 239 = EFh

= x2 ÷ (32 ÷ bpp) = (60 + 120 - 1) ÷ (32 ÷ 4) = 22.375 = 16h (truncated fractional part)

2. Program the PIP + Window X Positions register with the X Start Position in (REG[85h],REG[84h]) and the X End Position in (REG[8Dh],REG[8Ch]). REG[84h]=50h REG[85h]=00h REG[8Ch]=EFh REG[8Dh]=00h Program the PIP + Window Y Positions register with the Y Start Position in (REG[89h],REG[88h]) and the Y End Position in (REG[91h],REG[90h]). REG[88h]=07h REG[89h]=00h REG[90h]=16h REG[91h]=00h

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Show 4 more labels / short text on this page
X Start Position · Y Start Position · X End Position · Y End Position
Page 284 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 284 · click to enlarge
Page 284

Due to truncation, the dimensions of the PIP+ window may have changed. Recalculate the PIP+ window width and height below: PIP Width

= ((REG[91h],REG[90h]) - (REG[89h],REG[88h]) + 1) × (32 ÷ bpp) = (16h - 07h + 1) × (32 ÷ 4) = 128 pixels (note that this is different from the desired width)

ADVANCED INFORMATION

= (REG[8Dh],REG[8Ch]) - (REG[85h],REG[84h]) + 1 = EFh - 50h + 1 = 160 lines

3. Determine the PIP + display start address. The main window image must take up 320 x 240 pixels × bpp ÷ 8 = 9600h bytes. If the main window starts at address 0h, then the PIP + window can start at 9600h.

Subject to Change

= image width × bpp ÷ 8 = 128 × 4 ÷ 8 = 64 = 40h

PIP+ display start address

= (desired byte address + ((PIP+ height - 1) × PIP+ Stride)) ÷ 4 = (9600h + ((160 - 1) × 64)) ÷ 4 = 12144 = 2F70h

Program the PIP+ Display Start Address registers. REG[7Ch]=70h REG[7Dh]=2Fh REG[7Eh]=00h

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

PIP+ Height · PIP+ Stride

Page 285 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 285 · click to enlarge
Page 285
4. Determine the PIP + line address offset.

number of dwords per line

= image width ÷ (32 ÷ bpp) = 128 ÷ (32 ÷ 4) = 16 = 10h

Program the PIP+ Line Address Offset registers. REG[80h]=10h REG[81h]=00h.

ADVANCED INFORMATION

5. Enable the PIP + window.

Program the PIP+ Window Enable bit. REG[71h] bit 4 is set to 1.

Subject to Change

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 286 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 286 · click to enlarge
Page 286

8.4 Limitations

8.4.1 SwivelView 0° and 180°

The PIP+ Line Address Offset registers (REG[81h],REG[80h]) requires the PIP+ window image width to be a multiple of 32 ÷ bits-per-pixel. If this formula is not satisfied, then the PIP+ Line Address Offset register must be programmed to the next larger value that satisfies the formula.

ADVANCED INFORMATION

8.4.2 SwivelView 90° and 270°

The PIP+ Line Address Offset register (REG[81h],REG[80h]) requires the PIP+ window image width to be a multiple of 32 ÷ bits-per-pixel. If this formula is not satisfied, then the PIP+ Line Address Offset register must be programmed to the next larger value that satisfies the formula.

Subject to Change

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 287 of the Epson LCD Controller (S1D13708) user manual — 9.2 API for the HAL Library
Page 287 · click to enlarge
Page 287

9 Hardware Abstraction Layer

9.1 Introduction

The S1D13708 Hardware Abstraction Layer (HAL) is a collection of routines intended to simplify the programming for the S5U13708B00B evaluation board. Programmers can use the HAL to assist in rapid software prototyping for the S5U13708B00B evaluation board.

ADVANCED INFORMATION

The HAL routines are divided into discrete functional blocks. The functions for startup and clock control offer specific support for the S5U13708B00B evaluation board, while other routines demonstrate memory and register access techniques. For a complete list, see Table 9-1:, “HAL Library API” .

9.2 API for the HAL Library

Subject to Change

The following table lists the functions provided by the S1D13708 HAL library.

Table 9-1HAL Library API

halAcquireController This routine loads the driver required to access the S1D13708, locates the and returns the address of the controller.

halInitController Initializes the controller for use. This includes setting the programmable clock and initializing registers as well as setting the lookup table and clearing video memory.

halReadDisplay8 Reads one byte from display memory

halReadDisplay16 Reads one word from display memory

halReadDisplay32 Reads one double word from display memory

halWriteDisplay8 Writes one byte to display memory

halWriteDisplay16 Writes on word to display memory

halWriteDisplay32 Writes on double word to display memory

halReadReg8 Reads one byte from a control register

halReadReg16 Reads one word from a control register

halReadReg32 Reads one dword from a control register

halWriteReg8 Writes one byte to a control register

halWriteReg16 Writes one word to a control register

halWriteReg32 Writes one dword to a control registers

halSetClock Programs the ICD2061A Programmable Clock Generator.

halGetClock Returns the frequency of the requested ICD2061A clock

halGetVersionInfo Returns a standardized startup banner message

halGetLastError Returns the numerical value of the last error and optionally an ASCII string describing the error

halInitLUT This routine sets the LUT to uniform values for color/mono panels at all color depths

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Show 6 more labels / short text on this page
Function Description · Startup · Memory Access · Register Access · Clock Support · Miscellaneous
Page 288 of the Epson LCD Controller (S1D13708) user manual — Note
Page 288 · click to enlarge
Page 288

9.2.1 Startup Routines

There are two routines dedicated to startup and initializing the S1D13708. Typically these two functions are the first two HAL routines a program will call.

The startup routine locates the S1D13708 controller and initializes HAL data structures. As the name suggests, the initialization routine prepares the S1D13708 for use. Splitting the startup functionality allows programs to start and locate the S1D13708 but delay or possibly never initialize the controller.

ADVANCED INFORMATION

Boolean halAcquireController(UInt32 * pMem, UInt32 * pReg)

Description: This routine initializes data structures and initiates the link between the application soft- ware and the hardware. When the S1D13708 HAL is used this routine must be the first HAL function called.

The display buffer and register addresses, configured by 13708CFG, are used by halAc- quireController(). When both addresses are set to 0, the software assumes an Intel plat- form, and will attempt to load the S1D13xxx driver. If this driver loads successfully, a check is then made for the S1D13708 evaluation board. If this board exists, halAcquire- Controller() allocates display buffer and register addresses which are then returned via pMem and pReg.

Subject to Change

If either the register or display buffer addresses in 13708CFG are non-zero, halAcquire- Controller() will return these addresses via pMem and pReg.

Parameters: pMem Pointer to an unsigned 32-bit integer which will receive the offset to the first byte of display buffer memory. The offset may be cast to a pointer to access display memory.

pReg Pointer to an unsigned 32-bit integer which will receive the offset to the first byte of register space. The offset may be cast to a pointer and to access S1D13708 registers.

On Win32 systems the returned offsets correspond to a linear addresses within the caller’s address space.

Return Value: TRUE (non-zero) The addresses in pMem and pReg are available for use. pMem will contain the offset to the first byte of display buffer memory. pRegs will contain the address of the first S1D13708 control register.

FALSE (zero) The addresses in pMem and pReg cannot be used. If additional error information is required call halGetLastError().

Note

1. This routine must be called before any other HAL routine is called. 2. For programs written for the S1D13708 evaluation board, an application may call this routine to obtain pointers to the registers and display memory and then perform all S1D13708 accesses directly. 3. This routine does not modify S1D13708 registers or display buffer memory.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 289 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 289 · click to enlarge
Page 289

Boolean halInitController(UInt32 Flags)

Description: This routine performs the initialization portion of the startup sequence. Initialization of the S1D13708 evaluation board consists of several steps: - Program the ICD2061A clock generator - Set the initial state of the control - Set the LUT to its default value - Clear video memory

All display memory and nearly every control register can or will be affected by the initial- ization.

ADVANCED INFORMATION

Any, or all, of the initialization steps may be bypassed according to values contained in the Flags parameter. This allows for conditional run-time changes to the initialization.

Parameters: Flags contains initialization specific information. The default action of the HAL is to per- form all initialization steps. Flags contain specific instructions for bypassing certain ini- tialization steps. Flags can be combined with the ’|’ symbol, such as fDONT_SET_CLOCKS | fDONT_INIT_REGS. The values for Flags are:

Subject to Change

Setting this flag causes initialization to skip programming the ICD2061A clock generator. Normally the clock on the S5U13708B00B is programmed to configured values during initialization.

Bypass register initialization. Normally the init process sets the register values to a known state. Setting this flag bypasses this step.

Bypass look-up table initialization.

The final step of the initialization process is to clear display buffer memory. Setting this flag will bypass this step.

Return Value: TRUE (non-zero) if the initialization was successful.

FALSE (zero) if the HAL was unable to initialize the S1D13708 If additional error information is required call halGetLastError()

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Show 4 more labels / short text on this page
fDONT_SET_CLOCKS · fDONT_INIT_REGS · fDONT_INIT_LUT · fDONT_CLEAR_MEM
Page 290 of the Epson LCD Controller (S1D13708) user manual — void halWriteDisplay8(UInt32 Offset, UInt8 Value, UInt32 Count)
Page 290 · click to enlarge
Page 290

9.2.2 Memory Access

The S1D13708 HAL includes six memory access functions. The primary purpose of the memory access functions is to demonstrate how to access display memory using the C programming language. Most programs that need to access memory will bypass the HAL and instead use memory pointers.

Note

There are two means of accessing display memory: pointers into display memory, or through the indirect interface. The following memory access functions will support both types of access. However, the programmer must update the indirect interface functions in the HAL library to support the given hardware implementation. These indirect inter- face functions are all found in the file indirect.c in the HAL source code.

ADVANCED INFORMATION

UInt8 halReadDisplay8(UInt32 Offset)

Description: Reads and returns the value of one byte of display memory.

Parameters: Offset A 32 bit offset to the byte to be read from display memory.

Subject to Change

Return Value: The value of the byte at the requested offset.

UInt16 halReadDisplay16(UInt32 Offset)

Description: Reads and returns the value of one word of display memory.

Parameters: Offset A 32 bit byte offset to the word to be read from display memory. To prevent system slowdowns and possibly memory faults, Offset should be a word multiple.

Return Value: The value of the word at the requested offset.

UInt32 halReadDisplay32(UInt32 Offset)

Description: Reads and returns the value of one dword of display memory.

Parameters: Offset A 32 bit byte offset to the dword to be read from display memory. To prevent system slowdowns and possibly memory faults, Offset should be a dword multiple.

Return Value: The value of the dword at the requested offset.

void halWriteDisplay8(UInt32 Offset, UInt8 Value, UInt32 Count)

Description: Writes a byte into display memory at the requested address.

Parameters: Offset A 32 bit byte offset to the byte to be written to display memory.

Value The byte value to be written to display memory.

Count The number of times to repeat Value in memory. By including a count (or loop) value this function can efficiently fill display memory.

Return Value: Nothing.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 291 of the Epson LCD Controller (S1D13708) user manual — 9.2.3 Register Access
Page 291 · click to enlarge
Page 291

void halWriteDisplay16(UInt32 Offset, UInt16 Value, UInt32 Count)

Description: Writes a word into display memory at the requested offset.

Parameters: Offset a 32 bit byte offset to the byte to be written to display memory. To prevent system slowdowns and possibly memory faults, Offset should be a word multiple.

Value the word value to be written to display memory.

Count the number of times to repeat the Value in memory. By including a count (or loop) value this function can efficiently fill display memory.

ADVANCED INFORMATION

Return Value: Nothing.

void halWriteDisplay32(UInt32 Offset, UInt32 Value, UInt32 Count)

Description: Writes a dword into display memory at the requested offset.

Parameters: Offset A 32 bit byte offset to the byte to be written to display memory. To prevent system slowdowns and possibly memory faults, Offset should be a dword multiple.

Subject to Change

Value The dword value to be written to display memory.

Count The number of times to repeat the Value in memory. By including a count (or loop) value this function can efficiently fill display memory.

Return Value: Nothing.

9.2.3 Register Access

The S1D13708 HAL includes six register access functions. The primary purpose of the register access functions is to demonstrate how to access the S1D13708 control registers using the C programming language. Most programs that need to access the registers will bypass the HAL and instead use register pointers.

There are some register values which must be combined, such as the Main Window Line Address Offset in REG[78h] and REG[79h]. Software must take into account whether the given platform is big or little endian when combining such register values. To guarantee that the combined register values are correct, do the following in C:

Read word from reg[index] val16 = (halReadReg8(index+1)

val32 =(halReadReg8(index+3)

(halReadReg8(index+2)

Read dword from reg[index]

Write word (val16) to reg[index] halWriteReg8(index, (val16 & 0xff)); halWriteReg8(index+1, (val16 >> 8) & 0xff);

halWriteReg8(index, (val32 & 0xff)); halWriteReg8(index+1, (val32 >> 8) & 0xff); halWriteReg8(index+2, (val32 >> 16) & 0xff); halWriteReg8(index+3, (val32 >> 24) & 0xff);

Write dword (val32) to reg[index]

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

halReadReg8(index);

Page 292 of the Epson LCD Controller (S1D13708) user manual — void halWriteReg8(UInt32 Index, UInt8 Value)
Page 292 · click to enlarge
Page 292

Note

There are two means of accessing registers: pointers into register addressing space, or through the indirect interface. The following register access functions will support both types of access. However, the programmer must update the indirect interface functions in the HAL library to support the given hardware implementation. These indirect inter- face functions are all found in the file indirect.c in the HAL source code.

UInt8 halReadReg8(UInt32 Index)

Description: Reads and returns the contents of one byte of an S1D13708 register at the requested offset. No S1D13708 registers are changed.

ADVANCED INFORMATION

Parameters: Index 32 bit offset to the register to read. Index is zero-based from the beginning of register address space.

Return Value: The value read from the register.

UInt16 halReadReg16(UInt32 Index)

Subject to Change

Description: Reads and returns the contents of one word of an S1D13708 register at the requested off- set. No S1D13708 register are changed.

Parameters: Index 32 bit offset to the register to read. Index is zero-based from the beginning of register address space.

Return Value: The word value read from the register.

UInt16 halReadReg32(UInt32 Index)

Description: Reads and returns the dword value of an S1D13708 register at the requested offset. No S1D13708 register are changed.

Parameters: Index 32 bit offset to the register to read. Index is zero-based from the beginning of register address space.

Return Value: The dword value read from the register.

void halWriteReg8(UInt32 Index, UInt8 Value)

Description: Writes an 8 bit value to the register at the requested offset.

Parameters: Index 32 bit offset to the register to write. Index is zero-based from the beginning of register address space.

Value The byte value to write to the register.

Return Value: Nothing.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 293 of the Epson LCD Controller (S1D13708) user manual — Boolean halSetClock(UInt32 ClkiFreq, UInt32 Clki2Freq)
Page 293 · click to enlarge
Page 293

void halWriteReg16(UInt32 Index, UInt16 Value)

Description: Writes a 16 bit value to the S1D13708 register at the requested offset.

Parameters: Index 32 bit byte offset to the register to write. Index is zero-based from the beginning of register address space.

Value The word value to write to the register.

Return Value: Nothing.

void halWriteReg32(UInt32 Index, UInt32 Value)

ADVANCED INFORMATION

Description: Writes a 32 bit value (dword) to the register at the requested offset.

Parameters: Index 32 bit byte offset to the register to write. Index is zero-based from the beginning of register address space.

Value The dword value to write to the register.

Return Value: Nothing.

Subject to Change

9.2.4 Clock Support

To maximize flexibility, S5U13708B00B evaluation boards include a programmable clock. The following HAL routines provide support for the programmable clock.

Boolean halSetClock(UInt32 ClkiFreq, UInt32 Clki2Freq)

Description: This routine program the ICD2061A programmable clock generator to the specified fre- quency.

Parameters: ClkiFreq The desired frequency, in Hz, for CLKI.

Clki2Freq The desired frequency, in Hz, for CLKI2.

Return Value: TRUE (non-zero) if the function was successful in setting the clock.

FALSE (zero) if there was an error detected while trying to set the clock. If additional error information is required call halGetLastError().

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 294 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 294 · click to enlarge
Page 294

UInt32 halGetClock(CLOCKSELECT Clock)

Description: Returns the frequency of the clock input identified by 'Clock'.

Parameters: Clock Indicates which clock to read. This value can be CLKI or CLKI2.

Return Value: The frequency, in Hz, of the requested clock.

9.2.5 Miscellaneous

The miscellaneous function are an assortment of routines, determined to be beneficial to a number of programs and hence warranted being included in the HAL.

ADVANCED INFORMATION

void halGetVersionInfo(const char * szProgName, const char * szDesc, const char * szVersion, char * szRetStr, int Length)

Description: This routine creates a standardized startup banner by merging program and HAL specific information. The newly formulated string is returned to the calling program for display.

The final formatted string will resemble:

Subject to Change

13708PROGRAM - Internal test and diagnostic program - Build 1234 [HAL: 1234] Copyright (c) 2001 Epson Research and Development, Inc. All rights reserved.

Parameters: szProgName Pointer to an ASCIIZ string containing the name of the program.

(e.g. “PROGRAM”).

szDesc Pointer to an ASCIIZ string containing a description of what this program is intended to do (e.g. “Internal test and diagnostic program”).

szVersion Pointer to an ASCIIZ string containing the build info for this program. This should be the revision info string as updated by Microsoft Visual Source Safe© (e.g. “$Revision: 30 $”).

szRetStr Pointer to a buffer into which the product and version information will be formatted into.

Length Total number of bytes in the string pointed to by szRetStr. This function will write Length or fewer bytes to the buffer pointed to by szRetStr.

Return Value: Nothing.

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 295 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 295 · click to enlarge
Page 295

int halGetLastError(char * ErrMsg, int MaxSize)

Description: This routine retrieves the last error detected by the HAL.

ParametersErrMsg When halGetLastError() returns, ErrMsg will point to the textual

error message. If ErrMsg is NULL then only the error code will be returned.

MaxSize Maximum number of bytes, including the final '\0', that can be

placed in the string pointed to by ErrMsg.

ADVANCED INFORMATION

Return Value:The numerical value of the internal error number.

HALEXTERN void halInitLUT(void)

Description: To standardize the appearance of test and validation programs, it was decided the HAL would have the ability to set the lookup table to uniform values.

Subject to Change

The routine cracks the color depth and display type to determine which LUT values to use and proceeds to write the LUT entries.

ParametersNone

Return Value: Nothing.

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 296 of the Epson LCD Controller (S1D13708) user manual — ADVANCED INFORMATION
Page 296 · click to enlarge
Page 296

10 Sample Code

Example source code demonstrating programming the S1D13708 using the HAL library is available on the internet at www.erd.epson.com

ADVANCED INFORMATION

Subject to Change

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 297 of the Epson LCD Controller (S1D13708) user manual — Subject to Change
Page 297 · click to enlarge
Page 297

11 Sales and Technical Support

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

ADVANCED INFORMATION

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de

Subject to Change

Programming Notes and Examples S1D13708 Issue Date: 01/11/20 X39A-G-003-01

Page 298 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 298 · click to enlarge
Page 298

ADVANCED INFORMATION

Subject to Change

THIS PAGE LEFT BLANK

S1D13708 Programming Notes and Examples X39A-G-003-01 Issue Date: 01/11/20

Page 299 of the Epson LCD Controller (S1D13708) user manual — Table of contents
Page 299 · click to enlarge
Page 299

Table of contents

S1D13708 TECHNICAL MANUALp.1COMPREHENSIVE SUPPORT TOOLSp.3Documentationp.3Evaluation/Demonstration Boardp.3Application Engineering Supportp.3Application Engineering Supportp.3S1D13708 Embedded Memory LCD Controller July 2001p.5FEATURESp.5System Block Diagramp.5DESCRIPTIONp.6Memory Interfacep.6CPU Interfacep.6Display Supportp.6Power Down Modesp.6Display Modesp.6Clock Sourcep.6Operating Voltagep.6Packagep.6Hardware Functional Specificationp.7Table of Contentsp.9List of Tablesp.13List of Figuresp.171 Introductionp.211.1 Scopep.211.2 Overview Descriptionp.212 Featuresp.222.1 Integrated Frame Bufferp.222.2 CPU Interfacep.222.3 Display Supportp.222.4 Display Modesp.232.5 Display Featuresp.232.6 Clock Sourcep.232.7 Operating Voltagep.242.8 Miscellaneousp.243 Typical System Implementation Diagramsp.25Figure 31 Typical System Diagram (Generic #1 Bus)p.25Figure 32 Typical System Diagram (Generic #2 Bus)p.25Figure 33 Typical System Diagram (Hitachi SH-4 Bus)p.26Figure 34 Typical System Diagram (Hitachi SH-3 Bus)p.27Figure 35 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000)p.28Figure 36 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030)p.29Figure 37 Typical System Diagram (Motorola REDCAP2 Bus)p.30Figure 38 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus)p.31Figure 39 Typical System Diagram (Indirect Interface, Mode 68)p.31Figure 310 Typical System Diagram (Indirect Interface, Mode 80)p.324 Pinsp.334.1 Pinout Diagram - PFBGA - 120pinp.33Figure 41 Pinout Diagram - PFBGA 120-pinp.33Table 41: PFBGA 120-pin Mappingp.334.2 Pinout Diagram - Die Formp.34Table 42: S1D13708 Pad Layoutp.344.3 Pin Descriptionsp.354.3.1 Host Interfacep.35Table 43: Host Interface Pin Descriptionsp.354.3.2 LCD Interfacep.40Table 44: LCD Interface Pin Descriptionsp.404.3.3 Clock Inputp.43Table 45: Clock Input Pin Descriptionsp.434.3.4 Miscellaneousp.43Table 46: Miscellaneous Pin Descriptionsp.434.3.5 Power And Groundp.43Table 47: Power And Ground Pin Descriptionsp.434.4 Summary of Configuration Optionsp.44Table 48: Summary of Power-On/Reset Optionsp.444.5 Host Bus Interface Pin Mappingp.45Table 49: Host Bus Interface Pin Mappingp.454.6 LCD Interface Pin Mappingp.46Table 410: LCD Interface Pin Mappingp.465 D.C. Characteristicsp.47Table 51: Absolute Maximum Ratings (Preliminary - Subject to Change)p.47Table 52: Recommended Operating Conditionsp.47Table 53: Electrical Characteristics for VDD = 3.3V typicalp.476 A.C. Characteristicsp.486.1 Clock Timingp.486.1.1 Input Clocksp.48Figure 61 Clock Input Requirementsp.48Table 61: Clock Input Requirements for CLKI when CLKI to BCLK divide > 1p.48Table 62: Clock Input Requirements for CLKI when CLKI to BCLK divide = 1p.49Table 63: Clock Input Requirements for CLKI2p.496.1.2 Internal Clocksp.49Table 64: Internal Clock Requirementsp.496.2 CPU Interface Timingp.506.2.1 Generic #1 Interface Timingp.50Figure 62 Generic #1 Interface Timingp.50Table 65: Generic #1 Interface Timingp.516.2.2 Generic #2 Interface Timingp.52Figure 63 Generic #2 Interface Timingp.52Table 66: Generic #2 Interface Timingp.536.2.3 Hitachi SH-4 Interface Timingp.54Figure 64 Hitachi SH-4 Interface Timingp.54Table 67: Hitachi SH-4 Interface Timingp.556.2.4 Hitachi SH-3 Interface Timingp.56Figure 65 Hitachi SH-3 Interface Timingp.56Table 68: Hitachi SH-3 Interface Timingp.576.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000)p.58Figure 66 Motorola MC68K #1 Interface Timingp.58Table 69: Motorola MC68K #1 Interface Timingp.596.2.6 Motorola MC68K #2 Interface Timing (e.g. MC68030)p.60Figure 67 Motorola MC68K #2 Interface Timingp.60Table 610: Motorola MC68K #2 Interface Timingp.616.2.7 Motorola REDCAP2 Interface Timingp.62Figure 68 Motorola REDCAP2 Interface Timingp.62Table 611: Motorola REDCAP2 Interface Timingp.636.2.8 Motorola DragonBall Interface Timing with DTACK (e.g. MC68EZ328/MC68VZ328)p.64Figure 69 Motorola DragonBall Interface with DTACK Timingp.64Table 612: Motorola DragonBall Interface with DTACK Timingp.656.2.9 Motorola DragonBall Interface Timing w/o DTACK (e.g. MC68EZ328/MC68VZ328)p.66Figure 610 Motorola DragonBall Interface without DTACK# Timingp.66Table 613: Motorola DragonBall Interface without DTACK Timingp.676.2.10 Indirect Interface Timing (Mode 68)p.68Figure 611 Indirect Interface Timing (Mode 68)p.68Table 614: Indirect Interface Timing (Mode 68)p.696.2.11 Indirect Interface Timing (Mode 80)p.70Figure 612 Indirect Interface Timing (Mode 80)p.70Table 615: Indirect Interface Timing (Mode 80)p.716.3 LCD Power Sequencingp.726.3.1 Passive/TFT Power-On Sequencep.72Figure 613 Passive/TFT Power-On Sequence Timingp.72Table 616: Passive/TFT Power-On Sequence Timingp.726.3.2 Passive/TFT Power-Off Sequencep.73Figure 614 Passive/TFT Power-Off Sequence Timingp.73Table 617: Passive/TFT Power-Off Sequence Timingp.736.4 Display Interfacep.74Figure 615 Panel Timing Parametersp.74Table 618: Panel Timing Parameter Definition and Register Summaryp.756.4.1 Generic STN Panel Timingp.76Figure 616 Generic STN Panel Timingp.766.4.2 Single Monochrome 4-Bit Panel Timingp.78Figure 617 Single Monochrome 4-Bit Panel Timingp.78Figure 618 Single Monochrome 4-Bit Panel A.C. Timingp.79Table 619: Single Monochrome 4-Bit Panel A.C. Timingp.796.4.3 Single Monochrome 8-Bit Panel Timingp.80Figure 619 Single Monochrome 8-Bit Panel Timingp.80Figure 620 Single Monochrome 8-Bit Panel A.C. Timingp.81Table 620: Single Monochrome 8-Bit Panel A.C. Timingp.816.4.4 Single Color 4-Bit Panel Timingp.82Figure 621 Single Color 4-Bit Panel Timingp.82Figure 622 Single Color 4-Bit Panel A.C. Timingp.83Table 621: Single Color 4-Bit Panel A.C. Timingp.836.4.5 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 623 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 624 Single Color 8-Bit Panel A.C. Timing (Format 1)p.85Table 622: Single Color 8-Bit Panel A.C. Timing (Format 1)p.856.4.6 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 625 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 626 Single Color 8-Bit Panel A.C. Timing (Format 2)p.87Table 623: Single Color 8-Bit Panel A.C. Timing (Format 2)p.876.4.7 Single Color 16-Bit Panel Timingp.88Figure 627 Single Color 16-Bit Panel Timingp.88Figure 628 Single Color 16-Bit Panel A.C. Timingp.89Table 624: Single Color 16-Bit Panel A.C. Timingp.896.4.8 Generic TFT Panel Timingp.90Figure 629 Generic TFT Panel Timingp.906.4.9 9/12/18-Bit TFT Panel Timingp.91Figure 630 18-Bit TFT Panel Timingp.91Figure 631 TFT A.C. Timingp.92Table 625: TFT A.C. Timingp.936.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx)p.94Figure 632 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.94Table 626: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timingp.95Figure 633 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.96Table 627: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.976.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01)p.98Figure 634 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.98Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.99Figure 635 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.99Table 629: 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.996.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR)p.100Figure 636 160x240 Epson D-TFD Panel Horizontal Timingp.100Table 630: 160x240 Epson D-TFD Panel Horizontal Timingp.101Figure 637 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Table 631: 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Figure 638 160x240 Epson D-TFD Panel Vertical Timingp.103Table 632: 160x240 Epson D-TFD Panel Vertical Timingp.1036.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR)p.104Figure 639 320x240 Epson D-TFD Panel Horizontal Timingp.104Table 633: 320x240 Epson D-TFD Panel Horizontal Timingp.105Figure 640 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Table 634: 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Figure 641 320x240 Epson D-TFD Panel Vertical Timingp.107Table 635: 320x240 Epson D-TFD Panel Vertical Timingp.1076.4.14 TFT Type 2 Panel Timingp.108Figure 642 TFT Type 2 Horizontal Timingp.108Table 636: TFT Type 2 Horizontal Timingp.109Figure 643 TFT Type 2 Vertical Timingp.110Table 637: TFT Type 2 Vertical Timingp.1106.4.15 TFT Type 3 Panel Timingp.111Figure 644 TFT Type 3 Horizontal Timingp.111Table 638: TFT Type 3 Horizontal Timingp.112Figure 645 TFT Type 3 Vertical Timingp.113Table 639: TFT Type 3 Vertical Timingp.1146.4.16 TFT Type 4 Panel Timingp.115Figure 646 TFT Type 4 Panel Timingp.115Figure 647 TFT Type 4 A.C. Timingp.116Table 640: TFT Type 4 A.C. Timingp.1177 Clocksp.1187.1 Clock Descriptionsp.1187.1.1 BCLKp.118Table 71: BCLK Clock Selectionp.1187.1.2 MCLKp.118Table 72: MCLK Clock Selectionp.1197.1.3 PCLKp.119Table 73: PCLK Clock Selection p.119Table 74: Relationship between MCLK and PCLKp.1217.1.4 PWMCLKp.121Table 75: PWMCLK Clock Selectionp.1217.2 Clock Selectionp.122Figure 71 Clock Selectionp.1227.3 Clocks versus Functionsp.123Table 76: S1D13708 Internal Clock Requirementsp.1238 Registersp.1248.1 Register Mappingp.1248.2 Register Setp.125Table 81: S1D13708 Register Setp.1258.3 Register Descriptionsp.1278.3.1 Read-Only Configuration Registersp.1278.3.2 Clock Configuration Registersp.128Table 82: MCLK Divide Selectionp.128Table 83: PCLK Divide Selectionp.128Table 84: PCLK Source Selectionp.1298.3.3 Look-Up Table Registersp.1298.3.4 Panel Configuration Registersp.132Table 85: Panel Data Width Selectionp.132Table 86: HRTFT/D-TFD Panel Resolution Selectionp.132Table 87: LCD Panel Type Selectionp.1338.3.5 Display Mode Registersp.139Table 88: Inverse Video Mode Select Optionsp.140Table 89: LCD Bit-per-pixel Selectionp.141Figure 81 Display Data Byte/Word Swapp.142Table 810: SwivelViewTM Mode Select Optionsp.1428.3.6 Picture-in-Picture Plus Registersp.144Table 811: 32-bit Address Increments for Color Depthp.145Table 812: 32-bit Address Increments for Color Depthp.146Table 813: 32-bit Address Increments for Color Depthp.147Table 814: 32-bit Address Increments for Color Depthp.1488.3.7 Miscellaneous Registersp.1498.3.8 General IO Pins Registersp.1518.3.9 Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registersp.156Figure 82 PWM Clock/CV Pulse Block Diagramp.156Table 815: PWM Clock Controlp.156Table 816: CV Pulse Controlp.157Table 817: PWM Clock Divide Select Optionsp.158Table 818: CV Pulse Divide Select Optionsp.158Table 819: PWMOUT Duty Cycle Select Optionsp.1598.3.10 Extended Registersp.160Table 820: Extended Panel Type Selectionp.161Table 821: VCLK Holdp.165Table 822: VCLK Setupp.165Table 823: AP Pulse Widthp.166Table 824: AP Rising Positionp.166Table 825: GPO2 PCLK2 Divide Ratep.170Table 826: GPO1 PCLK1 Divide Ratep.170Table 827: Number of Source Driver ICsp.1769 Frame Rate Calculationp.17710 Display Data Formatsp.178Figure 101 4/8/16 Bit-Per-Pixel Display Data Memory Organizationp.17811 Look-Up Table Architecturep.17911.1 Monochrome Modesp.1791 Bit-per-pixel Monochrome Modep.179Figure 111 1 Bit-per-pixel Monochrome Mode Data Output Pathp.1792 Bit-per-pixel Monochrome Modep.179Figure 112 2 Bit-per-pixel Monochrome Mode Data Output Pathp.1794 Bit-per-pixel Monochrome Modep.180Figure 113 4 Bit-per-pixel Monochrome Mode Data Output Pathp.1808 Bit-per-pixel Monochrome Modep.180Figure 114 8 Bit-per-pixel Monochrome Mode Data Output Pathp.18016 Bit-Per-Pixel Monochrome Modep.18111.2 Color Modesp.1811 Bit-Per-Pixel Colorp.181Figure 115 1 Bit-Per-Pixel Color Mode Data Output Pathp.1812 Bit-Per-Pixel Colorp.182Figure 116 2 Bit-Per-Pixel Color Mode Data Output Pathp.1824 Bit-Per-Pixel Colorp.183Figure 117 4 Bit-Per-Pixel Color Mode Data Output Pathp.1838 Bit-per-pixel Color Modep.184Figure 118 8 Bit-per-pixel Color Mode Data Output Pathp.18416 Bit-Per-Pixel Color Modep.18412 SwivelView™p.18512.1 Conceptp.18512.2 90˚ SwivelView™p.185Figure 121 Relationship Between The Screen Image and the Image Refreshed in 90° SwivelView.p.18512.2.1 Register Programmingp.18612.3 180˚ SwivelView™p.187Figure 122 Relationship Between The Screen Image and the Image Refreshed in 180° SwivelView.p.18712.3.1 Register Programmingp.18712.4 270˚ SwivelView™p.188Figure 123 Relationship Between The Screen Image and the Image Refreshed in 270° SwivelView.p.18812.4.1 Register Programmingp.18913 Picture-in-Picture Plus (PIP+)p.19013.1 Conceptp.190Figure 131 Picture-in-Picture Plus with SwivelView disabledp.19013.2 With SwivelView Enabledp.19113.2.1 SwivelView 90˚p.191Figure 132 Picture-in-Picture Plus with SwivelView 90˚ enabledp.19113.2.2 SwivelView 180˚p.191Figure 133 Picture-in-Picture Plus with SwivelView 180˚ enabledp.19113.2.3 SwivelView 270˚p.192Figure 134 Picture-in-Picture Plus with SwivelView 270˚ enabledp.19214 Ink Layerp.19314.1 Memory Mappingp.193Figure 141 Memory Mapping for Ink Layerp.19314.2 Controlling the Ink Layerp.193Figure 142 Transparent Color Examplep.19414.3 Limitationsp.19415 Indirect Interfacep.19515.1 Mode 68p.196Figure 151 Sample timing of “register write” with Mode 68p.196Figure 152 Sample timing of “register read” with Mode 68p.197Figure 153 Sample timing of “memory write” with Mode 68, Big Endianp.198Figure 154 Sample timing of “memory read” with Mode 68, Big Endianp.200Figure 155 Sample timing of “register write” for Mode 68 when Memory Access Select Enabledp.202Figure 156 Sample timing of “register read” for Mode 68 when Memory Access Select Enabledp.20415.2 Mode 80p.206Figure 157 Sample timing of “register write” with Mode 80p.206Figure 158 Sample timing of “register read” with Mode 80p.208Figure 159 Sample timing of “memory write” with mode 80, little endianp.209Figure 1510 Sample timing of “memory read” with mode 80, Little endianp.211Figure 1511 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabledp.213Figure 1512 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabledp.21515.3 Limitationsp.21616 Embedded Crystal Oscillatorp.21716.1 Oscillator Circuitp.217Figure 161 Recommended Crystal Oscillator Circuitp.21717 Big-Endian Bus Interfacep.21817.1 Byte Swapping Bus Datap.21817.1.1 16 Bpp Color Depthp.219Figure 171 Byte-swapping for 16 Bppp.21917.1.2 1/2/4/8 Bpp Color Depthp.220Figure 172 Byte-swapping for 1/2/4/8 Bppp.22018 Power Save Modep.221Table 181: Power Save Mode Function Summaryp.22119 Mechanical Datap.222Figure 191 Mechanical Data PFBGA 120-pin Packagep.22220 Referencesp.22321 Technical Supportp.224S1D13708 Embedded Memory LCD Controllerp.225Table of Contentsp.227List of Tablesp.229List of Figuresp.2311 Introductionp.2332 Identifying the S1D13708p.2343 Initializationp.2354 Memory Modelsp.2364.1 Memory Organization for One Bit-per-pixel (2 Colors/Gray Shades)p.236Figure 41: Pixel Storage for 1 Bpp in One Byte of Display Bufferp.2364.2 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades)p.236Figure 42: Pixel Storage for 2 Bpp in One Byte of Display Bufferp.2364.3 Memory Organization for Four Bit-per-pixel (16 Colors/Gray Shades)p.237Figure 43: Pixel Storage for 4 Bpp in One Byte of Display Bufferp.2374.4 Memory Organization for 8 Bpp (256 Colors/64 Gray Shades)p.237Figure 44: Pixel Storage for 8 Bpp in One Byte of Display Bufferp.2374.5 Memory Organization for 16 Bpp (65536 Colors/64 Gray Shades)p.238Figure 45: Pixel Storage for 16 Bpp in Two Bytes of Display Bufferp.2385 Look-Up Table (LUT)p.2395.1 Registersp.2395.1.1 Look-Up Table Registersp.2395.2 Look-Up Table Organizationp.242Table 51: Look-Up Table Configurationsp.2425.2.1 Gray Shade Modesp.243Table 52: Suggested LUT Values for 1 Bpp Gray Shadep.243Table 53: Suggested LUT Values for 4 Bpp Gray Shadep.243Table 54: Suggested LUT Values for 4 Bpp Gray Shadep.244Table 55: Suggested LUT Values for 8 Bpp Gray Shadep.2455.2.2 Color Modesp.247Table 56: Suggested LUT Values for 1 bpp Colorp.247Table 57: Suggested LUT Values for 2 bpp Colorp.247Table 58: Suggested LUT Values for 4 bpp Colorp.248Table 59: Suggested LUT Values for 8 bpp Colorp.2496 Power Save Modep.2516.1 Overviewp.2516.2 Registersp.2526.2.1 Power Save Mode Enablep.2526.2.2 Memory Controller Power Save Statusp.2526.3 LCD Power Sequencingp.2536.4 Enabling Power Save Modep.2546.5 Disabling Power Save Modep.2547 SwivelView‘p.2557.1 SwivelView Registersp.255Table 71: SwivelViewTM Mode Select Optionsp.2557.2 Examplesp.2577.3 Limitationsp.2617.3.1 SwivelView 0˚ and 180˚p.2617.3.2 SwivelView 90˚ and 270˚p.2618 Picture-In-Picture Plusp.2628.1 Conceptp.262Figure 81: Picture-in-Picture Plus with SwivelView disabledp.2628.2 Registersp.262Table 81: 32-bit Address Increments for Color Depthp.265Table 82: 32-bit Address Increments for Color Depthp.267Table 83: 32-bit Address Increments for Color Depthp.269Table 84: 32-bit Address Increments for Color Depthp.2708.3 Picture-In-Picture-Plus Examplesp.2728.3.1 SwivelView 0˚ (Landscape Mode)p.272Figure 82: Picture-in-Picture Plus with SwivelView disabledp.2728.3.2 SwivelView 90˚p.275Figure 83: Picture-in-Picture Plus with SwivelView 90˚ enabledp.2758.3.3 SwivelView 180˚p.278Figure 84: Picture-in-Picture Plus with SwivelView 180˚ enabledp.2788.3.4 SwivelView 270˚p.282Figure 85: Picture-in-Picture Plus with SwivelView 270˚ enabledp.2828.4 Limitationsp.2868.4.1 SwivelView 0˚ and 180˚p.2868.4.2 SwivelView 90˚ and 270˚p.2869 Hardware Abstraction Layerp.2879.1 Introductionp.2879.2 API for the HAL Libraryp.287Table 91: HAL Library APIp.2879.2.1 Startup Routinesp.2889.2.2 Memory Accessp.2909.2.3 Register Accessp.2919.2.4 Clock Supportp.2939.2.5 Miscellaneousp.29410 Sample Codep.29611 Sales and Technical Supportp.297S1D13708 Register Summary X39A-R-001-01p.29913708CFG Configuration Programp.303Table of Contentsp.30513708CFGp.307S1D13708 Supported Evaluation Platformsp.307Installationp.307Usagep.30713708CFG Configuration Tabsp.308General Tabp.308Preferences Tabp.310Clocks Tabp.311Panel Tabp.316Panel Power Tabp.320Registers Tabp.32113708CFG Menusp.322Open...p.322Savep.323Save As...p.323Configure Multiplep.323Exportp.325Enable Tooltipsp.326ERD on the Webp.326About 13708CFGp.326Commentsp.32613708PLAY Diagnostic Utilityp.32713708PLAYp.329S1D13708 Supported Evaluation Platformsp.329Installationp.330Usagep.330Commandsp.33113708PLAY Examplep.337Script Filesp.33813708BMP Demonstration Programp.33913708BMPp.341S1D13708 Supported Evaluation Platformsp.341Installationp.341Usagep.34213708BMP Examplesp.342Commentsp.342Wind River WindML v2.0 Display Driversp.343Wind River WindML v2.0 DISPLAY DRIVERSp.345Building a WindML v2.0 Display Driverp.3461. Create a working directory and unzip the WindML display driver into it.p.3462. Configure for the target execution model.p.3463. Build a boot ROM image.p.3464. Create a bootable disk (in drive A:).p.3465. If necessary, generate a new mode0.h configuration file.p.3466. Build the WindML v2.0 library.p.3477. Open the S1D13708 workspace.p.3478. Add support for single line comments.p.347a. In the Tornado “Workspace Views” window, click on the “Builds” tab.p.347b. Expand the “8bpp Builds” (or “16bpp Builds”) view by clicking on the “+” next to it. The expan...p.347c. Select the “C/C++ compiler” tab to display the command switches used in the build. Remove the ...p.3479. Compile the VxWorks image.p.34710. Copy the VxWorks file to the diskette.p.34711. Start the VxWorks demo.p.347Linux Console Driverp.349Linux Console Driverp.351Building the Console Driver for Linux Kernel 2.2.xp.3521. Acquire the Linux kernel source code.p.3522. Unzip the console driver files.p.3523. Copy the console driver files to the build directory.p.3524. Modify s1d13708.hp.3535. Configure the video options.p.3536. Compile and install the kernel.p.3537. Boot to the Linux operating system.p.354Building the Console Driver for Linux Kernel 2.4.xp.3551. Acquire the Linux kernel source code.p.3552. Unzip the console driver files.p.3553. Copy the console driver files to the build directory. Make the directory /usr/src/linux/driver...p.3554. Modify s1d13708.hp.3565. Configure the video options.p.3566. Compile and install the kernelp.3577. Boot to the Linux operating systemp.357QNX Photon v2.0 Display Driverp.359QNX Photon v2.0 Display Driverp.361Building the Photon v2.0 Display Driverp.362Unpack the Graphics Driver Development Kit Archivep.362Configure the Driverp.362Build the Driverp.362Installing the Driverp.363Run the Driverp.363Commentsp.364Windows® CE 3.x Display Driversp.365WINDOWS® CE 3.0 DISPLAY DRIVERp.367Example Driver Buildsp.368Installation for CEPC Environmentp.372Configurationp.373Compile Switchesp.373Mode Filep.374Resource Management Issuesp.375Commentsp.378Power Consumptionp.3791 S1D13708 Power Consumptionp.3811.1 Conditionsp.382Table 11: S1D13708 Power Consumptionp.3822 Summaryp.383Interfacing to the NEC VR4102 / VR4111 Microprocessorsp.385Table of Contentsp.387List of Tablesp.389List of Figuresp.3891 Introductionp.3912 Interfacing to the NEC VR4102/VR4111p.3922.1 The NEC VR41XX System Busp.3922.1.1 Overviewp.3922.1.2 LCD Memory Access Cyclesp.393Figure 21: NEC VR4102/VR4111 Read/Write Cyclesp.3933 S1D13708 Host Bus Interfacep.3943.1 Host Bus Interface Pin Mappingp.394Table 31: Host Bus Interface Pin Mappingp.3943.2 Host Bus Interface Signalsp.3954 VR4102/VR4111 to S1D13708 Interfacep.3964.1 Hardware Descriptionp.396Figure 41: Typical Implementation of VR4102/VR4111 to S1D13708 Interfacep.3964.2 S1D13708 Hardware Configurationp.397Table 41: Summary of Power-On/Reset Configuration Optionsp.397Table 42: CLKI to BCLK Divide Selectionp.3974.3 NEC VR4102/VR4111 Configurationp.3985 Softwarep.3996 Referencesp.4006.1 Documentsp.4006.2 Document Sourcesp.4007 Technical Supportp.4017.1 Epson LCD Controllers (S1D13708)p.4017.2 NEC Electronics Inc.p.401Interfacing to the NEC VR4181A™ Microprocessorp.403Table of Contentsp.405List of Tablesp.407List of Figuresp.4071 Introductionp.4092 Interfacing to the NEC VR4181Ap.4102.1 The NEC VR4181A System Busp.4102.1.1 Overviewp.4102.1.2 LCD Memory Access Signalsp.4113 S1D13708 Host Bus Interfacep.4123.1 Host Bus Interface Pin Mappingp.412Table 31: Host Bus Interface Pin Mappingp.4123.2 Host Bus Interface Signalsp.4134 VR4181A to S1D13708 Interfacep.4144.1 Hardware Descriptionp.414Figure 41: Typical Implementation of VR4181A to S1D13708 Interfacep.4144.2 S1D13708 Hardware Configurationp.415Table 41: Summary of Power-On/Reset Configuration Optionsp.415Table 42: CLKI to BCLK Divide Selectionp.4154.3 NEC VR4181A Configurationp.4165 Softwarep.4176 Referencesp.4186.1 Documentsp.4186.2 Document Sourcesp.4187 Technical Supportp.4197.1 Epson LCD Controllers (S1D13708)p.4197.2 NEC Electronics Inc.p.419Interfacing to the Motorola MPC821 Microprocessorp.421Document Number: X39A-G-009-01p.421Table of Contentsp.423List of Tablesp.425List of Figuresp.4251 Introductionp.4272 Interfacing to the MPC821p.4282.1 The MPC8XX System Busp.4282.2 MPC8XX Bus Overviewp.4282.2.1 Normal (Non-Burst) Bus Transactionsp.429Figure 21: Power PC Memory Read Cyclep.429Figure 22: Power PC Memory Write Cyclep.4302.2.2 Burst Cyclesp.4302.3 Memory Controller Modulep.4312.3.1 General-Purpose Chip Select Module (GPCM)p.431Figure 23: GPCM Memory Devices Timingp.4322.3.2 User-Programmable Machine (UPM)p.4323 S1D13708 Host Bus Interfacep.4333.1 Host Bus Interface Pin Mappingp.433Table 31: Host Bus Interface Pin Mappingp.4333.2 Host Bus Interface Signalsp.4344 MPC821 to S1D13708 Interfacep.4354.1 Hardware Descriptionp.435Figure 41: Typical Implementation of MPC821 to S1D13708 Interfacep.4354.2 MPC821ADS Evaluation Board Hardware Connectionsp.436Table 41: List of Connections from MPC821ADS to S1D13708 p.4364.3 S1D13708 Hardware Configurationp.438Table 42: Summary of Power-On/Reset Configuration Optionsp.438Table 43: CLKI to BCLK Divide Selectionp.4384.4 Register/Memory Mappingp.4384.5 MPC821 Chip Select Configurationp.4394.6 Test Softwarep.4405 Softwarep.4416 Referencesp.4426.1 Documentsp.4426.2 Document Sourcesp.4427 Technical Supportp.4437.1 EPSON LCD/CRT Controllers (S1D13708)p.4437.2 Motorola MPC821 Processorp.443Interfacing to the Motorola MCF5307 "ColdFire" Microprocessorp.445Table of Contentsp.447List of Tablesp.449List of Figuresp.4491 Introductionp.4512 Interfacing to the MCF5307p.4522.1 The MCF5307 System Busp.4522.1.1 Overviewp.4522.1.2 Normal (Non-Burst) Bus Transactionsp.452Figure 21: MCF5307 Memory Read Cyclep.453Figure 22: MCF5307 Memory Write Cyclep.4532.1.3 Burst Cyclesp.4532.2 Chip-Select Modulep.454Figure 23: Chip Select Module Outputs Timingp.4543 S1D13708 Host Bus Interfacep.4553.1 Host Bus Interface Pin Mappingp.455Table 31: Host Bus Interface Pin Mappingp.4553.2 Host Bus Interface Signalsp.4564 MCF5307 To S1D13708 Interfacep.4574.1 Hardware Descriptionp.457Figure 41: Typical Implementation of MCF5307 to S1D13708 Interfacep.4574.2 S1D13708 Hardware Configurationp.458Table 41: Summary of Power-On/Reset Configuration Optionsp.458Table 42: CLKI to BCLK Divide Selectionp.4584.3 Register/Memory Mappingp.4594.4 MCF5307 Chip Select Configurationp.4595 Softwarep.4606 Referencesp.4616.1 Documentsp.4616.2 Document Sourcesp.4617 Technical Supportp.4627.1 EPSON LCD Controllers (S1D13708)p.4627.2 Motorola MCF5307 Processorp.462Connecting to the Sharp HR-TFT Panelsp.463Table of Contentsp.465List of Tablesp.467List of Figuresp.4671 Introductionp.4692 Connecting to the Sharp LQ039Q2DS01 HR-TFTp.4702.1 External Power Suppliesp.4702.1.1 Gray Scale Voltages for Gamma Correctionp.470Figure 21: Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generationp.4702.1.2 Digital/Analog Power Suppliesp.4712.1.3 DC Gate Driver Power Suppliesp.471Figure 22: Panel Gate Driver DC Power Suppliesp.4712.1.4 AC Gate Driver Power Suppliesp.472Figure 23: Panel Gate Driver AC Power Suppliesp.4722.2 HR-TFT MOD Signalp.473Figure 24: HR-TFT Power-On/Off Sequence Timingp.473Table 21: HR-TFT Power-On/Off Sequence Timingp.4732.3 S1D13708 to LQ039Q2DS01 Pin Mappingp.474Table 22: S1D13708 to LQ039Q2DS01 Pin Mappingp.4743 Connecting to the Sharp LQ031B1DDxx HR-TFTp.4763.1 External Power Suppliesp.4763.1.1 Gray Scale Voltages for Gamma Correctionp.476Figure 31: Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generationp.4763.1.2 Digital/Analog Power Suppliesp.4773.1.3 DC Gate Driver Power Suppliesp.4773.1.4 AC Gate Driver Power Suppliesp.4773.2 HR-TFT MOD Signalp.4773.3 S1D13708 to LQ031B1DDxx Pin Mappingp.478Table 31: S1D13708 to LQ031B1DDxx Pin Mappingp.4784 Test Softwarep.4805 Referencesp.4815.1 Documentsp.4815.2 Document Sourcesp.4816 Technical Supportp.4826.1 EPSON LCD Controllers (S1D13708)p.4826.2 Sharp HR-TFT Panelp.482Interfacing to the Motorola RedCap2p.483Table of Contentsp.485List of Tablesp.487List of Figuresp.4871 Introductionp.4892 Interfacing to the REDCAP2p.4902.1 The REDCAP2 System Busp.4902.2 Overviewp.4902.3 Bus Transactionsp.490Figure 21: REDCAP2 Memory Read Cyclep.491Figure 22: REDCAP2 Memory Write Cyclep.4913 S1D13708 Host Bus Interfacep.4923.1 Host Bus Interface Pin Mappingp.492Table 31: Host Bus Interface Pin Mappingp.4923.2 Host Bus Interface Signalsp.4934 REDCAP2 to S1D13708 Interfacep.4944.1 Hardware Descriptionp.494Figure 41: Typical Implementation of REDCAP2 to S1D13708 Interfacep.4944.2 Hardware Connectionsp.495Table 41: List of Connections for REDCAP2 ADMp.4954.3 S1D13708 Hardware Configurationp.497Table 42: Summary of Power-On/Reset Optionsp.4974.4 Register/Memory Mappingp.4974.5 REDCAP2 Chip Select Configurationp.4985 Softwarep.4996 Referencesp.5006.1 Documentsp.5006.2 Document Sourcesp.5007 Technical Supportp.5017.1 EPSON LCD/CRT Controllers (S1D13708)p.5017.2 Motorola REDCAP2 Processorp.501Interfacing to 8-bit Processorsp.503Table of Contentsp.505List of Tablesp.507List of Figuresp.5071 Introductionp.5092 Interfacing to an 8-bit Processorp.5102.1 The Generic 8-bit Processor System Busp.5103 S1D13708 Host Bus Interfacep.5113.1 Host Bus Interface Pin Mappingp.511Table 31: Host Bus Interface Pin Mappingp.5113.2 Host Bus Interface Signalsp.5124 8-Bit Processor to S1D13708 Interfacep.5134.1 Hardware Connectionsp.513Figure 41: Typical Implementation of 8-bit Processor to S1D13708 Interfacep.5134.2 S1D13708 Hardware Configurationp.514Table 41: Summary of Power-On/Reset Configuration Optionsp.514Table 42: CLKI to BCLK Divide Selectionp.5144.3 Register/Memory Mappingp.5145 Softwarep.5156 Referencesp.5166.1 Documentsp.5166.2 Document Sourcesp.5167 Technical Supportp.5177.1 EPSON LCD Controllers (S1D13708)p.517Interfacing to the Motorola MC68VZ328 Dragonball Microprocessorp.519Document Number: X39A-G-016-01p.519Table of Contentsp.521List of Tablesp.523List of Figuresp.5231 Introductionp.5252 Interfacing to the MC68VZ328p.5262.1 The MC68VZ328 System Busp.5262.2 Chip-Select Modulep.5263 S1D13708 Host Bus Interfacep.5273.1 Host Bus Interface Pin Mappingp.527Table 31: Host Bus Interface Pin Mappingp.5273.2 Host Bus Interface Signalsp.5284 MC68VZ328 to S1D13708 Interfacep.5294.1 Hardware Descriptionp.529Figure 41: Typical Implementation of MC68VZ328 to S1D13708 Interfacep.5294.2 S1D13708 Hardware Configurationp.530Table 41: Summary of Power-On/Reset Configuration Optionsp.530Table 42: CLKI to BCLK Divide Selectionp.5304.2.1 Register/Memory Mappingp.5314.2.2 MC68VZ328 Chip Select and Pin Configurationp.531Table 43: WS Bit Programmingp.5315 Softwarep.5326 Referencesp.5336.1 Documentsp.5336.2 Document Sourcesp.5337 Technical Supportp.5347.1 EPSON LCD/CRT Controllers (S1D13708)p.5347.2 Motorola MC68VZ328 Processorp.534Interfacing to the Intel StrongARM SA-1110 Microprocessorp.535Document Number: X39A-G-019-01p.535Table of Contentsp.537List of Tablesp.539List of Figuresp.5391 Introductionp.5412 Interfacing to the StrongARM SA-1110 Busp.5422.1 The StrongARM SA-1110 System Busp.5422.1.1 StrongARM SA-1110 Overviewp.5422.1.2 Variable-Latency IO Access Overviewp.5422.1.3 Variable-Latency IO Access Cyclesp.543Figure 21: SA-1110 Variable-Latency IO Read Cyclep.543Figure 22: SA-1110 Variable-Latency IO Write Cyclep.5443 S1D13708 Host Bus Interfacep.5453.1 Host Bus Interface Pin Mappingp.545Table 31: Host Bus Interface Pin Mappingp.5453.2 Host Bus Interface Signal Descriptionsp.5464 StrongARM SA-1110 to S1D13708 Interfacep.5474.1 Hardware Descriptionp.547Figure 41: Typical Implementation of SA-1110 to S1D13708 Interfacep.5474.2 S1D13708 Hardware Configurationp.548Table 41: Summary of Power-On/Reset Configuration Optionsp.548Table 42: CLKI to BCLK Divide Selectionp.5484.3 StrongARM SA-1110 Register Configurationp.549Table 43: RDFx Parameter Value versus CPU Maximum Frequencyp.5494.4 Register/Memory Mappingp.5505 Softwarep.5516 Referencesp.5526.1 Documentsp.5526.2 Document Sourcesp.5527 Technical Supportp.5537.1 EPSON LCD Controllers (S1D13708)p.5537.2 Intel StrongARM SA-1110 Processorp.553Connecting to a Micro-Controller via the Indirect Interfacep.555Table of Contentsp.557List of Tablesp.559List of Figuresp.5591 Introductionp.5612 Interfacing to a Micro-Controllerp.5622.1 The Indirect Interfacep.5623 S1D13708 Host Bus Interfacep.5633.1 Indirect Mode Bus Interface Pin Mappingp.563Table 31: Mode 68 8-Bit Data Host Bus Interface Pin Mappingp.563Table 32: Mode 68 16-Bit Data Host Bus Interface Pin Mappingp.564Table 33: Mode 80 8-Bit Data Host Bus Interface Pin Mappingp.564Table 34: Mode 80 16-Bit Data Host Bus Interface Pin Mappingp.5653.2 Host Bus Interface Signalsp.5664 Micro-Controller to S1D13708 Interfacep.5674.1 Hardware Connectionsp.567Figure 41: Typical Implementation of Micro-Controller to S1D13708 Interfacep.5674.2 S1D13708 Hardware Configurationp.568Table 41: Summary of Power-On/Reset Configuration Optionsp.568Table 42: CLKI to BCLK Divide Selectionp.5684.3 Register/Memory Mappingp.5695 Softwarep.5706 Referencesp.5726.1 Documentsp.5726.2 Document Sourcesp.5727 Technical Supportp.5737.1 EPSON LCD Controllers (S1D13708)p.573
Page 300 of the Epson LCD Controller (S1D13708) user manual — Table of contents
Page 300 · click to enlarge
Page 300

Table of contents

S1D13708 TECHNICAL MANUALp.1COMPREHENSIVE SUPPORT TOOLSp.3Documentationp.3Evaluation/Demonstration Boardp.3Application Engineering Supportp.3Application Engineering Supportp.3S1D13708 Embedded Memory LCD Controller July 2001p.5FEATURESp.5System Block Diagramp.5DESCRIPTIONp.6Memory Interfacep.6CPU Interfacep.6Display Supportp.6Power Down Modesp.6Display Modesp.6Clock Sourcep.6Operating Voltagep.6Packagep.6Hardware Functional Specificationp.7Table of Contentsp.9List of Tablesp.13List of Figuresp.171 Introductionp.211.1 Scopep.211.2 Overview Descriptionp.212 Featuresp.222.1 Integrated Frame Bufferp.222.2 CPU Interfacep.222.3 Display Supportp.222.4 Display Modesp.232.5 Display Featuresp.232.6 Clock Sourcep.232.7 Operating Voltagep.242.8 Miscellaneousp.243 Typical System Implementation Diagramsp.25Figure 31 Typical System Diagram (Generic #1 Bus)p.25Figure 32 Typical System Diagram (Generic #2 Bus)p.25Figure 33 Typical System Diagram (Hitachi SH-4 Bus)p.26Figure 34 Typical System Diagram (Hitachi SH-3 Bus)p.27Figure 35 Typical System Diagram (MC68K # 1, Motorola 16-Bit 68000)p.28Figure 36 Typical System Diagram (MC68K #2, Motorola 32-Bit 68030)p.29Figure 37 Typical System Diagram (Motorola REDCAP2 Bus)p.30Figure 38 Typical System Diagram (Motorola MC68EZ328/MC68VZ328 “DragonBall” Bus)p.31Figure 39 Typical System Diagram (Indirect Interface, Mode 68)p.31Figure 310 Typical System Diagram (Indirect Interface, Mode 80)p.324 Pinsp.334.1 Pinout Diagram - PFBGA - 120pinp.33Figure 41 Pinout Diagram - PFBGA 120-pinp.33Table 41: PFBGA 120-pin Mappingp.334.2 Pinout Diagram - Die Formp.34Table 42: S1D13708 Pad Layoutp.344.3 Pin Descriptionsp.354.3.1 Host Interfacep.35Table 43: Host Interface Pin Descriptionsp.354.3.2 LCD Interfacep.40Table 44: LCD Interface Pin Descriptionsp.404.3.3 Clock Inputp.43Table 45: Clock Input Pin Descriptionsp.434.3.4 Miscellaneousp.43Table 46: Miscellaneous Pin Descriptionsp.434.3.5 Power And Groundp.43Table 47: Power And Ground Pin Descriptionsp.434.4 Summary of Configuration Optionsp.44Table 48: Summary of Power-On/Reset Optionsp.444.5 Host Bus Interface Pin Mappingp.45Table 49: Host Bus Interface Pin Mappingp.454.6 LCD Interface Pin Mappingp.46Table 410: LCD Interface Pin Mappingp.465 D.C. Characteristicsp.47Table 51: Absolute Maximum Ratings (Preliminary - Subject to Change)p.47Table 52: Recommended Operating Conditionsp.47Table 53: Electrical Characteristics for VDD = 3.3V typicalp.476 A.C. Characteristicsp.486.1 Clock Timingp.486.1.1 Input Clocksp.48Figure 61 Clock Input Requirementsp.48Table 61: Clock Input Requirements for CLKI when CLKI to BCLK divide > 1p.48Table 62: Clock Input Requirements for CLKI when CLKI to BCLK divide = 1p.49Table 63: Clock Input Requirements for CLKI2p.496.1.2 Internal Clocksp.49Table 64: Internal Clock Requirementsp.496.2 CPU Interface Timingp.506.2.1 Generic #1 Interface Timingp.50Figure 62 Generic #1 Interface Timingp.50Table 65: Generic #1 Interface Timingp.516.2.2 Generic #2 Interface Timingp.52Figure 63 Generic #2 Interface Timingp.52Table 66: Generic #2 Interface Timingp.536.2.3 Hitachi SH-4 Interface Timingp.54Figure 64 Hitachi SH-4 Interface Timingp.54Table 67: Hitachi SH-4 Interface Timingp.556.2.4 Hitachi SH-3 Interface Timingp.56Figure 65 Hitachi SH-3 Interface Timingp.56Table 68: Hitachi SH-3 Interface Timingp.576.2.5 Motorola MC68K #1 Interface Timing (e.g. MC68000)p.58Figure 66 Motorola MC68K #1 Interface Timingp.58Table 69: Motorola MC68K #1 Interface Timingp.596.2.6 Motorola MC68K #2 Interface Timing (e.g. MC68030)p.60Figure 67 Motorola MC68K #2 Interface Timingp.60Table 610: Motorola MC68K #2 Interface Timingp.616.2.7 Motorola REDCAP2 Interface Timingp.62Figure 68 Motorola REDCAP2 Interface Timingp.62Table 611: Motorola REDCAP2 Interface Timingp.636.2.8 Motorola DragonBall Interface Timing with DTACK (e.g. MC68EZ328/MC68VZ328)p.64Figure 69 Motorola DragonBall Interface with DTACK Timingp.64Table 612: Motorola DragonBall Interface with DTACK Timingp.656.2.9 Motorola DragonBall Interface Timing w/o DTACK (e.g. MC68EZ328/MC68VZ328)p.66Figure 610 Motorola DragonBall Interface without DTACK# Timingp.66Table 613: Motorola DragonBall Interface without DTACK Timingp.676.2.10 Indirect Interface Timing (Mode 68)p.68Figure 611 Indirect Interface Timing (Mode 68)p.68Table 614: Indirect Interface Timing (Mode 68)p.696.2.11 Indirect Interface Timing (Mode 80)p.70Figure 612 Indirect Interface Timing (Mode 80)p.70Table 615: Indirect Interface Timing (Mode 80)p.716.3 LCD Power Sequencingp.726.3.1 Passive/TFT Power-On Sequencep.72Figure 613 Passive/TFT Power-On Sequence Timingp.72Table 616: Passive/TFT Power-On Sequence Timingp.726.3.2 Passive/TFT Power-Off Sequencep.73Figure 614 Passive/TFT Power-Off Sequence Timingp.73Table 617: Passive/TFT Power-Off Sequence Timingp.736.4 Display Interfacep.74Figure 615 Panel Timing Parametersp.74Table 618: Panel Timing Parameter Definition and Register Summaryp.756.4.1 Generic STN Panel Timingp.76Figure 616 Generic STN Panel Timingp.766.4.2 Single Monochrome 4-Bit Panel Timingp.78Figure 617 Single Monochrome 4-Bit Panel Timingp.78Figure 618 Single Monochrome 4-Bit Panel A.C. Timingp.79Table 619: Single Monochrome 4-Bit Panel A.C. Timingp.796.4.3 Single Monochrome 8-Bit Panel Timingp.80Figure 619 Single Monochrome 8-Bit Panel Timingp.80Figure 620 Single Monochrome 8-Bit Panel A.C. Timingp.81Table 620: Single Monochrome 8-Bit Panel A.C. Timingp.816.4.4 Single Color 4-Bit Panel Timingp.82Figure 621 Single Color 4-Bit Panel Timingp.82Figure 622 Single Color 4-Bit Panel A.C. Timingp.83Table 621: Single Color 4-Bit Panel A.C. Timingp.836.4.5 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 623 Single Color 8-Bit Panel Timing (Format 1)p.84Figure 624 Single Color 8-Bit Panel A.C. Timing (Format 1)p.85Table 622: Single Color 8-Bit Panel A.C. Timing (Format 1)p.856.4.6 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 625 Single Color 8-Bit Panel Timing (Format 2)p.86Figure 626 Single Color 8-Bit Panel A.C. Timing (Format 2)p.87Table 623: Single Color 8-Bit Panel A.C. Timing (Format 2)p.876.4.7 Single Color 16-Bit Panel Timingp.88Figure 627 Single Color 16-Bit Panel Timingp.88Figure 628 Single Color 16-Bit Panel A.C. Timingp.89Table 624: Single Color 16-Bit Panel A.C. Timingp.896.4.8 Generic TFT Panel Timingp.90Figure 629 Generic TFT Panel Timingp.906.4.9 9/12/18-Bit TFT Panel Timingp.91Figure 630 18-Bit TFT Panel Timingp.91Figure 631 TFT A.C. Timingp.92Table 625: TFT A.C. Timingp.936.4.10 160x160 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ031B1DDxx)p.94Figure 632 160x160 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.94Table 626: 160x160 Sharp ‘Direct’ HR-TFT Horizontal Timingp.95Figure 633 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.96Table 627: 160x160 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.976.4.11 320x240 Sharp ‘Direct’ HR-TFT Panel Timing (e.g. LQ039Q2DS01)p.98Figure 634 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.98Table 628: 320x240 Sharp ‘Direct’ HR-TFT Panel Horizontal Timingp.99Figure 635 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.99Table 629: 320x240 Sharp ‘Direct’ HR-TFT Panel Vertical Timingp.996.4.12 160x240 Epson D-TFD Panel Timing (e.g. LF26SCR)p.100Figure 636 160x240 Epson D-TFD Panel Horizontal Timingp.100Table 630: 160x240 Epson D-TFD Panel Horizontal Timingp.101Figure 637 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Table 631: 160x240 Epson D-TFD Panel GCP Horizontal Timingp.102Figure 638 160x240 Epson D-TFD Panel Vertical Timingp.103Table 632: 160x240 Epson D-TFD Panel Vertical Timingp.1036.4.13 320x240 Epson D-TFD Panel Timing (e.g. LF37SQR)p.104Figure 639 320x240 Epson D-TFD Panel Horizontal Timingp.104Table 633: 320x240 Epson D-TFD Panel Horizontal Timingp.105Figure 640 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Table 634: 320x240 Epson D-TFD Panel GCP Horizontal Timingp.106Figure 641 320x240 Epson D-TFD Panel Vertical Timingp.107Table 635: 320x240 Epson D-TFD Panel Vertical Timingp.1076.4.14 TFT Type 2 Panel Timingp.108Figure 642 TFT Type 2 Horizontal Timingp.108Table 636: TFT Type 2 Horizontal Timingp.109Figure 643 TFT Type 2 Vertical Timingp.110Table 637: TFT Type 2 Vertical Timingp.1106.4.15 TFT Type 3 Panel Timingp.111Figure 644 TFT Type 3 Horizontal Timingp.111Table 638: TFT Type 3 Horizontal Timingp.112Figure 645 TFT Type 3 Vertical Timingp.113Table 639: TFT Type 3 Vertical Timingp.1146.4.16 TFT Type 4 Panel Timingp.115Figure 646 TFT Type 4 Panel Timingp.115Figure 647 TFT Type 4 A.C. Timingp.116Table 640: TFT Type 4 A.C. Timingp.1177 Clocksp.1187.1 Clock Descriptionsp.1187.1.1 BCLKp.118Table 71: BCLK Clock Selectionp.1187.1.2 MCLKp.118Table 72: MCLK Clock Selectionp.1197.1.3 PCLKp.119Table 73: PCLK Clock Selection p.119Table 74: Relationship between MCLK and PCLKp.1217.1.4 PWMCLKp.121Table 75: PWMCLK Clock Selectionp.1217.2 Clock Selectionp.122Figure 71 Clock Selectionp.1227.3 Clocks versus Functionsp.123Table 76: S1D13708 Internal Clock Requirementsp.1238 Registersp.1248.1 Register Mappingp.1248.2 Register Setp.125Table 81: S1D13708 Register Setp.1258.3 Register Descriptionsp.1278.3.1 Read-Only Configuration Registersp.1278.3.2 Clock Configuration Registersp.128Table 82: MCLK Divide Selectionp.128Table 83: PCLK Divide Selectionp.128Table 84: PCLK Source Selectionp.1298.3.3 Look-Up Table Registersp.1298.3.4 Panel Configuration Registersp.132Table 85: Panel Data Width Selectionp.132Table 86: HRTFT/D-TFD Panel Resolution Selectionp.132Table 87: LCD Panel Type Selectionp.1338.3.5 Display Mode Registersp.139Table 88: Inverse Video Mode Select Optionsp.140Table 89: LCD Bit-per-pixel Selectionp.141Figure 81 Display Data Byte/Word Swapp.142Table 810: SwivelViewTM Mode Select Optionsp.1428.3.6 Picture-in-Picture Plus Registersp.144Table 811: 32-bit Address Increments for Color Depthp.145Table 812: 32-bit Address Increments for Color Depthp.146Table 813: 32-bit Address Increments for Color Depthp.147Table 814: 32-bit Address Increments for Color Depthp.1488.3.7 Miscellaneous Registersp.1498.3.8 General IO Pins Registersp.1518.3.9 Pulse Width Modulation (PWM) Clock and Contrast Voltage (CV) Pulse Configuration Registersp.156Figure 82 PWM Clock/CV Pulse Block Diagramp.156Table 815: PWM Clock Controlp.156Table 816: CV Pulse Controlp.157Table 817: PWM Clock Divide Select Optionsp.158Table 818: CV Pulse Divide Select Optionsp.158Table 819: PWMOUT Duty Cycle Select Optionsp.1598.3.10 Extended Registersp.160Table 820: Extended Panel Type Selectionp.161Table 821: VCLK Holdp.165Table 822: VCLK Setupp.165Table 823: AP Pulse Widthp.166Table 824: AP Rising Positionp.166Table 825: GPO2 PCLK2 Divide Ratep.170Table 826: GPO1 PCLK1 Divide Ratep.170Table 827: Number of Source Driver ICsp.1769 Frame Rate Calculationp.17710 Display Data Formatsp.178Figure 101 4/8/16 Bit-Per-Pixel Display Data Memory Organizationp.17811 Look-Up Table Architecturep.17911.1 Monochrome Modesp.1791 Bit-per-pixel Monochrome Modep.179Figure 111 1 Bit-per-pixel Monochrome Mode Data Output Pathp.1792 Bit-per-pixel Monochrome Modep.179Figure 112 2 Bit-per-pixel Monochrome Mode Data Output Pathp.1794 Bit-per-pixel Monochrome Modep.180Figure 113 4 Bit-per-pixel Monochrome Mode Data Output Pathp.1808 Bit-per-pixel Monochrome Modep.180Figure 114 8 Bit-per-pixel Monochrome Mode Data Output Pathp.18016 Bit-Per-Pixel Monochrome Modep.18111.2 Color Modesp.1811 Bit-Per-Pixel Colorp.181Figure 115 1 Bit-Per-Pixel Color Mode Data Output Pathp.1812 Bit-Per-Pixel Colorp.182Figure 116 2 Bit-Per-Pixel Color Mode Data Output Pathp.1824 Bit-Per-Pixel Colorp.183Figure 117 4 Bit-Per-Pixel Color Mode Data Output Pathp.1838 Bit-per-pixel Color Modep.184Figure 118 8 Bit-per-pixel Color Mode Data Output Pathp.18416 Bit-Per-Pixel Color Modep.18412 SwivelView™p.18512.1 Conceptp.18512.2 90˚ SwivelView™p.185Figure 121 Relationship Between The Screen Image and the Image Refreshed in 90° SwivelView.p.18512.2.1 Register Programmingp.18612.3 180˚ SwivelView™p.187Figure 122 Relationship Between The Screen Image and the Image Refreshed in 180° SwivelView.p.18712.3.1 Register Programmingp.18712.4 270˚ SwivelView™p.188Figure 123 Relationship Between The Screen Image and the Image Refreshed in 270° SwivelView.p.18812.4.1 Register Programmingp.18913 Picture-in-Picture Plus (PIP+)p.19013.1 Conceptp.190Figure 131 Picture-in-Picture Plus with SwivelView disabledp.19013.2 With SwivelView Enabledp.19113.2.1 SwivelView 90˚p.191Figure 132 Picture-in-Picture Plus with SwivelView 90˚ enabledp.19113.2.2 SwivelView 180˚p.191Figure 133 Picture-in-Picture Plus with SwivelView 180˚ enabledp.19113.2.3 SwivelView 270˚p.192Figure 134 Picture-in-Picture Plus with SwivelView 270˚ enabledp.19214 Ink Layerp.19314.1 Memory Mappingp.193Figure 141 Memory Mapping for Ink Layerp.19314.2 Controlling the Ink Layerp.193Figure 142 Transparent Color Examplep.19414.3 Limitationsp.19415 Indirect Interfacep.19515.1 Mode 68p.196Figure 151 Sample timing of “register write” with Mode 68p.196Figure 152 Sample timing of “register read” with Mode 68p.197Figure 153 Sample timing of “memory write” with Mode 68, Big Endianp.198Figure 154 Sample timing of “memory read” with Mode 68, Big Endianp.200Figure 155 Sample timing of “register write” for Mode 68 when Memory Access Select Enabledp.202Figure 156 Sample timing of “register read” for Mode 68 when Memory Access Select Enabledp.20415.2 Mode 80p.206Figure 157 Sample timing of “register write” with Mode 80p.206Figure 158 Sample timing of “register read” with Mode 80p.208Figure 159 Sample timing of “memory write” with mode 80, little endianp.209Figure 1510 Sample timing of “memory read” with mode 80, Little endianp.211Figure 1511 Sample timing of “memory write” for Mode 80 when Memory Access Select Enabledp.213Figure 1512 Sample timing of “memory read” for Mode 80 when Memory Access Select Enabledp.21515.3 Limitationsp.21616 Embedded Crystal Oscillatorp.21716.1 Oscillator Circuitp.217Figure 161 Recommended Crystal Oscillator Circuitp.21717 Big-Endian Bus Interfacep.21817.1 Byte Swapping Bus Datap.21817.1.1 16 Bpp Color Depthp.219Figure 171 Byte-swapping for 16 Bppp.21917.1.2 1/2/4/8 Bpp Color Depthp.220Figure 172 Byte-swapping for 1/2/4/8 Bppp.22018 Power Save Modep.221Table 181: Power Save Mode Function Summaryp.22119 Mechanical Datap.222Figure 191 Mechanical Data PFBGA 120-pin Packagep.22220 Referencesp.22321 Technical Supportp.224S1D13708 Embedded Memory LCD Controllerp.225Table of Contentsp.227List of Tablesp.229List of Figuresp.2311 Introductionp.2332 Identifying the S1D13708p.2343 Initializationp.2354 Memory Modelsp.2364.1 Memory Organization for One Bit-per-pixel (2 Colors/Gray Shades)p.236Figure 41: Pixel Storage for 1 Bpp in One Byte of Display Bufferp.2364.2 Memory Organization for Two Bit-per-pixel (4 Colors/Gray Shades)p.236Figure 42: Pixel Storage for 2 Bpp in One Byte of Display Bufferp.2364.3 Memory Organization for Four Bit-per-pixel (16 Colors/Gray Shades)p.237Figure 43: Pixel Storage for 4 Bpp in One Byte of Display Bufferp.2374.4 Memory Organization for 8 Bpp (256 Colors/64 Gray Shades)p.237Figure 44: Pixel Storage for 8 Bpp in One Byte of Display Bufferp.2374.5 Memory Organization for 16 Bpp (65536 Colors/64 Gray Shades)p.238Figure 45: Pixel Storage for 16 Bpp in Two Bytes of Display Bufferp.2385 Look-Up Table (LUT)p.2395.1 Registersp.2395.1.1 Look-Up Table Registersp.2395.2 Look-Up Table Organizationp.242Table 51: Look-Up Table Configurationsp.2425.2.1 Gray Shade Modesp.243Table 52: Suggested LUT Values for 1 Bpp Gray Shadep.243Table 53: Suggested LUT Values for 4 Bpp Gray Shadep.243Table 54: Suggested LUT Values for 4 Bpp Gray Shadep.244Table 55: Suggested LUT Values for 8 Bpp Gray Shadep.2455.2.2 Color Modesp.247Table 56: Suggested LUT Values for 1 bpp Colorp.247Table 57: Suggested LUT Values for 2 bpp Colorp.247Table 58: Suggested LUT Values for 4 bpp Colorp.248Table 59: Suggested LUT Values for 8 bpp Colorp.2496 Power Save Modep.2516.1 Overviewp.2516.2 Registersp.2526.2.1 Power Save Mode Enablep.2526.2.2 Memory Controller Power Save Statusp.2526.3 LCD Power Sequencingp.2536.4 Enabling Power Save Modep.2546.5 Disabling Power Save Modep.2547 SwivelView‘p.2557.1 SwivelView Registersp.255Table 71: SwivelViewTM Mode Select Optionsp.2557.2 Examplesp.2577.3 Limitationsp.2617.3.1 SwivelView 0˚ and 180˚p.2617.3.2 SwivelView 90˚ and 270˚p.2618 Picture-In-Picture Plusp.2628.1 Conceptp.262Figure 81: Picture-in-Picture Plus with SwivelView disabledp.2628.2 Registersp.262Table 81: 32-bit Address Increments for Color Depthp.265Table 82: 32-bit Address Increments for Color Depthp.267Table 83: 32-bit Address Increments for Color Depthp.269Table 84: 32-bit Address Increments for Color Depthp.2708.3 Picture-In-Picture-Plus Examplesp.2728.3.1 SwivelView 0˚ (Landscape Mode)p.272Figure 82: Picture-in-Picture Plus with SwivelView disabledp.2728.3.2 SwivelView 90˚p.275Figure 83: Picture-in-Picture Plus with SwivelView 90˚ enabledp.2758.3.3 SwivelView 180˚p.278Figure 84: Picture-in-Picture Plus with SwivelView 180˚ enabledp.2788.3.4 SwivelView 270˚p.282Figure 85: Picture-in-Picture Plus with SwivelView 270˚ enabledp.2828.4 Limitationsp.2868.4.1 SwivelView 0˚ and 180˚p.2868.4.2 SwivelView 90˚ and 270˚p.2869 Hardware Abstraction Layerp.2879.1 Introductionp.2879.2 API for the HAL Libraryp.287Table 91: HAL Library APIp.2879.2.1 Startup Routinesp.2889.2.2 Memory Accessp.2909.2.3 Register Accessp.2919.2.4 Clock Supportp.2939.2.5 Miscellaneousp.29410 Sample Codep.29611 Sales and Technical Supportp.297S1D13708 Register Summary X39A-R-001-01p.29913708CFG Configuration Programp.303Table of Contentsp.30513708CFGp.307S1D13708 Supported Evaluation Platformsp.307Installationp.307Usagep.30713708CFG Configuration Tabsp.308General Tabp.308Preferences Tabp.310Clocks Tabp.311Panel Tabp.316Panel Power Tabp.320Registers Tabp.32113708CFG Menusp.322Open...p.322Savep.323Save As...p.323Configure Multiplep.323Exportp.325Enable Tooltipsp.326ERD on the Webp.326About 13708CFGp.326Commentsp.32613708PLAY Diagnostic Utilityp.32713708PLAYp.329S1D13708 Supported Evaluation Platformsp.329Installationp.330Usagep.330Commandsp.33113708PLAY Examplep.337Script Filesp.33813708BMP Demonstration Programp.33913708BMPp.341S1D13708 Supported Evaluation Platformsp.341Installationp.341Usagep.34213708BMP Examplesp.342Commentsp.342Wind River WindML v2.0 Display Driversp.343Wind River WindML v2.0 DISPLAY DRIVERSp.345Building a WindML v2.0 Display Driverp.3461. Create a working directory and unzip the WindML display driver into it.p.3462. Configure for the target execution model.p.3463. Build a boot ROM image.p.3464. Create a bootable disk (in drive A:).p.3465. If necessary, generate a new mode0.h configuration file.p.3466. Build the WindML v2.0 library.p.3477. Open the S1D13708 workspace.p.3478. Add support for single line comments.p.347a. In the Tornado “Workspace Views” window, click on the “Builds” tab.p.347b. Expand the “8bpp Builds” (or “16bpp Builds”) view by clicking on the “+” next to it. The expan...p.347c. Select the “C/C++ compiler” tab to display the command switches used in the build. Remove the ...p.3479. Compile the VxWorks image.p.34710. Copy the VxWorks file to the diskette.p.34711. Start the VxWorks demo.p.347Linux Console Driverp.349Linux Console Driverp.351Building the Console Driver for Linux Kernel 2.2.xp.3521. Acquire the Linux kernel source code.p.3522. Unzip the console driver files.p.3523. Copy the console driver files to the build directory.p.3524. Modify s1d13708.hp.3535. Configure the video options.p.3536. Compile and install the kernel.p.3537. Boot to the Linux operating system.p.354Building the Console Driver for Linux Kernel 2.4.xp.3551. Acquire the Linux kernel source code.p.3552. Unzip the console driver files.p.3553. Copy the console driver files to the build directory. Make the directory /usr/src/linux/driver...p.3554. Modify s1d13708.hp.3565. Configure the video options.p.3566. Compile and install the kernelp.3577. Boot to the Linux operating systemp.357QNX Photon v2.0 Display Driverp.359QNX Photon v2.0 Display Driverp.361Building the Photon v2.0 Display Driverp.362Unpack the Graphics Driver Development Kit Archivep.362Configure the Driverp.362Build the Driverp.362Installing the Driverp.363Run the Driverp.363Commentsp.364Windows® CE 3.x Display Driversp.365WINDOWS® CE 3.0 DISPLAY DRIVERp.367Example Driver Buildsp.368Installation for CEPC Environmentp.372Configurationp.373Compile Switchesp.373Mode Filep.374Resource Management Issuesp.375Commentsp.378Power Consumptionp.3791 S1D13708 Power Consumptionp.3811.1 Conditionsp.382Table 11: S1D13708 Power Consumptionp.3822 Summaryp.383Interfacing to the NEC VR4102 / VR4111 Microprocessorsp.385Table of Contentsp.387List of Tablesp.389List of Figuresp.3891 Introductionp.3912 Interfacing to the NEC VR4102/VR4111p.3922.1 The NEC VR41XX System Busp.3922.1.1 Overviewp.3922.1.2 LCD Memory Access Cyclesp.393Figure 21: NEC VR4102/VR4111 Read/Write Cyclesp.3933 S1D13708 Host Bus Interfacep.3943.1 Host Bus Interface Pin Mappingp.394Table 31: Host Bus Interface Pin Mappingp.3943.2 Host Bus Interface Signalsp.3954 VR4102/VR4111 to S1D13708 Interfacep.3964.1 Hardware Descriptionp.396Figure 41: Typical Implementation of VR4102/VR4111 to S1D13708 Interfacep.3964.2 S1D13708 Hardware Configurationp.397Table 41: Summary of Power-On/Reset Configuration Optionsp.397Table 42: CLKI to BCLK Divide Selectionp.3974.3 NEC VR4102/VR4111 Configurationp.3985 Softwarep.3996 Referencesp.4006.1 Documentsp.4006.2 Document Sourcesp.4007 Technical Supportp.4017.1 Epson LCD Controllers (S1D13708)p.4017.2 NEC Electronics Inc.p.401Interfacing to the NEC VR4181A™ Microprocessorp.403Table of Contentsp.405List of Tablesp.407List of Figuresp.4071 Introductionp.4092 Interfacing to the NEC VR4181Ap.4102.1 The NEC VR4181A System Busp.4102.1.1 Overviewp.4102.1.2 LCD Memory Access Signalsp.4113 S1D13708 Host Bus Interfacep.4123.1 Host Bus Interface Pin Mappingp.412Table 31: Host Bus Interface Pin Mappingp.4123.2 Host Bus Interface Signalsp.4134 VR4181A to S1D13708 Interfacep.4144.1 Hardware Descriptionp.414Figure 41: Typical Implementation of VR4181A to S1D13708 Interfacep.4144.2 S1D13708 Hardware Configurationp.415Table 41: Summary of Power-On/Reset Configuration Optionsp.415Table 42: CLKI to BCLK Divide Selectionp.4154.3 NEC VR4181A Configurationp.4165 Softwarep.4176 Referencesp.4186.1 Documentsp.4186.2 Document Sourcesp.4187 Technical Supportp.4197.1 Epson LCD Controllers (S1D13708)p.4197.2 NEC Electronics Inc.p.419Interfacing to the Motorola MPC821 Microprocessorp.421Document Number: X39A-G-009-01p.421Table of Contentsp.423List of Tablesp.425List of Figuresp.4251 Introductionp.4272 Interfacing to the MPC821p.4282.1 The MPC8XX System Busp.4282.2 MPC8XX Bus Overviewp.4282.2.1 Normal (Non-Burst) Bus Transactionsp.429Figure 21: Power PC Memory Read Cyclep.429Figure 22: Power PC Memory Write Cyclep.4302.2.2 Burst Cyclesp.4302.3 Memory Controller Modulep.4312.3.1 General-Purpose Chip Select Module (GPCM)p.431Figure 23: GPCM Memory Devices Timingp.4322.3.2 User-Programmable Machine (UPM)p.4323 S1D13708 Host Bus Interfacep.4333.1 Host Bus Interface Pin Mappingp.433Table 31: Host Bus Interface Pin Mappingp.4333.2 Host Bus Interface Signalsp.4344 MPC821 to S1D13708 Interfacep.4354.1 Hardware Descriptionp.435Figure 41: Typical Implementation of MPC821 to S1D13708 Interfacep.4354.2 MPC821ADS Evaluation Board Hardware Connectionsp.436Table 41: List of Connections from MPC821ADS to S1D13708 p.4364.3 S1D13708 Hardware Configurationp.438Table 42: Summary of Power-On/Reset Configuration Optionsp.438Table 43: CLKI to BCLK Divide Selectionp.4384.4 Register/Memory Mappingp.4384.5 MPC821 Chip Select Configurationp.4394.6 Test Softwarep.4405 Softwarep.4416 Referencesp.4426.1 Documentsp.4426.2 Document Sourcesp.4427 Technical Supportp.4437.1 EPSON LCD/CRT Controllers (S1D13708)p.4437.2 Motorola MPC821 Processorp.443Interfacing to the Motorola MCF5307 "ColdFire" Microprocessorp.445Table of Contentsp.447List of Tablesp.449List of Figuresp.4491 Introductionp.4512 Interfacing to the MCF5307p.4522.1 The MCF5307 System Busp.4522.1.1 Overviewp.4522.1.2 Normal (Non-Burst) Bus Transactionsp.452Figure 21: MCF5307 Memory Read Cyclep.453Figure 22: MCF5307 Memory Write Cyclep.4532.1.3 Burst Cyclesp.4532.2 Chip-Select Modulep.454Figure 23: Chip Select Module Outputs Timingp.4543 S1D13708 Host Bus Interfacep.4553.1 Host Bus Interface Pin Mappingp.455Table 31: Host Bus Interface Pin Mappingp.4553.2 Host Bus Interface Signalsp.4564 MCF5307 To S1D13708 Interfacep.4574.1 Hardware Descriptionp.457Figure 41: Typical Implementation of MCF5307 to S1D13708 Interfacep.4574.2 S1D13708 Hardware Configurationp.458Table 41: Summary of Power-On/Reset Configuration Optionsp.458Table 42: CLKI to BCLK Divide Selectionp.4584.3 Register/Memory Mappingp.4594.4 MCF5307 Chip Select Configurationp.4595 Softwarep.4606 Referencesp.4616.1 Documentsp.4616.2 Document Sourcesp.4617 Technical Supportp.4627.1 EPSON LCD Controllers (S1D13708)p.4627.2 Motorola MCF5307 Processorp.462Connecting to the Sharp HR-TFT Panelsp.463Table of Contentsp.465List of Tablesp.467List of Figuresp.4671 Introductionp.4692 Connecting to the Sharp LQ039Q2DS01 HR-TFTp.4702.1 External Power Suppliesp.4702.1.1 Gray Scale Voltages for Gamma Correctionp.470Figure 21: Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generationp.4702.1.2 Digital/Analog Power Suppliesp.4712.1.3 DC Gate Driver Power Suppliesp.471Figure 22: Panel Gate Driver DC Power Suppliesp.4712.1.4 AC Gate Driver Power Suppliesp.472Figure 23: Panel Gate Driver AC Power Suppliesp.4722.2 HR-TFT MOD Signalp.473Figure 24: HR-TFT Power-On/Off Sequence Timingp.473Table 21: HR-TFT Power-On/Off Sequence Timingp.4732.3 S1D13708 to LQ039Q2DS01 Pin Mappingp.474Table 22: S1D13708 to LQ039Q2DS01 Pin Mappingp.4743 Connecting to the Sharp LQ031B1DDxx HR-TFTp.4763.1 External Power Suppliesp.4763.1.1 Gray Scale Voltages for Gamma Correctionp.476Figure 31: Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generationp.4763.1.2 Digital/Analog Power Suppliesp.4773.1.3 DC Gate Driver Power Suppliesp.4773.1.4 AC Gate Driver Power Suppliesp.4773.2 HR-TFT MOD Signalp.4773.3 S1D13708 to LQ031B1DDxx Pin Mappingp.478Table 31: S1D13708 to LQ031B1DDxx Pin Mappingp.4784 Test Softwarep.4805 Referencesp.4815.1 Documentsp.4815.2 Document Sourcesp.4816 Technical Supportp.4826.1 EPSON LCD Controllers (S1D13708)p.4826.2 Sharp HR-TFT Panelp.482Interfacing to the Motorola RedCap2p.483Table of Contentsp.485List of Tablesp.487List of Figuresp.4871 Introductionp.4892 Interfacing to the REDCAP2p.4902.1 The REDCAP2 System Busp.4902.2 Overviewp.4902.3 Bus Transactionsp.490Figure 21: REDCAP2 Memory Read Cyclep.491Figure 22: REDCAP2 Memory Write Cyclep.4913 S1D13708 Host Bus Interfacep.4923.1 Host Bus Interface Pin Mappingp.492Table 31: Host Bus Interface Pin Mappingp.4923.2 Host Bus Interface Signalsp.4934 REDCAP2 to S1D13708 Interfacep.4944.1 Hardware Descriptionp.494Figure 41: Typical Implementation of REDCAP2 to S1D13708 Interfacep.4944.2 Hardware Connectionsp.495Table 41: List of Connections for REDCAP2 ADMp.4954.3 S1D13708 Hardware Configurationp.497Table 42: Summary of Power-On/Reset Optionsp.4974.4 Register/Memory Mappingp.4974.5 REDCAP2 Chip Select Configurationp.4985 Softwarep.4996 Referencesp.5006.1 Documentsp.5006.2 Document Sourcesp.5007 Technical Supportp.5017.1 EPSON LCD/CRT Controllers (S1D13708)p.5017.2 Motorola REDCAP2 Processorp.501Interfacing to 8-bit Processorsp.503Table of Contentsp.505List of Tablesp.507List of Figuresp.5071 Introductionp.5092 Interfacing to an 8-bit Processorp.5102.1 The Generic 8-bit Processor System Busp.5103 S1D13708 Host Bus Interfacep.5113.1 Host Bus Interface Pin Mappingp.511Table 31: Host Bus Interface Pin Mappingp.5113.2 Host Bus Interface Signalsp.5124 8-Bit Processor to S1D13708 Interfacep.5134.1 Hardware Connectionsp.513Figure 41: Typical Implementation of 8-bit Processor to S1D13708 Interfacep.5134.2 S1D13708 Hardware Configurationp.514Table 41: Summary of Power-On/Reset Configuration Optionsp.514Table 42: CLKI to BCLK Divide Selectionp.5144.3 Register/Memory Mappingp.5145 Softwarep.5156 Referencesp.5166.1 Documentsp.5166.2 Document Sourcesp.5167 Technical Supportp.5177.1 EPSON LCD Controllers (S1D13708)p.517Interfacing to the Motorola MC68VZ328 Dragonball Microprocessorp.519Document Number: X39A-G-016-01p.519Table of Contentsp.521List of Tablesp.523List of Figuresp.5231 Introductionp.5252 Interfacing to the MC68VZ328p.5262.1 The MC68VZ328 System Busp.5262.2 Chip-Select Modulep.5263 S1D13708 Host Bus Interfacep.5273.1 Host Bus Interface Pin Mappingp.527Table 31: Host Bus Interface Pin Mappingp.5273.2 Host Bus Interface Signalsp.5284 MC68VZ328 to S1D13708 Interfacep.5294.1 Hardware Descriptionp.529Figure 41: Typical Implementation of MC68VZ328 to S1D13708 Interfacep.5294.2 S1D13708 Hardware Configurationp.530Table 41: Summary of Power-On/Reset Configuration Optionsp.530Table 42: CLKI to BCLK Divide Selectionp.5304.2.1 Register/Memory Mappingp.5314.2.2 MC68VZ328 Chip Select and Pin Configurationp.531Table 43: WS Bit Programmingp.5315 Softwarep.5326 Referencesp.5336.1 Documentsp.5336.2 Document Sourcesp.5337 Technical Supportp.5347.1 EPSON LCD/CRT Controllers (S1D13708)p.5347.2 Motorola MC68VZ328 Processorp.534Interfacing to the Intel StrongARM SA-1110 Microprocessorp.535Document Number: X39A-G-019-01p.535Table of Contentsp.537List of Tablesp.539List of Figuresp.5391 Introductionp.5412 Interfacing to the StrongARM SA-1110 Busp.5422.1 The StrongARM SA-1110 System Busp.5422.1.1 StrongARM SA-1110 Overviewp.5422.1.2 Variable-Latency IO Access Overviewp.5422.1.3 Variable-Latency IO Access Cyclesp.543Figure 21: SA-1110 Variable-Latency IO Read Cyclep.543Figure 22: SA-1110 Variable-Latency IO Write Cyclep.5443 S1D13708 Host Bus Interfacep.5453.1 Host Bus Interface Pin Mappingp.545Table 31: Host Bus Interface Pin Mappingp.5453.2 Host Bus Interface Signal Descriptionsp.5464 StrongARM SA-1110 to S1D13708 Interfacep.5474.1 Hardware Descriptionp.547Figure 41: Typical Implementation of SA-1110 to S1D13708 Interfacep.5474.2 S1D13708 Hardware Configurationp.548Table 41: Summary of Power-On/Reset Configuration Optionsp.548Table 42: CLKI to BCLK Divide Selectionp.5484.3 StrongARM SA-1110 Register Configurationp.549Table 43: RDFx Parameter Value versus CPU Maximum Frequencyp.5494.4 Register/Memory Mappingp.5505 Softwarep.5516 Referencesp.5526.1 Documentsp.5526.2 Document Sourcesp.5527 Technical Supportp.5537.1 EPSON LCD Controllers (S1D13708)p.5537.2 Intel StrongARM SA-1110 Processorp.553Connecting to a Micro-Controller via the Indirect Interfacep.555Table of Contentsp.557List of Tablesp.559List of Figuresp.5591 Introductionp.5612 Interfacing to a Micro-Controllerp.5622.1 The Indirect Interfacep.5623 S1D13708 Host Bus Interfacep.5633.1 Indirect Mode Bus Interface Pin Mappingp.563Table 31: Mode 68 8-Bit Data Host Bus Interface Pin Mappingp.563Table 32: Mode 68 16-Bit Data Host Bus Interface Pin Mappingp.564Table 33: Mode 80 8-Bit Data Host Bus Interface Pin Mappingp.564Table 34: Mode 80 16-Bit Data Host Bus Interface Pin Mappingp.5653.2 Host Bus Interface Signalsp.5664 Micro-Controller to S1D13708 Interfacep.5674.1 Hardware Connectionsp.567Figure 41: Typical Implementation of Micro-Controller to S1D13708 Interfacep.5674.2 S1D13708 Hardware Configurationp.568Table 41: Summary of Power-On/Reset Configuration Optionsp.568Table 42: CLKI to BCLK Divide Selectionp.5684.3 Register/Memory Mappingp.5695 Softwarep.5706 Referencesp.5726.1 Documentsp.5726.2 Document Sourcesp.5727 Technical Supportp.5737.1 EPSON LCD Controllers (S1D13708)p.573
Page 301 of the Epson LCD Controller (S1D13708) user manual — 00 MCLK
Page 301 · click to enlarge
Page 301

S1D13708 Register Summary X39A-R-001-01

FFh High for 255 out of 256 clock periods

01h High for 1 out of 256 clock periods

02h High for 2 out of 256 clock periods

PWM Clock Divide Select Bits [3:0] PWM Clock Divide Amount

CV Pulse Divide Select Bits [2:0] CV Pulse Divide Amount

PWMOUT Duty Cycle [7:0] PWMOUT Duty Cycle

Ch 4096 Dh-Fh Reserved

0h 1 1h 2 2h 4 3h 8

0h 1 1h 2 2h 4 3h 8

9 REG[B1h] PWM Clock / CV Pulse Configuration Register

10 REG[B1h] PWM Clock / CV Pulse Configuration Register

11 REG[B3h] PWMOUT Duty Cycle Register

Maximum Number of Colors/Shades Max. No. Of

Size Active Panel Data Width Size

000 1 bpp 256K/64 256K/64 2/2 001 2 bpp 256K/64 256K/64 4/4 010 4 bpp 256K/64 256K/64 16/16 011 8 bpp 256K/64 256K/64 256/64 100 16 bpp 64K/64 64K/64 64K/64 101, 110, 111 Reserved n/a n/a n/a

PCLK Divide Select Bits PCLK Source to PCLK Frequency Ratio

00 4-bit 9-bit 01 8-bit 12-bit 10 16-bit 18-bit 11 Reserved Reserved

SwivelViewTM Mode Select Bits SwivelViewTM Orientation

PCLK Source Select Bits PCLK Source

(Dithering On) TFT Panel

REG[10h] Bits[1:0] Panel Type

00 MCLK

01 BCLK

10 CLKI

11 CLKI2

00 STN

01 TFT

10 HR-TFT

11 D-TFD

01 90° 10 180° 11 270°

000 1:1 001 2:1 010 3:1 011 4:1 1XX 8:1

Panel Data Width Bits [1:0] Passive LCD Panel Data Width

3 REG[05h] Pixel Clock Configuration Register

4 REG[05h] Pixel Clock Configuration Register

Select Bits [1:0] Color Depth (bpp)

7 REG[70h] Display Mode Register

8 REG[71h] Special Effects Register

5 REG[10h] Panel Type Register

6 REG[10h] Panel Type Register

Show 9 more labels / short text on this page
Page 3 01/01/25 · 00h Always Low · 7h 128 · Displayed Colors/ · Simultaneously · Shades · 00 Normal · Passive Panel · Bit-per-pixel
Page 302 of the Epson LCD Controller (S1D13708) user manual — S1D13708 Register Summary X39A-R-001-01
Page 302 · click to enlarge
Page 302

S1D13708 Register Summary X39A-R-001-01

Page 4 01/01/25

Page 303 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-B-001-01
Page 303 · click to enlarge
Page 303

S1D13708 Embedded Memory LCD Controller

13708CFG Configuration Program

Document Number: X39A-B-001-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. Microsoft and Windows are registered trademarks of Microsoft Corporation. All other trademarks are the property of their respective owners.

Page 304 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 304 · click to enlarge
Page 304

THIS PAGE LEFT BLANK

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Page 307 of the Epson LCD Controller (S1D13708) user manual — Usage
Page 307 · click to enlarge
Page 307

13708CFG

13708CFG is an interactive Windows® 9x/ME/NT/2000 program that calculates register values for a user-defined S1D13708 configuration. The configuration information can be used to directly alter the operating characteristics of the S1D13708 utilities or any program built with the Hardware Abstraction Layer (HAL) library. Alternatively, the configuration information can be saved in a variety of text file formats for use in other applications.

S1D13708 Supported Evaluation Platforms

13708CFG runs on PC system running Windows 9x/ME/NT/2000 and can modify Win32.exe files and .s9 format files.

Installation

Create a directory for 13708cfg.exe and copy the files 13708cfg.exe and panels.def to that directory. Panels.def contains configuration information for a number of panels and must reside in the same directory as 13708cfg.exe.

Usage

To start 13708CFG from the Windows desktop, double click the program icon.

To start 13708CFG from a Windows command prompt, change to the directory 13708cfg.exe was installed to and type the command 13708cfg.

The basic procedure for using 13708CFG is:

1. Start 13708CFG as described above.
2. Open an existing file to serve as a starting reference point (this step is optional).
3. Modify the configuration. For specific information on editing the configuration, see “13708CFG Configuration Tabs” on page 6.
4. Save the new configuration. The configuration information can be saved in two ways; as an ASCII text file or by modifying the executable image on disk.

Several ASCII text file formats are supported. Most are formatted C header files used to build display drivers or standalone applications.

Utility files based on the Hardware Abstraction Layer (HAL) can be modified directly by 13708CFG.

13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

Page 308 of the Epson LCD Controller (S1D13708) user manual — General Tab
Page 308 · click to enlarge
Page 308

13708CFG Configuration Tabs

13708CFG provides a series of tabs which can be selected at the top of the main window. Each tab allows the configuration of a specific aspect of S1D13708 operation. The following sections describe the purpose and use of each of the tabs.

General Tab

Epson LCD Controller (S1D13708) — General Tab diagram (page 308)
Fig. 95 · General Tab

The General tab contains settings that define the S1D13708 operating environment.

Decode Addresses Selecting one of the listed evaluation platforms changes the values for the “Register address” and “Display buffer address” fields. The values used for each evalu- ation platform are examples of possible implementa- tions as used by the Epson S1D13708 evaluation board. If your hardware implementation differs from the addresses used, select the User-Defined option and enter the correct addresses for “Register address” and “Display buffer address”.

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Show 5 more labels / short text on this page
Decode Addresses · Register Address · Display Buffer Address · Indirect Interface · Clock Chip Support
Page 309 of the Epson LCD Controller (S1D13708) user manual — Note
Page 309 · click to enlarge
Page 309

Note

When “Epson S5U13708B00B” is selected, the register and display buffer addresses are blanked because the evaluation board uses the PCI interface and the decode addresses are determined by the system BIOS during boot-up. When “Epson Evaluation Board” is selected, the register and display buffer addresses are blanked because the evaluation board communicates via the serial port.

Register Address The physical address of the start of register decode space (in hexadecimal).

This field is automatically set according to the Decode Address unless the “User-Defined” decode address is selected.

Display Buffer Address The physical address of the start of display buffer decode space (in hexadecimal).

This field is automatically set according to the Decode Address unless the “User-Defined” decode address is selected.

Indirect Interface This setting selects software support for the S1D13708 Indirect Bus Interface.

Clock Chip Support The S5U13708B00B evaluation board implements a Cypress ICD2061A Clock Synthesizer which can be used to generate CLKI and CLKI2. When this box is checked, GPIO[3:1] are reserved for Clock Synthesizer support. Selecting a HR-TFT panel will disable this feature as the HR-TFT requires GPIO[3:0]. Note that this feature is only available when using the S5U13708B00B.

13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

Page 310 of the Epson LCD Controller (S1D13708) user manual — Preferences Tab
Page 310 · click to enlarge
Page 310

Preferences Tab

Epson LCD Controller (S1D13708) — Preferences Tab diagram (page 310)
Fig. 96 · Preferences Tab

The Preference tab contains settings pertaining to the initial display state. During runtime these settings may be changed.

Panel SwivelView The S1D13708 SwivelView feature is capable of rotating the image displayed 90°, 180°, or 270° in a counter-clockwise direction. This setting determines the initial orientation of the panel.

Panel Invert The S1D13708 can invert the display data going to the LCD panel. The display data is inverted after the Look- Up Table, which means colors are truly inverted.

S/W Invert Enable The Video Invert feature can be controlled by software using REG[70h] bit 4. When this box is checked, the Software Video Invert bit is set to one and video data is inverted. If the box is unchecked, the bit is set to zero and video data remains normal.

H/W Invert Enable The Video Invert feature can be controlled by hardware if the GPIO0 is available. Hardware control is not possible if an HR-TFT or D-TFD panel is used as both panels use GPIO0 as an LCD control signal.

Color Depth Sets the initial color depth on the LCD panel.

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Show 4 more labels / short text on this page
Panel SwivelView · Panel Color Depth · S/W Invert Enable · H/W Invert Enable
Page 311 of the Epson LCD Controller (S1D13708) user manual — Note
Page 311 · click to enlarge
Page 311

Clocks Tab

PCLK Source PCLK Divide

Epson LCD Controller (S1D13708) — Clocks Tab diagram (page 311)
Fig. 97 · Clocks Tab

The Clocks tab simplifies the selection of input clock frequencies and the sources of internal clocking signals. For further information regarding clocking and clock sources, refer to the S1D13708 Hardware Functional Specification, document number X39A-A- 001-xx.

It is the responsibility of the system designer to ensure that the correct clock frequencies are supplied to the S1D13708.

Note

Changing clock values may modify or invalidate Panel settings. Confirm all settings on the Panel tab after modifying any clock settings.

13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

Page 312 of the Epson LCD Controller (S1D13708) user manual — Clocks Tab
Page 312 · click to enlarge
Page 312

The S1D13708 may use one or two clock sources. Two clock sources allow greater flexi- bility in display type and memory speed.

CLKI This setting determines the frequency of CLKI.

Timing Set this value by selecting a preset frequency from the drop down list or entering the desired frequency (MHz) in the edit box.

Actual This field displays the actual value of the CLKI frequency. If “Enable clock chip support” is selected on the General Tab, then this value may differ slightly from the value entered in the timing control.

CLKI2 This setting determines the frequency of CLKI2.

Timing Set this value by selecting a preset frequency from the drop down list or entering the desired frequency (MHz) in the edit box.

Actual This field displays the actual value of the CLKI2 frequency. If “Enable clock chip support” is selected on the General Tab, then this value may differ slightly from the value entered in the timing control.

XTAL These settings select the clock frequency for the Crystal Oscillator Input (XTAL).

Timing This field selects the actual XTAL frequency used by the configuration process.

PCLK These settings select the clock signal source and divisor for the pixel clock (PCLK).

Source Selects the PCLK source. Possible sources include CLKI, CLKI2, BCLK, MCLK or XTAL. Note that BCLK and MCLK may be previously divided from CLKI or CLKI2.

Divide Specifies the divide ratio for the clock source. The divide ratio is applied to the PCLK source to derive PCLK.

Selecting “Auto” for the divisor allows the configu- ration program to calculate the best clock divisor. Unless a very specific clocking is being specified, it is best to leave this setting on “Auto”.

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Page 313 of the Epson LCD Controller (S1D13708) user manual — Clocks Tab
Page 313 · click to enlarge
Page 313

Timing This field shows the actual PCLK used by the configu- ration process.

BCLK These settings select the clock source and divisor for the internal bus interface clock (BCLK).

Source Selects the BCLK source. Possible sources include CLKI and XTAL. Note that XTAL can be selected only when the indirect interface is enabled.

Divide Specifies the divide ratio for the clock source. The divide ratio is applied to the BCLK source to derive BCLK.

Timing This field shows the actual BCLK frequency used by the configuration process.

MCLK These settings select the clock source and input clock divisor for the internal memory clock (MCLK). For the best performance, MCLK should be set as close to the maximum (50 MHz) as possible.

Source The MCLK source is always BCLK.

Divide Specifies the divide ratio for the clock source. The divide ratio is applied to the MCLK source to derive MCLK.

This divide ratio should be left at 1:1 unless the resultant MCLK is greater that 50MHz.

Timing This field shows the actual MCLK frequency used by the configuration process.

13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

Page 314 of the Epson LCD Controller (S1D13708) user manual — Note
Page 314 · click to enlarge
Page 314

PWMCLK These controls configure various PWMCLK settings. The PWMCLK is the internal clock used by the Pulse Width Modulator for output to the panel.

Enable When this box is checked, the PWMCLK circuitry is enabled.

Force High The signal PWMOUT is forced high when this box is checked. When not checked, PWMOUT will be low if PWM is not enabled or will change state according to the configured values when PWM is enabled.

Source Selects the PWMCLK source. Possible sources include CLKI, CLKI2 and XTAL. Note that CLKI2 is available for a PWMCLK source clock if PCLK does not use XTAL. Also note that XTAL is available for a PWMCLK source clock if PCLK does not use CLKI2.

Divide Specifies the divide ratio for the clock source. The divide ratio is applied to the PWMCLK source to derive PWMCLK.

Note

After this divide is applied, PWMCLK is further divided by 256 to achieve the final PWMCLK frequency.

Timing This field shows the actual PWMCLK frequency used by the configuration process.

Duty Cycle Selects the number of cycles that PWMOUT is high out of 256 clock periods.

Contrast Voltage Pulse These controls configure various Contrast Voltage (CV) Pulse settings. The CV Pulse is provided for panels which support the contrast voltage function.

Enable When this box is checked, the CV Pulse circuitry is enabled.

Force High The signal CVOUT is forced high when this box is checked. When not checked, CVOUT will be low if CV is not enabled or will change state according to the configured values when CV is enabled.

Source The CV Pulse uses the same source clock as the PWMCLK.

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Page 315 of the Epson LCD Controller (S1D13708) user manual — Clocks Tab
Page 315 · click to enlarge
Page 315

Divide Specifies the divide ratio for the clock source. The divide ratio is applied to the CVOUT Pulse clock source to derive the CV Pulse clock frequency.

Timing This field shows the actual CV Pulse frequency used by the configuration process.

Burst Length The number of pulses generated in a single CV Pulse burst.

13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

Page 316 of the Epson LCD Controller (S1D13708) user manual — HRTC/FPLINE
Page 316 · click to enlarge
Page 316

Panel Tab

FPLINE FPFRAME

Epson LCD Controller (S1D13708) — FPLINE FPFRAME diagram (page 316)
Fig. 98

HRTC/FPLINE

VRTC/FPFRAME

The S1D13708 supports many panel types. This tab allows configuration of most panel related settings such as dimensions, type and timings.

Panel Type Selects between passive (STN) and active (TFT/D- TFD/HR-TFT) panel types.

Some options may change or become unavailable when the STN/TFT/D-TFD/HR-TFT setting is changed. Reconfirm all settings on this tab after the Panel Type is changed.

Panel Data Width Selects the panel data width. Panel data width is the number of bits of data transferred to the LCD panel on each clock cycle and shouldn’t be confused with color depth which determines the number of displayed colors.

When a passive panel type (STN) is selected, the

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Show 10 more labels / short text on this page
Panel Data Width · Mono/Color Format 2 · Polarity Polarity · Panel Dimensions · Panel Type · Display Total · Frame Rate · Pixel Clock · Predefined Panels · Display Start
Page 317 of the Epson LCD Controller (S1D13708) user manual — Note
Page 317 · click to enlarge
Page 317

available options are 4, 8, and 16 bit. When an active panel type (TFT/D-TFD/HR-TFT) is selected, the available options are 9, 12, and 18 bit.

Mono / Color Selects between a monochrome or color panel.

Format 2 Selects color STN panel format 2. This option only applies to 8-bit color STN panels.

See the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx, for a description of format 1 / format 2 data formats. Most new panels use the format 2 data format.

Polarity Allows selection of the polarity for the FPLINE and FPFRAME pulses.

Note

Selecting the wrong pulse polarity may damage the panel.

FPLINE Polarity Selects the polarity of the FPLINE pulse.

Refer to the panel specification for the correct polarity of the FPLINE pulse.

FPFRAME Polarity Selects the polarity of the FPFRAME pulse.

Refer to the panel specification for the correct polarity of the FPFRAME pulse.

Panel Dimensions These fields specify the panel width and height. A number of common widths and heights are available in the selection boxes. If the width/height of your panel is not listed, enter the actual panel dimensions into the edit field.

For passive panels, manually entered pixel widths must be a minimum of 32 pixels and can be increased by multiples of 16. For TFT panels, manually entered pixel widths must be a minimum of 16 pixels and can be increased by multiples of 8. If a value is entered that does not match these requirements, a notification box appears and 13708CFG rounds up the value to the next allowable width.

Display Total It is recommended that the automatically generated Display Total values be used. However, manual adjustment may be used to improve the quality of the

13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

Page 318 of the Epson LCD Controller (S1D13708) user manual — Panel Tab
Page 318 · click to enlarge
Page 318

displayed image by fine tuning the horizontal and vertical display totals.

The display total equals the display period plus the non- display period. Refer to S1D13708 Hardware Functional Specification, document number X39A-A- 001-xx, for a complete description of the Display Total settings.

Display Start It is recommended that the automatically generated Display Start values be used. However, manual adjustment may be used to improve the quality of the displayed image by fine tuning the horizontal and vertical display start positions.

Refer to S1D13708 Hardware Functional Specifi- cation, document number X39A-A-001-xx, for a complete description of the Display Start settings.

Frame Rate The Frame Rate (in Hz) is calculated and displayed based on the current settings as selected on the various tabs. If the resulting Frame Rate is not acceptable, adjust the settings to change the frame rate.

Panel dimensions are fixed therefore frame rate can only be adjusted by changing either PCLK or display total values.

Pixel Clock Select the desired Pixel Clock (in MHz) from the drop- down list. The range of frequencies displayed is dependent on the PCLK source and divide settings as selected on the Clocks tab.

HRTC/FPLINE (pixels) These settings allow fine tuning of the TFT line pulse parameters. Refer to S1D13708 Hardware Functional Specification, document number X39A-A-001-xx for a complete description of the FPLINE pulse settings.

Start pos Specifies the delay (in pixels) from the start of the horizontal non-display period to the leading edge of the FPLINE pulse.

Pulse Width Specifies the width (in pixels) of the horizontal sync signal (FPLINE).

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Page 319 of the Epson LCD Controller (S1D13708) user manual — Panel Tab
Page 319 · click to enlarge
Page 319

VRTC/FPFRAME (lines) These settings allow fine tuning of the frame pulse parameters. Refer to S1D13708 Hardware Functional Specification, document number X39A-A-001-xx, for a complete description of the FPFRAME pulse settings.

Start pos Specifies the delay (in lines) from the start of the vertical non-display period to the leading edge of the FPFRAME pulse.

Pulse width Specifies the pulse width (in lines) of the vertical sync signal (FPFRAME).

Predefined Panels 13708CFG uses a file (panels.def) which contains predefined settings for a number of LCD panels. If the file panels.def is present in the same directory as 13708cfg.exe, the predefined panels are available in the drop-down list. If a panel is selected from the list, 13708CFG loads the settings contained in the file.

13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

Page 320 of the Epson LCD Controller (S1D13708) user manual — Panel Power Tab
Page 320 · click to enlarge
Page 320

Panel Power Tab

Epson LCD Controller (S1D13708) — Panel Power Tab diagram (page 320)
Fig. 99 · Panel Power Tab

Power Down Time Delay

Power Up Time Delay

The S5U13708B00B evaluation board is designed to use the GPO0 signal to control the LCD bias power. The following settings configure panel power support.

Power Down Time Delay This setting controls the minimum time delay between when the LCD panel is powered-off and when the S1D13708 control signals are turned off. This setting must be configured according to the specification for the panel being used.

This value is used by Epson evaluation software designed for the S5U13708B00B evaluation board.

Power Up Time Delay This setting controls the maximum time delay between when the S1D13708 control signals are turned on and the LCD panel is powered-on. This setting must be configured according to the specification for the panel being used.

This value is used by Epson evaluation software designed for the S5U13708B00B evaluation board.

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Page 321 of the Epson LCD Controller (S1D13708) user manual — Note
Page 321 · click to enlarge
Page 321

Registers Tab

Epson LCD Controller (S1D13708) — Registers Tab diagram (page 321)
Fig. 100 · Registers Tab

The Registers tab allows viewing and direct editing the S1D13708 register values.

Scroll up and down the list to view register values which are determined from the configu- ration settings of the previous tabs. Register settings may be changed by double-clicking on the register in the listing. Manual changes to the registers are not checked for errors, so caution is warranted when directly editing these values. It is strongly recommended that the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx be referred to before making any manual register settings.

Note

Manually entered values may be changed by 13708CFG if further configuration changes are made on other tabs. In this case, the user is notified.

13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

Page 322 of the Epson LCD Controller (S1D13708) user manual — Note
Page 322 · click to enlarge
Page 322

13708CFG Menus

The following sections describe each of the options in the File and Help menus.

Open...

From the Menu Bar, select “File”, then “Open...” to display the Open File Dialog Box.

Epson LCD Controller (S1D13708) — 13708CFG Menus diagram (page 322)
Fig. 101 · 13708CFG Menus

The Open option allows 13708CFG to read the configuration information from programs based on the HAL library. When 13708CFG opens a file it scans the file for an identifi- cation string, and if found, reads the configuration information. This feature may be used to quickly arrive at a starting point for register configuration. The only requirement is that the file being opened must contain a valid S1D13708 HAL library information block.

13708CFG supports a variety of executable file formats. Select the file type(s) 13708CFG should display in the Files of Type drop-down list and then select the filename from the list and click on the Open button.

Note

13708CFG is designed to work with utilities programmed using a given version of the HAL. If the configuration structure contained in the executable file differs from the ver- sion 13708CFG expects the Open will fail and an error message is displayed. This may happen if the version of 13708CFG is substantially older, or newer, than the file being opened.

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Page 323 of the Epson LCD Controller (S1D13708) user manual — Configure Multiple
Page 323 · click to enlarge
Page 323

Save

From the Menu Bar, select “File”, then “Save” to initiate the save action. The Save menu option allows a fast save of the configuration information to a file that was opened with the Open menu option.

Note

This option is only available once a file has been opened.

Save As...

From the Menu Bar, select “File”, then “Save As...” to display the Save As Dialog Box.

Epson LCD Controller (S1D13708) — Note diagram (page 323)
Fig. 102 · Note

“Save as” is very similar to Save except a dialog box is displayed allowing the user to name the file before saving.

Using this technique a tester can configure a number of files differing only in configuration information and name (e.g. BMP60Hz.EXE, BMP72Hz.EXE, BMP75Hz.EXE where only the frame rate changes in each of these files).

Note

When “Save As” is selected then an exact duplicate of the file as opened by the “Open” option is created containing the new configuration information.

Configure Multiple

After determining the desired configuration, “Configure Multiple” allows the information to be saved into one or more executable files built with the HAL library.

13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

Page 324 of the Epson LCD Controller (S1D13708) user manual — Save
Page 324 · click to enlarge
Page 324

From the Menu Bar, select “File”, then “Configure Multiple” to display the Configure Multiple Dialog Box. This dialog box is also displayed when a file(s) is dragged onto the 13708CFG window.

Epson LCD Controller (S1D13708) — Save diagram (page 324)
Fig. 103 · Save

The left pane lists files available for configuration; the right pane lists files that have been selected for configuration. Files can be selected by clicking the “Add” or “Add All” buttons, double clicking any file in the left pane, or by dragging the file(s) from Windows Explorer.

Selecting “Show all files” displays all files in the selected directory, whereas selecting “Show conf. files only” will display only files that can be configured using 13708CFG (i.e. .exe, .elf, .s9, .s19, .idp, .lvb).

Checking “Preserve Physical Addresses” instructs 13708CFG to use the register and display buffer address values the files were previously configured with. Addresses specified in the General Tab are discarded. This is useful when configuring several programs for various hardware platforms at the same time. For example, if configuring PCI and S19 files at the same time for a new panel type, the physical addresses for each are retained. This feature is primarily intended for the test lab where multiple hardware config- urations exist and are being tested.

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Page 325 of the Epson LCD Controller (S1D13708) user manual — Export
Page 325 · click to enlarge
Page 325

Export

After determining the desired configuration, “Export” permits the user to save the register information as a variety of ASCII text file formats. The following is a list and description of the currently supported output formats:

  • a C header file for use in writing HAL library based applications.
  • a C header file which lists each register and the value it should be set to.
  • a C header file for use in developing Window CE display drivers.
  • a C header file for use in developing display drivers for other operating systems such as Linux, QNX, and VxWorks UGL or WindML.
  • a comma delimited text file containing an offset, a value, and a description for each S1D13708 register.
Epson LCD Controller (S1D13708) — Export diagram (page 325)
Fig. 104 · Export

After selecting the file format, click the “Export As..." button to display the file dialog box which allows the user to enter a filename before saving. Clicking the “Preview” button uses Notepad or the web browser to display a copy of the file to be saved.

When the C Header File for S1D13708 WinCE Drivers option is selected as the export type, additional options are available and can be selected by clicking on the Options button. The options dialog appears as:

Epson LCD Controller (S1D13708) — Export diagram (page 325)
Fig. 105 · Export

selects the mode number for use in the header file

selects the type of cursor support enabled in the header file

enables software BitBLT emulation in the header file

13708CFG Configuration Program S1D13708 Issue Date: 01/11/16 X39A-B-001-01

Mode Number · Cursor Support · SW Blit Emulation

Page 326 of the Epson LCD Controller (S1D13708) user manual — Comments
Page 326 · click to enlarge
Page 326

Enable Tooltips

Tooltips provide useful information about many of the items on the configuration tabs. Placing the mouse pointer over nearly any item on any tab generates a popup window containing helpful advice and hints.

To enable/disable tooltips check/uncheck the “Tooltips” option form the “Help” menu.

Note

Tooltips are enabled by default.

ERD on the Web

This “Help” menu item is actually a hotlink to the Epson Research and Development website. Selecting “Help” then “ERD on the Web” starts the default web browser and points it to the ERD product web site.

The latest software, drivers, and documentation for the S1D13708 is available at this website.

About 13708CFG

Selecting the “About 13708CFG” option from the “Help” menu displays the About dialog box for 13708CFG. The about dialog box contains version information and the copyright notice for 13708CFG.

Comments

  • On any tab particular options may be grayed out if selecting them would violate the operational specification of the S1D13708 (i.e. Selecting TFT or STN on the Panel tab enables/disables options specific to the panel type).
  • The file panels.def is a text file containing operational specifications for several supported, and tested, panels. This file can be edited with any text editor.
  • 13708CFG allows manually altering register values. The manual changes may violate memory and LCD timings as specified in the S1D13708 Hardware Functional Specification , document number X39A-A-001-xx. If this is done, unpredictable results may occur. Epson Research and Development, Inc. does not assume liability for any damage done to the display device as a result of configuration errors.

S1D13708 13708CFG Configuration Program X39A-B-001-01 Issue Date: 01/11/16

Page 327 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-B-002-01
Page 327 · click to enlarge
Page 327

S1D13708 Embedded Memory LCD Controller

13708PLAY Diagnostic Utility

Document Number: X39A-B-002-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. Microsoft and Windows are registered trademarks of Microsoft Corporation. All other trademarks are the property of their respective owners.

Page 328 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 328 · click to enlarge
Page 328

THIS PAGE LEFT BLANK

S1D13708 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

Page 329 of the Epson LCD Controller (S1D13708) user manual — S1D13708 Supported Evaluation Platforms
Page 329 · click to enlarge
Page 329

13708PLAY

13708PLAY is a diagnostic utility which allows a user to read/write all the registers and display buffer of the S1D13708. Commands are received from the standard input device, and messages are sent to the standard output device. On Intel platforms the console provides standard input/output. For most embedded systems the serial device provides these functions.

Commands can be entered interactively by a user, or be executed from a script file. Scripting is a powerful feature which allows command sequences to be used repeatedly without re-entry.

S1D13708 Supported Evaluation Platforms

13708PLAY is available as an executable for PCs running Windows® 9x/ME/NT/2000 and as C source code which can be modified and recompiled to allow 13708PLAY to run on other evaluation platforms.

13708PLAY Diagnostic Utility S1D13708 Issue Date: 01/11/16 X39A-B-002-01

Page 330 of the Epson LCD Controller (S1D13708) user manual — Embedded platform
Page 330 · click to enlarge
Page 330

Installation

PC platform

Copy the file 13708play.exe to a directory in the path (e.g. PATH=C:\S1D13708).

Embedded platform

Download the program 13708play to the system.

Usage

PC platform

At the prompt, type:

13708play [/?]

Where:

/? displays copyright and program version information.

Embedded platform

Execute 13708play and at the prompt, type the command line argument /?.

Where:

/? displays copyright and program version information.

S1D13708 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

Page 331 of the Epson LCD Controller (S1D13708) user manual — Note
Page 331 · click to enlarge
Page 331

Commands

The following commands are intended to be used from within the 13708PLAY program. However, simple commands can also be executed from the command line (e.g. 13708PLAY F 0 13FFF 0).

Note

If the host platform is big endian, reading/writing words and dwords to/from the regis- ters and display buffer may result in unexpected values. In this case it will be necessary for the user to manually swap the bytes in order to perform the IO correctly. For further information on little/big endian and the S1D13708 byte/word swapping capabilities, see the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

CLKI freq Sets the frequency of CLKI.

Where:

freq The desired frequency for CLKI (in MHz).

CLKI2 freq Sets the frequency of CLKI2.

Where:

freq The desired frequency for CLKI2 (in MHz).

D[S][8|16|32] [startaddr [endaddr|len]] Displays a memory dump from the specified display buffer address range.

Where:

S Sets the base address to the beginning of system memory. Without the “S” option, the base address is the beginning of display buffer memory. 8|16|32 The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords). If a unit size is not specified, this command uses the unit size from the last Dump command performed. If no previous Dump command has been issued, the unit size defaults to 8-bit. startaddr The starting address to read data from. Specifying a period (.) uses the same starting address as the last Dump command performed. Specifying a startaddr of two periods (..) will back the start address by the size of len. endaddr|len Determines how many units to continue dumping the contents of the display buffer. A number without a prefix represents a physical ending address. If an “L” prefix is used, the number that follows represents len, which is the number of bytes/words/dwords to be dumped. Len is based on the unit size. For example, 'L8' when the unit size is 16-bit would cause the Dump command to dump 8 words from the starting address.

13708PLAY Diagnostic Utility S1D13708 Issue Date: 01/11/16 X39A-B-002-01

Page 332 of the Epson LCD Controller (S1D13708) user manual — Note
Page 332 · click to enlarge
Page 332

F[S][8|16|32] startaddr endaddr|len data1 [data2 data3 ...] Fills a specified address range in the display buffer.

Where:

S Sets the base address to the beginning of system memory. Without the “S” option, the base address is the beginning of display buffer memory. 8|16|32 The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords). If a unit size is not specified, this command uses the unit size from the last Fill command performed. If no previous Fill command has been issued, the unit size defaults to 8-bit. startaddr The starting address to begin filling at. Specifying a period (.) uses the same starting address as the last Fill command performed. endaddr|len Determines how many units to fill the display buffer with. A number without a prefix represents a physical ending address. If a “L” prefix is used, the number that follows represents len, or the number of bytes/words/dwords to be filled. Len is based on the unit size. For example, 'L8' when the unit size is 16-bit would cause the Fill command to fill 8 words from the starting address. data The value(s) used to fill the display buffer. If multiple values are given, the pattern repeats through memory. Values can be combinations of 'text' or numbers. Numbers are assumed to be hexadecimal values unless otherwise specified with the correct suffix (binary = i, octal = o, decimal = t, hexadecimal = h). For example, 101i = 101 binary.

H [lines] Sets the number of lines of data that are displayed at a time. The display is halted after the specified number of lines. Setting the number of lines to 0 disables the halt function and allows the data to continue displaying until all data has been shown.

This command is useful when large blocks of the display buffer or the contents of the LUT are being viewed.

Where:

lines Number of lines that are shown before halting the displayed data (decimal value).

I Initializes the S1D13708 registers with the default register settings as configured by the utility 13708CFG. For further information on 13708CFG, see the 13708CFG User Manual, document number X39A-B-001-xx.

Note

If the “I” command is used before 13708PLAY is configured, an error message is dis- played and no action is taken.

S1D13708 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

Page 333 of the Epson LCD Controller (S1D13708) user manual — Note
Page 333 · click to enlarge
Page 333

L index [red green blue] Reads/writes the red, green, and blue Look-Up Table (LUT) components. If the red, green, and blue components are not specified, the LUT for the given index is read and the RGB values are displayed.

Where:

index Index into the LUT (hex). red Red component of the LUT (hex). green Green component of the LUT (hex). blue Blue component of the LUT (hex).

Note

Only bits 7-2 of each color are used in the LUT. The least significant two bits of the col- ors are discarded. For example, the command L 0 1 2 3 will set each RGB component of LUT index 0 to 0, as the values 1, 2, an 3 use only the least significant bits.

LA Reads and displays all LUT values.

M [bpp] Sets the color depth (bpp). If no color depth is provided, information about the current settings are displayed.

Where:

bpp Color depth to be set (1/2/4/8/16 bpp).

Note

This command reads and attempts to interpret the S1D13708 control registers. If the S1D13708 was not correctly initialized the displayed values may be incorrect.

Q[UIT], EXIT Quits the program.

R[S][8|16|32] [addr1 addr2 addr3 ...] Reads the display buffer at the address locations given.

Where:

S Sets the base address to the beginning of system memory. Without the ‘S’ option, the base address is the beginning of display buffer memory. 8|16|32 The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords). If a unit size is not specified, this command uses the unit size from the last Read command performed. If no previous Read command has been issued, the unit size defaults to 8-bit. addr The address to read data from. Multiple addresses can be given.

13708PLAY Diagnostic Utility S1D13708 Issue Date: 01/11/16 X39A-B-002-01

Page 334 of the Epson LCD Controller (S1D13708) user manual — Commands
Page 334 · click to enlarge
Page 334

RI [8|16] [cycles] For testing the indirect interface ONLY. RI will issue one or more data read cycles from the indirect interface cmd/data cycle.

Where:

8|16 The unit size: 8-bit (bytes), 16-bit (words). If a unit size is not specified, this command uses the unit size from the last Read Indirect command performed. If no previous Read Indirect command has been issued, the unit size defaults to 8-bit. cycles The number of data read cycles. The default is one cycle.

RUN scriptfile This command opens the file scriptfile and executes each line as if it were typed from the command prompt. For more information on scriptfiles, see Section , “Script Files” on page 12.

Where:

scriptfile The file containing 13708PLAY commands.

S[S][8|16|32] startaddr endaddr|len data1 [data2 data3 data4 ...] Search the display buffer for the given data.

Where:

S Sets the base address to the beginning of system memory. Without the “S” option, the base address is the beginning of display buffer memory. 8|16|32 The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords). If a unit size is not specified, this command uses the unit size from the last Search command performed. If no previous Search command has been issued, the unit size defaults to 8-bit. startaddr The starting address to begin the search from. Specifying a period (.) uses the same starting address as the last Search command performed. endaddr|len Determines how many units of the display buffer will be searched through. A number without a prefix represents a physical ending address. If a “L” prefix is used, the number that follows represents len, or the number of bytes/words/dwords to be searched through. Len is based on the unit size. For example, 'L8' when the unit size is 16-bit would cause the Search command to search 8 words from the starting address. data The value(s) to search the display buffer for. Values can be combinations of 'text' or numbers. Numbers are assumed to be hexadecimal values unless otherwise specified with the correct suffix (binary = i, octal = o, decimal = t, hexadecimal = h). For example, 101i = 101 binary.

S1D13708 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

Page 335 of the Epson LCD Controller (S1D13708) user manual — Commands
Page 335 · click to enlarge
Page 335

SHOW Shows a test pattern on the display. The test pattern is based on current register settings and may not display correctly if the registers are not configured properly.

Use this command to display an image during testing. After adjusting a register value, use the show command to view the effect on the display.

W[S][8|16|32] [startaddr [data1 data2 data3 data4 ...]] Writes the given data sequence to the display buffer starting at startaddr location.

Where:

S Sets the base address the beginning of system memory. Without the “S” option, the base address is the beginning of display buffer memory. 8|16|32 The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords). If a unit size is not specified, this command uses the unit size from the last Write command performed. If no previous Write command has been issued, the unit size defaults to 8-bit. startaddr The starting address to write data to. Specifying a period (.) uses the same starting address as the last Write command performed. data Values to write to the display buffer. If no data is given, then this function enters MODIFY mode. This mode prompts the user with the address and it's current data. While in this mode, the user can type any of the following.

- new values (in hex) - ENTER or SPACE - moves to the next memory

location (if data is specified the previous memory location is updated, if no data is specified no change is made) - “-” - moves to the previous memory location - “Q” or “.” - exits MODIFY mode

WI [8|16] data1 [data2 data3 ...] For testing the indirect interface ONLY. WI will write one or more data items to the data portion of the cmd/data cycle.

Where:

8|16 The unit size: 8-bit (bytes), 16-bit (words). If a unit size is not specified, this command uses the unit size from the last Read Indirect command performed. If no previous Read Indirect command has been issued, the unit size defaults to 8-bit. data Values to write to the display buffer.

XA Reads and displays the contents of all the S1D13708 registers.

13708PLAY Diagnostic Utility S1D13708 Issue Date: 01/11/16 X39A-B-002-01

Page 336 of the Epson LCD Controller (S1D13708) user manual — Commands
Page 336 · click to enlarge
Page 336

X[8|16|32] [index [data]] Reads/writes data to the register at index. If no data is specified, the register is read and the contents are displayed.

Where:

8|16|32 The unit size: 8-bit (bytes), 16-bit (words), 32-bit (dwords). If a unit size is not specified, this command uses the unit size from the last X command performed. If no previous X command has been issued, the unit size defaults to 8-bit. index Index into the registers (hex). data The value to be written to the register. Numbers are assumed to be hexadecimal values unless otherwise specified with the correct suffix (binary = i, octal = o, decimal = t, hexadecimal = h). For example, 101i = 101 binary.

XI index This command is for testing the indirect interface ONLY. XI will write index to the command portion of the indirect interface cmd/data cycle. The data portion will NOT be accessed.

Where:

index The command portion of the indirect interface cmd/data cycle. This is effectively the register index (hex).

? Displays the help screen. The help screen contains a summary of all available commands.

S1D13708 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

Page 337 of the Epson LCD Controller (S1D13708) user manual — 13708PLAY Example
Page 337 · click to enlarge
Page 337

13708PLAY Example

1. Configure 13708PLAY using the utility 13708CFG . For further information on 13708CFG, see the 13708CFG User Manual , document number X39A-B-001-xx.
2. Type 13708PLAY to start the program.
3. Type ? for help.
4. Type i to initialize the registers.
5. Type xa to display the contents of the registers.
6. Type x 80 to read register 80h.
7. Type x 80 10 to write 10h to register 80h.
8. Type f 0 ffff aa to fill the first 10000h bytes of the display buffer with AAh.
9. Type d 0 ff to read the first 100h bytes of the display buffer.
10. Type show to display a test pattern.
11. Type m to display current mode information.
12. Type m 2 to set the color depth to 2 bpp.
13. Type show to display a test pattern.
14. Type q to exit the program.

13708PLAY Diagnostic Utility S1D13708 Issue Date: 01/11/16 X39A-B-002-01

Page 338 of the Epson LCD Controller (S1D13708) user manual — 13708PLAY run dumpregs.scr > results
Page 338 · click to enlarge
Page 338

Script Files

13708PLAY can be controlled by a script file. This is useful when:

  • there is no display to monitor command keystroke accuracy.
  • various registers must be quickly changed to view results.

A script file is an ASCII text file with one 13708PLAY command per line. Script files can be executed from within 13708PLAY using the Run command (e.g. = run dumpregs.scr). Alternately, the script file can be executed from the OS command prompt. On a PC platform, a typical script command line might be:

13708PLAY run dumpregs.scr > results

This causes the file dumpregs.scr to be interpreted as commands by 13708PLAY and the results to be redirected to the file results.

Example 1: Create a script file that reads all registers.

; This file initializes the S1D13708 and reads the registers. ; Note: after a semicolon (;), all characters on a line are ignored.

; Initialize the S1D13708 i

; Read all registers xa

S1D13708 13708PLAY Diagnostic Utility X39A-B-002-01 Issue Date: 01/11/16

Page 339 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-B-003-01
Page 339 · click to enlarge
Page 339

S1D13708 Embedded Memory LCD Controller

13708BMP Demonstration Program

Document Number: X39A-B-003-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. Microsoft and Windows are registered trademarks of Microsoft Corporation. All other trademarks are the property of their respective owners.

Page 340 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 340 · click to enlarge
Page 340

THIS PAGE LEFT BLANK

S1D13708 13708BMP Demonstration Program X39A-B-003-01 Issue Date: 01/11/16

Page 341 of the Epson LCD Controller (S1D13708) user manual — Installation
Page 341 · click to enlarge
Page 341

13708BMP

13708BMP is a demonstration utility used to show the S1D13708 display capabilities by rendering bitmap images on the display device. The program displays a bitmap stored in Windows BMP file format and then exits. 13708BMP supports SviwelView™ (90°, 180°, and 270° hardware rotation of the display image).

13708BMP is designed to operate on a personal computer (PC) within a 32-bit environment only (Windows® 9x/NT/ME/2000). Embedded platforms are not supported due to the possible lack of a structured file system.

The 13708BMP demonstration utility must be configured to work with your hardware configuration. The program 13708CFG can be used to configure 13708BMP. For further information on 13708CFG, refer to the 13708CFG Users Manual, document number X39A-B-001-xx.

S1D13708 Supported Evaluation Platforms

13708BMP supports the following S1D13708 evaluation platforms:

  • PC with an Intel 80x86 processor running Windows 9x/NT/ME/2000.

Note

The 13708BMP source code may be modified by the OEM to support other evaluation platforms.

Installation

Copy the file 13708bmp.exe to a directory in the path (e.g. PATH=C:\S1D13708).

13708BMP Demonstration Program S1D13708 Issue Date: 01/11/16 X39A-B-003-01

Page 342 of the Epson LCD Controller (S1D13708) user manual — Comments
Page 342 · click to enlarge
Page 342

Usage

At a command prompt, type:

13708bmp bmpfile [/?]

Where:

bmpfile Specifies filename of the windows format bmp image to be

displayed.

/? Displays the help message.

Note

13708BMP displays the bmpfile image and returns to the prompt.

13708BMP Examples

To display a .bmp image in the main window on an LCD, type the following: 13708bmp bmpfile.bmp

Note

To display a bmpfile using SwivelView, configure 13708bmp.exe for the selected Swiv- elView mode using the configuration program 13708CFG. For further information on 13708CFG, see the 13708CFG User Manual, document number X39A-B-001-xx.

Comments

  • 13708BMP displays only Windows BMP format images.
  • A 24-bit true color bitmap is displayed at a color depth of 16 bit-per-pixel.
  • Only the green component of the image is seen on a monochrome panel.
  • 13708BMP does not perform any image translations. The image to be displayed must be the desired dimensions and color depth.

S1D13708 13708BMP Demonstration Program X39A-B-003-01 Issue Date: 01/11/16

Page 343 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-E-002-01
Page 343 · click to enlarge
Page 343

S1D13708 Embedded Memory LCD Controller

Wind River WindML v2.0 Display

Drivers

Document Number: X39A-E-002-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.

Page 344 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 344 · click to enlarge
Page 344

THIS PAGE LEFT BLANK

S1D13708 Wind River WindML v2.0 Display Drivers X39A-E-002-01 Issue Date: 01/11/14

Page 345 of the Epson LCD Controller (S1D13708) user manual — Note
Page 345 · click to enlarge
Page 345

Wind River WindML v2.0 DISPLAY DRIVERS

The Wind River WindML v2.0 display drivers for the S1D13708 Embedded Memory LCD Controller are intended as “reference” source code for OEMs developing for Wind River’s WindML v2.0. The driver package provides support for both 8 and 16 bit-per-pixel color depths. The source code is written for portability and contains functionality for most features of the S1D13708. Source code modification is required to produces a smaller, more efficient driver for mass production.

The WindML display drivers are designed around a common configuration include file called mode0.h which is generated by the configuration utility 13708CFG. This design allows for easy customization of display type, clocks, decode addresses, rotation, etc. by OEMs. For further information on 13708CFG, see the 13708CFG Configuration Program User Manual, document number X39A-B-001-xx.

Note

The WindML display drivers are provided as “reference” source code only. They are in- tended to provide a basis for OEMs to develop their own drivers for WindML v2.0. These drivers are not backwards compatible with UGL v1.2.

This document and the source code for the WindML display drivers is updated as appro- priate. Please check the Epson Research and Development website at www.erd.epson.com for the latest revisions before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Wind River WindML v2.0 Display Drivers S1D13708 Issue Date: 01/11/14 X39A-E-002-01

Page 346 of the Epson LCD Controller (S1D13708) user manual — mkboot a: bootrom_uncmp
Page 346 · click to enlarge
Page 346

Building a WindML v2.0 Display Driver

The following instructions produce a bootable disk that automatically starts the UGL demo program. These instructions assume that Wind River’s Tornado platform is already installed.

Note

For the example steps where the drive letter is given as “x:”. Substitute “x” with the drive letter that your development environment is on.

1. Create a working directory and unzip the WindML display driver into it.

From a command prompt or GUI interface create a new directory (e.g. x:\13708).

Unzip the file 13708windml.zip to the newly created working directory. The files will be unzipped to the directories “x:\13708\8bpp” and “x:\13708\16bpp”.

2. Configure for the target execution model.

This example build creates a VxWorks image that fits onto and boots from a single floppy diskette. In order for the VxWorks image to fit on the disk certain modifica- tions are required.

Replace the file “x:\Tornado\target\config\pcPentium\config.h” with the file “x:\13708\8bpp\File\config.h” (or “x:\13708\16bpp\File\config.h”). The new config.h file removes networking components and configures the build image for booting from a floppy disk.

Note

Rather than simply replacing the original config.h file, rename it so the file can be kept for reference purposes.

3. Build a boot ROM image.

From the Tornado tool bar, select Build -> Build Boot ROM. Select “pcPentium” as the BSP and “bootrom_uncmp” as the image.

4. Create a bootable disk (in drive A:).

From a command prompt change to the directory “x:\Tornado\host\x86-win32\bin” and run the batch file torvars.bat. Next, change to the directory “x:\Tornado\tar- get\config\pcPentium” and type:

mkboot a: bootrom_uncmp

5. If necessary, generate a new mode0.h configuration file.

The file mode0.h contains the register values required to set the screen resolution, col- or depth (bpp), display type, rotation, etc. The mode0.h file included with the drivers, may not contain applicable values and must be regenerated. The configuration pro- gram 13708CFG can be used to build a new mode0.h file. If building for 8 bpp, place the new mode0.h file in the directory “x:\13708\8bpp\File”. If building for 16 bpp, place the new mode0.h file in “x:\13708\16bpp\File”.

S1D13708 Wind River WindML v2.0 Display Drivers X39A-E-002-01 Issue Date: 01/11/14

Page 347 of the Epson LCD Controller (S1D13708) user manual — make CPU=PENTIUM ugl
Page 347 · click to enlarge
Page 347

Note

Mode0.h should be created using the configuration utility 13708CFG. For more infor- mation on 13708CFG, see the 13708CFG Configuration Program User Manual, docu- ment number X39A-B-001-xx available at www.erd.epson.com

6. Build the WindML v2.0 library.

From a command prompt change to the directory “x:\Tornado\host\x86-win32\bin” and run the batch file torvars.bat. Next, change to the directory “x:\Tornado\tar- get\src\ugl” and type the command:

make CPU=PENTIUM ugl

7. Open the S1D13708 workspace.

From the Tornado tool bar, select File->Open Workspace...->Existing->Browse... and select the file “x:\13708\8bpp\13708.wsp” (or “x:\13708\16bpp\13708.wsp”).

8. Add support for single line comments.

The WindML v2.0 display driver source code uses single line comment notation, “//”, rather than the ANSI conventional comments, “/*...*/”.

To add support for single line comments follow these steps:

a. In the Tornado “Workspace Views” window, click on the “Builds” tab.

b. Expand the “8bpp Builds” (or “16bpp Builds”) view by clicking on the “+” next to it. The expanded view will contain the item “default”. Right-click on “default” and select “Properties...”. A “Properties:” window will appear.

c. Select the “C/C++ compiler” tab to display the command switches used in the build. Remove the “-ansi” switch from the line that contains “-g -mpentium -ansi -nostdinc -DRW_MULTI_THREAD”. (Refer to GNU ToolKit user's guide for details)

9. Compile the VxWorks image.

Select the “Builds” tab in the Tornado “Workspace Views” window.

Right-click on “8bpp files” (or “16bpp files”) and select “Dependencies...”. Click on “OK” to regenerate project file dependencies for “All Project files”.

Right-click on “8bpp files” (or “16bpp files”) and select “ReBuild All(vxWorks)” to build VxWorks.

10. Copy the VxWorks file to the diskette.

From a command prompt or through the Windows interface, copy the file “x:\13708\8bpp\default\vxWorks” (or “x:\13708\16bpp\default\vxWorks”) to the bootable disk created in step 4.

11. Start the VxWorks demo.

Boot the target PC with the VxWorks bootable diskette to run the UGL demo program automatically.

Wind River WindML v2.0 Display Drivers S1D13708 Issue Date: 01/11/14 X39A-E-002-01

Page 348 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 348 · click to enlarge
Page 348

THIS PAGE LEFT BLANK

S1D13708 Wind River WindML v2.0 Display Drivers X39A-E-002-01 Issue Date: 01/11/14

Page 349 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-E-004-01
Page 349 · click to enlarge
Page 349

S1D13708 Embedded Memory LCD Controller

Linux Console Driver

Document Number: X39A-E-004-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation.

Page 350 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 350 · click to enlarge
Page 350

THIS PAGE LEFT BLANK

S1D13708 Linux Console Driver X39A-E-004-01 Issue Date: 01/11/14

Page 351 of the Epson LCD Controller (S1D13708) user manual — Note
Page 351 · click to enlarge
Page 351

Linux Console Driver

The Linux console driver for the S1D13708 Embedded Memory LCD Controller is intended as “reference” source code for OEMs developing for Linux, and supports 4, 8, and 16 bit-per-pixel color depths. The source code is written for portability and contains functionality for most features of the S1D13708. Source code modification is required to provide a smaller driver for mass production.

A Graphical User Interface (GUI) such as Gnome can obtain the frame buffer address from this driver allowing the Linux GUI the ability to update the display.

The console driver is designed around a common configuration include file called s1d13708.h, which is generated by the configuration utility 13708CFG. This design allows for easy customization of display type, clocks, decode addresses, rotation, etc. by OEMs. For further information on 13708CFG, see the 13708CFG Configuration Program User Manual, document number X39A-B-001-xx.

Note

The Linux console driver is provided as “reference” source code only. The driver is in- tended to provide a basis for OEMs to develop their own drivers for Linux.

This document and the source code for the Linux console drivers are updated as appro- priate. Please check the Epson Research and Development website at www.erd.epson.com for the latest revisions or before beginning any development.

We appreciate your comments on our documentation. Please contact us via e-mail at documentation@erd.epson.com.

Linux Console Driver S1D13708 Issue Date: 01/11/14 X39A-E-004-01

Page 352 of the Epson LCD Controller (S1D13708) user manual — Note
Page 352 · click to enlarge
Page 352

Building the Console Driver for Linux Kernel 2.2.x

Follow the steps below to construct a copy of the Linux operating system using the S1D13708 as the console display device. These instructions assume that the GNU devel- opment environment is installed and the user is familiar with GNU and the Linux operating system.

1. Acquire the Linux kernel source code.

You can obtain the Linux kernel source code from your Linux supplier or download the source from: ftp://ftp.kernel.org.

The S1D13708 reference driver requires Linux kernel 2.2.x. The example S1D13708 reference driver available on www.erd.epson.com was built using Red Hat Linux 6.1, kernel version 2.2.17.

For information on building the kernel refer to the readme file at:

ftp://ftp.linuxberg.com/pub/linux/kernel/README

Note

Before continuing with modifications for the S1D13708, you should ensure that you can build and start the Linux operating system.

2. Unzip the console driver files.

Using a zip file utility, unzip the S1D13708 archive to a temporary directory. (e.g. /tmp)

When completed the following files should be located in the temporary directory.

s1d13xxxfb.c s1d13708.h Config.in fbmem.c fbcon-cfb4.c, and Makefile

3. Copy the console driver files to the build directory.

Copy the following files to the directory /usr/src/linux/drivers/video.

/tmp/s1d13xxxfb.c and /tmp/s1d13708.h

Copy the remaining source files into the directory /usr/src/linux/drivers/video replac- ing the files of the same name.

/tmp/Config.in /tmp/fbmem.c /tmp/fbcon-cfb4.c, and /tmp/Makefile

If your kernel version is not 2.2.17, or you want to retain greater control of the build process, use a text editor to cut and paste the sections dealing with the Epson driver in the corresponding files of the same names.

S1D13708 Linux Console Driver X39A-E-004-01 Issue Date: 01/11/14

Page 353 of the Epson LCD Controller (S1D13708) user manual — make menuconfig
Page 353 · click to enlarge
Page 353
4. Modify s1d13708.h

The file s1d13708.h contains the register values required to set the screen resolution, color depth (bpp), display type, active display (LCD), display rotation, etc.

Before building the console driver, refer to the descriptions in the file s1d13708.h for the default settings of the console driver. If the default does not match the configura- tion you are building for then s1d13708.h must be regenerated with the correct infor- mation.

Use the program 13708CFG to generate the required header file. For information on how to use 13708CFG, refer to the 13708CFG Configuration Program User Manual, document number X39A-B-001-xx, available at www.erd.epson.com

After selecting the desired configuration, choose “File->Export” and select the “C Header File for S1D13708 Generic Drivers” option. Save the new configuration as s1d13708.h in the /usr/src/linux/drivers/video, replacing the original configuration file.

5. Configure the video options.

From the command prompt in the directory /usr/src/linux run the command:

make menuconfig

This command will start a text based interface which allows the selection of build time parameters. From the text interface under “Console drivers” options, select:

“Support for frame buffer devices” “Epson LCD/CRT controllers support” “S1D13708 support” “Advanced low level driver options” “xBpp packed pixels support” *

* where x is the color depth being compile for.

If you are using the Epson PCI evaluation board then you must also select:

“Epson PCI Bridge adapter support”

Once you have configured the kernel options, save and exit the configuration utility.

6. Compile and install the kernel.

Build the kernel with the following sequence of commands.

make dep make clean make bzImage /sbin/lilo (if running lilo)

Linux Console Driver S1D13708 Issue Date: 01/11/14 X39A-E-004-01

Page 354 of the Epson LCD Controller (S1D13708) user manual — Note
Page 354 · click to enlarge
Page 354
7. Boot to the Linux operating system.

If you are using lilo (Linux Loader), modify the lilo configuration file as discussed in the kernel build README file. If there were no errors during the build, from the com- mand prompt run:

and reboot your system.

Note

In order to use the S1D13708 console driver with X server, you need to configure the X server to use the FBDEV device. The information on the necessary files and instructions for this process is available on the Internet at www.xfree86.org

S1D13708 Linux Console Driver X39A-E-004-01 Issue Date: 01/11/14

lilo

Page 355 of the Epson LCD Controller (S1D13708) user manual — Note
Page 355 · click to enlarge
Page 355

Building the Console Driver for Linux Kernel 2.4.x

Follow the steps below to construct a copy of the Linux operating system using the S1D13708 as the console display device. These instructions assume that the GNU devel- opment environment is installed and the user is familiar with GNU and the Linux operating system.

1. Acquire the Linux kernel source code.

You can obtain the Linux kernel source code from your Linux supplier or download the source from: ftp://ftp.kernel.org.

The S1D13708 reference driver requires Linux kernel 2.4.x or greater. The example S1D13708 reference driver available on www.erd.epson.com was built using Red Hat Linux 6.1, kernel version 2.4.5.

For information on building the kernel refer to the readme file at:

ftp://ftp.linuxberg.com/pub/linux/kernel/README

Note

Before continuing with modifications for the S1D13708, you should ensure that you can build and start the Linux operating system.

2. Unzip the console driver files.

Using a zip file utility, unzip the S1D13708 archive to a temporary directory. (e.g. /tmp)

When completed the files:

Config.in fbmem.c fbcon-cfb4.c Makefile should be located in the temporary directory (/tmp), and the files:

Makefile s1d13xxxfb.c s1d13708.h should be located in a sub-directory called epson within the temporary directory (/tmp/epson).

3. Copy the console driver files to the build directory. Make the directory /usr/src/linux/drivers/video/epson.

/tmp/epson/s1d13xxxfb.c /tmp/epson/s1d13708.h /tmp/epson/Makefile to the directory /usr/src/linux/drivers/video/epson.

Linux Console Driver S1D13708 Issue Date: 01/11/14 X39A-E-004-01

Copy the files

Page 356 of the Epson LCD Controller (S1D13708) user manual — 4. Modify s1d13708.h
Page 356 · click to enlarge
Page 356

Copy the remaining source files

/tmp/Config.in /tmp/fbmem.c /tmp/fbcon-cfb4.c /tmp/Makefile into the directory /usr/src/linux/drivers/video replacing the files of the same name.

If your kernel version is not 2.4.5 or you want to retain greater control of the build process then use a text editor and cut and paste the sections dealing with the Epson driver in the corresponding files of the same names.

4. Modify s1d13708.h

The file s1d13708.h contains the register values required to set the screen resolution, color depth (bpp), display type, active display (LCD/CRT), display rotation, etc.

Before building the console driver, refer to the descriptions in the file s1d13708.h for the default settings of the console driver. If the default does not match the configura- tion you are building for then s1d13708.h will have to be regenerated with the correct information.

Use the program 13708CFG to generate the required header file. For information on how to use 13708CFG, refer to the 13708CFG Configuration Program User Manual, document number X39A-B-001-xx, available at www.erd.epson.com

After selecting the desired configuration, choose “File->Export” and select the “C Header File for S1D13708 Generic Drivers” option. Save the new configuration as s1d13708.h in the /usr/src/linux/drivers/video, replacing the original configuration file.

5. Configure the video options.

From the command prompt in the directory /usr/src/linux run the command:

This command will start a text based interface which allows the selection of build time parameters. From the options presented select:

“Code maturity level” options

“Prompt for development and/or incomplete drivers” “Console drivers” options

“Support for frame buffer devices (EXPERIMENTAL)”

“EPSON LCD/CRT/TV controller support”

“EPSON S1D13708 Support” “Advanced low-level driver options”

“xbpp packed pixels support” *

* where x is the color depth being compile for.

If you are using the Epson PCI evaluation board then you must also select:

“Epson PCI Bridge adapter support”

Once you have configured the kernel options, save and exit the configuration utility.

S1D13708 Linux Console Driver X39A-E-004-01 Issue Date: 01/11/14

make menuconfig · “Frame-buffer support”

Page 357 of the Epson LCD Controller (S1D13708) user manual — Note
Page 357 · click to enlarge
Page 357
6. Compile and install the kernel

Build the kernel with the following sequence of commands:

make dep make clean make bzImage /sbin/lilo (if running lilo)

7. Boot to the Linux operating system

If you are using lilo (Linux Loader), modify the lilo configuration file as discussed in the kernel build README file. If there were no errors during the build, from the com- mand prompt run:

and reboot your system.

Note

In order to use the S1D13708 console driver with X server, you need to configure the X server to use the FBDEV device. A good place to look for the necessary files and in- structions on this process is on the Internet at www.xfree86.org

Linux Console Driver S1D13708 Issue Date: 01/11/14 X39A-E-004-01

lilo

Page 358 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 358 · click to enlarge
Page 358

THIS PAGE LEFT BLANK

S1D13708 Linux Console Driver X39A-E-004-01 Issue Date: 01/11/14

Page 359 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-E-005-01
Page 359 · click to enlarge
Page 359

S1D13708 Embedded Memory LCD Controller

QNX Photon v2.0 Display Driver

Document Number: X39A-E-005-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws. EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.

Page 360 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 360 · click to enlarge
Page 360

THIS PAGE LEFT BLANK

S1D13708 QNX Photon v2.0 Display Driver X39A-E-005-01 Issue Date: 01/11/14

Page 361 of the Epson LCD Controller (S1D13708) user manual — Note
Page 361 · click to enlarge
Page 361

QNX Photon v2.0 Display Driver

The Photon v2.0 display drivers for the S1D13708 Embedded Memory LCD Controller are intended as “reference” source code for OEMs developing for QNX platforms. The driver package provides support for 8 and 16 bit-per-pixel color depths. The source code is written for portability and contains functionality for most features of the S1D13708. Source code modification is required to provide a smaller driver for mass production.

The current revision of the driver is designed for use with either QNX RTP or QNX4 from the latest product CD (Dec. 99).

The Photon v2.0 display driver is designed around a common configuration include file called S1D13708.h, which is generated by the configuration utility 13708CFG. This design allows for easy customization of display type, clocks, decode addresses, rotation, etc. by OEMs. For further information on 13708CFG, see the 13708CFG Configuration Program User Manual, document number X39A-B-001-xx.

Note

The QNX display drivers are provided as “reference” source code only. They are intend- ed to provide a basis for OEMs to develop their own drivers for QNX Photon v2.0.

This document and the source code for the QNX display drivers are updated as appropriate. Please check the Epson Research and Development website at www.erd.epson.com for the latest revisions before beginning any development.

We appreciate your comments on our documentation. Please contact us via e-mail at documentation@erd.epson.com.

QNX Photon v2.0 Display Driver S1D13708 Issue Date: 01/11/14 X39A-E-005-01

Page 362 of the Epson LCD Controller (S1D13708) user manual — Note
Page 362 · click to enlarge
Page 362

Building the Photon v2.0 Display Driver

The following steps build the Photon v2.0 display driver and integrate it into the QNX operating system. These instructions assume the QNX developer environment is correctly installed and the developer is familiar with building for the QNX operating system.

Unpack the Graphics Driver Development Kit Archive

1. Install the QNX ddk package using the Package Manager utility.

For information about the Drivers Development Kit contact QNX directly.

2. Once the ddk package is installed, copy the directory tree /usr/scr/gddk_v1.0 into the Project directory.
3. Change directory to Project/gddk_1.0/devg.
4. Unpack the display driver files using the commands:

#gunzip S1D13708.tar.gz

#tar –xvf S1D13708.tar

This unpacks the files into the directory Project/gddk_1.0/devg/S1D13708.

Configure the Driver

The files s1d13708_16.h and s1d13708_8.h contain register values required to set the screen resolution, color depth (bpp), display type, rotation, etc. The s1d13708.h file included with the drivers may not contain applicable values and must be regenerated. The configuration program 13708CFG can be used to build new s1d13708_16.h and s1d13708_8.h files.

Note

S1d13708.h should be created using the configuration utility 13708CFG. For more in- formation on 13708CFG, see the 13708CFG Configuration Program User Manual, document number X39A-B-001-xx available at www.erd.epson.com

Build the Driver

The first time the driver is built, the following command ensures that all drivers and required libraries are built. At the root of the Project source tree, type make.

Note

To build drivers for X86 NTO type ‘OSLIST=nto CPULIST=x86 make’.

Further builds do not require all libraries to be re-built. To build only the S1D13708 display driver, change to the directory gddk_1.0/devg/s1d13708 and type make.

S1D13708 QNX Photon v2.0 Display Driver X39A-E-005-01 Issue Date: 01/11/14

Page 363 of the Epson LCD Controller (S1D13708) user manual — Run the Driver
Page 363 · click to enlarge
Page 363

Installing the Driver

The build step produces two library images:

  • lib/disputil/nto/x86/libdisputil.so
  • lib/disputil/nto/x86/libffb.so

For the loader to locate them, the files need to be renamed and copied to the lib directory.

1. Rename libdisputil.so to libdisputil.so.1 and libffb.so to libffb.so.1.
2. Copy the files new files libdisputil.so.1 and libffb.so.1 to the directory /usr/lib.
3. Copy the file devg-S1D13708.so to the /lib/dll directory.

Note

To locate the file devg-S1D13708.so, watch the output of the ‘true’ command during the makefile build.

4. Modify the trap file graphics-modes in the /etc/system/config directory by inserting the following lines at the top of the file.

io-graphics -dldevg-S1D13708.so -g640x480x8 -I0 -d0x0,0x0;#640,480,8 Epson

io-graphics -dldevg-S1D13708.so -g640x480x16 -I0 -d0x0,0x0;#640,480,16 Epson

Run the Driver

It is recommended that the driver be verified before starting QNX with the S1D13708 as the primary display. To verify the driver, type the following command at the root of the Project source tree (gddk_1.0 directory).

util/bench/nto/x86/o/devg-bench -dldevg/S1D13708/nto/x86/dll/devg-S1D13708.so - mW,H,C,F -d0x0,0x0

Where:

W is the configured width of the display H is the configured height of the display C is the color depth in bpp (either 8 or 16) F is the configured frame rate

This command starts the bench utility which will initialize the driver as the secondary display and exercise the drivers main functions. If the display appears satisfactory, restart QNX Photon and the restart will result in the S1D13708 display driver becoming the primary display device.

QNX Photon v2.0 Display Driver S1D13708 Issue Date: 01/11/14 X39A-E-005-01

Page 364 of the Epson LCD Controller (S1D13708) user manual — Comments
Page 364 · click to enlarge
Page 364

Comments

  • To restore the display driver to the default, comment out changes made to the trap file crt.$NODE.

S1D13708 QNX Photon v2.0 Display Driver X39A-E-005-01 Issue Date: 01/11/14

Page 365 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-E-006-01
Page 365 · click to enlarge
Page 365

S1D13708 Embedded Memory LCD Controller

Windows® CE 3.x Display Drivers

Document Number: X39A-E-006-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. Microsoft and Windows are registered trademarks of Microsoft Corporation. All other trademarks are the property of their respective owners.

Page 366 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 366 · click to enlarge
Page 366

THIS PAGE LEFT BLANK

S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

Page 367 of the Epson LCD Controller (S1D13708) user manual — Note
Page 367 · click to enlarge
Page 367

WINDOWS® CE 3.0 DISPLAY DRIVER

Windows CE v3.0 display driver for the S1D13708 Embedded Memory LCD Controller is intended as “reference” source code for OEMs developing for the Microsoft Window CE platform. The driver supports 4, 8 and 16 bit-per-pixel color depths in landscape mode (no rotation), and 8 and 16 bit-per-pixel color depths in SwivelView™ 90 degree, 180 degree and 270 degree modes. The source code is written for portability and contains functionality for most features of the S1D13708. Source code modification is required to provide a smaller driver for mass production.

The Windows CE v3.0 display driver is designed around a common configuration include file called mode0.h, which is generated by the configuration utility 13708CFG. This design allows for easy customization of display type, clocks, decode addresses, rotation, etc. by OEMs. For further information on 13708CFG, see the 13708CFG Configuration Program User Manual, document number X39A-B-001-xx.

Note

The Windows CE display driver is provided as “reference” source code only. They are intended to provide a basis for OEMs to develop their own drivers for Microsoft Win- dows CE v3.0.

This document and the source code for the Windows CE v3.0 driver is updated as appro- priate. Before beginning any development, please check the Epson Research and Devel- opment Website at www.erd.epson.com for the latest revisions.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Windows® CE 3.x Display Drivers S1D13708 Issue Date: 01/11/14 X39A-E-006-01

Page 368 of the Epson LCD Controller (S1D13708) user manual — Example Driver Builds
Page 368 · click to enlarge
Page 368

Example Driver Builds

The following sections describes how to build the Windows CE display driver for Windows CE Platform Builder 3.00 using the GUI interface.

Build for CEPC (X86) on Windows CE Platform Builder 3.00 using the GUI Interface

1. Install Microsoft Windows 2000 Professional, or Windows NT Workstation version 4.0 with Service Pack 5 or later.
2. Install Platform Builder 3.00.
3. Start Platform Builder by double-clicking on the Microsoft Windows CE Platform Builder icon.
4. Create a new project.

a. Select File | New.

b. In the dialog box, select the Platforms tab.

c. In the platforms dialog box, select “WCE Platform”, set a location for the project (such as x:\myproject), set the platform name (such as myplatform), and set the processor to “Win32 (WCE x86)”.

d. Click the OK button.

e. In the dialog box “WCE Platform - Step 1 of 2”, select CEPC.

f. Click the Next button.

g. In the dialog box “WCE Platform - Step 2 of 2”, select Maximum OS (Maxall).

h. Click the Finish button.

i. In the dialog box “New Platform Information”, click the OK button.

5. Set the active configuration to “Win32 (WCE x86) Release”.

a. From the Build menu, select “Set Active Configuration”.

b. Select “MYPLATFORM - Win32 (WCE x86) Release”.

c. Click the OK button.

S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

Page 369 of the Epson LCD Controller (S1D13708) user manual — Example Driver Builds
Page 369 · click to enlarge
Page 369
6. Add the environment variable DDI_S1D13708.

a. From the Platform menu, select “Settings”.

b. Select the “Environment” tab.

c. In the Variable box, type “DDI_S1D13708”.

d. In the Value box, type “1”.

e. Click the Set button.

f. Click the OK button.

7. Create a new directory S1D13708, under x:\wince300\platform\cepc\drivers\display, and copy the S1D13708 driver source code into this new directory.
8. Add the S1D13708 driver component.

a. From the Platform menu, select “Insert | User Component”.

b. Set “Files of type:” to “All Files (*.*)”.

c. Select the file x:\wince300\platform\cepc\drivers\display\S1D13708\sources.

d. Click the OK button.

e. In the “User Component Target File” dialog box, select browse and then select the path and the file name of “sources” as in step c.

f. Click the OK button.

9. Delete the component “ddi_flat”.

a. In the Platform window, select the ComponentView tab.

b. Show the tree for MYPLATFORM components by clicking on the ‘+’ sign at the root of the tree.

c. Right-click on the ddi_flat component.

d. Select “Delete”.

e. From the File menu, select “Save Workspace”.

Windows® CE 3.x Display Drivers S1D13708 Issue Date: 01/11/14 X39A-E-006-01

Page 370 of the Epson LCD Controller (S1D13708) user manual — ENDIF
Page 370 · click to enlarge
Page 370
10. From the Platform window, click the ParameterView Tab. Show the tree for MYPLATFORM Parameters by clicking the ‘+’ sign at the root of the tree. Expand the WINCE300 tree and then click “Hardware Specific Files” and then double click “PLATFORM.BIB”. Edit the file the platform.bib file and make the following two changes:

a. Insert the following text after the line “IF ODO_NODISPLAY !”:

IF CEPC_DDI_S1D13708

ddi.dll $(_FLATRELEASEDIR)\S1D13708.dll NK SH

ENDIF

b. Find the section shown below, and insert the lines as marked:

IF CEPC_DDI_FLAT !

IF DDI_S1D13708! ;Insert this line

IF CEPC_DDI_S3VIRGE !

IF CEPC_DDI_CT655X !

IF CEPC_DDI_VGA8BPP !

IF CEPC_DDI_S3TRIO64 !

IF CEPC_DDI_ATI !

ddi.dll $(_FLATRELEASEDIR)\ddi_flat.dll NK SH

ENDIF

ENDIF

ENDIF

ENDIF

ENDIF

ENDIF ;Insert this line

ENDIF

S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

Page 371 of the Epson LCD Controller (S1D13708) user manual — Example Driver Builds
Page 371 · click to enlarge
Page 371
11. Modify MODE0.H.

The file MODE0.H (located in x:\wince300\platform\cepc\drivers\display\S1D13708) contains the register values required to set the screen resolution, color depth (bpp), display type, display rotation, etc.

Before building the display driver, refer to the descriptions in the file MODE0.H for the default settings of the console driver. If the default does not match the configura- tion you are building for then mode0.h will have to be regenerated with the correct in- formation.

Use the program 13708CFG to generate the header file. For information on how to use 13708CFG, refer to the 13708CFG Configuration Program User Manual, document number X39A-B-001-xx, available at www.erd.epson.com

After selecting the desired configuration, choose “File->Export” and select the “C Header File for S1D13708 WinCE Driver” option. Save the new configuration as mode0.h in the \wince300\platform\cepc\drivers\display, replacing the original con- figuration file.

12. From the Platform window, click the ParameterView Tab. Show the tree for MYPLATFORM Parameters by clicking the ‘+’ sign at the root of the tree. Expand the WINCE300 tree and click “Hardware Specific Files”, then double click “PLATFORM.REG”. Edit the file platform.reg to match the screen resolution, color depth, and rotation information in mode0.h .

For example, the display driver section of platform.reg should be as follows when us- ing a 320x240 LCD panel with a color depth of 8 bpp and a SwivelView mode of 0° (landscape):

; Default for EPSON Display Driver

; 320x240 at 8 bits/pixel, LCD display, no rotation

; Useful Hex Values

; 640=0x280 480=0x1E0 320=140 240=0xF0

“Width”=dword:140

“Height”=dword:F0

“Bpp”=dword:8

“Rotation”=dword:0

13. From the Build menu, select “Rebuild Platform” to generate a Windows CE image file (NK.BIN) in the project directory x:\myproject\myplatform\reldir\x86_release\nk.bin .

Windows® CE 3.x Display Drivers S1D13708 Issue Date: 01/11/14 X39A-E-006-01

[HKEY_LOCAL_MACHINE\Drivers\Display\S1D13708]

Page 372 of the Epson LCD Controller (S1D13708) user manual — Installation for CEPC Environment
Page 372 · click to enlarge
Page 372

Installation for CEPC Environment

Once the nk.bin file is built, the CEPC environment can be started by booting either from a floppy or hard drive configured with a Windows 9x operating system. The two methods are described below.

1. To start CEPC from a floppy drive:

a. Create a bootable floppy disk.

b. Copy himem.sys to the floppy disk and edit config.sys on the floppy disk to con- tain only the following line:

device=a:\himem.sys

c. Edit autoexec.bat on the floppy disk to contain the following lines:

loadcepc /B:38400 /C:1 c:\nk.bin

d. Search for loadcepc.exe in the Windows CE directories and copy loadcepc.exe to the bootable floppy disk.

e. Copy nk.bin to c:\.

f. Boot the system from the bootable floppy disk.

2. To start CEPC from a hard drive:

a. Search for loadcepc.exe in the Windows CE directories and copy loadcepc.exe to C:\.

b. Edit config.sys on the hard drive to contain only the following line:

device=c:\himem.sys

c. Edit autoexec.bat on the hard drive to contain the following lines:

loadcepc /B:38400 /C:1 c:\nk.bin

d. Copy nk.bin to c:\.

e. Boot the system.

S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

Page 373 of the Epson LCD Controller (S1D13708) user manual — DEBUG_MONITOR
Page 373 · click to enlarge
Page 373

Configuration

There are several issues to consider when configuring the display driver. The issues cover debugging support, register initialization values and memory allocation. Each of these issues is discussed in the following sections.

Compile Switches

There are several switches, specific to the S1D13708 display driver, which affect the display driver.

The switches are added or removed from the compile switches in the file SOURCES.

WINCEVER

This option is automatically set to the numerical version of WinCE for version 2.12 or later. If the environment variable, _WINCEOSVER is not defined, then WINCEVER will default to 2.11. The S1D13708 display driver may test against this option to support different WinCE version-specific features.

EnablePreferVmem

This option enables the use of off-screen video memory. When this option is enabled, WinCE can optimize some BLT operations by using off-screen video memory to store images. You may need to disable this option if your off-screen video memory is limited.

ENABLE_CLOCK_CHIP

This option is used to enable support for the ICD2061A clock generator. This clock chip is used on the S5U13708B00C evaluation board. The S1D13708 display drivers can program the clock chip to support the frequencies required in the MODE tables.

If you are not using the S5U13708B00C evaluation adapter, you should disable this option.

EpsonMessages

This debugging option enables the display of EPSON-specific debug messages. These debug message are sent to the serial debugging port. This option should be disabled unless you are debugging the display driver, as they will significantly impact the performance of the display driver.

DEBUG_MONITOR

This option enables the use of the debug monitor. The debug monitor can be invoked when the display driver is first loaded and can be used to view registers, and perform a few debugging tasks. The debug monitor is still under development and is UNTESTED.

Windows® CE 3.x Display Drivers S1D13708 Issue Date: 01/11/14 X39A-E-006-01

Page 374 of the Epson LCD Controller (S1D13708) user manual — Mode File
Page 374 · click to enlarge
Page 374

This option should remain disabled unless you are performing specific debugging tasks that require the debug monitor.

MonoPanel

This option is intended for the support of monochrome panels only.

The option causes palette colors to be grayscaled for correct display on a mono panel. For use with color panels this option should not be enabled.

DEBUG_BLT

This option enables special BLT debugging messages on the debugging serial port. This option, when enabled, will drastically impact display driver performance, and should only be used to track down failures in the BLT operations.

This option should be disabled unless doing BLT debugging.

Mode File

A second variable which will affect the finished display driver is the register configurations contained in the mode file.

The MODE tables (contained in files MODE0.H, MODE1.H, MODE2.H . . .) contain register information to control the desired display mode. The MODE tables must be generated by the configuration program 13708CFG.EXE. The display driver comes with one example MODE table:

  • MODE0.H - LCD 8-bit STN color, 320x240, 8bpp, 70Hz

By default, only MODE0.H is used by the display driver. New mode tables can be created using the 13708CFG program. Edit the #include section of MODE.H to add the new mode table.

If you only support a single mode table, you do not need to add any information to the WinCE registry. If, however, you support more that one display mode, you should create registry values (see below) that will establish the initial display mode. If your display driver contains multiple mode tables, and if you do not add any registry values, the display driver will default to the first mode table in your list.

To select which display mode the display driver should use upon boot, add the following lines to your PLATFORM.REG file:

S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

[HKEY_LOCAL_MACHINE\Drivers\Display\S1D13708]

Page 375 of the Epson LCD Controller (S1D13708) user manual — Description of Windows CE Display Driver Issues
Page 375 · click to enlarge
Page 375

“Width”=dword:140 “Height”=dword:F0 “Bpp”=dword:8 “Rotation”=dword:0

Note that all dword values are in hexadecimal, therefore 140h = 320 and F0h = 240. When the display driver starts, it will read these values in the registry and attempt to match a mode table against them. All values must be present and valid for a match to occur, otherwise the display driver will default to the first mode table in your list.

A WinCE desktop application (or control panel applet) can change these registry values, and the display driver will select a different mode upon warmboot. This allows the display driver to support different display configurations and/or orientations. An example appli- cation that controls these registry values will be made available upon the next release of the display driver; preliminary alpha code is available by special request.

Resource Management Issues

The Windows CE 3.0 OEM must deal with certain display driver issues relevant to Windows CE 3.0. These issues require the OEM balance factors such as: system vs. display memory utilization, video performance, and power off capabilities.

The section “Simple Display Driver Configuration” on page 13 provides a configuration which should work with most Windows CE platforms. This section is only intended as a means of getting started. Once the developer has a functional system, it is recommended to optimize the display driver configuration as described below in “Description of Windows CE Display Driver Issues”.

Description of Windows CE Display Driver Issues

The following are some issues to consider when configuring the display driver to work with Windows CE:

1. When Windows CE enters the Suspend state (power-off), the LCD controller and display memory may lose power, depending on how the OEM sets up the system. If display memory loses power, all images stored in display memory are lost.

If power-off/power-on features are required, the OEM has several options:

  • If display memory power is turned off, add code to the display driver to save any images in display memory to system memory before power-off, and add code to restore these images after power-on.
  • If display memory power is turned off, instruct Windows CE to redraw all images upon power-on. Unfortunately it is not possible to instruct Windows CE to redraw any off-screen images, such as icons, slider bars, etc., so in this case the OEM must also configure the display driver to never use off-screen memory.
  • Ensure that display memory never loses power.

Windows® CE 3.x Display Drivers S1D13708 Issue Date: 01/11/14 X39A-E-006-01

Page 376 of the Epson LCD Controller (S1D13708) user manual — Resource Management Issues
Page 376 · click to enlarge
Page 376
2. Using off-screen display memory significantly improves display performance. For example, slider bars appear more smooth when using off-screen memory. To enable or disable the use of off-screen memory, edit the file: x:\wince300\platform\cepc\drivers\display\S1D13708\sources. In SOURCES, there is a line which, when uncommented, will instruct Windows CE to use off-screen display memory (if sufficient display memory is available):
3. In the file PROJECT.REG under CE 3.0, there is a key called PORepaint (search the Windows CE directories for PROJECT.REG). PORepaint is relevant when the Suspend state is entered or exited. PORepaint can be set to 0, 1, or 2 as described below:

a. PORepaint=0

  • This mode tells Windows CE not to save or restore display memory on suspend or resume.
  • Since display data is not saved and not repainted, this is the FASTEST mode.
  • Main display data in display memory must NOT be corrupted or lost on suspend. The memory clock must remain running.
  • Off-screen data in display memory must NOT be corrupted or lost on suspend. The memory clock must remain running.
  • This mode cannot be used if power to the display memory is turned off.

b. PORepaint=1

  • This is the default mode for Windows CE.
  • This mode tells Windows CE to save the main display data to the system memory on suspend.
  • This mode is used if display memory power is going to be turned off when the system is suspended, and there is enough system memory to save the image.
  • Any off-screen data in display memory is LOST when suspended. Therefore off-screen memory usage must either be disabled in the display driver (i.e: EnablePreferVmem not defined in SOURCES file), or new OEM-specific code must be added to the display driver to save off-screen data to system memory when the system is suspended, and restored when resumed.
  • If off-screen data is used (provided that the OEM has provided code to save off-screen data when the system suspends), additional code must be added to the display driver’s surface allocation routine to prevent the display driver from allocating the “main memory save region” in display memory. When WinCE OS attempts to allocate a buffer to save the main display data, WinCE OS marks the allocation request as preferring display memory. We believe this is incorrect. Code must be added to prevent this specific allocation from being allocated in display memory - it MUST be allocated from system memory.
  • Since the main display data is copied to system memory on suspend, and then simply copied back on resume, this mode is FAST, but not as fast as mode 0.

S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

CDEFINES=$(CDEFINES) -DEnablePreferVmem

Page 377 of the Epson LCD Controller (S1D13708) user manual — Simple Display Driver Configuration
Page 377 · click to enlarge
Page 377

c. PORepaint=2

  • This mode tells WinCE to not save the main display data on suspend, and causes WinCE to REPAINT the main display on resume.
  • This mode is used if display memory power is going to be turned off when the system is suspended, and there is not enough system memory to save the image.
  • Any off-screen data in display memory is LOST, and since there is insufficient system memory to save display data, off-screen memory usage MUST be disabled.
  • When the system is resumed, WinCE instructs all running applications to repaint themselves. This is the SLOWEST of the three modes.

Simple Display Driver Configuration

The following display driver configuration should work with most platforms running Windows CE. This configuration disables the use of off-screen display memory and forces the system to redraw the main display upon power-on.

1. This step disables the use of off-screen display memory. Edit the file x:\wince300\platform\cepc\drivers\display\S1D13708\sources and change the line
2. This step causes the system to redraw the main display upon power-on. This step is only required if display memory loses power when Windows CE is shut down. If display memory is kept powered up (set the S1D13708 in powersave mode), then the display data will be maintained and this step can be skipped.

Search for the file PROJECT.REG in your Windows CE directories, and inside PROJECT.REG find the key PORepaint. Change PORepaint as follows:

“PORepaint”=dword:2

Windows® CE 3.x Display Drivers S1D13708 Issue Date: 01/11/14 X39A-E-006-01

CDEFINES=$(CDEFINES) -DEnablePreferVmem · to · #CDEFINES=$(CDEFINES) -DEnablePreferVmem

Page 378 of the Epson LCD Controller (S1D13708) user manual — Comments
Page 378 · click to enlarge
Page 378

Comments

  • The display driver is CPU independent, allowing use of the driver for several Windows CE Platform Builder supported platforms. The file s1dflat.cpp will require editing for the correct values of PhysicalPortAddr, PhysicalVmemAddr, etc.
  • If you are running the display driver on hardware other than the S5U13708B00C evaluation board, you must ensure that your hardware provides the correct clock frequencies for CLKI, CLKI2 and XTAL. 13708CFG defaults to 50MHz for both CLKI and CLKI2, and 12MHz for XTAL.

If you run the S1D13708 with a single clock source, make sure your clock sources for PCLK, BCLK, and MCLK are correctly set to use the correct clock input source. Also ensure that you enable the clock dividers as required for different display hardware.

  • If you are using 13708cfg.exe to produce multiple MODE tables, make sure you change the Mode Number setting for each mode table you generate. The display driver supports multiple mode tables, but only if each mode table has a unique mode number. For more information on setting the mode number, see the 13708CFG User Manual , document number X39A-B-001-xx.
  • The 13708CFG program assumes you are using the S5U13708B00C evaluation board, and defaults the Panel Power control to GPIO0. 13708CFG allows you to change the GPIO pin used to control panel power, or to disable the use of GPIO pins altogether. If this is changed from the default, your driver will no longer be able to control panel power on the S5U13708B00C evaluation board, and your panel may not be powered up correctly.
  • At this time, the driver has been tested on the x86 CPUs and have been run with Platform Builder v3.00.

S1D13708 Windows® CE 3.x Display Drivers X39A-E-006-01 Issue Date: 01/11/14

Page 379 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-006-01
Page 379 · click to enlarge
Page 379

S1D13708 Embedded Memory LCD Controller

Power Consumption

Document Number: X39A-G-006-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.

Page 380 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 380 · click to enlarge
Page 380

THIS PAGE LEFT BLANK

S1D13708 Power Consumption X39A-G-006-01 Issue Date: 01/11/25

Page 381 of the Epson LCD Controller (S1D13708) user manual — 1 S1D13708 Power Consumption
Page 381 · click to enlarge
Page 381

1 S1D13708 Power Consumption

The S1D13708 power consumption can be affected by many system design variables. Some of the variables to consider are:

  • Input Clock Frequency (CLKI/CLKI2/XTAL): CLKI/CLKI2/XTAL frequency determines the LCD frame-rate, CPU performance to memory, and other functions – the higher the input clock frequency will result in higher power consumption.
  • CPU interface: the S1D13708 current consumption depends on the BCLK frequency, data width, number of toggling pins, and other factors – using higher BCLK gives higher CPU performance but results in higher power consumption.
  • V DD Voltage Level: the voltage level affects power consumption – the higher the voltage, the higher the power consumption.
  • Display Mode: the resolution and color depth affect power consumption – the higher the resolution/color depth, the higher the power consumption.
  • Internal CLK Divide: internal registers allow the input clock to be divided before going to the internal logic blocks – the higher the divide, the lower the power consumption.

There is a power save mode in the S1D13708 where the power consumption is affected by various system design variables.

  • Clock States During The Power Save Mode: disabling the clock oscillation during power save mode has substantial power savings.

All unused input pins are tied to ground or as specified in the Hardware Functional Speci- fication, document number X39A-A-001-xx.

Power Consumption S1D13708 Issue Date01/11/25 X39A-G-006-01
Page 382 of the Epson LCD Controller (S1D13708) user manual — S1D13708
Page 382 · click to enlarge
Page 382

1.1 Conditions

To illustrate the various factors that can effect power, the following table list the power consumption for a typical Motorola DragonBall VZ interface implementation. The DragonBall clock output of 33MHz was the connected to CLKI and divided internally for BCLK, MCLK and PCLK.

The following table provides an example of some 320x240 and 160x160 panels and the effects on power consumption in specific environments. The following conditions apply:

  • All tests had an appropriate LCD panel connected to the LCD outputs of the S1D13708.
  • All tests were run with a static full color palette display.
  • All tests were done using the DragonBall host bus interface (CLKI = 33MHz).
Table 1-1S1D13708 Power Consumption

Test Condition CORE VDD = 1.8V and IO VDD = 3.3V

S1D13708

Active Power Save Mode

Rate Clocks (MHz) Color Depth CORE IO CORE1 IO1 CORE2 IO2

8 1.51 4.13 0.86 0.57 0.56 0.34

18-Bit HR-TFT 84 CLKI= 33MHz MCLK= BCLK= CLKI PCLK= CLKI/4

4 1.33 3.79 —

2 1.24 3.76 —

1 1.20 3.78 —

18-Bit TFT 72 CLKI= 33MHz MCLK= BCLK= CLKI PCLK= CLKI/4

8 1.52 4.81 —

8-Bit STN Format 2 93 CLKI= 33MHz MCLK= BCLK= CLKI PCLK= CLKI/4

8 1.75 4.17 —

16 1.24 2.83 0.80 0.57 0.51 0.34

8 1.10 2.66 —

160x160 18-Bit HR-TFT 93 CLKI= 33MHz MCLK= BCLK= CLKI PCLK= CLKI/8

4 1.02 2.40 —

2 0.98 2.37 —

1 0.97 2.41 —

1. S1D13708 Power Save Mode enabled, CLKI is active. 2. S1D13708 Power Save Mode enabled, CLKI is inactive with input tied to ground.

S1D13708 Power Consumption X39A-G-006-01 Issue Date: 01/11/25

Show 5 more labels / short text on this page
Power Consumption (mA) · Resolution Panel Type · Frame · (Color) · 320x240
Page 383 of the Epson LCD Controller (S1D13708) user manual — 2 Summary
Page 383 · click to enlarge
Page 383

2 Summary

Table 1-1:, “S1D13708 Power Consumption,” on page 4 shows that the S1D13708 power consumption depends on the specific implementation. Active Mode power consumption depends on the desired CPU performance and LCD frame-rate, whereas power save mode consumption depends on the CPU Interface and Input Clock state.

In a typical design environment, the S1D13708 can be configured to be an extremely power-efficient LCD Controller with high performance and flexibility.

Power Consumption S1D13708 Issue Date01/11/25 X39A-G-006-01
Page 384 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 384 · click to enlarge
Page 384

THIS PAGE LEFT BLANK

S1D13708 Power Consumption X39A-G-006-01 Issue Date: 01/11/25

Page 385 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-007-01
Page 385 · click to enlarge
Page 385

S1D13708 Embedded Memory LCD Controller

Interfacing to the NEC VR4102 /

VR4111 Microprocessors

Document Number: X39A-G-007-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All Trademarks are the property of their respective owners.

Page 386 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 386 · click to enlarge
Page 386

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

Page 389 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 389 · click to enlarge
Page 389

List of Tables

Table 3-1: Host Bus Interface Pin Mapping 10 Table 4-1: Summary of Power-On/Reset Configuration Options 13 Table 4-2: CLKI to BCLK Divide Selection 13

List of Figures

Figure 2-1: NEC VR4102/VR4111 Read/Write Cycles 9 Figure 4-1: Typical Implementation of VR4102/VR4111 to S1D13708 Interface 12

Interfacing to the NEC VR4102 / VR4111 Microprocessors S1D13708 Issue Date: 01/11/05 X39A-G-007-01

Page 390 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 390 · click to enlarge
Page 390

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

Page 391 of the Epson LCD Controller (S1D13708) user manual — 1 Introduction
Page 391 · click to enlarge
Page 391

1 Introduction

This application note describes the hardware and software environment required to interface the S1D13708 Embedded Memory LCD Controller and the NEC VR4102/4111 microprocessor. The NEC VR4102 and VR4111 microprocessors are specifically designed to support an external LCD controller.

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 Epson Research and Development website at http://www.erd.epson.com for the latest revision of this document before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Interfacing to the NEC VR4102 / VR4111 Microprocessors S1D13708 Issue Date: 01/11/05 X39A-G-007-01

Page 392 of the Epson LCD Controller (S1D13708) user manual — 2.1.1 Overview
Page 392 · click to enlarge
Page 392

2 Interfacing to the NEC VR4102/VR4111

2.1 The NEC VR41XX System Bus

The VR-Series family of microprocessors features a high-speed synchronous system bus typical of modern microprocessors. Designed with external LCD controller support and Windows® CE based embedded consumer applications in mind, the VR4102/VR4111 offers a highly integrated solution for portable systems. This section is an overview of the operation of the CPU bus to establish interface requirements.

2.1.1 Overview

The NEC VR series microprocessor is designed around the RISC architecture developed by MIPS. The VR4102 microprocessor is designed around the 66MHz VR4100 CPU core and the VR4111 is designed around the 80/100MHz VR4110 core. These microprocessors support 64-bit processing. The CPU communicates with the Bus Control Unit (BCU) through its internal SysAD bus. The BCU in turn communicates with external devices with its ADD and DATA busses which can be dynamically sized for 16 or 32-bit operation.

The NEC VR4102/VR4111 can directly support an external LCD controller through a dedicated bus interface. Specific control signals are assigned for an external LCD controller in order to provide an easy interface to the CPU. A 16M byte block of memory is assigned for the LCD controller with its own chip select and ready signals available. Word or byte accesses are controlled by the system high byte signal (SHB#).

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

Page 393 of the Epson LCD Controller (S1D13708) user manual — 2.1.2 LCD Memory Access Cycles
Page 393 · click to enlarge
Page 393

2.1.2 LCD Memory Access Cycles

Once an address in the LCD block of memory is placed on the external address bus (ADD[25:0]) the LCD chip select (LCDCS#) is driven low. The read enable (RD#) or write enable (WR#) signals are driven low for the appropriate cycle. LCDRDY is driven low by the S1D13708 to insert wait states into the cycle. The system high byte enable is driven low for 16-bit transfers and high for 8-bit transfers.

Figure 2-1: “NEC VR4102/VR4111 Read/Write Cycles,” shows the read and write cycles to the LCD Controller Interface.

Epson LCD Controller (S1D13708) — 2.1.2 LCD Memory Access Cycles diagram (page 393)
Fig. 106 · 2.1.2 LCD Memory Access Cycles
Figure 2-1NEC VR4102/VR4111 Read/Write Cycles

Interfacing to the NEC VR4102 / VR4111 Microprocessors S1D13708 Issue Date: 01/11/05 X39A-G-007-01

Page 394 of the Epson LCD Controller (S1D13708) user manual — RD# RD#
Page 394 · click to enlarge
Page 394

3 S1D13708 Host Bus Interface

The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit Generic #2 Host Bus Interface which is most suitable for direct connection to the NEC VR4102/4111 microprocessor. Generic #2 supports an external Chip Select, shared Read/Write Enable for high byte, and individual Read/Write Enable for low byte.

The Generic #2 Host Bus Interface is selected by the S1D13708 on the rising edge of RESET#. After RESET# is released, the bus interface signals assume their selected config- uration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware Configuration” on page 13.

3.1 Host Bus Interface Pin Mapping

The following table shows the functions of each Host Bus Interface signal.

Table 3-1Host Bus Interface Pin Mapping

S1D13708 Pin Names NEC VR4102/4111

AB[16:0] ADD[16:0]

DB[15:0] DAT[15:0]

WE1# SHB#

CS# LCDCS#

M/R# ADD17

CLKI BUSCLK

BS# connect to IO VDD

RD/WR# connect to IO VDD

RD# RD#

WE0# WR#

LCDRDY WAIT#

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

RESET# system RESET

Page 395 of the Epson LCD Controller (S1D13708) user manual — 3.2 Host Bus Interface Signals
Page 395 · click to enlarge
Page 395

3.2 Host Bus Interface Signals

The Host Bus Interface requires the following signals:

  • CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source for its internal bus and memory clocks. This clock is typically driven by the host CPU system clock. For this example, BUSCLK from the NEC VR4102/4111 is used for CLKI.
  • The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the NEC VR4102/4111 address bus (ADD[16:0]) and data bus (DAT[15:0]), respectively. CNF4 must be set to select little endian mode.
  • Chip Select (CS#) must be driven low by LCDCS# whenever the S1D13708 is accessed by the VR4102/4111.
  • M/R# (memory/register) selects between memory or register accesses. This signal may be connected to an address line, allowing system address ADD17 to be connected to the M/R# line.
  • WE1# connects to SHB# (the high byte enable signal from the NEC VR4102/4111) which in conjunction with address bit 0 allows byte steering of read and write operations.
  • WE0# connects to WR# (the write enable signal from the NEC VR4102/4111) and must be driven low when the VR4102/4111 is writing data to the S1D13708.
  • RD# connects to RD# (the read enable signal from the NEC VR4102/4111) and must be driven low when the VR4102/4111 is reading data from the S1D13708.
  • WAIT# connects to LCDRDY and is a signal output from the S1D13708 that indicates the VR4102/VR4111 must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. Since VR4102/VR4111 accesses to the S1D13708 may occur asynchronously to the display update, it is possible that contention may occur in accessing the S1D13708 internal registers and/or display buffer. The WAIT# line resolves these contentions by forcing the host to wait until the resource arbitration is complete.
  • The Bus Status (BS#) and Read/Write (RD/WR#) signals are not used in this implementation of the NEC VR4102/4111 interface using the Generic #2 Host Bus Interface. These pins must be tied high (connected to IO V DD ).

Interfacing to the NEC VR4102 / VR4111 Microprocessors S1D13708 Issue Date: 01/11/05 X39A-G-007-01

Page 396 of the Epson LCD Controller (S1D13708) user manual — NEC VR4102/VR4111
Page 396 · click to enlarge
Page 396

4 VR4102/VR4111 to S1D13708 Interface

4.1 Hardware Description

The NEC VR4102/VR4111 microprocessor is specifically designed to support an external LCD controller by providing the internal address decoding and control signals necessary. By using the Generic # 2 Host Bus Interface, no glue logic is required to interface the S1D13708 and the NEC VR4102/VR4111.

A pull-up resistor is attached to WAIT# to speed its rise time when terminating a cycle.

BS# (bus start) and RD/WR# are not used by the Generic #2 Host Bus Interface and must be tied high (connected to IO VDD).

The following diagram shows a typical implementation of the VR4102/VR4111 to S1D13708 interface.

NEC VR4102/VR4111

S1D13708

WR#

WE0#

SHB#

WE1#

RD#

RD#

LCDCS#

CS#

IO V DD

LCDRDY

WAIT#

M/R# ADD17

RESET#

ADD[16:0]

AB[16:0]

DAT[15:0]

DB[15:0]

BUSCLK

CLKI

IO V DD

BS#

RD/WR#

Figure 4-1Typical Implementation of VR4102/VR4111 to S1D13708 Interface

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

Pull-up · System RESET

Page 397 of the Epson LCD Controller (S1D13708) user manual — S1D13708
Page 397 · click to enlarge
Page 397

4.2 S1D13708 Hardware Configuration

The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

The following table shows the configuration required for this implementation of a S1D13708 to NEC VR4102/4111 interface.

Table 4-1Summary of Power-On/Reset Configuration Options

S1D13708

value on this pin at the rising edge of RESET# is used to configure: (1/0)

CNF[4, 2:0] 0100 = Generic #2 Little Endian Host Bus Interface

CNF3 GPIO pins as inputs at power on GPIO pins as HR-TFT / D-TFT outputs

CNF5 Active high WAIT# Active low WAIT#

CNF[7:6] see Table 4-2: “CLKI to BCLK Divide Selection” for recommended setting

= configuration for NEC VR4102/VR4111

Table 4-2CLKI to BCLK Divide Selection

CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1

= recommended setting for NEC VR4102/VR4111

Interfacing to the NEC VR4102 / VR4111 Microprocessors S1D13708 Issue Date: 01/11/05 X39A-G-007-01

Pin Name

Page 398 of the Epson LCD Controller (S1D13708) user manual — Note
Page 398 · click to enlarge
Page 398

4.3 NEC VR4102/VR4111 Configuration

The NEC VR4102/4111 provides the internal address decoding necessary to map an external LCD controller. Physical address 0A00_0000h to 0AFF_FFFFh (16M bytes) is reserved for an external LCD controller by the NEC VR4102/4111.

The S1D13708 is a memory mapped device. The S1D13708 uses two 128K byte blocks which are selected using ADD17 from the NEC VR4102/4111 (ADD17 is connected to the S1D13708 M/R# pin).The internal registers occupy the first 128K bytes block and the 80K byte display buffer occupies the second 128K byte block.

The starting address of the S1D13708 internal registers is located at 0A00_0000h and the starting address of the display buffer is located at 0A02_0000h. These blocks are aliased over the entire 16M byte address space.

Note

If aliasing is not desirable, the upper addresses must be fully decoded.

The NEC VR4102/VR4111 has a 16-bit internal register named BCUCNTREG2 located at 0B00_0002h. It must be set to the value of 0001h which indicates that LCD controller accesses use a non-inverting data bus.

The 16-bit internal register named BCUCNTREG1 (located at 0B00_0000h) must have bit D[13] (ISA/LCD bit) set to 0. This reserves 16M bytes (from 0A00_0000h to 0AFF_FFFFh) for use by the LCD controller and not as ISA bus memory space.

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

Page 399 of the Epson LCD Controller (S1D13708) user manual — 5 Software
Page 399 · click to enlarge
Page 399

5 Software

Test utilities and display drivers are available for the S1D13708. Full source code is available for both the test utilities and the drivers.

The test utilities are configurable for different panel types using a program called 13708CFG, or by directly modifying the source. The display drivers can be customized by the OEM for different panel types, resolutions and color depths only by modifying the source.

The S1D13708 test utilities and display drivers are available from your sales support contact or www.erd.epson.com

Interfacing to the NEC VR4102 / VR4111 Microprocessors S1D13708 Issue Date: 01/11/05 X39A-G-007-01

Page 400 of the Epson LCD Controller (S1D13708) user manual — 6.2 Document Sources
Page 400 · click to enlarge
Page 400

6 References

6.1 Documents

  • NEC Electronics Inc., VR4102/VR4111 64/32-bit Microprocessor Preliminary User’s Manual .
  • Epson Research and Development, Inc., S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
  • Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board User Manual, document number X39A-G-004-xx.
  • Epson Research and Development, Inc., S1D13708 Programming Notes and Examples , document number X39A-G-003-xx.

6.2 Document Sources

  • NEC Electronics Inc. website: <a href="http://www.necel.com" rel="nofollow noopener" target="_blank">http://www.necel.com</a>
  • Epson Research and Development Website: <a href="http://www.erd.epson.com/" rel="nofollow noopener" target="_blank">http://www.erd.epson.com/</a>

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

Page 401 of the Epson LCD Controller (S1D13708) user manual — 7.1 Epson LCD Controllers (S1D13708)
Page 401 · click to enlarge
Page 401

7 Technical Support

7.1 Epson LCD Controllers (S1D13708)

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

7.2 NEC Electronics Inc.

NEC Electronics Inc. (U.S.A.) Corporate Headquarters 2880 Scott Blvd. Santa Clara, CA 95050-8062, USA Tel: (800) 366-9782 Fax: (800) 729-9288 http://www.necel.com

Interfacing to the NEC VR4102 / VR4111 Microprocessors S1D13708 Issue Date: 01/11/05 X39A-G-007-01

Page 402 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 402 · click to enlarge
Page 402

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the NEC VR4102 / VR4111 Microprocessors X39A-G-007-01 Issue Date: 01/11/05

Page 403 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-008-01
Page 403 · click to enlarge
Page 403

S1D13708 Embedded Memory LCD Controller

Interfacing to the NEC VR4181A™

Microprocessor

Document Number: X39A-G-008-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All Trademarks are the property of their respective owners.

Page 404 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 404 · click to enlarge
Page 404

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

Page 407 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 407 · click to enlarge
Page 407

List of Tables

Table 3-1: Host Bus Interface Pin Mapping 10 Table 4-1: Summary of Power-On/Reset Configuration Options 13 Table 4-2: CLKI to BCLK Divide Selection 13

List of Figures

Figure 4-1: Typical Implementation of VR4181A to S1D13708 Interface 12

Interfacing to the NEC VR4181A™ Microprocessor S1D13708 Issue Date: 01/11/05 X39A-G-008-01

Page 408 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 408 · click to enlarge
Page 408

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

Page 409 of the Epson LCD Controller (S1D13708) user manual — 1 Introduction
Page 409 · click to enlarge
Page 409

1 Introduction

This application note describes the hardware and software environment required to interface the S1D13708 Embedded Memory LCD Controller and the NEC VR4181A microprocessor. The NEC VR4181A microprocessor is specifically designed to support an external LCD controller.

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 Epson Research and Development website at http://www.erd.epson.com for the latest revision of this document before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Interfacing to the NEC VR4181A™ Microprocessor S1D13708 Issue Date: 01/11/05 X39A-G-008-01

Page 410 of the Epson LCD Controller (S1D13708) user manual — 2.1.1 Overview
Page 410 · click to enlarge
Page 410

2 Interfacing to the NEC VR4181A

2.1 The NEC VR4181A System Bus

The VR-Series family of microprocessors features a high-speed synchronous system bus typical of modern microprocessors. Designed with external LCD controller support and Windows® CE based embedded consumer applications in mind, the VR4181A offers a highly integrated solution for portable systems. This section is an overview of the operation of the CPU bus to establish interface requirements.

2.1.1 Overview

The NEC VR4181A is designed around the RISC architecture developed by MIPS. This microprocessor is designed around the 100MHz VR4110 CPU core which supports the MIPS III and MIPS16 instruction sets. The CPU communicates with external devices via an ISA interface.

While the VR4181A has an embedded LCD controller, this internal controller can be disabled to provide direct support for an external LCD controller through its external ISA bus. A 64 to 512K byte block of memory is assigned to the external LCD controller with a dedicated chip select signal (LCDCS#). Word or byte accesses are controlled by the system high byte signal (#UBE).

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

Page 411 of the Epson LCD Controller (S1D13708) user manual — 2.1.2 LCD Memory Access Signals
Page 411 · click to enlarge
Page 411

2.1.2 LCD Memory Access Signals

The S1D13708 requires an addressing range of 256K bytes. When the VR4181A external LCD controller chip select signal is programmed to a window of that size, the S1D13708 resides in the VR4181A physical address range of 133C 0000h to 133F FFFFh. This range is part of the external ISA memory space.

The following signals are required to access an external LCD controller. All signals obey ISA signalling rules.

  • A[16:0] is the address bus.
  • #UBE is the high byte enable (active low).
  • #LCDCS is the chip select for the S1D13708 (active low).
  • D[15:0] is the data bus.
  • #MEMRD is the read command (active low).
  • #MEMWR is the write command (active low).
  • #MEMCS16 is the acknowledge for 16-bit peripheral capability (active low).
  • IORDY is the ready signal from S1D13708.
  • SYSCLK is the prescalable bus clock (optional).

Once an address in the LCD block of memory is accessed, the LCD chip select (#LCDCS) is driven low. The read or write enable signals (#MEMRD or #MEMWR) are driven low for the appropriate cycle and IORDY is driven low by the S1D13708 to insert wait states into the cycle. The high byte enable (UBE#) is driven low for 16-bit transfers and high for 8-bit transfers.

Interfacing to the NEC VR4181A™ Microprocessor S1D13708 Issue Date: 01/11/05 X39A-G-008-01

Page 412 of the Epson LCD Controller (S1D13708) user manual — RD# #MEMRD
Page 412 · click to enlarge
Page 412

3 S1D13708 Host Bus Interface

The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit Generic #2 Host Bus Interface which is most suitable for direct connection to the NEC VR4181A microprocessor. Generic #2 supports an external Chip Select, shared Read/Write Enable for high byte, and individual Read/Write Enable for low byte.

The Generic #2 Host Bus Interface is selected by the S1D13708 on the rising edge of RESET#. After RESET# is released, the bus interface signals assume their selected config- uration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware Configuration” on page 13.

3.1 Host Bus Interface Pin Mapping

The following table shows the functions of each Host Bus Interface signal.

Table 3-1Host Bus Interface Pin Mapping

S1D13708 Pin Names NEC VR4181A

AB[16:0] A[16:0]

DB[15:0] D[15:0]

WE1# #UBE

CS# #LCDCS

M/R# A17

CLKI SYSCLK

BS# Connect to IO VDD

RD/WR# Connect to IO VDD

RD# #MEMRD

WE0# #MEMWR

WAIT# IORDY

RESET# RESET#

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

Page 413 of the Epson LCD Controller (S1D13708) user manual — 3.2 Host Bus Interface Signals
Page 413 · click to enlarge
Page 413

3.2 Host Bus Interface Signals

The interface requires the following signals.

  • CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source for its internal bus and memory clocks. This clock is typically driven by the host CPU system clock. For this example, SYSCLK from the NEC VR4181A is used for CLKI.
  • The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the NEC VR4181A address (A[16:0]) and data bus (D[15:0]), respectively. CNF4 must be set to select little endian mode.
  • Chip Select (CS#) must be driven low by #LCDCS whenever the S1D13708 is accessed by the VR4181A.
  • M/R# (memory/register) selects between memory or register accesses. This signal may be connected to an address line, allowing system address A17 to be connected to the M/R# line.
  • WE1# connects to #UBE (the high byte enable signal from the NEC VR4181A) which in conjunction with address bit 0 allows byte steering of read and write operations.
  • WE0# connects to #MEMWR (the write enable signal from the NEC VR4181A) and must be driven low when the NEC VR4181A is writing data to the S1D13708.
  • RD# connects to #MEMRD (the read enable signal from the NEC VR4181A) and must be driven low when the NEC VR4181A is reading data from the S1D13708.
  • WAIT# connects to IORDY and is a signal which is output from the S1D13708 which indicates the NEC VR4181A must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. Since VR4181A accesses to the S1D13708 may occur asynchronously to the display update, it is possible that contention may occur in accessing the S1D13708 internal registers and/or display buffer. The WAIT# line resolves these contentions by forcing the host to wait until the resource arbitration is complete.
  • The Bus Status (BS#) and Read/Write (RD/WR#) signals are not used in this implementation of the NEC VR4181A interface using the Generic #2 Host Bus Interface. These pins must be tied high (connected to IO V DD ).

Interfacing to the NEC VR4181A™ Microprocessor S1D13708 Issue Date: 01/11/05 X39A-G-008-01

Page 414 of the Epson LCD Controller (S1D13708) user manual — NEC VR4181A
Page 414 · click to enlarge
Page 414

4 VR4181A to S1D13708 Interface

4.1 Hardware Description

The NEC VR4181A microprocessor is specifically designed to support an external LCD controller by providing the internal address decoding and control signals necessary. By using the Generic # 2 Host Bus Interface, no glue logic is required to interface the S1D13708 to the NEC VR4181A.

A pull-up resistor is attached to WAIT# to speed up its rise time when terminating a cycle.

#MEMCS16 of the NEC VR4181A is connected to #LCDCS to signal that the S1D13708 is capable of 16-bit transfers.

BS# (bus start) and RD/WR# are not used by the Generic #2 Host Bus Interface and must be tied high (connected to IO VDD).

The diagram below shows a typical implementation of the VR4181A to S1D13708 interface.

NEC VR4181A

S1D13708

#MEMWR

WE0#

#UBE

WE1#

#MEMRD

RD#

M/R# A17

#LCDCS

CS#

IO V DD

IORDY

WAIT#

RESET#

A[16:0]

AB[16:0]

D[15:0]

DB[15:0]

IO V DD SYSCLK

CLKI

BS#

RD/WR#

Figure 4-1Typical Implementation of VR4181A to S1D13708 Interface

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

Pull-up · System RESET #MEMCS16

Page 415 of the Epson LCD Controller (S1D13708) user manual — S1D13708
Page 415 · click to enlarge
Page 415

4.2 S1D13708 Hardware Configuration

The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

The following table shows the configuration required for this implementation of a S1D13708 to NEC VR181A interface.

Table 4-1Summary of Power-On/Reset Configuration Options

S1D13708

value on this pin at the rising edge of RESET# is used to configure: (1/0)

CNF[4, 2:0] 0100 = Generic #2 Little Endian Host Bus Interface

CNF3 GPIO pins as inputs at power on GPIO pins as HR-TFT / D-TFT outputs

CNF5 Active high WAIT# Active low WAIT#

CNF[7:6] see Table “” for recommended setting

= configuration for NEC VR4181A

Table 4-2CLKI to BCLK Divide Selection

CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1

= recommended setting for NEC VR4181A

Interfacing to the NEC VR4181A™ Microprocessor S1D13708 Issue Date: 01/11/05 X39A-G-008-01

Pin Name

Page 416 of the Epson LCD Controller (S1D13708) user manual — 4.3 NEC VR4181A Configuration
Page 416 · click to enlarge
Page 416

4.3 NEC VR4181A Configuration

The S1D13708 is a memory mapped device. The S1D13708 uses two 128K byte blocks which are selected using A17 from the NEC VR181A (A17 is connected to the S1D13708 M/R# pin).The internal registers occupy the first 128K bytes block and the 80K byte display buffer occupies the second 128K byte block.

When the VR4181A embedded LCD controller is disabled, the external LCD controller chip select signal (#LCDCS) decodes either a 64K byte, 128K byte, 256K byte, or 512K byte memory block in the VR4181A external ISA memory. The S1D13708 requires this block of memory to be set to 256K bytes. With this configuration, the S1D13708 internal registers starting address is located at physical memory location 133C_0000h and the display buffer is located at memory location 133E_0000h.

The NEC VR4181A must be configured through its internal registers to map the S1D13708 to the external LCD controller space. The following register values must be set.

  • Register LCDGPMD at address 0B00_032Eh must be set as follows.
  • Bit 7 must be set to 1 to disable the internal LCD controller and enable the external LCD controller interface. Disabling the internal LCD controller also maps pin SHCLK to #LCDCS and pin LOCLK to #MEMCS16.
  • Bits [1:0] must be set to 10b to reserve 256Kbytes of memory address range, 133C_0000h to 133F_FFFFh for the external LCD controller.
  • Register GPMD2REG at address 0B00_0304h must be set as follows.
  • Bits [9:8] (GP20MD[1:0]) must be set to 11’b to map pin GPIO20 to #UBE.
  • Bits [5:4] (GP18MD[1:0]) must be set to 01’b to map pin GPIO18 to IORDY.

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

Page 417 of the Epson LCD Controller (S1D13708) user manual — 5 Software
Page 417 · click to enlarge
Page 417

5 Software

Test utilities and display drivers are available for the S1D13708. Full source code is available for both the test utilities and the drivers.

The test utilities are configurable for different panel types using a program called 13708CFG, or by directly modifying the source. The display drivers can be customized by the OEM for different panel types, resolutions and color depths only by modifying the source.

The S1D13708 test utilities and display drivers are available from your sales support contact or www.erd.epson.com

Interfacing to the NEC VR4181A™ Microprocessor S1D13708 Issue Date: 01/11/05 X39A-G-008-01

Page 418 of the Epson LCD Controller (S1D13708) user manual — 6.2 Document Sources
Page 418 · click to enlarge
Page 418

6 References

6.1 Documents

  • NEC Electronics Inc., NEC VR4181A Target Specification , Revision 0.5, 9/11/98
  • Epson Research and Development, Inc., S1D13708 Hardware Functional Specification , document number X39A-A-001-xx.
  • Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board User Manual, document number X39A-G-004-xx.
  • Epson Research and Development, Inc., S1D13708 Programming Notes and Examples , document number X39A-G-003-xx.

6.2 Document Sources

  • NEC Electronics Inc.website: <a href="http://www.necel.com" rel="nofollow noopener" target="_blank">http://www.necel.com</a>
  • Epson Research and Development Website: <a href="http://www.erd.epson.com/" rel="nofollow noopener" target="_blank">http://www.erd.epson.com/</a>

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

Page 419 of the Epson LCD Controller (S1D13708) user manual — 7.1 Epson LCD Controllers (S1D13708)
Page 419 · click to enlarge
Page 419

7 Technical Support

7.1 Epson LCD Controllers (S1D13708)

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

7.2 NEC Electronics Inc.

NEC Electronics Inc. (U.S.A.) Corporate Headquarters 2880 Scott Blvd. Santa Clara, CA 95050-8062, USA Tel: (800) 366-9782 Fax: (800) 729-9288 http://www.necel.com

Interfacing to the NEC VR4181A™ Microprocessor S1D13708 Issue Date: 01/11/05 X39A-G-008-01

Page 420 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 420 · click to enlarge
Page 420

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the NEC VR4181A™ Microprocessor X39A-G-008-01 Issue Date: 01/11/05

Page 421 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-009-01
Page 421 · click to enlarge
Page 421

S1D13708 Embedded Memory LCD Controller

Interfacing to the Motorola MPC821

Microprocessor

Document Number: X39A-G-009-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All Trademarks are the property of their respective owners.

Page 422 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 422 · click to enlarge
Page 422

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

Page 425 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 425 · click to enlarge
Page 425

List of Tables

Table 3-1: Host Bus Interface Pin Mapping 13 Table 4-1: List of Connections from MPC821ADS to S1D13708 16 Table 4-2: Summary of Power-On/Reset Configuration Options 18 Table 4-3: CLKI to BCLK Divide Selection 18

List of Figures

Figure 2-1: Power PC Memory Read Cycle 9 Figure 2-2: Power PC Memory Write Cycle 10 Figure 2-3: GPCM Memory Devices Timing 12 Figure 4-1: Typical Implementation of MPC821 to S1D13708 Interface 15

Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

Page 426 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 426 · click to enlarge
Page 426

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

Page 427 of the Epson LCD Controller (S1D13708) user manual — 1 Introduction
Page 427 · click to enlarge
Page 427

1 Introduction

This application note describes the hardware and software environment required to interface the S1D13708 Embedded Memory LCD Controller and the Motorola MPC821 microprocessor.

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 Epson Research and Development website at http://www.erd.epson.com for the latest revision of this document before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

Page 428 of the Epson LCD Controller (S1D13708) user manual — Note
Page 428 · click to enlarge
Page 428

2 Interfacing to the MPC821

2.1 The MPC8XX System Bus

The MPC8xx family of processors feature a high-speed synchronous system bus typical of modern RISC microprocessors. This section provides an overview of the operation of the CPU bus in order to establish interface requirements.

2.2 MPC8XX Bus Overview

The MPC8xx microprocessor family uses a synchronous address and data bus. All IO is synchronous to a square-wave reference clock called MCLK (Master Clock). This clock runs at the machine cycle speed of the CPU core (typically 25 to 50 MHz). Most outputs from the processor change state on the rising edge of this clock. Similarly, most inputs to the processor are sampled on the rising edge.

Note

The external bus can run at one-half the CPU core speed using the clock control register. This is typically used when the CPU core is operated above 50 MHz.

The MPC821 can generate up to eight independent chip select outputs, each of which may be controlled by one of two types of timing generators: the General Purpose Chip Select Module (GPCM) or the User-Programmable Machine (UPM). Examples are given using the GPCM.

It should be noted that all Power PC microprocessors, including the MPC8xx family, use bit notation opposite from the convention used by most other microprocessor systems. Bit numbering for the MPC8xx always starts with zero as the most significant bit, and incre- ments in value to the least-significant bit. For example, the most significant bits of the address bus and data bus are A0 and D0, while the least significant bits are A31 and D31.

The MPC8xx uses both a 32-bit address and data bus. A parity bit is supported for each of the four byte lanes on the data bus. Parity checking is done when data is read from external memory or peripherals, and generated by the MPC8xx bus controller on write cycles. All IO accesses are memory-mapped meaning there is no separate IO space in the Power PC architecture.

Support is provided for both on-chip (DMA controllers) and off-chip (other processors and peripheral controllers) bus masters. For further information on this topic, refer to Section 6, “References” on page 22.

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.

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

Page 429 of the Epson LCD Controller (S1D13708) user manual — 2.2.1 Normal (Non-Burst) Bus Transactions
Page 429 · click to enlarge
Page 429

2.2.1 Normal (Non-Burst) Bus Transactions

A data transfer is initiated by the bus master by placing the memory address on address lines A0 through A31 and driving TS (Transfer Start) low for one clock cycle. Several control signals are also provided with the memory address:

  • TSIZ[0:1] (Transfer Size) — indicates whether the bus cycle is 8, 16, or 32-bit.
  • RD/WR — set high for read cycles and low for write cycles.
  • AT[0:3] (Address Type Signals) — provides more detail on the type of transfer being attempted.

When the peripheral device being accessed has completed the bus transfer, it asserts TA (Transfer Acknowledge) for one clock cycle to complete the bus transaction. Once TA has been asserted, the MPC821 will not start another bus cycle until TA has been de-asserted. The minimum length of a bus transaction is two bus clocks.

Figure 2-1: “Power PC Memory Read Cycle” illustrates a typical memory read cycle on the Power PC system bus.

Epson LCD Controller (S1D13708) — 2.2.1 Normal (Non-Burst) Bus Transactions diagram (page 429)
Fig. 107 · 2.2.1 Normal (Non-Burst) Bus Transactions
Figure 2-1Power PC Memory Read Cycle

Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

Page 430 of the Epson LCD Controller (S1D13708) user manual — 2.2.2 Burst Cycles
Page 430 · click to enlarge
Page 430

Figure 2-2: “Power PC Memory Write Cycle” illustrates a typical memory write cycle on the Power PC system bus.

Epson LCD Controller (S1D13708) — Figure 22: Power PC Memory Write Cycle diagram (page 430)
Fig. 108 · Figure 22: Power PC Memory Write Cycle
Figure 2-2Power PC Memory Write Cycle

If an error occurs, TEA (Transfer Error Acknowledge) is asserted and the bus cycle is aborted. For example, a peripheral device may assert TEA if a parity error is detected, or the MPC821 bus controller may assert TEA if no peripheral device responds at the addressed memory location within a bus time-out period.

For 32-bit transfers, all data lines (D[0:31]) are used and the two low-order address lines A30 and A31 are ignored. For 16-bit transfers, data lines D0 through D15 are used and address line A31 is ignored. For 8-bit transfers, data lines D0 through D7 are used and all address lines (A[0:31]) are used.

Note

This assumes that the Power PC core is operating in big endian mode (typically the case for embedded systems).

2.2.2 Burst Cycles

Burst memory cycles are used to fill on-chip cache memory and to carry out certain on-chip DMA operations. They are very similar to normal bus cycles with the following exceptions:

  • Always 32-bit.
  • Always attempt to transfer four 32-bit words sequentially.
  • Always address longword-aligned memory (i.e. A30 and A31 are always 0:0).
  • Do not increment address bits A28 and A29 between successive transfers; the addressed device must increment these address bits internally.

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

Page 431 of the Epson LCD Controller (S1D13708) user manual — 2.3 Memory Controller Module
Page 431 · click to enlarge
Page 431

If a peripheral is not capable of supporting burst cycles, it can assert Burst Inhibit (BI) simultaneously with TA, and the processor reverts to normal bus cycles for the remaining data transfers.

Burst cycles are mainly intended to facilitate cache line fills from program or data memory. They are normally not used for transfers to/from IO peripheral devices such as the S1D13708, therefore the interfaces described in this document do not attempt to support burst cycles.

2.3 Memory Controller Module

2.3.1 General-Purpose Chip Select Module (GPCM)

The General-Purpose Chip Select Module (GPCM) is used to control memory and peripheral devices which do not require special timing or address multiplexing. In addition to the chip select output, it can generate active-low Output Enable (OE) and Write Enable (WE) signals compatible with most memory and x86-style peripherals. The MPC821 bus controller also provides a Read/Write (RD/WR) signal which is compatible with most 68K peripherals.

The GPCM is controlled by the values programmed into the Base Register (BR) and Option Register (OR) of the respective chip select. The Option Register sets the base address, the block size of the chip select, and controls the following timing parameters:

  • The ACS bit field allows the chip select assertion to be delayed with respect to the address bus valid, by 0, ¼, or ½ clock cycle.
  • The CSNT bit causes chip select and WE to be negated ½ clock cycle earlier than normal.
  • The TRLX (relaxed timing) bit inserts an additional one clock delay between assertion of the address bus and chip select. This accommodates memory and peripherals with long setup times.
  • The EHTR (Extended hold time) bit inserts an additional 1-clock delay on the first access to a chip select.
  • Up to 15 wait states may be inserted, or the peripheral can terminate the bus cycle itself by asserting 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.

Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

Page 432 of the Epson LCD Controller (S1D13708) user manual — 2.3.2 User-Programmable Machine (UPM)
Page 432 · click to enlarge
Page 432

Figure 2-3: “GPCM Memory Devices Timing” illustrates a typical cycle for a memory mapped device using the GPCM of the Power PC.

Epson LCD Controller (S1D13708) — Figure 23: GPCM Memory Devices Timing diagram (page 432)
Fig. 109 · Figure 23: GPCM Memory Devices Timing
Figure 2-3GPCM Memory Devices Timing

2.3.2 User-Programmable Machine (UPM)

The UPM is typically used to control memory types, such as Dynamic RAMs, which have complex control or address multiplexing requirements. The UPM is a general purpose RAM-based pattern generator which can control address multiplexing, wait state gener- ation, and five general-purpose output lines on the MPC821. Up to 64 pattern locations are available, each 32 bits wide. Separate patterns may be programmed for normal accesses, burst accesses, refresh (timer) events, and exception conditions. This flexibility allows almost any type of memory or peripheral device to be accommodated by the MPC821.

In this application note, the GPCM is used instead of the UPM, since the GPCM has enough flexibility to accommodate the S1D13708 and it is desirable to leave the UPM free to handle other interfacing duties, such as EDO DRAM.

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

Page 433 of the Epson LCD Controller (S1D13708) user manual — WE0# WE1
Page 433 · click to enlarge
Page 433

3 S1D13708 Host Bus Interface

The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit Generic #1 Host Bus Interface which is most suitable for direct connection to the Motorola MPC821 microprocessor. Generic #1 supports a Chip Select and an individual Read Enable/Write Enable for each byte.

The Generic #1 Host Bus Interface is selected by the S1D13708 on the rising edge of RESET#. After RESET# is released, the bus interface signals assume their selected config- uration. For details on the S1D13708 configuration, see Section 4.3, “S1D13708 Hardware Configuration” on page 18.

3.1 Host Bus Interface Pin Mapping

The following table shows the functions of each Host Bus Interface signal.

Table 3-1Host Bus Interface Pin Mapping

S1D13708 Pin Names Motorola MPC821

AB[16:0] A[15:31]

DB[15:0] D[0:15]

WE1# WE0

CS# CS4

M/R# A14

CLKI SYSCLK

BS# Connect to IO VDD

RD/WR# OE (see note)

RD# OE (see note)

WE0# WE1

WAIT# TA

Note

The Motorola MPC821 chip select module only handles 16-bit read cycles. As the S1D13708 uses the chip select module to generate CS#, only 16-bit read cycles are pos- sible and both the high and low byte enables can be driven by the MPC821 signal OE.

Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

RESET# System RESET

Page 434 of the Epson LCD Controller (S1D13708) user manual — 3.2 Host Bus Interface Signals
Page 434 · click to enlarge
Page 434

3.2 Host Bus Interface Signals

The Host Bus Interface requires the following signals.

  • CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source for its internal bus and memory clocks. This clock is typically driven by the host CPU system clock. For this example, SYSCLK from the Motorola MPC821 is used for CLKI.
  • The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the MPC821 address (A[15:31]) and data bus (D[0:15]), respectively. CNF4 must be set to select big endian mode.
  • Chip Select (CS#) must be driven low by CS4 whenever the S1D13708 is accessed by the Motorola MPC821.
  • M/R# (memory/register) selects between memory or register accesses. This signal may be connected to an address line, allowing system address A14 to be connected to the M/R# line.
  • WE0# connects to WE1 (the low byte enable signal from the MPC821) and must be driven low when the MPC821 is writing the low byte to the S1D13708.
  • WE1# connects to WE0 (the high byte enable signal from the MPC821) and must be driven low when the MPC821 is writing the high byte to the S1D13708.
  • RD# and RD/WR# are read enables for the low-order and high-order bytes, respectively. Both signals are driven low by OE when the Motorola MPC821 is reading data from the S1D13708.
  • WAIT# connects to TA and is a signal which is output from the S1D13708 which indicates the MPC821 must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. Since MPC821 accesses to the S1D13708 may occur asynchronously to the display update, it is possible that contention may occur in accessing the S1D13708 internal registers and/or display buffer. The WAIT# line resolves these contentions by forcing the host to wait until the resource arbitration is complete.
  • The Bus Status (BS#) signal is not used in this implementation of the MPC821 interface using the Generic #1 Host Bus Interface. This pin must be tied high (connected to IO V DD ).

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

Page 435 of the Epson LCD Controller (S1D13708) user manual — MPC821 S1D13708
Page 435 · click to enlarge
Page 435

4 MPC821 to S1D13708 Interface

4.1 Hardware Description

The interface between the S1D13708 and the MPC821 requires no external glue logic. The polarity of the WAIT# signal must be selected as active high by connecting CNF5 to IO VDD (see Table 4-2:, “Summary of Power-On/Reset Configuration Options,” on page 18).

BS# (bus start) is not used in this implementation and must be tied high (connected to IO VDD).

The following diagram shows a typical implementation of the MPC821 to S1D13708 interface.

MPC821 S1D13708

A[15:31]

AB[16:0]

D[0:15]

DB[15:0]

CS4

CS#

M/R# A14

IO V DD

BS#

TA

WAIT#

WE0

WE1#

WE1

WE0#

OE

RD/WR#

RD#

SYSCLK

CLKI

RESET#

Figure 4-1Typical Implementation of MPC821 to S1D13708 Interface

Table 4-1:, “List of Connections from MPC821ADS to S1D13708” on page 16 shows the connections between the pins and signals of the MPC821 and the S1D13708.

Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

System RESET

Page 436 of the Epson LCD Controller (S1D13708) user manual — A15 P6-D20 A16
Page 436 · click to enlarge
Page 436

Note

The interface was designed using a Motorola MPC821 Application Development System (ADS). The ADS board has 5 volt logic connected to the data bus, so the interface included two 74F245 octal buffers on D[0:15] between the ADS and the S1D13708. In a true 3.3 volt system, no buffering is necessary.

4.2 MPC821ADS Evaluation Board Hardware Connections

The following table details the connections between the pins and signals of the MPC821 and the S1D13708.

Table 4-1List of Connections from MPC821ADS to S1D13708

MPC821 Signal Name MPC821ADS Connector and Pin Name S1D13708 Signal Name

Vcc P6-A1, P6-B1 -

A15 P6-D20 A16

A16 P6-B24 A15

A17 P6-C24 A14

A18 P6-D23 A13

A19 P6-D22 A12

A20 P6-D19 A11

A21 P6-A19 A10

A22 P6-D28 A9

A23 P6-A28 A8

A24 P6-C27 A7

A25 P6-A26 A6

A26 P6-C26 A5

A27 P6-A25 A4

A28 P6-D26 A3

A29 P6-B25 A2

A30 P6-B19 A1

A31 P6-D17 A0

D0 P12-A9 D15

D1 P12-C9 D14

D2 P12-D9 D13

D3 P12-A8 D12

D4 P12-B8 D11

D5 P12-D8 D10

D6 P12-B7 D9

D7 P12-C7 D8

D8 P12-A15 D7

D9 P12-C15 D6

D10 P12-D15 D5

D11 P12-A14 D4

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

Page 437 of the Epson LCD Controller (S1D13708) user manual — GND
Page 437 · click to enlarge
Page 437
Table 4-1List of Connections from MPC821ADS to S1D13708 (Continued)

MPC821 Signal Name MPC821ADS Connector and Pin Name S1D13708 Signal Name

D12 P12-B14 D3

D13 P12-D14 D2

D14 P12-B13 D1

D15 P12-C13 D0

SRESET P9-D15 RESET#

SYSCLK P9-C2 CLKI

CS4 P6-D13 CS#

TA P6-B6 to inverter enabled by CS# WAIT#

WE0 P6-B15 WE1#

WE1 P6-A14 WE0#

OE P6-B16 RD/WR#, RD#

P12-A1, P12-B1, P12-A2, P12-B2, P12-A3, P12-B3, P12-A4, P12-B4, P12-A5, P12-B5, P12-A6, P12-B6,

GND

P12-A7

Note

The bit numbering of the Motorola MPC821 bus signals is reversed from the normal convention, e.g.: the most significant address bit is A0, the next is A1, A2, etc.

Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

Vss

Page 438 of the Epson LCD Controller (S1D13708) user manual — 4.4 Register/Memory Mapping
Page 438 · click to enlarge
Page 438

4.3 S1D13708 Hardware Configuration

The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

The following table shows the configuration required for this implementation of a S1D13708 to Motorola MPC821 microprocessor.

Table 4-2Summary of Power-On/Reset Configuration Options

value on this pin at the rising edge of RESET# is used to configure: (1/0)

1 0 CNF[4, 2:0] 1011 = Generic #1 Big Endian Host Bus Interface CNF3 GPIO pins as inputs at power on GPIO pins as HR-TFT / D-TFT outputs CNF5 Active high WAIT# Active low WAIT# CNF[7:6] see Table 4-3: “CLKI to BCLK Divide Selection” for recommended settings

= configuration for MPC821 microprocessor

Table 4-3CLKI to BCLK Divide Selection

CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1

= recommended setting for MPC821 microprocessor

4.4 Register/Memory Mapping

The DRAM on the MPC821 ADS board extends from address 0 through 3F FFFFh, so the S1D13708 is addressed starting at 40 0000h. The S1D13708 uses two 128K byte blocks which are selected using A14 from the MPC821 (A14 is connected to the S1D13708 M/R# pin). The internal registers occupy the first 128K bytes block and the 80K byte display buffer occupies the second 128K byte block.

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

S1D13708 Pin · Name

Page 439 of the Epson LCD Controller (S1D13708) user manual — 4.5 MPC821 Chip Select Configuration
Page 439 · click to enlarge
Page 439

4.5 MPC821 Chip Select Configuration

Chip select 4 is used to control the S1D13708. The following options are selected in the base address register (BR4).

  • BA (0:16) = 0000 0000 0100 0000 0 – set starting address of S1D13708 to 40 0000h
  • AT (0:2) = 0 – ignore address type bits.
  • PS (0:1) = 1:0 – memory port size is 16 bits
  • PARE = 0 – disable parity checking
  • WP = 0 – disable write protect
  • MS (0:1) = 0:0 – select General Purpose Chip Select module to control this chip select
  • V = 1 – set valid bit to enable chip select

The following options were selected in the option register (OR4).

  • AM (0:16) = 1111 1111 1100 0000 0 – mask all but upper 10 address bits; S1D13708 consumes 4M byte of address space
  • ATM (0:2) = 0 – ignore address type bits
  • CSNT = 0 – normal CS/WE negation
  • ACS (0:1) = 1:1 – delay CS assertion by ½ clock cycle from address lines
  • BI = 1 – assert Burst Inhibit
  • SCY (0:3) = 0 – wait state selection; this field is ignored since external transfer acknowledge is used; see SETA below
  • SETA = 1 – the S1D13708 generates an external transfer acknowledge using the WAIT# line
  • TRLX = 0 – normal timing
  • EHTR = 0 – normal timing

Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

Page 440 of the Epson LCD Controller (S1D13708) user manual — Note
Page 440 · click to enlarge
Page 440

4.6 Test Software

The test software to exercise this interface is very simple. It configures chip select 4 (CS4) on the MPC821 to map the S1D13708 to an unused 256K byte block of address space and loads the appropriate values into the option register for CS4. Then the software runs a tight loop reading the 13708 Revision Code Register REG[00h]. This allows monitoring of the bus timing on a logic analyzer.

The following source code was entered into the memory of the MPC821ADS using the line-by-line assembler in MPC8BUG (the debugger provided with the ADS board). Once the program was executed on the ADS, a logic analyzer was used to verify operation of the interface hardware.

It is important to note that when the MPC821 comes out of reset, its on-chip caches and MMU are disabled. If the data cache is enabled, then the MMU must be set up so that the S1D13708 memory block is tagged as non-cacheable, to ensure that accesses to the S1D13708 occurs in proper order, and also to ensure that the MPC821 does not attempt to cache any data read from or written to the S1D13708 or its display buffer.

The source code for this test routine is as follows:

BR4 equ $120 ; CS4 base register OR4 equ $124 ; CS4 option register MemStart equ $42 0000 ; address of S1D13708 display buffer RevCodeReg equ $40 0000 ; address of Revision Code Register

Start mfspr r1,IMMR ; get base address of internal registers andis. r1,r1,$ffff ; clear lower 16 bits to 0 andis. r2,r0,0 ; clear r2 oris r2,r2,MemStart ; write base address ori r2,r2,$0801 ; port size 16 bits; select GPCM; enable stw r2,BR4(r1) ; write value to base register andis. r2,r0,0 ; clear r2 oris r2,r2,$ffc0 ; address mask – use upper 10 bits ori r2,r2,$0708 ; normal CS negation; delay CS ½ clock; ; inhibit burst stw r2,OR4(r1) ; write to option register andis. r1,r0,0 ; clear r1 oris r1,r1,MemStart ; point r1 to start of S1D13708 mem space Loop lbz r0,RevCodeReg(r1) ; read revision code into r1 b Loop ; branch forever

Note

MPC8BUG does not support comments or symbolic equates. These have been added for clarity only.

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

end

Page 441 of the Epson LCD Controller (S1D13708) user manual — 5 Software
Page 441 · click to enlarge
Page 441

5 Software

Test utilities and display drivers are available for the S1D13708. Full source code is available for both the test utilities and the drivers.

The test utilities are configurable for different panel types using a program called 13708CFG, or by directly modifying the source. The display drivers can be customized by the OEM for different panel types, resolutions and color depths only by modifying the source.

The S1D13708 test utilities and display drivers are available from your sales support contact or www.erd.epson.com

Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

Page 442 of the Epson LCD Controller (S1D13708) user manual — 6.2 Document Sources
Page 442 · click to enlarge
Page 442

6 References

6.1 Documents

  • Motorola Inc., Power PC MPC821 Portable Systems Microprocessor User’s Manual , Motorola Publication no. MPC821UM/; available on the Internet at <a href="http://www.motorola.com/" rel="nofollow noopener" target="_blank">http://www.motorola.com/</a>
  • Epson Research and Development, Inc., S1D13708 Hardware Functional Specification, Document Number X39A-A-001-xx.
  • Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board User Manual, Document Number X39A-G-004-xx.
  • Epson Research and Development, Inc., Programming Notes and Examples , Document Number X39A-G-003-xx.

6.2 Document Sources

  • Motorola Inc. Literature Distribution Center: (800) 441-2447.
  • Motorola Inc. Website: <a href="http://www.motorola.com/" rel="nofollow noopener" target="_blank">http://www.motorola.com/</a>
  • Epson Research and Development Website: <a href="http://www.erd.epson.com/" rel="nofollow noopener" target="_blank">http://www.erd.epson.com/</a>

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

Page 443 of the Epson LCD Controller (S1D13708) user manual — 7.2 Motorola MPC821 Processor
Page 443 · click to enlarge
Page 443

7 Technical Support

7.1 EPSON LCD/CRT Controllers (S1D13708)

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

7.2 Motorola MPC821 Processor

  • Motorola Design Line, (800) 521-6274.
  • Local Motorola sales office or authorized distributor.

Interfacing to the Motorola MPC821 Microprocessor S1D13708 Issue Date: 01/11/06 X39A-G-009-01

Page 444 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 444 · click to enlarge
Page 444

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Motorola MPC821 Microprocessor X39A-G-009-01 Issue Date: 01/11/06

Page 445 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-010-01
Page 445 · click to enlarge
Page 445

S1D13708 Embedded Memory LCD Controller

Interfacing to the Motorola MCF5307

"ColdFire" Microprocessor

Document Number: X39A-G-010-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All Trademarks are the property of their respective owners.

Page 446 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 446 · click to enlarge
Page 446

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

Page 449 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 449 · click to enlarge
Page 449

List of Tables

Table 3-1: Host Bus Interface Pin Mapping 11 Table 4-1: Summary of Power-On/Reset Configuration Options 14 Table 4-2: CLKI to BCLK Divide Selection 14

List of Figures

Figure 2-1: MCF5307 Memory Read Cycle 9 Figure 2-2: MCF5307 Memory Write Cycle 9 Figure 2-3: Chip Select Module Outputs Timing 10 Figure 4-1: Typical Implementation of MCF5307 to S1D13708 Interface 13

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01

Page 450 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 450 · click to enlarge
Page 450

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

Page 451 of the Epson LCD Controller (S1D13708) user manual — 1 Introduction
Page 451 · click to enlarge
Page 451

1 Introduction

This application note describes the hardware and software environment required to interface the S1D13708 Embedded Memory LCD Controller and the Motorola MCF5307 Processor.

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 Epson Research and Development website at http://www.erd.epson.com for the latest revision of this document before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01

Page 452 of the Epson LCD Controller (S1D13708) user manual — 2.1.2 Normal (Non-Burst) Bus Transactions
Page 452 · click to enlarge
Page 452

2 Interfacing to the MCF5307

2.1 The MCF5307 System Bus

The MCF5200/5300 family of processors feature a high-speed synchronous system bus typical of modern microprocessors. This section is an overview of the operation of the CPU bus in order to establish interface requirements.

2.1.1 Overview

The MCF5307 microprocessor family uses a synchronous address and data bus, very similar in architecture to the MC68040 and MPC8xx. All outputs and inputs are timed with respect to a square-wave reference clock called BCLK0 (Master Clock). This clock runs at a software-selectable divisor rate from the machine cycle speed of the CPU core (typically 20 to 33 MHz). Both the address and the data bus are 32 bits in width. All IO accesses are memory-mapped; there is no separate IO space in the Coldfire architecture.

The bus can support two types of cycles, normal and burst. Burst memory cycles are used to fill on-chip cache memories, and for certain on-chip DMA operations. Normal cycles are used for all other data transfers.

2.1.2 Normal (Non-Burst) Bus Transactions

A data transfer is initiated by the bus master by placing the memory address on address lines A31 through A0 and driving TS (Transfer Start) low for one clock cycle. Several control signals are also provided with the memory address:

  • BWE[1:0] (Transfer Size) — indicates whether the bus cycle is 8, 16, or 32-bit.
  • R/W — set high for read cycles and low for write cycles.
  • TT[1:0] (Transfer Type Signals) — provides more detail on the type of transfer being attempted.
  • TIP (Transfer In Progress) — asserts whenever a bus cycle is active.

When the peripheral device being accessed has completed the bus transfer, it asserts TA (Transfer Acknowledge) for one clock cycle to complete the bus transaction. Once TA has been asserted, the MCF5307 will not start another bus cycle until TA has been de-asserted. The minimum length of a bus transaction is two bus clocks.

S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

Page 453 of the Epson LCD Controller (S1D13708) user manual — 2.1.3 Burst Cycles
Page 453 · click to enlarge
Page 453

Figure 2-1: “MCF5307 Memory Read Cycle,” illustrates a typical memory read cycle on the MCF5307 system bus.

Epson LCD Controller (S1D13708) — Figure 21: MCF5307 Memory Read Cycle diagram (page 453)
Fig. 110 · Figure 21: MCF5307 Memory Read Cycle
Figure 2-1MCF5307 Memory Read Cycle

Figure 2-2: “MCF5307 Memory Write Cycle,” illustrates a typical memory write cycle on the MCF5307 system bus.

Epson LCD Controller (S1D13708) — Figure 21: MCF5307 Memory Read Cycle diagram (page 453)
Fig. 111 · Figure 21: MCF5307 Memory Read Cycle
Figure 2-2MCF5307 Memory Write Cycle

2.1.3 Burst Cycles

Burst cycles are very similar to normal cycles, except that they occur as a series of four back-to-back, 32-bit memory reads or writes. The TIP (Transfer In Progress) output is asserted continuously through the burst. Burst memory cycles are mainly intended to fill

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01

Page 454 of the Epson LCD Controller (S1D13708) user manual — CLK
Page 454 · click to enlarge
Page 454

caches from program or data memory. They are typically not used for transfers to or from IO peripheral devices such as the S1D13708. The MCF5307 chip selects provide a mechanism to disable burst accesses for peripheral devices which are not burst capable.

2.2 Chip-Select Module

In addition to generating eight independent chip-select outputs, the MCF5307 Chip Select Module can generate active-low Output Enable (OE) and Write Enable (BWE) signals compatible with most memory and x86-style peripherals. The MCF5307 bus controller also provides a Read/Write (R/W) signal which is compatible with most 68K peripherals.

Chip selects 0 and 1 can be programmed independently to respond to any base address and block size. Chip select 0 can be active immediately after reset, and is typically used to control a boot ROM. Chip select 1 is likewise typically used to control a large static or dynamic RAM block.

Chip selects 2 through 7 have fixed block sizes of 2M bytes each. Each has a unique, fixed offset from a common, programmable starting address. These chip selects are well-suited to typical IO addressing requirements.

Each chip select may be individually programmed for:

  • port size (8/16/32-bit).
  • up to 15 wait states or external acknowledge.
  • address space type.
  • burst or non-burst cycle support.
  • write protect.

Figure 2-3: “Chip Select Module Outputs Timing” illustrates a typical cycle for a memory mapped device using the GPCM of the Power PC.

CLK

CS[7:0]

BE/BWE[3:0]

OE

Figure 2-3Chip Select Module Outputs Timing

S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

Page 455 of the Epson LCD Controller (S1D13708) user manual — RD/WR# OE
Page 455 · click to enlarge
Page 455

3 S1D13708 Host Bus Interface

The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit Generic #1 Host Bus Interface which is most suitable for direct connection to the Motorola MFC5307 microprocessor. Generic #1 supports a Chip Select and an individual Read Enable/Write Enable for each byte.

The Generic #1 Host Bus Interface is selected by the S1D13708 on the rising edge of RESET#. After RESET# is released, the bus interface signals assume their selected config- uration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware Configuration” on page 14.

The S1D13708 clock (CLKI) is taken from the system host bus. The system clock source will drive all required internal clocks. If they are not used, the CLKI2 and XTAL inputs should be tied to ground.

3.1 Host Bus Interface Pin Mapping

The following table shows the functions of each Host Bus Interface signal.

Table 3-1Host Bus Interface Pin Mapping

S1D13708 Pin Names Motorola MCF5307

AB[16:0] A[16:0]

DB[15:0] D[31:16]

WE1# BWE1

CS# CS4

M/R# A17

CLKI BCLK0

BS# Connect to IO VDD

RD/WR# OE

RD# OE

WE0# BWE0

WAIT# TA

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01

RESET# system RESET

Page 456 of the Epson LCD Controller (S1D13708) user manual — 3.2 Host Bus Interface Signals
Page 456 · click to enlarge
Page 456

3.2 Host Bus Interface Signals

The Host Bus Interface requires the following signals.

  • CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source for its internal bus and memory clocks. This clock is typically driven by the host CPU system clock. For this example, BCLK0 from the Motorola MCF5307 is used for CLKI.
  • The address inputs AB[16:0] connect directly to the MCF5307 address bus (A[16:0]).
  • DB[7:0] connects D[23:16] (the MCF5307 low order byte). DB[15:8] connects to D[31:24] (the MCF5307 high order byte). CNF4 must be set to select big endian mode.
  • Chip Select (CS#) must be driven low by CS4 whenever the S1D13708 is accessed by the Motorola MCF5307.
  • M/R# (memory/register) selects between memory or register accesses. This signal may be connected to an address line, allowing system address A17 to be connected to the M/R# line.
  • WE0# connects to BWE0 (the low byte enable signal from the MCF5307) and must be driven low when the MCF5307 is writing the low byte to the S1D13708.
  • WE1# connects to BWE1 (the high byte enable signal from the MCF5307) and must be driven low when the MCF5307 is writing the high byte to the S1D13708.
  • RD# and RD/WR# are read enables for the low-order and high-order bytes, respectively. Both signals are driven low by OE when the Motorola MCF5307 is reading data from the S1D13708.
  • WAIT# connects to TA and is a signal which is output from the S1D13708 that indicates the host CPU must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. Since host CPU accesses to the S1D13708 may occur asynchronously to the display update, it is possible that contention may occur in accessing the S1D13708 internal registers and/or refresh memory. The WAIT# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. This signal is active low and may need to be inverted if the host CPU wait state signal is active high.
  • The Bus Status (BS#) signal is not used in the bus interface for Generic #1 mode and must be tied high to IO V DD .

S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

Page 457 of the Epson LCD Controller (S1D13708) user manual — MCF5307 S1D13708
Page 457 · click to enlarge
Page 457

4 MCF5307 To S1D13708 Interface

4.1 Hardware Description

The interface between the S1D13708 and the MCF5307 requires no external glue logic. The polarity of the WAIT# signal must be selected as active high by connecting CNF5 to IO VDD (see Table 4-1:, “Summary of Power-On/Reset Configuration Options,” on page 14).

The following diagram shows a typical implementation of the MCF5307 to S1D13708 interface.

MCF5307 S1D13708

A[16:0]

AB[16:0]

D[23:16]

DB[7:0]

D[31:24] DB[15:8]

M/R# A17

CS4

CS#

IO V DD

BS#

TA

WAIT#

BWE1

WE1#

BWE0

WE0#

OE

RD/WR#

RD#

BCLK0

CLKI

RESET#

Figure 4-1Typical Implementation of MCF5307 to S1D13708 Interface

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01

System RESET

Page 458 of the Epson LCD Controller (S1D13708) user manual — S1D13708
Page 458 · click to enlarge
Page 458

4.2 S1D13708 Hardware Configuration

The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

The following table shows the configuration required for this implementation of a S1D13708 to Motorola MFC5307 microprocessor.

Table 4-1Summary of Power-On/Reset Configuration Options

S1D13708

value on this pin at the rising edge of RESET# is used to configure: (1/0)

1 0 CNF[4, 2:0] 1011 = Generic #1 Big Endian Host Bus Interface CNF3 GPIO pins as inputs at power on GPIO pins as HR-TFT / D-TFT outputs CNF5 Active high WAIT# Active low WAIT# CNF[7:6] See Table 4-2: “CLKI to BCLK Divide Selection” for recommended setting

= configuration for MFC5307 host bus interface

Table 4-2CLKI to BCLK Divide Selection

CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1

= recommended setting for MFC5307 host bus interface

S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

Pin Name

Page 459 of the Epson LCD Controller (S1D13708) user manual — 4.4 MCF5307 Chip Select Configuration
Page 459 · click to enlarge
Page 459

4.3 Register/Memory Mapping

The S1D13708 uses two 128K byte blocks which are selected using A17 from the MCF5307 (A17 is connected to the S1D13708 M/R# pin). The internal registers occupy the first 128K bytes block and the 80K byte display buffer occupies the second 128K byte block. These two blocks of memory are aliased over the entire 2M byte space.

Note

If aliasing is not desirable, the upper addresses must be fully decoded.

4.4 MCF5307 Chip Select Configuration

Chip Selects 0 and 1 have programmable block sizes from 64K bytes through 2G bytes. However, these chip selects would normally be needed to control system RAM and ROM. Therefore, one of the IO chip selects CS2 through CS7 is required to address the entire address space of the S1D13708. These IO chip selects have a fixed, 2M byte block size. In the example interface, chip select 4 is used to control the S1D13708. The CSBAR register should be set to the upper 8 bits of the desired base address.

The following options should be selected in the chip select mask registers (CSMR4/5).

  • WP = 0 – disable write protect
  • AM = 0 - enable alternate bus master access to the S1D13708
  • C/I = 1 - disable CPU space access to the S1D13708
  • SC = 1 - disable Supervisor Code space access to the S1D13708
  • SD = 0 - enable Supervisor Data space access to the S1D13708
  • UC = 1 - disable User Code space access to the S1D13708
  • UD = 0 - enable User Data space access to the S1D13708
  • V = 1 - global enable (“Valid”) for the chip select

The following options should be selected in the chip select control registers (CSCR4/5).

  • WS0-3 = 0 - no internal wait state setting
  • AA = 0 - no automatic acknowledgment
  • PS (1:0) = 1:0 – memory port size is 16 bits
  • BEM = 0 – Byte enable/write enable active on writes only
  • BSTR = 0 – disable burst reads
  • BSTW = 0 – disable burst writes

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01

Page 460 of the Epson LCD Controller (S1D13708) user manual — 5 Software
Page 460 · click to enlarge
Page 460

5 Software

Test utilities and display drivers are available for the S1D13708. Full source code is available for both the test utilities and the drivers.

The test utilities are configurable for different panel types using a program called 13708CFG, or by directly modifying the source. The display drivers can be customized by the OEM for different panel types, resolutions and color depths only by modifying the source.

The S1D13708 test utilities and display drivers are available from your sales support contact or www.erd.epson.com

S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

Page 461 of the Epson LCD Controller (S1D13708) user manual — 6.2 Document Sources
Page 461 · click to enlarge
Page 461

6 References

6.1 Documents

  • Motorola Inc., MCF5307 ColdFire® Integrated Microprocessor User’s Manual , Motorola Publication no. MCF5307UM; available on the Internet at <a href="http://www.motorola.com/" rel="nofollow noopener" target="_blank">http://www.motorola.com/</a>
  • Epson Research and Development, Inc., S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.
  • Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board User Manual, document number X39A-G-004-xx.
  • Epson Research and Development, Inc., S1D13708 Programming Notes and Examples , document number X39A-G-003-xx.

6.2 Document Sources

  • Motorola Inc. Literature Distribution Center: (800) 441-2447.
  • Motorola Inc. Website: <a href="http://www.motorola.com/" rel="nofollow noopener" target="_blank">http://www.motorola.com/</a>
  • Epson Research and Development Website: <a href="http://www.erd.epson.com/" rel="nofollow noopener" target="_blank">http://www.erd.epson.com/</a>

Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-010-01

Page 462 of the Epson LCD Controller (S1D13708) user manual — 7.2 Motorola MCF5307 Processor
Page 462 · click to enlarge
Page 462

7 Technical Support

7.1 EPSON LCD Controllers (S1D13708)

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

7.2 Motorola MCF5307 Processor

  • Motorola Design Line, (800) 521-6274.
  • Local Motorola sales office or authorized distributor.

S1D13708 Interfacing to the Motorola MCF5307 "ColdFire" Microprocessor X39A-G-010-01 Issue Date: 01/11/25

Page 463 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-011-01
Page 463 · click to enlarge
Page 463

S1D13708 Embedded Memory LCD Controller

Connecting to the Sharp HR-TFT

Panels

Document Number: X39A-G-011-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.

Page 464 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 464 · click to enlarge
Page 464

THIS PAGE LEFT BLANK

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

Page 467 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 467 · click to enlarge
Page 467

List of Tables

Table 2-1: HR-TFT Power-On/Off Sequence Timing 11 Table 2-2: S1D13708 to LQ039Q2DS01 Pin Mapping 12 Table 3-1: S1D13708 to LQ031B1DDxx Pin Mapping 16

List of Figures

Figure 2-1: Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generation 8 Figure 2-2: Panel Gate Driver DC Power Supplies 9 Figure 2-3: Panel Gate Driver AC Power Supplies 10 Figure 2-4: HR-TFT Power-On/Off Sequence Timing 11 Figure 3-1: Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generation 14

Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

Page 468 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 468 · click to enlarge
Page 468

THIS PAGE LEFT BLANK

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

Page 469 of the Epson LCD Controller (S1D13708) user manual — 1 Introduction
Page 469 · click to enlarge
Page 469

1 Introduction

This application note describes the hardware environment required to connect to the Sharp HR-TFT panels directly supported by the S1D13708. These panels are:

  • Sharp LQ031B1DDXX 160 x 160 HR-TFT panel.
  • Sharp LQ039Q2DS01 320 x 240 HR-TFT panel.

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 Epson Research and Development website at www.erd.epson.com for the latest revision of this document before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

Page 470 of the Epson LCD Controller (S1D13708) user manual — 2.1.1 Gray Scale Voltages for Gamma Correction
Page 470 · click to enlarge
Page 470

2 Connecting to the Sharp LQ039Q2DS01 HR-TFT

2.1 External Power Supplies

The S1D13708 provides all necessary data and control signals to connect to the Sharp LQ039Q2DS01 320 x 240 HR-TFT panel. However, it does not provide any of the voltages required for gray scaling, gate driving, or for the digital and analog supplies. Therefore, external supplies must be designed for any device utilizing the LQ039Q2DS01.

2.1.1 Gray Scale Voltages for Gamma Correction

The standard gray scale voltages can be generated using a precise resistor divider network that supplies two sets (A and B) of nine reference voltages to a National Semiconductor 9-Channel Buffer Amplifier (LMC6009). The LMC6009 buffers these nine reference voltages and outputs them to the panel column drivers. The A/B inputs allow the two sets of reference voltages to be alternated, compensating for asymmetrical gamma character- istics during row inversion. This input is controlled by the S1D13708 output signal REV which toggles every time a horizontal sync signal is sent to the panel.

The REV signal is also used to generate the highest gray scale voltage (V0 or black) by buffering REV and shifting its maximum level to the maximum gray scale voltage (CON_POWER). CON_POWER is supplied by a National Semiconductor micropower Voltage Regulator (LP2951). Figure 2-1: “Sharp LQ039Q2DS01 Gray Scale Voltage (V0- V9) Generation” shows the schematic for gray scale voltage generation.

Epson LCD Controller (S1D13708) — 2.1.1 Gray Scale Voltages for Gamma Correction diagram (page 470)
Fig. 112 · 2.1.1 Gray Scale Voltages for Gamma Correction

4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21

A1A A1B A2A A2B A3A A3B A4A A4B A5A A5B A6A A6B A7A A7B A8A A8B A9A A9B

OUT_A1 OUT_A2 OUT_A3 OUT_A4 OUT_A5 OUT_A6 OUT_A7 OUT_A8 OUT_A9

42 41 40 39 36 35 34 33 32

1 2 3 4 5 6 7 8 OUTPUT

Figure 2-1Sharp LQ039Q2DS01 Gray Scale Voltage (V0-V9) Generation

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

Page 471 of the Epson LCD Controller (S1D13708) user manual — 2.1.3 DC Gate Driver Power Supplies
Page 471 · click to enlarge
Page 471

2.1.2 Digital/Analog Power Supplies

The digital power supply (VSHD) must be connected to a 3.3V supply. The analog power supply (VSHA) must be connected to a 5.0V supply.

2.1.3 DC Gate Driver Power Supplies

The gate driver high level power supply (VDD) and the gate driver logic low power supply (VSS) have typical values of +15V and -15V respectively. These power supplies can be provided by a Linear Technology high efficiency switching regulator (LT1172). The two power supplies can be adjusted through their allowable ranges using the potentiometer VR1.

The gate driver logic high power supply (VCC) is defined as VSS + VSHD. The typical VCC voltage of -11.7V can be supplied from VSS using a 3.3V zener diode which provides the necessary voltage change.

Figure 2-2: “Panel Gate Driver DC Power Supplies” shows the schematic for VSS, VDD and VCC.

Epson LCD Controller (S1D13708) — 2.1.3 DC Gate Driver Power Supplies diagram (page 471)
Fig. 113 · 2.1.3 DC Gate Driver Power Supplies
Figure 2-2Panel Gate Driver DC Power Supplies

Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

Page 472 of the Epson LCD Controller (S1D13708) user manual — 2.1.4 AC Gate Driver Power Supplies
Page 472 · click to enlarge
Page 472

2.1.4 AC Gate Driver Power Supplies

The gate drive low level power supply (VEE) is an AC power supply with a DC offset voltage (offset typically -9.0V). The AC component is the common electrode driving signal (VCOM) which has a voltage of ±2.5V. VCOM must be alternated every horizontal period and every vertical period. The S1D13708 output signal REV accomplishes this function and generates the alternating VCOM signal which is superimposed onto VEE. Figure 2-3: “Panel Gate Driver AC Power Supplies,” on page 10 shows the schematic for generating VCOM and VEE.

Epson LCD Controller (S1D13708) — 2.1.4 AC Gate Driver Power Supplies diagram (page 472)
Fig. 114 · 2.1.4 AC Gate Driver Power Supplies
Figure 2-3Panel Gate Driver AC Power Supplies

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

Page 473 of the Epson LCD Controller (S1D13708) user manual — 2.2 HR-TFT MOD Signal
Page 473 · click to enlarge
Page 473

2.2 HR-TFT MOD Signal

The HR-TFT panel uses an input signal (MOD) to control the power-on sequencing of the panel. This HR-TFT signal should not be confused with the S1D13708 signal DRDY (referred to as MOD for passive panels).

To power-on the HR-TFT panel, MOD must be held low until the power supply has been turned on for more than two FRAMES. To power-off the HR-TFT panel, MOD must be forced low before the power supply is turned off. This sequencing requires two software controlled GPIO pins from the S1D13708 (see Figure 2-4: “HR-TFT Power-On/Off Sequence Timing” ).

Epson LCD Controller (S1D13708) — 2.2 HR-TFT MOD Signal diagram (page 473)
Fig. 115 · 2.2 HR-TFT MOD Signal

*It is recommended to use one of the general purpose IO pins GPIO[6:4] to control the digital power supply VSHD.

** It is recommended to use one of the general purpose IO pins GPIO[6:4] to control the other power supplies required by the HR-TFT panel.

***The S1D13708 LCD power-on/off sequence is activated by programming the Power Save Mode Enable bit (REG[A0h] bit 0 ****LCD Signals include: FPDAT[17:0], FPSHIFT, FPLINE, FPFRAME, and GPIO[3:0].

Figure 2-4HR-TFT Power-On/Off Sequence Timing
Table 2-1HR-TFT Power-On/Off Sequence Timing
Epson LCD Controller (S1D13708) — 2.2 HR-TFT MOD Signal diagram (page 473)
Fig. 116 · 2.2 HR-TFT MOD Signal

t1 LCD Power (VSHD) active to Power Save Mode disabled 0 ns

t2 LCD signals low to LCD Power (VSHD) inactive 0 ns

t3 Power Save Mode disabled to LCD Power (other) active 0 ns

t4 LCD Power (other) inactive to Power Save Mode enabled 0 ns

t5 LCD Power (other) active to MOD active 2 FRAME

t6 MOD inactive to LCD Power (other) inactive 0 ns

t7 Power Save Mode disabled to LCD signals active 20 ns

t8 Power Save Mode enabled to LCD signals low 20 ns

Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

Page 474 of the Epson LCD Controller (S1D13708) user manual — S1D13708
Page 474 · click to enlarge
Page 474

2.3 S1D13708 to LQ039Q2DS01 Pin Mapping

Table 2-2S1D13708 to LQ039Q2DS01 Pin Mapping

S1D13708

Pin Name Description Remarks

No.

1 VDD - Power supply of gate driver (high level) See Section 2.1, “External Power Supplies” on page 8

2 VCC - Power supply of gate driver (logic high) See Section 2.1, “External Power Supplies” on page 8

3 MOD - Control signal of gate driver See Section 2.2, “HR-TFT MOD Signal” on page 11

4 MOD - Control signal of gate driver See Section 2.2, “HR-TFT MOD Signal” on page 11

5 U/L - Selection for vertical scanning direction Connect to VSHD (top / bottom scanning)

6 SPS FPFRAME Start signal of gate driver

7 CLS GPIO1 Clock signal of gate driver

8 VSS - Power supply of gate driver (logic low) See Section 2.1, “External Power Supplies” on page 8

9 VEE - Power supply of gate driver (low level) See Section 2.1, “External Power Supplies” on page 8

10 VEE - Power supply of gate driver (low level) See Section 2.1, “External Power Supplies” on page 8

11 VCOM - Common electrode driving signal See Section 2.1, “External Power Supplies” on page 8

12 VCOM - Common electrode driving signal See Section 2.1, “External Power Supplies” on page 8

13 SPL GPIO3 Sampling start signal for left / right scanning

14 R0 FPDAT11 Red data signal (LSB)

15 R1 FPDAT10 Red data signal

16 R2 FPDAT9 Red data signal

17 R3 FPDAT2 Red data signal

18 R4 FPDAT1 Red data signal

19 R5 FPDAT0 Red data signal (MSB)

20 G0 FPDAT14 Green data signal (LSB)

21 G1 FPDAT13 Green data signal

22 G2 FPDAT12 Green data signal

23 G3 FPDAT5 Green data signal

24 G4 FPDAT4 Green data signal

25 G5 FPDAT3 Green data signal (MSB)

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

LCD Pin · LCD Pin · Name

Page 475 of the Epson LCD Controller (S1D13708) user manual — S1D13708
Page 475 · click to enlarge
Page 475
Table 2-2S1D13708 to LQ039Q2DS01 Pin Mapping (Continued)

S1D13708

Pin Name Description Remarks

No.

26 B0 FPDAT17 Blue data signal (LSB)

27 B1 FPDAT16 Blue data signal

28 B2 FPDAT15 Blue data signal

29 B3 FPDAT8 Blue data signal

30 B4 FPDAT7 Blue data signal

31 B5 FPDAT6 Blue data signal (MSB)

32 VSHD - Digital power supply See Section 2.1, “External Power Supplies” on page 8

33 DGND VSS Digital ground Ground pin of S1D13708

34 PS GPIO0 Power save signal

35 LP FPLINE Data latch signal of source driver

36 DCLK FPSHIFT Data sampling clock signal

37 LBR - Selection for horizontal scanning direction Connect to VSHD (left / right scanning)

38 SPR - Sampling start signal for right / left scanning Right to left scanning not supported

39 VSHA - Analog power supply See Section 2.1, “External Power Supplies” on page 8

40 V0 - Standard gray scale voltage (black) See Section 2.1, “External Power Supplies” on page 8

41 V1 - Standard gray scale voltage See Section 2.1, “External Power Supplies” on page 8

42 V2 - Standard gray scale voltage See Section 2.1, “External Power Supplies” on page 8

43 V3 - Standard gray scale voltage See Section 2.1, “External Power Supplies” on page 8

44 V4 - Standard gray scale voltage See Section 2.1, “External Power Supplies” on page 8

45 V5 - Standard gray scale voltage See Section 2.1, “External Power Supplies” on page 8

46 V6 - Standard gray scale voltage See Section 2.1, “External Power Supplies” on page 8

47 V7 - Standard gray scale voltage See Section 2.1, “External Power Supplies” on page 8

48 V8 - Standard gray scale voltage See Section 2.1, “External Power Supplies” on page 8

49 V9 - Standard gray scale voltage (white) See Section 2.1, “External Power Supplies” on page 8

50 AGND VSS Analog ground Ground pin of S1D13708

Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

LCD Pin · LCD Pin · Name

Page 476 of the Epson LCD Controller (S1D13708) user manual — 3.1.1 Gray Scale Voltages for Gamma Correction
Page 476 · click to enlarge
Page 476

3 Connecting to the Sharp LQ031B1DDxx HR-TFT

3.1 External Power Supplies

The S1D13708 provides all necessary data and control signals to connect to the Sharp LQ031B1DDxx 160x160 HR-TFT panel(s). However, it does not provide any of the voltages required for the backlight, gray scaling, gate driving, or for the digital and analog supplies. Therefore, external supplies must be designed for any device utilizing the LQ031B1DDxx.

The LQ031B1DDxx (160x160) has the same voltage requirements as the LQ039Q2DS01 (320x240). All the circuits used to generate the various voltages for the LQ039Q2DS01 panel also apply to the LQ031B1DDxx panel. This section provides additional circuits for generating some of these voltages.

3.1.1 Gray Scale Voltages for Gamma Correction

The standard gray scale voltages can be generated using a precise resistor divider network as described in Section 2.1.1, “Gray Scale Voltages for Gamma Correction” on page 8. Alternately, they can be generated using a Sharp gray scale IC. The Sharp IR3E203 elimi- nates the large resistor network used to provide the 10 gray scale voltages and combines their function into a single IC.

The S1D13708 output signal REV is used to alternate the gray scale voltages and connects to the SW input of the IR3E203 IC. The COM signal is used in generating the gate driver panel AC voltage, VCOM and is explained in Section 3.1.4, “AC Gate Driver Power Supplies” on page 15. Figure 3-1: “Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generation” shows the circuit that generates the gray scale voltages using the Sharp IR3E203 IC.

Epson LCD Controller (S1D13708) — 3.1.1 Gray Scale Voltages for Gamma Correction diagram (page 476)
Fig. 117 · 3.1.1 Gray Scale Voltages for Gamma Correction

5 6 7 8 9 11 12 13 14 15 10

V0 V1 V2 V3 V4 V5 V6 V7 V8 V9

V0 V1 V2 V3 V4 V5 V6 V7 V8 V9 GND

Figure 3-1Sharp LQ031B1DDxx Gray Scale Voltage (V0-V9) Generation

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

Page 477 of the Epson LCD Controller (S1D13708) user manual — 3.2 HR-TFT MOD Signal
Page 477 · click to enlarge
Page 477

3.1.2 Digital/Analog Power Supplies

The digital power supply (VSHD) must be connected to a 3.3V supply. The analog power supply (VSHA) must be connected to a 5.0V supply.

3.1.3 DC Gate Driver Power Supplies

See Section 2.1.3, “DC Gate Driver Power Supplies” on page 9 and Figure 2-2: “Panel Gate Driver DC Power Supplies,” on page 9 for details on generating VSS, VDD, and VCC.

3.1.4 AC Gate Driver Power Supplies

See Section 2.1.4, “AC Gate Driver Power Supplies” on page 10 and Figure 2-3: “Panel Gate Driver AC Power Supplies,” on page 10 for details on generating VEE and VCOM. If the Sharp IR3E203 is used to generate the gray scale voltages, the COM signal can be connected to the input of the F2C02E MOSFET instead of the buffered REV signal.

3.2 HR-TFT MOD Signal

See Section 2.2, “HR-TFT MOD Signal” on page 11 for details on controlling the MOD signal through software.

Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

Page 478 of the Epson LCD Controller (S1D13708) user manual — S1D13708
Page 478 · click to enlarge
Page 478

3.3 S1D13708 to LQ031B1DDxx Pin Mapping

Table 3-1S1D13708 to LQ031B1DDxx Pin Mapping

S1D13708

Pin Name Description Remarks

No.

1 VDD - Power supply of gate driver (high level) See Section 3.1, “External Power Supplies” on page 14

2 VCC - Power supply of gate driver (logic high) See Section 3.1, “External Power Supplies” on page 14

3 MOD - Control signal of gate driver See Section 3.2, “HR-TFT MOD Signal” on page 15

4 MOD - Control signal of gate driver See Section 3.2, “HR-TFT MOD Signal” on page 15

5 U/L - Selection for vertical scanning direction Connect to VSHD (top / bottom scanning)

6 SPS FPFRAME Start signal of gate driver

7 CLS GPIO1 Clock signal of gate driver

8 VSS - Power supply of gate driver (logic low) See Section 3.1, “External Power Supplies” on page 14

9 VEE - Power supply of gate driver (low level) See Section 3.1, “External Power Supplies” on page 14

10 VEE - Power supply of gate driver (low level) See Section 3.1, “External Power Supplies” on page 14

11 VCOM - Common electrode driving signal See Section 3.1, “External Power Supplies” on page 14

12 VCOM - Common electrode driving signal See Section 3.1, “External Power Supplies” on page 14

13 SPL GPIO3 Sampling start signal for left / right scanning

14 R0 FPDAT11 Red data signal (LSB)

15 R1 FPDAT10 Red data signal

16 R2 FPDAT9 Red data signal

17 R3 FPDAT2 Red data signal

18 R4 FPDAT1 Red data signal

19 R5 FPDAT0 Red data signal (MSB)

20 G0 FPDAT14 Green data signal (LSB)

21 G1 FPDAT13 Green data signal

22 G2 FPDAT12 Green data signal

23 G3 FPDAT5 Green data signal

24 G4 FPDAT4 Green data signal

25 G5 FPDAT3 Green data signal (MSB)

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

LCD Pin · LCD Pin · Name

Page 479 of the Epson LCD Controller (S1D13708) user manual — S1D13708
Page 479 · click to enlarge
Page 479
Table 3-1S1D13708 to LQ031B1DDxx Pin Mapping (Continued)

S1D13708

Pin Name Description Remarks

No.

26 B0 FPDAT17 Blue data signal (LSB)

27 B1 FPDAT16 Blue data signal

28 B2 FPDAT15 Blue data signal

29 B3 FPDAT8 Blue data signal

30 B4 FPDAT7 Blue data signal

31 B5 FPDAT6 Blue data signal (MSB)

32 VSHD - Digital power supply See Section 3.1, “External Power Supplies” on page 14

33 DGND VSS Digital ground Ground pin of S1D13708

34 PS GPIO0 Power save signal

35 LP FPLINE Data latch signal of source driver

36 DCLK FPSHIFT Data sampling clock signal

37 LBR - Selection for horizontal scanning direction Connect to VSHD (left / right scanning)

38 SPR - Sampling start signal for right / left scanning Right to left scanning not supported

39 VSHA - Analog power supply See Section 3.1, “External Power Supplies” on page 14

40 V0 - Standard gray scale voltage (black) See Section 3.1, “External Power Supplies” on page 14

41 V1 - Standard gray scale voltage See Section 3.1, “External Power Supplies” on page 14

42 V2 - Standard gray scale voltage See Section 3.1, “External Power Supplies” on page 14

43 V3 - Standard gray scale voltage See Section 3.1, “External Power Supplies” on page 14

44 V4 - Standard gray scale voltage See Section 3.1, “External Power Supplies” on page 14

45 V5 - Standard gray scale voltage See Section 3.1, “External Power Supplies” on page 14

46 V6 - Standard gray scale voltage See Section 3.1, “External Power Supplies” on page 14

47 V7 - Standard gray scale voltage See Section 3.1, “External Power Supplies” on page 14

48 V8 - Standard gray scale voltage See Section 3.1, “External Power Supplies” on page 14

49 V9 - Standard gray scale voltage (white) See Section 3.1, “External Power Supplies” on page 14

50 AGND VSS Analog ground Ground pin of S1D13708

Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

LCD Pin · LCD Pin · Name

Page 480 of the Epson LCD Controller (S1D13708) user manual — 4 Test Software
Page 480 · click to enlarge
Page 480

4 Test Software

Test utilities and display drivers are available for the S1D13708. Full source code is available for both the test utilities and the drivers.

The test utilities are configurable for different panel types using a program called 13708CFG, or by directly modifying the source. The display drivers can be customized by the OEM for different panel types, resolutions and color depths only by modifying the source.

The S1D13708 test utilities and display drivers are available from your sales support contact or www.erd.epson.com

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

Page 481 of the Epson LCD Controller (S1D13708) user manual — 5.2 Document Sources
Page 481 · click to enlarge
Page 481

5 References

5.1 Documents

  • Sharp Electronics Corporation, LQ039Q2DS01 Specification .
  • Sharp Electronics Corporation, LQ031B1DDxx Specification .
  • Epson Research and Development, Inc., S1D13708 Hardware Functional Specification , Document Number X39A-A-001-xx.
  • Epson Research and Development, Inc., S1D13708 Programming Notes and Examples , Document Number X39A-G-003-xx.

5.2 Document Sources

  • Sharp Electronics Corporation Website: <a href="http://www.sharpsma.com" rel="nofollow noopener" target="_blank">http://www.sharpsma.com</a>
  • Epson Research and Development Website: <a href="http://www.erd.epson.com/" rel="nofollow noopener" target="_blank">http://www.erd.epson.com/</a>

Connecting to the Sharp HR-TFT Panels S1D13708 Issue Date: 01/11/25 X39A-G-011-01

Page 482 of the Epson LCD Controller (S1D13708) user manual — 6.2 Sharp HR-TFT Panel
Page 482 · click to enlarge
Page 482

6 Technical Support

6.1 EPSON LCD Controllers (S1D13708)

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

6.2 Sharp HR-TFT Panel

http://www.sharpsma.com

S1D13708 Connecting to the Sharp HR-TFT Panels X39A-G-011-01 Issue Date: 01/11/25

Page 483 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-014-01
Page 483 · click to enlarge
Page 483

S1D13708 Embedded Memory LCD Controller

Interfacing to the Motorola RedCap2

Document Number: X39A-G-014-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. Microsoft and Windows are registered trademarks of Microsoft Corporation. All other trademarks are the property of their respective owners.

Page 484 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 484 · click to enlarge
Page 484

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

Page 487 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 487 · click to enlarge
Page 487

List of Tables

Table 3-1: Host Bus Interface Pin Mapping 10 Table 4-1: List of Connections for REDCAP2 ADM 13 Table 4-2: Summary of Power-On/Reset Options 15

List of Figures

Figure 2-1: REDCAP2 Memory Read Cycle 9 Figure 2-2: REDCAP2 Memory Write Cycle 9 Figure 4-1: Typical Implementation of REDCAP2 to S1D13708 Interface 12

Interfacing to the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

Page 488 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 488 · click to enlarge
Page 488

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

Page 489 of the Epson LCD Controller (S1D13708) user manual — 1 Introduction
Page 489 · click to enlarge
Page 489

1 Introduction

This application note describes the hardware and software environment required to provide an interface between the S1D13708 Embedded Memory LCD Controller and the Motorola REDCAP2 processor.

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 Epson Research and Development Website at www.erd.epson.com for the latest revision of this document before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Interfacing to the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

Page 490 of the Epson LCD Controller (S1D13708) user manual — 2.3 Bus Transactions
Page 490 · click to enlarge
Page 490

2 Interfacing to the REDCAP2

2.1 The REDCAP2 System Bus

REDCAP2 integrates a RISC microprocessor (MCU) and a general purpose digital signal processor (DSP) on a single chip. The External Interface Module (EIM) handles the interface to external devices. This section provides an overview of the operation of the REDCAP2 bus in order to establish interface requirements.

2.2 Overview

REDCAP2 uses a 22-bit address bus (A[21:0]) and 16-bit data bus (D[15:0]). All IO is synchronous to a square wave reference clock called CKO. The CKO source can be the DSP clock or the MCU clock and is selected/disabled in the Clock Control Register (CKCTL).

REDCAP2 can generate up to 6 independent chip select outputs. Each chip select has a memory range of 16M bytes and can be independently programmed for wait-states and port size.

Note

REDCAP2 does not provide a wait or termination acknowledge signal to external devic- es. Therefore, all external devices must guarantee a fixed cycle length.

2.3 Bus Transactions

The chip initiates a data transfer by placing the memory address on address lines A0 through A21. Several control signals are provided with the memory address.

  • R/W — set high for read cycles and low for write cycles.
  • EB0 — active low signal indicates access to data byte 0 (D[15:8]) during read or write cycles.
  • EB1 — active low signal indicates access to data byte 1 (D[7:0]) during read or write cycles.
  • OE — active low signal indicates read accesses and enables slave devices to drive the data bus.

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

Page 491 of the Epson LCD Controller (S1D13708) user manual — Figure 21: REDCAP2 Memory Read Cycle
Page 491 · click to enlarge
Page 491

Figure 2-1: “REDCAP2 Memory Read Cycle” on page 9 illustrates a typical memory read cycle on the REDCAP2 bus.

Epson LCD Controller (S1D13708) — Figure 21: REDCAP2 Memory Read Cycle diagram (page 491)
Fig. 118 · Figure 21: REDCAP2 Memory Read Cycle
Figure 2-1REDCAP2 Memory Read Cycle

Figure 2-2: “REDCAP2 Memory Write Cycle” on page 9 illustrates a typical memory write cycle on the REDCAP2 bus.

Epson LCD Controller (S1D13708) — Figure 21: REDCAP2 Memory Read Cycle diagram (page 491)
Fig. 119 · Figure 21: REDCAP2 Memory Read Cycle
Figure 2-2REDCAP2 Memory Write Cycle

Interfacing to the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

Page 492 of the Epson LCD Controller (S1D13708) user manual — RD# OE
Page 492 · click to enlarge
Page 492

3 S1D13708 Host Bus Interface

The S1D13708 implements a 16-bit native REDCAP2 host bus interface which is used to interface to the REDCAP2 processor.

The REDCAP2 host bus interface is selected by the S1D13708 on the rising edge of RESET#. After releasing reset, the bus interface signals assume their selected configu- ration. For details on S1D13708 configuration, see Section 4.3, “S1D13708 Hardware Configuration” on page 15.

3.1 Host Bus Interface Pin Mapping

The following table shows the functions of each Host Bus Interface signal.

Table 3-1Host Bus Interface Pin Mapping

S1D13708 Pin Names REDCAP2

AB[16:0] A[16:0]

DB[15:0] D[15:0]

WE1# EB0

M/R# A17

CS# REDCAP2 Internal Chip

CLKI CKO

BS# Connected to IO VDD RD/WR# R/W

RD# OE

WE0# EB1

WAIT# N/A

RESET# RST_OUT

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

Select

Page 493 of the Epson LCD Controller (S1D13708) user manual — 3.2 Host Bus Interface Signals
Page 493 · click to enlarge
Page 493

3.2 Host Bus Interface Signals

The Host Bus Interface requires the following signals:

  • CLKI is a clock input which is required by the S1D13708 host bus interface and connects to CKO of the REDCAP2.
  • The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the REDCAP2 bus address (A[16:0]) and data bus (D[15:0]), respectively. CNF[2:0] and CNF4 must be set to select the REDCAP2 host bus interface with big endian mode.
  • M/R# (memory/register) selects between memory or register access. It may be connected to an address line, allowing REDCAP2 bus address A17 to be connected to the M/R# line.
  • CS# (Chip Select) must be driven low whenever the S1D13708 is accessed by the REDCAP2 bus.
  • RD/WR# connects to R/W which indicates whether a read or a write access is being performed on the S1D13708.
  • WE1# and WE0# connect to EB0 and EB1 (Enable Byte 0 and 1) for byte steering.
  • RD# connects to OE (Output Enable). This signal must be driven by the REDCAP2 bus to indicate the bus access is a read and enables slave devices to drive the data bus with read data.
  • The BS# and WAIT# signals are not needed for this bus interface, they should be connected to IO V DD .

Interfacing to the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

Page 494 of the Epson LCD Controller (S1D13708) user manual — REDCAP2 S1D13708
Page 494 · click to enlarge
Page 494

4 REDCAP2 to S1D13708 Interface

4.1 Hardware Description

The interface between the S1D13708 and the REDCAP2 requires no external glue logic. The information in this section describes the environment necessary to connect the S5U13708B00C Evaluation Board and the Motorola DSP56654 Application Development Module (ADM). For a list of connections for the pins and signals of the REDCAP2 see Table 4-1:,“List of Connections for REDCAP2 ADM” on page 13.

The following figure demonstrates a typical implementation of the S1D13708 to the REDCAP2 interface.

REDCAP2 S1D13708

IO V DD

BS#

A17 M/R#

A[16:0]

AB[16:0]

D[15:0]

DB[15:0]

CS1

CS#

R/W

RD/WR#

RD#

OE

EB1

WE0#

WE1# EB0

CLK

CLKI

RESET#

RESET

*Note: This example uses CS1. CSn can be any of CS0-CS4.

**Note:

When connecting the S1D13708 RESET# pin, the system designer should be aware of all conditions that may reset the S1D13708 (e.g. CPU reset can be asserted during wake-up from power-down modes, or during debug states).

Figure 4-1Typical Implementation of REDCAP2 to S1D13708 Interface

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

System

Page 495 of the Epson LCD Controller (S1D13708) user manual — A17 P9-34 M/R#
Page 495 · click to enlarge
Page 495

4.2 Hardware Connections

The following table details the connections for the pins and signals of the REDCAP2.

Table 4-1List of Connections for REDCAP2 ADM

REDCAP2 Signal Name REDCAP2ADS Connector and Pin Name S1D13708 Signal Name

A17 P9-34 M/R#

A16 P9-33 AB20

A15 P9-32 AB19

A14 P9-31 AB18

A13 P9-30 AB17

A12 P9-29 AB16

A11 P9-28 AB15

A10 P9-27 AB14

A9 P9-26 AB13

A8 P9-25 AB12

A7 P9-24 AB11

A6 P9-23 AB10

A5 P9-22 AB9

A4 P9-21 AB8

A3 P9-20 AB7

A2 P9-19 AB6

A1 P9-18 AB5

A0 P9-17 AB4

D15 P9-16 DB15

D14 P9-15 DB14

D13 P9-14 DB13

D12 P9-13 DB12

D11 P9-12 DB11

D10 P9-11 DB10

D9 P9-10 DB9

D8 P9-9 DB8

D7 P9-8 DB7

D6 P9-7 DB6

D5 P9-6 DB5

D4 P9-5 DB4

D3 P9-4 DB3

D2 P9-3 DB2

D1 P9-2 DB1

D0 P9-1 DB0

RES_OUT P24-6 RESET#

CLK0 P24-3 BUSCLK

Interfacing to the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

Page 496 of the Epson LCD Controller (S1D13708) user manual — Note
Page 496 · click to enlarge
Page 496
Table 4-1List of Connections for REDCAP2 ADM (Continued)

REDCAP2 Signal Name REDCAP2ADS Connector and Pin Name S1D13708 Signal Name

CS1 P9-40 CS#

R/W P9-47 RD/WR#

OE P9-48 RD#

EB1 P9-46 WE0#

EB0 P9-45 WE1#

Gnd P24-20 / P9-50 Vss

Note

Pin 5 and pin 13 of U28 on the ADM must be connected to VDD. This ensures that the DIR signal of transceivers U17 and U18 is low only during read access, even when EBC in the CS1 Control Register is set to 0 when connecting to the S1D13708.

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

Page 497 of the Epson LCD Controller (S1D13708) user manual — Note
Page 497 · click to enlarge
Page 497

4.3 S1D13708 Hardware Configuration

The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

The following table shows the configuration required for this implementation of a S1D13708 to Motorola REDCAP2 microprocessor.

Table 4-2Summary of Power-On/Reset Options

S1D13708

state of this pin at rising edge of RESET# is used to configure:(1/0)

1 0 CNF[4, 2:0] 1101 = REDCAP2 Big Endian Host Bus Interface CNF3 GPIO pins as inputs at power-on GPIO pins as HR-TFT/ D-TFD outputs

CNF5 WAIT# is active high WAIT# is active low

CLKI to BCLK divide select:

CNF7 CNF6 CLKI to BCLK Divide Ratio 0 0 1 : 1 0 1 2 : 1 1 0 3 : 1 1 1 4 : 1

CNF[7:6]

= configuration for REDCAP2 microprocessor

4.4 Register/Memory Mapping

The S1D13708 is a memory mapped device. The S1D13708 uses two 128K byte blocks which are selected using A17 from the REDCAP2 bus (A17 is connected to the S1D13708 M/R# pin). The internal registers occupy the first 128K byte block and the 80K byte display buffer occupies the second 128K byte block. In this example, the S1D13708 internal registers are accessed starting at address 4100 0000h and the display buffer is accessed starting at address 4102 0000h.

Each Chip Select on the REDCAP2 is allocated a 16M byte block. However, the S1D13708 only needs a 256K byte block of memory to accommodate its register set and 80K byte display buffer. For this reason, only address bits A[17:0] are used while A[21:18] are ignored. The S1D13708’s memory and register are aliased every 256K bytes in the 16M byte CS1 address space.

Note

If aliasing is not desirable, the upper addresses must be fully decoded.

Interfacing to the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

Pin Name

Page 498 of the Epson LCD Controller (S1D13708) user manual — 4.5 REDCAP2 Chip Select Configuration
Page 498 · click to enlarge
Page 498

4.5 REDCAP2 Chip Select Configuration

In this example, Chip Select 1 controls the S1D13708. The following options are selected in the CS1 Control Register.

  • CSEN = 1 — Chip Select function enabled.
  • WP = 0 — writes allowed.
  • SP = 0 — user mode access allowed.
  • DSZ = 10 — 16-bit Port.
  • EBC = 0 — assert EB0-1 for both reads and writes.
  • WEN = 1 — EB0-1 negated half a clock earlier during write cycle.
  • OEA = 1 — OE asserted half a clock later during a read cycle.
  • CSA = 0 — Chip Select asserted as early as possible. No idle cycle inserted between back-to-back external transfers.
  • EDC = 1 — an idle cycle is inserted after a read cycle for back-to-back external transfers, unless the next cycle is a read cycle to the same CS bank.
  • WWS = 0 — same length for reads and writes.

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

Page 499 of the Epson LCD Controller (S1D13708) user manual — 5 Software
Page 499 · click to enlarge
Page 499

5 Software

Test utilities and display drivers are available for the S1D13708. Full source code is available for both the test utilities and the drivers.

The test utilities are configurable for different panel types using a program called 13708CFG, or by directly modifying the source. The display drivers can be customized by the OEM for different panel types, resolutions and color depths only by modifying the source.

The S1D13708 test utilities and display drivers are available from your sales support contact or www.erd.epson.com

Interfacing to the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

Page 500 of the Epson LCD Controller (S1D13708) user manual — 6.2 Document Sources
Page 500 · click to enlarge
Page 500

6 References

6.1 Documents

  • Motorola Inc., REDCAP2 Digital Signal Processor Integrated With MCU Product Specifications Rev. 1.2ext .
  • Epson Research and Development, Inc., S1D13708 Hardware Functional Specification , Document Number X39A-A-001-xx.
  • Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board User Manual, Document Number X39A-G-004-xx.
  • Epson Research and Development, Inc., S1D13708 Programming Notes and Examples , Document Number X39A-G-003-xx.

6.2 Document Sources

  • Motorola Inc. Literature Distribution Center: (800) 441-2447.
  • Motorola Inc. Website: <a href="http://www.motorola.com/" rel="nofollow noopener" target="_blank">http://www.motorola.com/</a>
  • Epson Research and Development Website: <a href="http://www.erd.epson.com/" rel="nofollow noopener" target="_blank">http://www.erd.epson.com/</a>

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

Page 501 of the Epson LCD Controller (S1D13708) user manual — 7.2 Motorola REDCAP2 Processor
Page 501 · click to enlarge
Page 501

7 Technical Support

7.1 EPSON LCD/CRT Controllers (S1D13708)

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

7.2 Motorola REDCAP2 Processor

  • Motorola Design Line, (800) 521-6274.
  • Local Motorola sales office or authorized distributor.

Interfacing to the Motorola RedCap2 S1D13708 Issue Date: 01/11/06 X39A-G-014-01

Page 502 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 502 · click to enlarge
Page 502

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Motorola RedCap2 X39A-G-014-01 Issue Date: 01/11/06

Page 503 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-015-01
Page 503 · click to enlarge
Page 503

S1D13708 Embedded Memory LCD Controller

Interfacing to 8-bit Processors

Document Number: X39A-G-015-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.

Page 504 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 504 · click to enlarge
Page 504

THIS PAGE LEFT BLANK

S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

Page 507 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 507 · click to enlarge
Page 507

List of Tables

Table 3-1: Host Bus Interface Pin Mapping 9 Table 4-1: Summary of Power-On/Reset Configuration Options 12 Table 4-2: CLKI to BCLK Divide Selection 12

List of Figures

Figure 4-1: Typical Implementation of 8-bit Processor to S1D13708 Interface 11

Interfacing to 8-bit Processors S1D13708 Issue Date: 01/11/25 X39A-G-015-01

Page 508 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 508 · click to enlarge
Page 508

THIS PAGE LEFT BLANK

S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

Page 509 of the Epson LCD Controller (S1D13708) user manual — 1 Introduction
Page 509 · click to enlarge
Page 509

1 Introduction

This application note describes the hardware and software environment required to interface the S1D13708 Embedded Memory LCD Controller and 8-bit processors. This document is not intended to cover all possible implementation, but provides a generic example of how such an interface can be accomplished.

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 Epson Research and Development website at http://www.erd.epson.com for the latest revision of this document before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Interfacing to 8-bit Processors S1D13708 Issue Date: 01/11/25 X39A-G-015-01

Page 510 of the Epson LCD Controller (S1D13708) user manual — 2.1 The Generic 8-bit Processor System Bus
Page 510 · click to enlarge
Page 510

2 Interfacing to an 8-bit Processor

2.1 The Generic 8-bit Processor System Bus

Although the S1D13708 does not directly support an 8-bit CPU, an 8-bit interface can be achieved with minimal external logic.

Typically, the bus of an 8-bit microprocessor is straight forward with minimal CPU and system control signals. To connect a memory mapped device such as the S1D13708, only the write, read, and wait control signals, plus the data and address lines, need to be inter- faced. Since the S1D13708 is a 16-bit device, some external logic is required.

S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

Page 511 of the Epson LCD Controller (S1D13708) user manual — RD# RD# —
Page 511 · click to enlarge
Page 511

3 S1D13708 Host Bus Interface

The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit Generic #2 Host Bus Interface which can be adapted for use with an 8-bit processor.

The Generic #2 Host Bus Interface is selected by the S1D13708 on the rising edge of RESET#. After RESET# is released, the bus interface signals assume their selected config- uration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware Configuration” on page 12.

The S1D13708 clock (CLKI) is taken from the system host bus. The system clock source will drive all required internal clocks. If they are not used, the CLKI2 and XTAL inputs should be tied to ground.

3.1 Host Bus Interface Pin Mapping

The following table shows the functions of each Host Bus Interface signal.

Table 3-1Host Bus Interface Pin Mapping

S1D13708 Pin Names Generic #2 Comments

AB[16:0] A[16:0] —

DB[15:0] D[15:0] —

WE1# Byte High Enable (BHE#) External decode required

CS# Chip Select External decode required

M/R# Memory/Register Select External decode required

CLKI BUSCLK —

BS# connect to IO VDD —

RD/WR# connect to IO VDD —

RD# RD# —

WE0# WE# —

WAIT# WAIT# —

RESET# Inverted RESET —

Interfacing to 8-bit Processors S1D13708 Issue Date: 01/11/25 X39A-G-015-01

Page 512 of the Epson LCD Controller (S1D13708) user manual — Note
Page 512 · click to enlarge
Page 512

3.2 Host Bus Interface Signals

The S1D13708 Generic #2 Host Bus Interface requires the following signals from an 8-bit processor.

  • CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source for its internal bus and memory clocks. This clock is typically driven by the host CPU system clock.
  • The address inputs AB[16:0] connect directly to the 8-bit processor address lines (A[16:0). If the specific 8-bit processor cannot implement all 17 address lines required by the S1D13708, only a portion of the 80K byte S1D13708 display buffer is accessible. For example, if only AB[15:0] are supported, only the first 64K byte of the display buffer is available.
  • The data bus DB[15:0] must be connected so that the 8-bit processor data lines (D[7:0]) are connected to both DB[15:8] and DB[7:0] of the S1D13708. CNF4 must be set to select little endian mode.
  • Chip Select (CS#) is driven by decoding the high-order address lines to select the proper register and memory address space.
  • M/R# (memory/register) selects between memory or register accesses. This signal may be connected to an address line, allowing system address A17 to be connected to the M/R# line.

Note

If A17 is unavailable on the 8-bit processor, an external decode must be used to gen- erate the M/R# signal.

  • BHE# is the high byte enable for both read and write cycles and connects to the high byte chip select signal.

Note

In an 8-bit environment, this signal is driven by inverting address line A0 thus indi- cating that odd addresses are to be read/write on the high byte of the data bus.

  • WE# connects to WE# (the write enable signal) and must be driven low when the 8-bit processor is writing data to the S1D13708.
  • RD# connects to RD# (the read enable signal) and must be driven low when the 8-bit processor is reading data from the S1D13708.
  • WAIT# is a signal output from the S1D13708 that indicates the 8-bit processor must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. Since host CPU bus accesses to the S1D13708 may occur asynchronously to the display update, it is possible that contention may occur in accessing the 13708 internal registers and/or display buffer. The WAIT# line resolves these contentions by forcing the host to wait until the resource arbitration is complete. This signal is active low and may need to be inverted if the host CPU wait state signal is active high.
  • The Bus Status (BS#) and Read/Write (RD/WR#) signals are not used in this implementation of a generic 8-bit processor using the Generic #2 Host Bus Interface. These pins must be tied high (connected to IO V DD ).

S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

Page 513 of the Epson LCD Controller (S1D13708) user manual — IO V DD
Page 513 · click to enlarge
Page 513

4 8-Bit Processor to S1D13708 Interface

4.1 Hardware Connections

The interface between the S1D13708 and an 8-bit processor requires minimal glue logic. A decoder is used to generate the chip select for the S1D13708 based on where the S1D13708 is mapped into memory. Alternatively, if the processor supports a chip select module, it can be programmed to generate a chip select for the S1D13708 without the need of an address decoder.

An inverter inverts A0 to generate the BHE# signal for the S1D13708. BS# (bus start) and RD/WR# are not used by the Generic #2 Host Bus Interface and must be tied high (connected to IO VDD).

In order to support an 8-bit processor with a 16-bit peripheral, the low and high order bytes of the data bus must be connected together. The following diagram shows a typical imple- mentation of an 8-bit processor to S1D13708 interface.

Generic 8-bit Bus S1D13708

IO V DD

RD/WR#

BS#

A17 M/R#

A[16:0]

AB[15:0]

D[7:0]

DB[7:0]

DB[15:8]

CS#

WE#

WE#

RD#

RD#

A0

BHE#

WAIT#

WAIT#

BUSCLK

CLKI

RESET#

Figure 4-1Typical Implementation of 8-bit Processor to S1D13708 Interface

Interfacing to 8-bit Processors S1D13708 Issue Date: 01/11/25 X39A-G-015-01

Decoder · System RESET

Page 514 of the Epson LCD Controller (S1D13708) user manual — 4.3 Register/Memory Mapping
Page 514 · click to enlarge
Page 514

4.2 S1D13708 Hardware Configuration

The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

The following table shows the configuration required for this implementation of a S1D13708 to generic 8-bit processor.

Table 4-1Summary of Power-On/Reset Configuration Options

S1D13708

value on this pin at the rising edge of RESET# is used to configure: (1/0)

1 0 CNF[4, 2:0] 0100 = Generic #2 Little Endian Host Bus Interface CNF3 GPIO pins as inputs at power on GPIO pins as HR-TFT / D-TFT outputs CNF5 Active high WAIT# Active low WAIT# CNF[7:6] see Table 4-2: “CLKI to BCLK Divide Selection” for recommended setting

= configuration for generic 8-bit processor

Table 4-2CLKI to BCLK Divide Selection

CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1

= recommended setting for generic 8-bit processor

4.3 Register/Memory Mapping

The S1D13708 is a memory mapped device. The S1D13708 uses two 128K byte blocks which are selected using A17 from the 8-bit processor (A17 is connected to the S1D13708 M/R# pin). The internal registers occupy the first 128K byte block and the 80K byte display buffer occupies the second 128K byte block.

An external decoder can be used to decode the address lines and generate a chip select for the S1D13708 whenever the selected 128k byte memory block is accessed. If the processor supports a general chip select module, its internal registers can be programmed to generate a chip select for the S1D13708 whenever the S1D13708 memory block is accessed.

S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

Pin Name

Page 515 of the Epson LCD Controller (S1D13708) user manual — 5 Software
Page 515 · click to enlarge
Page 515

5 Software

Test utilities and display drivers are available for the S1D13708. Full source code is available for both the test utilities and the drivers.

The test utilities are configurable for different panel types using a program called 13708CFG, or by directly modifying the source. The display drivers can be customized by the OEM for different panel types, resolutions and color depths only by modifying the source.

The S1D13708 test utilities and display drivers are available from your sales support contact or www.erd.epson.com

Interfacing to 8-bit Processors S1D13708 Issue Date: 01/11/25 X39A-G-015-01

Page 516 of the Epson LCD Controller (S1D13708) user manual — 6.2 Document Sources
Page 516 · click to enlarge
Page 516

6 References

6.1 Documents

  • Epson Research and Development, Inc., S1D13708 Hardware Functional Specification , document number X39A-A-001-xx.
  • Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board User Manual, document number X39A-G-004-xx.
  • Epson Research and Development, Inc., S1D13708 Programming Notes and Examples , Document Number X39A-G-003-xx.

6.2 Document Sources

  • Epson Research and Development Website: <a href="http://www.erd.epson.com/" rel="nofollow noopener" target="_blank">http://www.erd.epson.com/</a>

S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

Page 517 of the Epson LCD Controller (S1D13708) user manual — 7.1 EPSON LCD Controllers (S1D13708)
Page 517 · click to enlarge
Page 517

7 Technical Support

7.1 EPSON LCD Controllers (S1D13708)

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

Interfacing to 8-bit Processors S1D13708 Issue Date: 01/11/25 X39A-G-015-01

Page 518 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 518 · click to enlarge
Page 518

THIS PAGE LEFT BLANK

S1D13708 Interfacing to 8-bit Processors X39A-G-015-01 Issue Date: 01/11/25

Page 519 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-016-01
Page 519 · click to enlarge
Page 519

S1D13708 Embedded Memory LCD Controller

Interfacing to the Motorola

MC68VZ328 Dragonball Microprocessor

Document Number: X39A-G-016-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All Trademarks are the property of their respective owners.

Page 520 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 520 · click to enlarge
Page 520

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

Page 523 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 523 · click to enlarge
Page 523

List of Tables

Table 3-1: Host Bus Interface Pin Mapping 9 Table 4-1: Summary of Power-On/Reset Configuration Options 12 Table 4-2: CLKI to BCLK Divide Selection 12 Table 4-3: WS Bit Programming 13

List of Figures

Figure 4-1: Typical Implementation of MC68VZ328 to S1D13708 Interface 11

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-016-01

Page 524 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 524 · click to enlarge
Page 524

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

Page 525 of the Epson LCD Controller (S1D13708) user manual — 1 Introduction
Page 525 · click to enlarge
Page 525

1 Introduction

This application note describes the hardware and software environment required to interface the S1D13708 Embedded Memory LCD Controller and the Motorola MC68VZ328 Dragonball VZ microprocessor.

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 Epson Research and Development website at http://www.erd.epson.com for the latest revision of this document before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-016-01

Page 526 of the Epson LCD Controller (S1D13708) user manual — 2.2 Chip-Select Module
Page 526 · click to enlarge
Page 526

2 Interfacing to the MC68VZ328

2.1 The MC68VZ328 System Bus

The Motorola MC68VZ328 “Dragonball VZ” is the third generation in the Dragonball microprocessor family. The Dragonball VZ is an integrated controller designed for handheld products. It is based upon the FLX68000 microprocessor core and uses a 24-bit address bus and 16-bit data bus. The Dragonball VZ is faster than its predecessors and the DRAM controller now supports SDRAM. The bus interface consists of all the standard MC68000 bus interface signals except AS, plus some new signals intended to simplify the interface to typical memory and peripheral devices. The 68000 signals are multiplexed with IrDA, SPI and LCD controller signals.

The MC68000 bus control signals are well documented in the Motorola user manuals, and are not be described here. The new signals are as follows.

  • Output Enable (OE) is asserted when a read cycle is in progress. It is intended to connect to the output enable control signal of a typical static RAM, EPROM, or Flash EPROM device.
  • Upper Write Enable and Lower Write Enable (UWE / LWE) are asserted during memory write cycles for the upper and lower bytes of the 16-bit data bus. They may be directly connected to the write enable inputs of a typical memory device.

2.2 Chip-Select Module

The MC68VZ328 can generate up to 8 chip select outputs which are organized into four groups (A through D).

Each chip select group has a common base address register and address mask register allowing the base address and block size of the entire group to be set. In addition, each chip select within a group has its own address compare and address mask register to activate the chip select for a subset of the group’s address block. Each chip select may also be individ- ually programmed to control an 8 or 16-bit device. Lastly, each chip select can either generate from 0 through 6 wait states internally, or allow the memory or peripheral device to terminate the cycle externally using the standard MC68000 DTACK signal.

Chip select groups A and B are used to control ROM, SRAM, and Flash memory devices and have a block size of 128K bytes to 16M bytes. Chip select A0 is active immediately after reset and is a global chip select so it is typically used to control a boot EPROM device. A0 ceases to decode globally once its chip select registers are programmed. Groups C and D are special in that they can also control DRAM interfaces. These last two groups have block size of 32K bytes to 4M bytes.

S1D13708 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

Page 527 of the Epson LCD Controller (S1D13708) user manual — S1D13708
Page 527 · click to enlarge
Page 527

3 S1D13708 Host Bus Interface

The S1D13708 directly supports multiple processors. The S1D13708 implements a Dragonball Host Bus Interface which directly supports the Motorola MC68VZ328 micro- processor.

The Dragonball Host Bus Interface is selected by the S1D13708 on the rising edge of RESET#. After RESET# is released, the bus interface signals assume their selected config- uration. For details on the S1D13708 configuration, see Section 4.2, “S1D13708 Hardware Configuration” on page 12.

The S1D13708 clock (CLKI) is taken from the system host bus. The system clock source will drive all required internal clocks. If they are not used, the CLKI2 and XTAL inputs should be tied to ground.

3.1 Host Bus Interface Pin Mapping

The following table shows the functions of each Host Bus Interface signal.

Table 3-1Host Bus Interface Pin Mapping

S1D13708 Pin Names Motorola MC68VZ328

AB[16:0] A[16:0]

DB[15:0] D[15:0]

WE1# UWE

CLKI CLKO

BS# Connect to IOVDD from the

S1D13708

RD/WR# Connect to IOVDD from the

S1D13708

RD# OE

WE0# LWE

WAIT# DTACK

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-016-01

CS# CSx · M/R# External Decode · RESET# System RESET

Page 528 of the Epson LCD Controller (S1D13708) user manual — 3.2 Host Bus Interface Signals
Page 528 · click to enlarge
Page 528

3.2 Host Bus Interface Signals

The Host Bus Interface requires the following signals.

  • CLKI is a clock input required by the S1D13708 Host Bus Interface as a source for its internal bus and memory clocks. This clock is typically driven by the host CPU system clock. For this example, CLK0 from the Motorola MC68VZ328 is used for CLKI.
  • The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the MC68VZ328 address (A[16:0]) and data bus (D[15:0]), respectively. CNF4 must be set to one to select big endian mode.
  • Chip Select (CS#) must be driven low by one of the Dragonball VZ chip select outputs from the chip select module whenever the S1D13708 is accessed by the MC68VZ328.
  • M/R# (memory/register) selects between memory or register accesses. This signal is generated by the external address decode circuitry. For this example, M/R# may be connected to an address line, allowing system address A17 to be connected to the M/R# line.
  • WE0# connects to LWE (the low data byte write strobe enable of the MC68VZ328) and is asserted when valid data is written to the low byte of a 16-bit device.
  • WE1# connects to UWE (the upper data byte write strobe enable of the MC68VZ328) and is asserted when valid data is written to the high byte of a 16-bit device.
  • RD# connects to OE (the read output enable of the MC68VZ328) and is asserted during a read cycle of the MC68VZ328 microprocessor.
  • RD/WR# is not used for the Dragonball host bus interface and must be tied high to IO V DD .
  • WAIT# connects to DTACK and is a signal which is output from the S1D13708 indicating the MC68VZ328 must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. The MC68VZ328 accesses to the S1D13708 may occur asynchronously to the display update.
  • BS# is not used for the Dragonball host bus interface and must be tied high to IO V DD .

S1D13708 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

Page 529 of the Epson LCD Controller (S1D13708) user manual — MC68VZ328 S1D13708
Page 529 · click to enlarge
Page 529

4 MC68VZ328 to S1D13708 Interface

4.1 Hardware Description

The interface between the S1D13708 and the MC68VZ328 does not requires any external glue logic. Chip select module B is used to provide the S1D13708 with a chip select and A17 is used to select between memory and register accesses.

In this example, the DTACK signal is made available for the S1D13708. Alternately, the S1D13708 can guarantee a maximum cycle length that the Dragonball VZ handles by inserting software wait states (see Section 4.2.2, “MC68VZ328 Chip Select and Pin Configuration” on page 13). A single resistor is used to speed up the rise time of the WAIT# (DTACK) signal when terminating the bus cycle.

The following diagram shows a typical implementation of the MC68VZ328 to S1D13708 using the Dragonball host bus interface. For further information on the Dragonball Host Bus interface and AC Timing, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

MC68VZ328 S1D13708

A[16:0]

AB[16:0]

D[15:0]

DB[15:0]

CSB1

CS#

A17 M/R#

IO V DD

IO V DD

BS#

1K

RD/WR#

DTACK

WAIT#

UWE

WE1#

LWE

WE0#

OE

RD#

CLK0

CLKI

RESET#

Figure 4-1Typical Implementation of MC68VZ328 to S1D13708 Interface

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-016-01

System RESET

Page 530 of the Epson LCD Controller (S1D13708) user manual — 4.2 S1D13708 Hardware Configuration
Page 530 · click to enlarge
Page 530

4.2 S1D13708 Hardware Configuration

The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

The following table shows the configuration required for this implementation of a S1D13708 to Motorola MC68VZ328 microprocessor.

Table 4-1Summary of Power-On/Reset Configuration Options

value on this pin at the rising edge of RESET# is used to configure: (1/0)

1 0 CNF[4, 2:0] 1110 = Dragonball Big Endian Host Bus Interface CNF3 GPIO pins as inputs at power on GPIO pins as HR-TFT / D-TFT outputs CNF5 Active high WAIT# Active low WAIT# CNF[7:6] see Table 4-2: “CLKI to BCLK Divide Selection” for recommended settings

= configuration for MC68VZ328 microprocessor

Table 4-2CLKI to BCLK Divide Selection

CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 reserved

= recommended setting for MC68VZ328 microprocessor

S1D13708 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

S1D13708 Pin · Name

Page 531 of the Epson LCD Controller (S1D13708) user manual — MCLK = BCLK 6
Page 531 · click to enlarge
Page 531

4.2.1 Register/Memory Mapping

The S1D13708 requires two 128K byte segments in memory for the display buffer and its internal registers. To accommodate this block size, it is preferable (but not required) to use one of the chip selects from groups A or B. Groups A and B can have a size range of 128K bytes to 16M bytes and groups C and D have a size range of 32K bytes to 16M bytes. Therefore, any chip select other than CSA0 would be suitable for the S1D13708 interface.

In the example interface, chip select CSB1 controls the S1D13708. A 256K byte address space is used with the S1D13708 internal registers occupying the first 128K byte block and the 80K byte display buffer located in the second 128K byte block. A17 from the MC68VZ328 is used to select between these two 128K byte blocks.

4.2.2 MC68VZ328 Chip Select and Pin Configuration

The chip select used to map the S1D13708 (in this example CSB1) must have its RO (Read Only) bit set to 0, its BSW (Bus Data Width) set to 1 for a 16-bit bus, and the WS (Wait states) bits should be set to 111b to allow the S1D13708 to terminate bus cycles externally with DTACK. The DTACK pin function must be enabled with Register FFFFF433, Port G Select Register, bit 0.

If DTACK is not used, then the WS bits should be set to either 4, 6, 10, or 12 software wait states depending on the divide ratio between the S1D13708 MCLK and BCLK. The WS bits should be set as follows.

Table 4-3WS Bit Programming

S1D13708 MCLK to BCLK Divide Ratio WS Bits (wait states)

MCLK = BCLK 6

MCLK = BCLK ÷ 2 9

MCLK = BCLK ÷ 3 12

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-016-01

Page 532 of the Epson LCD Controller (S1D13708) user manual — 5 Software
Page 532 · click to enlarge
Page 532

5 Software

Test utilities and display drivers are available for the S1D13708. Full source code is available for both the test utilities and the drivers.

The test utilities are configurable for different panel types using a program called 13708CFG, or by directly modifying the source. The display drivers can be customized by the OEM for different panel types, resolutions and color depths only by modifying the source.

The S1D13708 test utilities and display drivers are available from your sales support contact or www.erd.epson.com

S1D13708 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

Page 533 of the Epson LCD Controller (S1D13708) user manual — 6.2 Document Sources
Page 533 · click to enlarge
Page 533

6 References

6.1 Documents

  • Motorola Inc., MC68VZ328 DragonBall-VZ® Integrated Processor User’s Manual , Motorola Publication no. MC683VZ28UM; available on the Internet at <a href="http://www.motorola.com/" rel="nofollow noopener" target="_blank">http://www.motorola.com/</a>
  • Epson Research and Development, Inc., S1D13708 Hardware Functional Specification, Document Number X39A-A-001-xx.
  • Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 Evaluation Board User Manual, Document Number X39A-G-004-xx.
  • Epson Research and Development, Inc., Programming Notes and Examples , Document Number X39A-G-003-xx.

6.2 Document Sources

  • Motorola Inc. Literature Distribution Center: (800) 441-2447.
  • Motorola Inc. Website: <a href="http://www.motorola.com/" rel="nofollow noopener" target="_blank">http://www.motorola.com/</a>
  • Epson Research and Development Website: <a href="http://www.erd.epson.com/" rel="nofollow noopener" target="_blank">http://www.erd.epson.com/</a>

Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-016-01

Page 534 of the Epson LCD Controller (S1D13708) user manual — 7.2 Motorola MC68VZ328 Processor
Page 534 · click to enlarge
Page 534

7 Technical Support

7.1 EPSON LCD/CRT Controllers (S1D13708)

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

7.2 Motorola MC68VZ328 Processor

  • Motorola Design Line, (800) 521-6274.
  • Local Motorola sales office or authorized distributor.

S1D13708 Interfacing to the Motorola MC68VZ328 Dragonball Microprocessor X39A-G-016-01 Issue Date: 01/11/25

Page 535 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-019-01
Page 535 · click to enlarge
Page 535

S1D13708 Embedded Memory LCD Controller

Interfacing to the Intel StrongARM

SA-1110 Microprocessor

Document Number: X39A-G-019-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All Trademarks are the property of their respective owners.

Page 536 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 536 · click to enlarge
Page 536

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

Page 539 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 539 · click to enlarge
Page 539

List of Tables

Table 3-1: Host Bus Interface Pin Mapping 11 Table 4-1: Summary of Power-On/Reset Configuration Options 14 Table 4-2: CLKI to BCLK Divide Selection 14 Table 4-3: RDFx Parameter Value versus CPU Maximum Frequency 15

List of Figures

Figure 2-1: SA-1110 Variable-Latency IO Read Cycle 9 Figure 2-2: SA-1110 Variable-Latency IO Write Cycle 10 Figure 4-1: Typical Implementation of SA-1110 to S1D13708 Interface 13

Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01

Page 540 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 540 · click to enlarge
Page 540

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

Page 541 of the Epson LCD Controller (S1D13708) user manual — 1 Introduction
Page 541 · click to enlarge
Page 541

1 Introduction

This application note describes the hardware and software environment required to provide an interface between the S1D13708 Embedded Memory LCD Controller and the Intel StrongARM SA-1110 Microprocessor.

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 Epson Research and Development website at www.erd.epson.com for the latest revision of this document before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01

Page 542 of the Epson LCD Controller (S1D13708) user manual — 2.1.2 Variable-Latency IO Access Overview
Page 542 · click to enlarge
Page 542

2 Interfacing to the StrongARM SA-1110 Bus

2.1 The StrongARM SA-1110 System Bus

The StrongARM SA-1110 microprocessor is a highly integrated communications micro- controller that incorporates a 32-bit StrongARM RISC processor core. The SA-1110 is ideally suited to interface to the S1D13708 LCD controller and provides a high perfor- mance, power efficient solution for embedded systems.

2.1.1 StrongARM SA-1110 Overview

The SA-1110 system bus can access both variable-latency IO and memory devices. The SA-1110 uses a 26-bit address bus and a 32-bit data bus which can be used to access 16-bit devices. A chip select module with six chip select signals (each accessing 64M bytes of memory) allows selection of external devices. Only chip selects 3 through 5 (nCS[5:3]) may be used to select variable-latency devices which use RDY to extend access cycles. These chip selects are individually programmed in the SA-1110 memory configuration registers and can be configured for either a 16 or 32-bit data bus.

Byte steering is implemented using the four signals nCAS[3:0]. Each signal selects a byte on the 32-bit data bus. For example, nCAS0 selects bits D[7:0] and nCAS3 selects bits D[31:24]. For a 16-bit data bus, only nCAS[1:0] are used with nCAS0 selecting the low byte and nCAS1 selecting the high byte. The SA-1110 can be configured to support little or big endian mode.

2.1.2 Variable-Latency IO Access Overview

A data transfer is initiated when a memory address is placed on the SA-1110 system bus and a chip select signal (nCS[5:3]) is driven low. If all byte enable signals (nCAS[3:0]) are driven low, then a 32-bit transfer takes place. If only nCAS[1:0] are driven low, then a word transfer takes place through a 16-bit bus interface. If only one byte enable is driven low, then a byte transfer takes place on the respective data lines.

During a read cycle, the output enable signal (nOE) is driven low. A write cycle is specified by driving nOE high and driving the write enable signal (nWE) low. The cycle can be lengthened by driving RDY high for the time needed to complete the cycle.

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

Page 543 of the Epson LCD Controller (S1D13708) user manual — A[25:0]
Page 543 · click to enlarge
Page 543

2.1.3 Variable-Latency IO Access Cycles

The first nOE assertion occurs two memory cycles after the assertion of chip select (nCS3, nCS4, or nCS5). Two memory cycles prior to the end of minimum nOE or nWE assertion (RDF+1 memory cycles), the SA-1110 starts sampling the data ready input (RDY). Samples are taken every half memory cycle until three consecutive samples (at the rising edge, falling edge, and following rising edge of the memory clock) indicate that the IO device is ready for data transfer. Read data is latched one-half memory cycle after the third successful sample (on falling edge). Then nOE or nWE is deasserted on the next rising edge and the address may change on the subsequent falling edge. Prior to a subsequent data cycle, nOE or nWE remains deasserted for RDN+1 memory cycles. The chip select and byte selects (nCAS[1:0] for 16-bit data transfers), remain asserted for one memory cycle after the final nOE or nWE deassertion of the burst.

The SA-1110 is capable of burst cycles during which the chip select remains low while the read or write command is asserted, precharged and reasserted repeatedly.

Figure 2-1: illustrates a typical variable-latency IO access read cycle on the SA-1110 bus.

A[25:0]

ADDRESS VALID

RDY

DATA VALID D[31:0]

nCAS[3:0]

Figure 2-1SA-1110 Variable-Latency IO Read Cycle

Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01

nCS4 · nOE · nWE

Page 544 of the Epson LCD Controller (S1D13708) user manual — A[25:0]
Page 544 · click to enlarge
Page 544

Figure 2-2: illustrates a typical variable-latency IO access write cycle on the SA-1110 bus.

A[25:0]

ADDRESS VALID

RDY

DATA VALID D[31:0]

nCAS[3:0]

Figure 2-2SA-1110 Variable-Latency IO Write Cycle

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

nCS4 · nWE · nOE

Page 545 of the Epson LCD Controller (S1D13708) user manual — 3.1 Host Bus Interface Pin Mapping
Page 545 · click to enlarge
Page 545

3 S1D13708 Host Bus Interface

The S1D13708 directly supports multiple processors. The S1D13708 implements a 16-bit Generic #2 Host Bus Interface which is most suitable for direct connection to the SA-1110.

The Generic #2 Host Bus Interface is selected by the S1D13708 on the rising edge of RESET#. After releasing reset the bus interface signals assume their selected configuration. For details on S1D13708 configuration, see Section 4.2, “S1D13708 Hardware Configu- ration” on page 14.

The S1D13708 clock (CLKI) is taken from the system host bus. The system clock source will drive all required internal clocks. If they are not used, the CLKI2 and XTAL inputs should be tied to ground.

3.1 Host Bus Interface Pin Mapping

The following table shows the functions of each Host Bus Interface signal.

Table 3-1Host Bus Interface Pin Mapping

S1D13708 Pin Name SA-1110 AB[16:0] A[16:0] DB[15:0] D[15:0] WE1# nCAS1 M/R# A17 CS# nCS4 CLKI SDCLK2 BS# VDD RD/WR# VDD RD# nOE WE0# nWE WAIT# RDY RESET# system RESET

Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01

Page 546 of the Epson LCD Controller (S1D13708) user manual — 3.2 Host Bus Interface Signal Descriptions
Page 546 · click to enlarge
Page 546

3.2 Host Bus Interface Signal Descriptions

The S1D13708 Generic #2 Host Bus Interface requires the following signals.

  • CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source for its internal bus and memory clocks. This clock is typically driven by the host CPU system clock. For this example, it is driven by one of the SA-1110 signals SDCLK1 or SDCLK2 (The example implementation in this document uses SDCLK2). For further information, see Section 4.3, “StrongARM SA-1110 Register Configuration” on page 15.
  • The address inputs AB[16:0], and the data bus DB[15:0], connect directly to the SA1110 address bus (A[16:0]) and data bus (D[15:0]), respectively. CNF4 must be set to select little endian mode.
  • M/R# (memory/register) selects between memory or register accesses. This signal may be connected to an address line, allowing system address A17 to be connected to the M/R# line.
  • Chip Select (CS#) must be driven low by nCSx (where x is the SA-1110 chip select used) whenever the S1D13708 is accessed by the SA-1110.
  • WE1# connects to nCAS1 (the high byte enable signal from the SA-1110) which in conjunction with address bit 0 allows byte steering of read and write operations.
  • WE0# connects to nWE (the write enable signal from the SA-1110) and must be driven low when the SA-1110 is writing data to the S1D13708.
  • RD# connects to nOE (the read enable signal from the SA-1110) and must be driven low when the SA-1110 is reading data from the S1D13708.
  • WAIT# connects to RDY and is a signal output from the S1D13708 that indicates the SA-1110 must wait until data is ready (read cycle) or accepted (write cycle) on the host bus. Since SA-1110 accesses to the S1D13708 may occur asynchronously to the display update, it is possible that contention may occur in accessing the S1D13708 internal registers and/or display buffer. The WAIT# line resolves these contentions by forcing the host to wait until the resource arbitration is complete.
  • The Bus Start (BS#) and RD/WR# signals are not used for this Host Bus Interface and should be tied high (connected to V DD ).
  • The RESET# (active low) input of the S1D13708 may be connected to the system RESET.

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

Page 547 of the Epson LCD Controller (S1D13708) user manual — SA-1110
Page 547 · click to enlarge
Page 547

4 StrongARM SA-1110 to S1D13708 Interface

4.1 Hardware Description

The SA-1110 microprocessor provides a variable latency I/O interface that can be used to support an external LCD controller. By using the Generic # 2 Host Bus Interface, no glue logic is required to interface the S1D13708 and the SA-1110.

A pull-up resistor is attached to WAIT# to speed up its rise time when terminating a cycle.

BS# (bus start) and RD/WR# are not used by the Generic #2 Host Bus Interface and must be tied high (connected to IO VDD).

The following diagram shows a typical implementation of the SA-1110 to S1D13708 interface.

SA-1110

S1D13708

WE0#

WE1#

RD#

CS#

IO V DD

RDY

WAIT#

M/R# A17

RESET#

A[16:0]

AB[16:0]

D[15:0]

DB[15:0]

SDCLK2

CLKI

IO V DD

BS#

RD/WR#

Figure 4-1Typical Implementation of SA-1110 to S1D13708 Interface

Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01

Show 6 more labels / short text on this page
nWE · nCAS1 · nOE · nCS4 · Pull-up · System RESET
Page 548 of the Epson LCD Controller (S1D13708) user manual — S1D13708
Page 548 · click to enlarge
Page 548

4.2 S1D13708 Hardware Configuration

The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

The following table shows the configuration required for this implementation of a S1D13708 to SA-1110 interface.

Table 4-1Summary of Power-On/Reset Configuration Options

S1D13708

value on this pin at the rising edge of RESET# is used to configure: (1/0)

CNF[4, 2:0] 0100 = Generic #2 Little Endian Host Bus Interface

CNF3 GPIO pins as inputs at power on GPIO pins as HR-TFT / D-TFT outputs

CNF5 Active high WAIT# Active low WAIT#

CNF[7:6] see Table “” for recommended setting

= configuration for SA-1110

Table 4-2CLKI to BCLK Divide Selection

CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1

= recommended setting for SA-1110

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

Pin Name

Page 549 of the Epson LCD Controller (S1D13708) user manual — 4.3 StrongARM SA-1110 Register Configuration
Page 549 · click to enlarge
Page 549

4.3 StrongARM SA-1110 Register Configuration

The SA-1110 requires configuration of several of its internal registers to interface to the S1D13708 Generic #2 Host Bus Interface.

  • The Static Memory Control Registers (MSC[2:0]) are read/write registers containing control bits for configuring static memory or variable-latency IO devices. These registers correspond to chip select pairs nCS[5:4], nCS[3:2], and nCS[1:0] respectively. Each of the three registers contains two identical CNFG fields, one for each chip select within the pair. Since only nCS[5:3] controls variable-latency IO devices, MSC2 and MSC1 should be programmed based on the chip select used.

Parameter RTx should be set to 01b (selects variable-latency IO mode).

Parameter RBWx should be set to 1 (selects 16-bit bus width).

Parameter RDFx should be set according to the maximum desired CPU frequency as indicated in the table below.

Table 4-3RDFx Parameter Value versus CPU Maximum Frequency

CPU Frequency (MHz) RDFx 57.3 - 85.9 1 88.5 - 143.2 2 147.5 - 200.5 3 206.4 - 221.2 4

Parameter RDNx should be set to 0 (minimum command precharge time).

Parameter RRRx should be set to 0 (minimum nCSx precharge time).

  • The S1D13708 endian mode is set to little endian. To program the SA-1110 for little endian set bit 7 of the control register (register 1) to 0.
  • The CLKI signal input to the S1D13708 from one of the SDCLK[2:1] pins is a derivative of the SA-1110 internal processor speed (either divide by 2 or 4). The S1D13708 Generic #2 Host Bus Interface has a maximum BCLK of 50MHz. Therefore, if the processor clock is higher than 100MHz, either divide the BCLK input using the S1D13708 configuration pins CNF[7:6] (see Table 4-2: “CLKI to BCLK Divide Selection” ) or set SDCLK1/SDCLK2 to CPU clock divided by four using the DRAM Refresh Control Register (MDREFR bit 26 = 1 for SDCLK2, MDREFR bit 22 = 1 for SDCLK1).

Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01

Page 550 of the Epson LCD Controller (S1D13708) user manual — Note
Page 550 · click to enlarge
Page 550

4.4 Register/Memory Mapping

The S1D13708 is a memory-mapped device. The SA-1110 uses the memory assigned to a chip select (nCS4 in this example) to map the S1D13708 internal registers and display buffer. The S1D13708 uses two 128K byte blocks which are selected using A17 from the SA-1110 (A17 is connected to the S1D13708 M/R# pin).The internal registers occupy the first 128K bytes block and the 80K byte display buffer occupies the second 128K byte block.

Each variable-latency IO chip select is assigned 128M Bytes of address space. Therefore; if nCS4 is used the S1D13708 registers will be located at 4000 0000h and the display buffer will be located at 4002 0000h. These blocks are aliased over the entire 128M byte address space.

Note

If aliasing is not desirable, the upper addresses must be fully decoded.

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

Page 551 of the Epson LCD Controller (S1D13708) user manual — 5 Software
Page 551 · click to enlarge
Page 551

5 Software

Test utilities and display drivers are available for the S1D13708. Full source code is available for both the test utilities and the drivers.

The test utilities are configurable for different panel types using a program called 13708CFG, or by directly modifying the source. The display drivers can be customized by the OEM for different panel types, resolutions and color depths only by modifying the source.

The S1D13708 test utilities and display drivers are available from your sales support contact or www.erd.epson.com

Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01

Page 552 of the Epson LCD Controller (S1D13708) user manual — 6.2 Document Sources
Page 552 · click to enlarge
Page 552

6 References

6.1 Documents

  • Intel Corporation, StrongARM® SA-1110 Microprocessor Advanced Developer’s Manual, Order Number 278240-001.
  • Epson Research and Development, Inc., S1D13708 Hardware Functional Specification , Document Number X39A-A-001-xx.
  • Epson Research and Development, Inc., S1D13708 Programming Notes and Examples , Document Number X39A-G-003-xx.
  • Epson Research and Development, Inc., S5U13708B00C Rev. 1.0 ISA Bus Evaluation Board User Manual , Document Number X39A-G-004-xx.

6.2 Document Sources

  • Intel Developers Website: <a href="http://developer.intel.com" rel="nofollow noopener" target="_blank">http://developer.intel.com</a>
  • Intel Literature contact: 1(800) 548-4725.
  • Epson Research and Development Website: <a href="http://www.erd.epson.com/" rel="nofollow noopener" target="_blank">http://www.erd.epson.com/</a>

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

Page 553 of the Epson LCD Controller (S1D13708) user manual — INTEL
Page 553 · click to enlarge
Page 553

7 Technical Support

7.1 EPSON LCD Controllers (S1D13708)

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

7.2 Intel StrongARM SA-1110 Processor

INTEL

Intel Customer Support (ICS) for StrongARM: (800) 628-8686

Website for StrongARM Processor http://developer.intel.com/design/strong/

Interfacing to the Intel StrongARM SA-1110 Microprocessor S1D13708 Issue Date: 01/11/25 X39A-G-019-01

Page 554 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 554 · click to enlarge
Page 554

THIS PAGE LEFT BLANK

S1D13708 Interfacing to the Intel StrongARM SA-1110 Microprocessor X39A-G-019-01 Issue Date: 01/11/25

Page 555 of the Epson LCD Controller (S1D13708) user manual — Document Number: X39A-G-020-01
Page 555 · click to enlarge
Page 555

S1D13708 Embedded Memory LCD Controller

Connecting to a Micro-Controller via the

Indirect Interface

Document Number: X39A-G-020-01

Copyright © 2001 Epson Research and Development, Inc. All Rights Reserved.

Information in this document is subject to change without notice. You may download and use this document, but only for your own use in evaluating Seiko Epson/EPSON products. You may not modify the document. Epson Research and Development, Inc. disclaims any representation that the contents of this document are accurate or current. The Programs/Technologies described in this document may contain material protected under U.S. and/or International Patent laws.

EPSON is a registered trademark of Seiko Epson Corporation. All other trademarks are the property of their respective owners.

Page 556 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 556 · click to enlarge
Page 556

THIS PAGE LEFT BLANK

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

Page 559 of the Epson LCD Controller (S1D13708) user manual — List of Figures
Page 559 · click to enlarge
Page 559

List of Tables

Table 3-1: Mode 68 8-Bit Data Host Bus Interface Pin Mapping 9 Table 3-2: Mode 68 16-Bit Data Host Bus Interface Pin Mapping 10 Table 3-3: Mode 80 8-Bit Data Host Bus Interface Pin Mapping 10 Table 3-4: Mode 80 16-Bit Data Host Bus Interface Pin Mapping 11 Table 4-1: Summary of Power-On/Reset Configuration Options 14 Table 4-2: CLKI to BCLK Divide Selection 14

List of Figures

Figure 4-1: Typical Implementation of Micro-Controller to S1D13708 Interface 13

Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01

Page 560 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 560 · click to enlarge
Page 560

THIS PAGE LEFT BLANK

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

Page 561 of the Epson LCD Controller (S1D13708) user manual — 1 Introduction
Page 561 · click to enlarge
Page 561

1 Introduction

This application note describes the hardware and software routines required to interface the S1D13708 Embedded Memory LCD Controller to a micro-controller via the Indirect Interface. This document is not intended to cover all possible implementations, but provides a generic example of how such an interface can be accomplished.

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 Epson Research and Development website at http://www.erd.epson.com for the latest revision of this document before beginning any development.

We appreciate your comments on our documentation. Please contact us via email at documentation@erd.epson.com.

Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01

Page 562 of the Epson LCD Controller (S1D13708) user manual — 2.1 The Indirect Interface
Page 562 · click to enlarge
Page 562

2 Interfacing to a Micro-Controller

2.1 The Indirect Interface

Although the S1D13708 directly supports various CPU interfaces, the Indirect Interface allows micro-controllers that do not have a true CPU interface to use the S1D13708. In addition to being flexible and easy to implement on a micro-computer, this interface gives two other advantages.

  • Reduced bus signal count, since no address lines are needed. There are two Indirect Interface modes, Mode 68 and Mode 80, both of which can handle 16-bit or 8-bit data transfers.
  • S1D13708 asynchronous operation from the CPU.

Using Indirect Mode 68, 8-bit data transfer, only 12 IO signals are required, four for control and 8 for data. If 16-bit data transfers are required, an extra eight signals are needed for the expanded data bus and one more control signal. The S1D13708 can be set to run in asynchronous mode where the LCD controller runs independent of the CPU clock.

Indirect Mode 80 also allows 8-bit or 16-bit data transfers, but this mode requires one extra control signal when configured for 16-bit data mode.

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

Page 563 of the Epson LCD Controller (S1D13708) user manual — WE0# EBL
Page 563 · click to enlarge
Page 563

3 S1D13708 Host Bus Interface

The S1D13708 directly supports many microprocessor busses, of which two are Indirect Interface modes, Mode 68 and Mode 80. Both modes can be used for micro-controllers where IO lines are available for use as a bus to the S1D13708.

Actual bus cycles will typically be controlled by software unless the micro-controller supports the Indirect Interface natively.

The Indirect Interface modes are selected by the S1D13708 based on the CNF[7:0] pin state on the rising edge of RESET#. After RESET# is released, the bus interface signals assume their selected configuration. For details on the S1D13708 configuration, please refer to Section 4.2, “S1D13708 Hardware Configuration” on page 14.

The S1D13708 clock (CLKI) is taken from the micro-controller bus clock in synchronous operation or from any other source for asynchronous bus operation. If the CLKI2 and XTAL inputs are not used they should be tied to ground, as with all other unused inputs.

For more information on the Indirect Interface mode interface, please refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

3.1 Indirect Mode Bus Interface Pin Mapping

The following table shows how the pins are connected in each of the Indirect modes.

Table 3-1Mode 68 8-Bit Data Host Bus Interface Pin Mapping

S1D13708 Pin Names Mode 68

AB[16:0] connect to Vss

DB[15:8] connect to Vss

DB[7:0] D[7:0]

M/R# A0

CLKI BUSCLK

RD/WR# R/W#

RD# connect to Vss

WE0# EBL

RESET# RESET#

Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01

CS# Chip Select · WAIT# not connected

Page 564 of the Epson LCD Controller (S1D13708) user manual — WE0# WRL#
Page 564 · click to enlarge
Page 564
Table 3-2Mode 68 16-Bit Data Host Bus Interface Pin Mapping

S1D13708 Pin Names connect to Vss

AB[16:0] connect to Vss

DB[15:0] D[15:0]

M/R# A0

CLKI BUSCLK

RD/WR# R/W#

RD# connect to Vss

WE0# EBL

RESET# RESET#

Table 3-3Mode 80 8-Bit Data Host Bus Interface Pin Mapping

S1D13708 Pin Names connect to Vss

AB[16:0] connect to Vss

DB[15:8] connect to Vss

DB[7:0] D[7:0]

M/R# A0

CLKI BUSCLK

RD/WR# RDL#

RD# connect to VDD

WE0# WRL#

RESET# RESET#

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

Show 4 more labels / short text on this page
CS# Chip Select · WAIT# not connected · CS# Chip Select · WAIT# not connected
Page 565 of the Epson LCD Controller (S1D13708) user manual — DB[15:0] D[7:0]
Page 565 · click to enlarge
Page 565
Table 3-4Mode 80 16-Bit Data Host Bus Interface Pin Mapping

S1D13708 Pin Names connect to Vss

AB[16:0] connect to Vss

DB[15:0] D[7:0]

M/R# A0

CLKI BUSCLK

RD/WR# RDL#

RD# RDU#

WE0# WRL#

RESET# RESET#

Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01

CS# Chip Select · WAIT# not connected

Page 566 of the Epson LCD Controller (S1D13708) user manual — Note
Page 566 · click to enlarge
Page 566

3.2 Host Bus Interface Signals

The S1D13708 Indirect Interface mode 68 and 80 host bus interface requires the following signals from a micro-controller.

  • CLKI is a clock input which is required by the S1D13708 Host Bus Interface as a source for its internal bus and memory clocks. This clock is typically driven by the host CPU system clock. CLKI for the S1D13708 Indirect Interface can also be asynchronous with respect to the micro-controller bus clock, i.e. the clocks can be out of phase and/or different speeds. The only consideration to take into account is the software routines that control the bus cycles. The routines need to meet the bus interface timing requirements according to the S1D13708 bus clock.
  • The data bus, DB[15:0] or DB[7:0], must be connected to bi-directional pins of the micro-controller lines.
  • Chip Select (CS#) must be driven low when the S1D13708 is accessed by the microcontroller.
  • M/R# [A0 (command signal)] selects between the signals on the data bus as being a register address or memory/register data.
  • The RESET# (active low) input of the S1D13708 may be connected to the system RESET#.

The next three signals only apply to Mode 68:

  • WE0# (EBL, active low) is the low byte enable input for both read and write cycles. This signal needs to be tied to a general purpose output line of the micro-controller.
  • WE1# (EBH, active low) is the high byte enable input for both read and write cycles. This signal needs to be tied to a general purpose output line of the micro-controller for a 16-bit data bus, or to ground for an 8-bit data bus.
  • RD/WR# (R/W#, active low) must be driven high for read accesses and low for write accesses. This signal needs to be tied to a general purpose output line of the microcontroller.

Note

Mode 68 requires the S1D13708 BS# and RD# signal inputs be tied to VSS.

The next four signals only apply to Mode 80:

  • RD/WR# (RDL#, active low) is the low byte enable for read cycles. This input signal needs to be tied to a general purpose output line of the micro-controller.
  • RD# (RDU#, active low) is the high byte enable for read cycles. This input signal needs to be tied to a general purpose output line on the micro-controller for a 16-bit data bus, or to ground for an 8-bit data bus.
  • WE0# (WRL#, active low) is the low byte enable for write cycles. This input signal needs to be tied to a general purpose output line of the micro-controller.
  • WE1# (WRU#, active low) is the high byte enable for write cycles. This input signal needs to be tied to a general purpose output line of the micro-controller for a 16-bit data bus, or to ground for an 8-bit data bus.

Note

Mode 80 requires the S1D13708 BS# input signal be tied to VDD.

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

Page 567 of the Epson LCD Controller (S1D13708) user manual — CS (RD0)
Page 567 · click to enlarge
Page 567

4 Micro-Controller to S1D13708 Interface

4.1 Hardware Connections

The interface between the S1D13708 and a micro-controller requires no external logic if there are enough IO lines, and voltage levels are the same. As an example; the MicroChip P18C452 micro-controller has 34 IO lines available for use as general input/output lines, 1536 bytes of RAM, and runs 20Mhz at 3.3 volts.

To interface the S1D13708 to the P18C452 using Indirect Mode 68 requires only four output lines acting as control signals and eight bidirectional lines acting as the data bus. Using only 12 IO lines, a fully functioning S1D13708 LCD controller can be attached to the micro-controller. If a 16-bit data bus is desired, eight more bidirectional lines from the P18C452 can be connected to DB[15:8] and one more output line, acting as EBH, connected to the WE1# pin of the S1D13708.

The S1D13708 has 80K of embedded RAM which is used as the LCD display buffer. Depending on the LCD panel size, some of this memory can be used to store data for the micro-controller.

For example, using an Epson 160x160 ND-TFD panel in 8 bpp mode, the S1D13708 only requires 25K bytes of display buffer memory and will have 55K bytes of memory available for data storage which the P18C452 can use. If the bit-per-pixel setting is changed to 16 bpp, only 30K bytes of memory is available to the micro-controller for data storage.

CS (RD0)

CS#

A0 (RD1)

M/R#

R/W# (RD2) RD/WR#

EBL (RD3)

WE0#

D[7:0] (RB[7:0])

DB[7:0]

CLKI

RESET#

DB[15:8]

WE1#

RD#

BS#

AB[16:0]

Figure 4-1Typical Implementation of Micro-Controller to S1D13708 Interface

Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01

MicroChip P18C452 S1D13708 · System CLK · System RESET

Page 568 of the Epson LCD Controller (S1D13708) user manual — S1D13708
Page 568 · click to enlarge
Page 568

4.2 S1D13708 Hardware Configuration

The S1D13708 uses CNF7 through CNF0 to allow selection of the bus mode and other configuration data on the rising edge of RESET#. For details on configuration, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

The following table shows the configuration required for this implementation of the S1D13708 with the Indirect Interface. To select Mode 68, the BS# and RD# pins are tied to VSS. To select Mode 80, only the BS# pin is tied to VDD.

Table 4-1Summary of Power-On/Reset Configuration Options

S1D13708

value on this pin at the rising edge of RESET# is used to configure: (1/0)

1 0 CNF[4, 2:0] 0111 = Indirect Mode Little Endian Host Bus Interface CNF3 GPIO pins as inputs at power on GPIO pins as HR-TFT / D-TFT outputs CNF5 Active high WAIT# Active low WAIT# CNF[7:6] See Table 4-2: “CLKI to BCLK Divide Selection” for recommended setting

= configuration for generic 8-bit processor

Table 4-2CLKI to BCLK Divide Selection

CNF7 CNF6 CLKI to BCLK Divide 0 0 1:1 0 1 2:1 1 0 3:1 1 1 4:1

= recommended setting for Indirect Mode

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

Pin Name

Page 569 of the Epson LCD Controller (S1D13708) user manual — 4.3 Register/Memory Mapping
Page 569 · click to enlarge
Page 569

4.3 Register/Memory Mapping

When the S1D13708 is in Indirect mode it is not a memory mapped device. It uses the protocol of first placing the register address on the data lines, then setting the register data on the data lines for the next cycle. The data lines are a multipurpose data bus, they can contain either the register address or the register data. The type of cycle, register address (command) or register data (data), is controlled by the A0 command signal.

The 80K byte display buffer memory of the S1D13708 is accessed through the use of four dedicated register sets. Registers REG[C0h], REG[C1h] and REG[C2h] contain the address of the memory pointer, and register REG[C4h] is the ‘start’ register. To access memory, REG[C2h], REG[C1h] and REG[C0h] are written with the desired memory address. Then, a command access to register REG[C3h] will start the memory access. Subsequent read/write data accesses will access the memory. The memory pointer address is automat- ically incremented after a memory data access.

The overhead for reading a large block of memory is the same as reading a small block of memory. Reading a single byte of memory will still require setting three address registers and a fourth access to the ‘start’ register.

For further information on the Indirect Interface bus cycles, please refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx.

Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01

Page 570 of the Epson LCD Controller (S1D13708) user manual — 5 Software
Page 570 · click to enlarge
Page 570

5 Software

To implement the bus cycles in software, refer to the S1D13708 Hardware Functional Specification, document number X39A-A-001-xx, for the bus timings. A minimum of three steps must be implemented in software to use the Indirect Interface. The steps for an 8-bit data transfer are:

  • void command_write (char command_value)
  • void data_write (char data_value)
  • char data_read (void)

Example 1: The sequence for writing the S1D13708 register REG[7Ch] PIP+ Display Start with a value of 28h is:

  • command_write(0x7C);
  • data_write(0x28);
Example 2The sequence for reading the S1D13708 register REG[26h] FPFRAME Pulse Start Register 0 is:
  • command_write(0x26);
  • value_returned= data_read();

Example 3: The sequence for writing to S1D13708 memory location 200h with two bytes of data is:

  • command_write(0xC0);
  • data_write(0x00);
  • command_write(0xC1);
  • data_write(0x02);
  • command_write(0xC2);
  • data_write(0x00);
  • command_write(0xC3); // note that no ‘data’ value is needed for the ‘start’ register
  • data_write(0xAA); // 1st byte of data written to 0x200
  • data_write(0x55); // 2nd byte of data written 20 0x201

To read memory, the same sequence as above is used except a ‘data_read()’ is called. Note that the memory address is auto-incremented after a memory data access and the ‘start’ register REG[C3h] does not require a data value.

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

Page 571 of the Epson LCD Controller (S1D13708) user manual — 5 Software
Page 571 · click to enlarge
Page 571

The following is a C implementation of the bus cycles:

// these are the simplified mode 68 bus cycles to mimic on the PIC general IO pins #define CommandWriteStep1 0b10010100 // A0= low, RW=low #define CommandWriteStep2 0b10011000 // CS=low, EBL= high #define CommandWriteStep3 0b10010100 // EBL= low,CS=high #define CommandWriteStep4 0b10110110 // a0= high, rw=high #define DataWriteStep1 0b10010110 // rw=low #define DataWriteStep2 0b10011010 // cs=low,ebl=high #define DataWriteStep3 0b10010110 // cs=high,ebl=low #define DataWriteStep4 0b10110110 // rw=high #define DataReadStep1 0b10111010 // c78NORMAL & ~c78CS | c78EBL; CS=low, EBL= high

//////////////////////////////////////////////////////////////////////////// // routine to mimic a mode 68 command write cycle // void command_write (char command_value) {

// command write cycle PORTB= command_value; // place the register onto the data bus TRISB= 0; // make port as output LATD= CommandWriteStep1; LATD= CommandWriteStep2; Nop(); LATD= CommandWriteStep3; LATD= CommandWriteStep4; LATD= c78NORMAL; TRISB= 0xff; // set bus as Inputs }

//////////////////////////////////////////////////////////////////////////// // routine to mimic a mode 68 data write cycle // void data_write (char data_value) {

PORTB= data_value; // place the register onto the data bus TRISB= 0; // make port as output LATD= DataWriteStep1; LATD= DataWriteStep2; Nop(); LATD= DataWriteStep3; LATD= DataWriteStep4; LATD= c78NORMAL; // back to original state TRISB= 0xff; // set bus as Inputs }

//////////////////////////////////////////////////////////////////////////// // routine to mimic a mode 68 data read cycle // char return_data_read; char data_read (void) {

TRISB= 0xff; // make port as output LATD= DataReadStep1; Nop(); return_data_read= PORTB; // place the register onto the data bus LATD= c78NORMAL; // we can terminate cycle early for speed return return_data_read; }

Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01

Page 572 of the Epson LCD Controller (S1D13708) user manual — 6.2 Document Sources
Page 572 · click to enlarge
Page 572

6 References

6.1 Documents

  • Epson Research and Development, Inc., S1D13708 Hardware Functional Specification , document number X39A-A-001-xx.
  • Epson Research and Development, Inc., S1D13708 Programming Notes and Examples , Document Number X39A-G-003-xx.

6.2 Document Sources

  • Epson Research and Development Website: <a href="http://www.erd.epson.com/" rel="nofollow noopener" target="_blank">http://www.erd.epson.com/</a>

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

Page 573 of the Epson LCD Controller (S1D13708) user manual — 7.1 EPSON LCD Controllers (S1D13708)
Page 573 · click to enlarge
Page 573

7 Technical Support

7.1 EPSON LCD Controllers (S1D13708)

Japan Seiko Epson Corporation Electronic Devices Marketing Division 421-8, Hino, Hino-shi Tokyo 191-8501, Japan Tel: 042-587-5812 Fax: 042-587-5564 http://www.epson.co.jp/

North America Epson Electronics America, Inc. 150 River Oaks Parkway San Jose, CA 95134, USA Tel: (408) 922-0200 Fax: (408) 922-0238 http://www.eea.epson.com/

Taiwan Epson Taiwan Technology & Trading Ltd. 10F, No. 287 Nanking East Road Sec. 3, Taipei, Taiwan Tel: 02-2717-7360 Fax: 02-2712-9164 http://www.epson.com.tw/

Europe Epson Europe Electronics GmbH Riesstrasse 15 80992 Munich, Germany Tel: 089-14005-0 Fax: 089-14005-110 http://www.epson-electronics.de/

Singapore Epson Singapore Pte., Ltd. No. 1 Temasek Avenue #36-00 Millenia Tower Singapore, 039192 Tel: 337-7911 Fax: 334-2716 http://www.epson.com.sg/

Hong Kong Epson Hong Kong Ltd. 20/F., Harbour Centre 25 Harbour Road Wanchai, Hong Kong Tel: 2585-4600 Fax: 2827-4346 http://www.epson.com.hk/

Connecting to a Micro-Controller via the Indirect Interface S1D13708 Issue Date: 01/12/12 X39A-G-020-01

Page 574 of the Epson LCD Controller (S1D13708) user manual — THIS PAGE LEFT BLANK
Page 574 · click to enlarge
Page 574

THIS PAGE LEFT BLANK

S1D13708 Connecting to a Micro-Controller via the Indirect Interface X39A-G-020-01 Issue Date: 01/12/12

Sources

References & links

Pages referenced in this manual — manufacturer, support and downloads.

Ask about the Epson LCD Controller (S1D13708)

Owners and our team usually reply within a day — and your question helps the next person too.

Add your email to get notified when it’s answered — no spam, ever.

0 questions
No questions yet about the Epson LCD Controller (S1D13708)

Be the first to ask — other owners or our team will answer.

Original document

Epson LCD Controller (S1D13708) manual PDF

574 pages·4.8 MB·Camera Accessories·PDF
Click any page above to open it here
Page 1 / …
100%
Loading pages…