Digilent Port Communications Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Hardware Digilent Port Communications herunter. Digilent Port Communications User Manual [pl] [cs] [en] [de] Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 14
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
D
D
i
i
g
g
i
i
l
l
e
e
n
n
t
t
P
P
o
o
r
r
t
t
C
C
o
o
m
m
m
m
u
u
n
n
i
i
c
c
a
a
t
t
i
i
o
o
n
n
s
s
P
P
r
r
o
o
g
g
r
r
a
a
m
m
m
m
e
e
r
r
s
s
R
R
e
e
f
f
e
e
r
r
e
e
n
n
c
c
e
e
M
M
a
a
n
n
u
u
a
a
l
l
TM
www.digilentinc.com
Revision: 06/03/05 215 E Main SuiteD | Pullman, WA 99163
(509) 334 6306 Voice and Fax
© Digilent, Inc. Doc: 576-000
Introduction
The DPCUTIL Dynamic Link Library (DLL)
provides an Applications Programming
Interface (API), allowing Digilent system
boards to communicate with applications
software running under Microsoft Windows on
a host computer.
When using DPCUTIL DLL a Digilent
Communication Module is requred to create a
communications channel between the host PC
and a system board. Digilent currently provides
communications modules supporting Ethernet,
USB 2.0, and Serial RS-232 communication
protocols.
The DPCUTIL API has functions for controlling
and communicating with the scan chain of
JTAG devices connected to a Digilent board.
The DPCUTIL API can also send and recieve
data to and from the user logic configured into
the gate array on a connected Digilent board.
The JTAG scan chain manipulation functions
are primarily for configuration of the
programmable logic devices in the scan chain.
The JTAG scan chain manipulation functions
can also be used to access to the boundary
scan registers in the device scan chain for
loading of test vectors, the read back of test
results, and other manipulations of the JTAG
scan chain supported by the attached devices.
The DPCUTIL data transfer functions require
that the gate array configuration contain a
parallel port interface compatible with the
Digilent Parallel Interface Module specification
and reference design, available on the Digilent
web site, at www.digilentinc.com. This
interface allows the user to define a set of
addressable registers that can be accessed by
the DPCUTIL data transfer API functions. The
data transfer API functions allow for writing or
reading a single register, writing or reading
sets of registers, or reading or writing a stream
of data into or out of a single register.
The DPCUTIL DLL was created and compiled
using the Microsoft C++ compiler in Visual
Studio 6. The API is defined as a set of C
callable functions, and can be used with
programs written in either C or C++. It is also
possible to write programs using Microsoft
Visual BASIC to access the DPCUTIL API
functions, but Digilent does not provide
technical support for this use.
Overview
The Components
In order to use any of the DPCUTIL API
functions, a program source module must
include the following header files in this order:
#include <windows.h>
#include “dpcdefs.h”
#include “dpcutil.h”
These header files should be placed in a
directory visible to the compiler. The files
should include a path for the development
environment that causes the compiler to
search the appropriate directory at compilation
time.
The program must be linked with the dpcutil.lib
library. This establishes the dynamic link
references between the application program
and the DPCUTIL dynamic link library. This
library file should be placed in a directory
visible to the linker and the linker library search
path set in the development environment to
cause the linker to search the appropriate
directory at program link time.
The DPCUTIL Dynamic Link Library
(dpcutil.dll) must be in a directory that is
searched by the operating system at program
run time. The DLL file should either be placed
in the same directory as the application
program, or in a directory that is listed on the
operating system PATH environment variable.
When a program is executed, the operating
system will look for dynamic link libraries in the
Seitenansicht 0
1 2 3 4 5 6 ... 13 14

Inhaltsverzeichnis

Seite 1 - Overview

DDiiggiilleenntt PPoorrtt CCoommmmuunniiccaattiioonnss PPrrooggrraammmmeerrss RReeffeerreennccee MMaannuuaall TM www.digilentinc.com Revision: 0

Seite 2

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 10 of 14 rgbRcv [0] TDO 8 TDO 7 TDO 6 TDO 5 TDO 4 TDO

Seite 3 - Manual

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 11 of 14 BOOL DpcGetReg(HANDLE hif, BYTE bAddr, BYTE *

Seite 4 - Description of API calls

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 12 of 14 rgbData[0], the data byte in the register specifi

Seite 5

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 13 of 14 Returns number of devices in the device table De

Seite 6 - 6 of 14

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 14 of 14 The following are error codes of type ERC and use

Seite 7 - API JTAG manipulation calls

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 2 of 14 directory where the program executable resides or

Seite 8 - 8 of 14

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 3 of 14 The Device Table All communication modules acces

Seite 9 - 9 of 14

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 4 of 14 HWND user specified window handle MSG WM_COMMAN

Seite 10 - DPCUTIL Programmer’s Manual

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 5 of 14 Description This function performs startup initia

Seite 11 - 11 of 14

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 6 of 14 Description Used to check a specified transaction

Seite 12 - API Device Manager calls

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 7 of 14 BOOL DpcGetDpcVersion (char * szVersion, ERC *per

Seite 13 - 13 of 14

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 8 of 14 rgbSend[0] TDI 8 TDI 7 TDI 6 TDI 5 TDI 4 TDI

Seite 14 - Type/Error Codes

Digilent, IncTM DPCUTIL Programmer’s Manual www.digilentinc.com © Digilent, Inc. Page 9 of 14 rgbSend[0] TMS 4 TDI 4 TMS 3 TDI 3 TMS 2 TDI

Kommentare zu diesen Handbüchern

Keine Kommentare