Техническая Спецификация для Velleman K8055N

Скачать
Страница из 29
INTRODUCTION  
 
This interface board has sixteen digital input/output channels which can be used as either input 
or output as desired. In addition, there are eight analogue outputs with 6 bit resolution, one 
analogue output with 8 bit resolution, and four analogue inputs of 8 bit resolution. If more digital 
outputs are required, then the analogue outputs can be used by setting to minimum or 
maximum output voltage.  If there are too few inputs, then the analogue inputs may be used. In 
this way it is very simple to track the state of a rotating switch by connecting in a different 
voltage for every state. Please note that these extra input and output channels are not optically 
isolated. 
The number of inputs/outputs can be further expanded by connecting more cards together, up 
to a maximum of four. Each card is given its own identification by means of  a two pole DIP-
switch SW1 (see table below for channel numbering). 
 
To connect the card to the computer the printer port is used (note that there is no need to install 
an extra printer port as the printer can be connected to the interface card). Three lines from this 
port are used, namely, "Select" (pin 13), "Autofeed" (pin 14) and "Select in" (pin 17). 
Communication between the computer and interface card is by means of a serial link. One line 
(Select in) serves as the clock signal, the second (Autofeed) as the data output, and the third 
(Select) as the data input.  
 
All communication routines are contained in a Dynamic Link Library (DLL) K8D.DLL. This 
document describes all the DLL functions and procedures that are available for  your application 
programme. Using the DLL allows you to write custom Windows 9x,  NT or XP based 
applications in Visual C++, Delphi, Visual Basic, or any other 32-bit Windows application 
development tool that supports calls to a DLL. Thus, there is no need to be concerned about the 
communication protocol.  
  
A complete overview of all procedures, functions and variables that are used by the "K8D.DLL" 
follows. The example program can also be carefully studied in order to gain an insight as to how 
to construct your customised application programmes. 
Note that all examples are written for Delphi. 
 
At the end of this document there are full declarations for the DLL function and procedures for 
Delphi and Visual Basic.