Instructions for Windows CE

Universal Driver Documentation

Table of contents

What is Windows CE?

Windows CE is an embedded operating system created by Microsoft. It targets embedded systems with limited physical space, both RAM and storage space, that require real-time performance.

Customers are allowed to customize the OS to only include features that are needed and write applications using API similar to those found on its desktop counterparts.

Supported Windows CE Version

Diamond Systems provides universal driver version 6.00 for Windows CE version 6.0.

For more inquires contact support@diamondsystems.com

UD Files for Windows CE 6.0

The UD for Windows CE 6.0 is avaialble in a DLL format. The UD driver is separated into two different library files.

DSCUD.DLL - This is a kernel level driver file which handles interrupts. DSCUD_API.DLL - This is a user level DLL which needs to be statically linked with the user application. DSCUD.H - Include file which needs to be included with the user application.

Installation of UD in a Platform

The above lilsted files need to be available in a platform that the user has built in order to have UD driver available in the NK.BIN file.

DSCUD.DLL is required to be present in the project.reg registry file. The Project.reg file can be found in the Solutions explorer tab of Platform Builder.

The project.reg file must have the following entries for DSCUD to work.

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\DSCUD]

        "Dll"="dscud.dll"
        "Prefix"="DSC"
        "Order"=dword:1
        "SysIntr"=dword:15   ; IRQ 5
        "Index"=dword:1
        "Flags"=dword:10
 	"UserProcGroup"=dword:3

The above entries are required so that the kernel can load DSCUD.DLL file automatically when the operating system boots. All the above described entries must be present in the registry. The SysIntr value is the value of the IRQ used by the DAQ circuitry + SYSINTR_FIRMWARE ( 0x10 ). If the board is going to use some other IRQ, the SysIntr value in the registry MUST be changed to reflect the change.

If the SysIntr value does not correspond to the IRQ for the DAQ circuit, the driver will not be able to handle interrupt requests.

UD for WinCE Development System Installation and Application Compilation

  1. Unzip the UD archive into its own directory maintaining file path information. There should be three subdirectories; dll, include, lib.
  2. When compiling an application, include the library dscud_api.lib, found in the "lib" subdirectory, and dscud.h header file, found in the "include" subdirectory.

For running the compiled EXE from the image, make sure that the DSCUD_API.DLL and DSCUD.DLL are both present in the Project.bib file of the platform.

MODULES

Name Path Memory Type
-------------- --------------------------------------------- -----------
  dscud.dll          $(_FLATRELEASEDIR)\dscud.dll		   NK SH
  dscud_api.dll      $(_FLATRELEASEDIR)\dscud_api.dll		   NK SH

UD Demos

Diamond Systems provides example programs for all our products. Users can download the demos at http://www.diamondsystems.com/support/software. Users may need to modify the path of libraries and include files

Windows CE BSP Installation

  1. Unzip the "BSP zip file. The zip file will expand into its own directory, maintaining file path information.
  2. Refer to the README and documentation in the directory for how to install and build a WinCE image.


This page was last modified 05:23, 2 Apr 2009.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.