background image

Page 2-3

Manual MPAD128.D1g

SAMPLES

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 compiler for information on using DLLs in your specific
environment.

VBACCES

This directory contains sixteen-bit DLL drivers for use with VisualBASIC 3.0 and Windows 3.1
only.  These drivers provide four functions, similar to the ACCES32.DLL.  However, this DLL is
only compatible with 16-bit executables.  Migration from 16-bit  to 32-bit is simplified because of
the similarity between VBACCES and ACCES32.

PCI

This directory contains PCI-bus specific programs and information.  If you are not using a PCI card,
this directory will not be installed.

SOURCE

A utility program is provided with source code you can use to determine allocated resources at
run-time from your own programs in DOS. 

PCIFind.exe

A utility for DOS and  Windows to determine what base addresses and IRQs are allocated to
installed PCI cards. This program runs two versions, depending on the operating system.  Windows
95/98/NT displays a GUI interface, and modifies the registry.  When run from DOS or Windows3.x,
a text interface is used.  For information about the format of the registry key, consult the
card-specific samples provided with the hardware.  In Windows NT, NTioPCI.SYS runs each time
the computer is booted, thereby refreshing the registry as PCI hardware is added or removed.  In
Windows 95/98/NT PCIFind.EXE places itself in the boot-sequence of the OS to refresh the registry
on each power-up.

This program also provides some COM configuration when used with PCI COM ports.  Specifically,
it will configure compatible COM cards for IRQ sharing and multiple port issues.

WIN32IRQ

This directory provides a generic interface for IRQ handling in Windows 95/98/NT.  Source code
is provided for the driver, greatly simplifying the creation of custom drivers for specific needs.
Samples are provided to demonstrate the use of the generic driver.  Note that the use of IRQs in
near-real-time data acquisition programs requires multi-threaded application programming
techniques and must be considered an intermediate to advanced programming topic.  Delphi, C++
Builder, and Visual C++ samples are provided.

Summary of Contents for PAD128

Page 1: ...ACCES I O PRODUCTS INC 10623 Roselle Street San Diego CA 92121 TEL 858 550 9559 FAX 858 550 7322 MODEL PAD128 USER MANUAL FILE MPAD128 D1g...

Page 2: ...Page ii...

Page 3: ...tain or reference information and products protected by copyrights or patents and does not convey any license under the patent rights of ACCES nor the rights of others IBM PC PC XT and PC AT are regis...

Page 4: ...not excluded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime ACCES stands ready to provideon site or in plant service at reasonable rates si...

Page 5: ...cations 1 2 Regulatory Compliance 1 3 Chapter 2 Installation 2 1 CD Installation 2 1 3 5 Inch Diskette Installation 2 1 Directories Created on the Hard Disk 2 2 Installing the Card 2 4 Chapter 3 Cable...

Page 6: ...Page vi List of Figures Figure 1 1 PAD128 Block Diagram 1 4 List of Tables Table 4 1 Standard Address Assignments for 286 386 486 Computers 4 1 Table 6 1 PAD128 Register Definition Map HEX 6 1...

Page 7: ...l inputs Or you could have two single ended inputs and three differential inputs If you are using differential inputs you must use channels with the same full scale range In the standard card there ar...

Page 8: ...the card slot drive these services are normally provided by Windows The diskette CD includes a program called FINDBASE that helps you find an unused base address to use with the card when using DOS P...

Page 9: ...es depending on range from 1 LSB for 10V range to 2 LSB on the 0 100mV range Digital Input Output Inputs Logic High 2 0 to 5 0 VDC Logic Low 0 3 to 0 8 VDC Input Load high 3 2 A Input Load low 250 A O...

Page 10: ...PAD128 Manual Page 1 4 Manual MPAD128 D1g Figure 1 1 PAD128 Block Diagram...

Page 11: ...mpts to install the software for this card WIN95 98 NT 2000 1 Place the CD into your CD ROM drive 2 The CD should automatically runthe install programafter 30 seconds If the install program does not r...

Page 12: ...E that contains C samples Win32 language Subdirectories containing samples for Win95 98 and NT WinRISC exe A Windows dumb terminal type communication program designed for RS422 485 operation Used prim...

Page 13: ...programs in DOS PCIFind exe A utility for DOS and Windows to determine what base addresses and IRQs are allocated to installed PCI cards This program runs two versions depending on the operating syste...

Page 14: ...jumpers to set Everything on the PAD128 card is programmable including address and interrupt level If you havetwo PCMCIA slots you canplug two PAD128 devices inthe same Windows based computer DOS or...

Page 15: ...key named Industrial Computer Source then add a new subkey to the Industrial Computer Source key you just created named PAD128 In the PAD128 key add a new string with the name Driver and the value pad...

Page 16: ...PAD128 Manual Page 2 6 Manual MPAD128 D1g...

Page 17: ...7 Digital I O 14 7 8 Digital I O 13 8 9 Digital I O 12 9 10 Digital I O 11 10 11 Digital I O 10 11 12 Digital I O 9 12 13 Digital I O 8 13 14 Digital I O 0 14 15 Digital I O 1 15 16 Digital I O 2 16 1...

Page 18: ...PAD128 Manual Page 3 2 Manual MPAD128 D1g...

Page 19: ...ng systems you can skip this chapter Hex Range Usage 000 01F DMA Controller 1 020 03F INT Controller 1 Master 040 05F Timer 060 06F 8042 Keyboard 070 07F Real Time Clock NMI Mask 080 09F DMA Page Regi...

Page 20: ...PAD128 Manual Page 4 2 Manual MPAD128 D1g...

Page 21: ...try required to allow NT to detect and install the card correctly This program need only be executed once per system Sample Programs The sample programs are in forms suitable for use with DOS Borland...

Page 22: ...PAD128 Manual Page 5 2 Manual MPAD128 D1g...

Page 23: ...D Point Readback Base Address C A D Point Setup A D Point Readback Base Address E A D Point Setup A D Point Readback Base Address 10 A D Control A D Control Readback Base Address 14 advanced features...

Page 24: ...ts DF through DC SettleTime are optional use 0000 for most input sources If a larger settle time is desired for example for source impedances R greater than 100 ohms the following equation will calcul...

Page 25: ...nts Bit DB Diag places the chip in diagnostic mode In this mode the channel numbers take on special meaning allowing readback of various reference and ground voltages When Diag is set CH set to 000 se...

Page 26: ...DD DC DB DA D9 D8 D7 D6 D5 D4 D3 D2 D1 D0 number of conversions in FIFO point being acquired used for advanced functions Bits DF through DB indicate how many points of data are in the FIFO It is impor...

Page 27: ...DIO2 DIO1 DIO0 This port contains DIO0 through DIO7 s control and status bits Base Address 21 Digital I O 8255 Port B D7 D6 D5 D4 D3 D2 D1 D0 DIO15 DIO14 DIO13 DIO12 DIO11 DIO10 DIO9 DIO8 This port c...

Page 28: ...PAD128 Manual Page 6 6 Manual MPAD128 D1g D6 M2 D5 M1 D2 M0 Mode X 0 0 Mode 0 X 1 1 Mode 1 1 X X Mode 2...

Page 29: ...reading these instructions The first step every time you use the card is to initialize it This five step process is as follows Reset the Card and Point List Index Base 10 bit 1 Calibrate the Card Bas...

Page 30: ...above with no Pause bits and set Loop on the last point Start a Conversion Base 10 bit 0 Wait for FIFO full Base 14 bits F B Read the Data Base 18 Loop to Wait for FIFO full Wait for FIFO Full is a lo...

Page 31: ...orts that are available at the connector are controlled through the 8255 device located at Base 20 through Base 23 Programming Example The following example in C is provided as a guide to assist you i...

Page 32: ...se 0x2D0 outportb Base 0x98 To read the inputs at Port A use the C inportb command X inportb Base Read Port A To set outputs high 1 at Port B outportb Base 1 0xff Turn on all Port B bits Each time the...

Page 33: ...Page 6 11 Manual MPAD128 D1g...

Page 34: ...Page A 1 Manual MPAD128 D1g Appendix A 8255 Data Sheet The following pages are extracted from the 8255 data sheets and are provided for your reference...

Page 35: ...PAD128 Manual Page A 2 Manual MPAD128 D1g...

Page 36: ...nual MPAD128 D1g Appendix B LM12H458 Data Sheet The following pages are extracted from the LM12H458 Data Sheet and are provided for your reference Reprinted with permission of National Semiconductor C...

Page 37: ...PAD128 Manual Page B 2 Manual MPAD128 D1g...

Page 38: ...ccesioproducts com Customer Comments If you experience any problems with this manual or just want to give us some feedback please email us at manuals accesioproducts com Please detail any errors you f...

Page 39: ...PAD128 Manual Page B 4 Manual MPAD128 D1g...

Reviews: