background image

Manual Number: 00650-146-1

Page 2

PCI-COM485/8 Manual

ACCES95 and ACCESNT

These two drivers are mentioned for users migrating from older
versions of Tools. The functionality of ACCES95 and ACCESNT
has been combined into ACCES32.DLL, which is described be
low.

In order to modify your software to use the new ACCES32.DLL
instead of the older code, change the file you link to from ACCES95
or ACCESNT to ACCES32. No other changes are necessary.

To avoid recombining software that was written for ACCES95 or
ACCESNT, rename ACCES32.DLL to the appropriate name (95
or NT specific).

ACCES32

This directory contains the Windows 95/98/NT driver used to provide ac
cess to the hardware registers when writing 32-bit Windows software.
Several samples are provided in a variety of languages to demonstrate
how to use this driver.  The DLL provides four functions (InPortB,
OutPortB, InPort, and OutPort) to access the hardware.

This directory also contains the device driver and install program for NT.
This device driver provides register-level hardware access from Windows
NT, normally called through ACCES32.DLL. Two methods of using the
driver are provided, the ACCES32.DLL (recommended) and the
DeviceIOControl handles direct to the SYS file (slightly faster)

ACCESNT.EXE

Run this program on Windows NT to prepare ACCES32.DLL for use.
This is the install program for the SYS file itself.  The ACCESNT.SYS
file must reside in the same directory as this executable, and is copied to
the drivers directory of NT.  The driver is then dynamically started, and
can be used immediately. ACCESNT.EXE need be run only once per
computer. Once the driver is started, the registry entries tell WindowsNT
to load the driver on each boot-up.

No installation is necessary for Windows 95/98.

DLL

Samples for using ACCES32.DLL are provided in this directory.  Using
this DLL not only makes the hardware programming easier (MUCH easier),
but also one source file can be used for both Windows 95/98 and
WindowsNT. One executable can run under both operating systems and
still have full access to the hardware registers. The DLL is used exactly
like any other DLL, so it is compatible with any language capable of using
32-bit DLLs. Consult the manuals provided with your language’s com
piler for information on using DLLs in your specific environment.

SYS

The samples in this directory are provided ONLY for WindowsNT. The
DeviceIOControl based interaction with the register-level driver is only
available in NT.  If your code is written to use this method, it will not work
with Windows 95 or Windows 98.

Summary of Contents for PCI-COM485/8

Page 1: ...Model PCI COM485 8 Product Manual MANUAL NUMBER 00650 146 1B...

Page 2: ...ual in our online Support Library Thank you The information in this document is provided for reference only ICS Advent does not assume any liability arising from the application or use of the informat...

Page 3: ...Page iv This page intentionally left blank...

Page 4: ...ts which are not in an as new and re saleable condition are not eligible for credit return and will be returned to the customer Limited Warranty Effective April 1 1998 all products carry a 2 year limi...

Page 5: ...made by various manufacturers in performing warranty repairs and building replacement products If ICS Advent repairs or replaces a product its warranty term is not extended ICSAdvent will normally re...

Page 6: ...Cautions and Warnings are accented with triangular symbols The exclamation symbol is used in all cautions and warnings to help alert you to the important instructions The lightning flash symbol is us...

Page 7: ...Page viii This page intentionally left blank...

Page 8: ...s 5 Input Output Connections 6 Chapter 2 Functional Description 8 RS 485 Balanced Mode Operation 8 Comm Port Compatibility 8 Communication Mode 8 Baud Rate Ranges 9 Auto RTS Transceiver Control 9 Chap...

Page 9: ...f Figures Figure 2 1 PCI COM485 8 BLOCK DIAGRAM 9 Figure 3 1 PCI COM485 8 Option Selection Map 11 List of Tables Table 1 1 Pin Connections 7 Table 5 1 Baud Rate Divisor Values 14 Current Revision 1B D...

Page 10: ...propriate 2 Change the active drive to A by typing a Enter 3 Type install Enter and follow the on screen prompts The installation process will create several directories on your hard disk If you accep...

Page 11: ...DeviceIOControl handles direct to the SYS file slightly faster ACCESNT EXE Run this program on Windows NT to prepare ACCES32 DLL for use This is the install program for the SYS file itself The ACCESN...

Page 12: ...Windows 95 pro grams PCI32 This program is used to determine the base address and IRQ of installed PCI cards in Windows 95 98 and NT Run this program to both install and use NtioPCI SYS or PCIFind DLL...

Page 13: ...nter the CMOS setup program of your system and verify that the PCI plug and play option is set appropriately for your system Systems running Windows95 or any other PNP compliant Operating System shoul...

Page 14: ...uble click to run the PCINT EXE program This pro gram copies NTIOPCI SYS to the NT SYSTEM32 DRIVERS directory and dynamically loads and runs the driver Note If you previously installed an older versio...

Page 15: ...ss 0xFC00 with an interrupt of 05 the values in the Registry are Serial2 subkey Serial6 subkey PortAddress REG_DWORD 0xFC00 PortAddress REG_DWORD 0xFC20 Interrupt REG_WORD 5 Interrupt REG_DWORD 5 DosD...

Page 16: ...P m h O 0 0 1 u r h t D N G 9 2 n i P m h O 0 0 1 u r h t D N G 5 n i P n i A 0 3 n i P n i E 6 n i P n i A 1 3 n i P n i E 7 n i P d n u o r G D N G 2 3 n i P d n u o r G D N G 8 n i P t u o B 3 3 n...

Page 17: ...by default and supports termination by jumpers on the card If your application requires the transmitter to be un biased please contact the factory Comm Port Compatibility Type 16550 UART s are used a...

Page 18: ...is ready to be transmitted The driver remains en abled for one additional character s transmission time after data transfer is complete and then is disabled The receiver is also normally enabled then...

Page 19: ...it receive input output for RS 485 operation Simplified Termination Schematic In RS 485 operations where there are multiple terminals only the RS 485 ports at each end of the network should have termi...

Page 20: ...beled CLK X1 and CLK X4 provide means to select baud rates in either of two ranges When in the X1 position the baud rate range is up to 115 200 baud When in the CLK X4 position the baud rate range is...

Page 21: ...rd s base address You can only determine what the system has assigned To determine the base address that has been as signed run the provided PCIFind EXE or PCINT utility program Alternatively some ope...

Page 22: ...d 2 RS 485 Programming Programming the UART for RS 485 communication can be divided into three distinct sections initialization reception and transmission Initialization deals with option setup on the...

Page 23: ...stances for differentially driven data cables RS422 or RS 485 are for typical conditions RS 232 communication lines have a maximum length of 50 feet regardless of speed In C the code to set the chip t...

Page 24: ...op and uses a value of 13 ASCII Carriage Return as an end of transmis sion marker do while inportb BASEADDR 5 1 Wait until data ready data i inportb BASEADDR while data i 13 Reads the line until null...

Page 25: ...r at Base Address 5 That bit is the transmitter holding register empty flag If it is high the transmitter has sent the data The process of checking the bit until it goes high followed by a write is re...

Page 26: ...3 1995RadiatedRFFieldImmunity EN61000 4 4 1995EFTImmunityforACandI OLines EN 60950 1992 Safety of InformationTechnology Equipment Thetechnicaldocumentationrequiredtodemonstratethisproductmeetstherequi...

Reviews: