Page 6 Epson Research and Development
Vancouver Design Center
S1D13504 Windows® CE Display Drivers
X19A-E-001-04 Issue Date: 01/02/01
5. Create a sub-directory named S1D13504 under \wince\platform\cepc\drivers\display.
6. Copy the source code to the S1D13504 subdirectory.
7. Add an entry for the S1D13504 in the file \wince\platform\cepc\drivers\display\dirs.
8. Modify the file CONFIG.BIB (using any text editor such as NOTEPAD) to set the system
RAM size and the S1D13504 IO port and display buffer address mapping. Note that
CONFIG.BIB is located in X:\wince\platform\cepc\files (where X: is the drive letter). Since
the S5U13504B00C maps the IO port to 0xC00000 and memory to 0xE00000, the CEPC
machine should use the CMOS setup to create a 4M byte hole from address 0xC00000 to
0xFFFFFF. The following lines should be in CONFIG.BIB:
NK 80200000 00500000 RAMIMGE
RAM 80700000 00500000 RAM
Note
S1D13504.H should include the following lines:
#define PhysicalVmemSize 0x00200000L
#define PhysicalPortAddr 0x00C00000L
#define PhysicalVmemAddr 0x00E00000L
9. Edit the file PLATFORM.BIB (located in X:\wince\platform\cepc\files) to set the default dis-
play driver to the file S1D13504.DLL. S1D13504.DLL will be created during the build in
step 13.
You may replace the following lines in PLATFORM.BIB:
IF CEPC_DDI_VGA2BPP
ddi.dll $(_FLATRELEASEDIR)\ddi_vga2.dll NK SH
ENDIF
IF CEPC_DDI_VGA8BPP
ddi.dll $(_FLATRELEASEDIR)\ddi_vga8.dll NK SH
ENDIF
IF CEPC_DDI_VGA2BPP !
IF CEPC_DDI_VGA8BPP !
ddi.dll $(_FLATRELEASEDIR)\ddi_s364.dll NK SH
ENDIF
ENDIF
with this line:
ddi.dll $(_FLATRELEASEDIR)\S1D13504.dll NK SH
10. Edit the file MODE.H (located in X:\wince\platform\odo\drivers\display\S1D13504) to set the
desired screen resolution, color depth (bpp) and panel type. The sample code defaults to
640x480 color dual passive 16-bit LCD panel. To support one of the other listed panels,
change the #define statement.