ACL-6126
6-Channel D/A
Output Card




@Copyright 1996
All Rights Reserved.
Manual edition 15, February 1996

The information in this document is subject to change without prior notice in order to improve reliability, design and function and does not represent a commitment on the part of the manufacturer.

In no event will the manufacturer be liable for direct, indirect, special, incidental, or consequential damages arising out of the use or inability to use the product or documentation, even if advised of the possibility of such damages.

This document contains proprietary information protected by copyright. All rights are reserved. No part of this manual may be reproduced by any mechanical, electronic, or other means in any form without prior written permission of the manufacturer.

Trademarks
ACL-6126 is registered trademarks of ADLink Technology Inc. IBM PC is a registered trademark of International Business Machines Corporation. Intel is a registered trademark of Intel Corporation. Other product names mentioned herein are used for identification purposes only and may be trademarks and/or registered trademarks of their respective companies.



Contents





How to Use This Guide
1. Introduction
1.1 Features
1.2 Applications
1.3 Specifications
2. Installation
2.1 What You Have
2.2 Unpacking
2.3 ACL-6126's Layout
2.4 Jumper and DIP Switch Description
2.5 Base Address Setting
2.6 IRQ Level Setting
2.7 D/A Output Configuration
2.8 Connector Pin Assignment
2.9 Signal Connection
2.10 Software Installation
2.10.1 Installation
2.10.2 Running Utility
2.10.3 C Language Programming
3. Programming
3.1 I/O Port Address
3.2 D/A Data Register
3.2.1 Unipolar Numbering
3.2.2 Bipolar Numbering
3.3 Digital I/O Register
3.4 Demonstration Programs
Appendix A. I/O Port Address Map
Product Warranty/Service




How to Use This Guide

This manual is written to help you use the ACL-6126. The manual describes how to modify various settings on the ACL-6126 card to meet your requirements. It is divided into three chapters:





1. Introduction

The ACL-6126 provides 6-channel analog outputs, 16-channel digital inputs and 16-channel digital outputs add-on card for the IBM Personal Computer and compatible computers. It is designed for industrial control applications requiring analog outputs ( voltage and current )with 12-bit resolution in rugged environment.

The ACL-6126 transmits six analog outputs with individually user configurable ranges of :
0 ~ +10V, 0 ~ +5V, ±10V, ±5V, and 4 to 20 mA current loop.
Each D/A has a double-buffered output for single-step update and occupies its own I/O location. Also, A rugged and reliable 37-pin D-sub style connector is provided for analog outputs.

In addition to the 6 analog outputs, the ACL-6126 has 16 digital inputs and 16 digital outputs, all of the digital channels are TTL compatible. The ACLD-9182 ( 16-bit Isolation digital input board)and ACLD-9185 ( 16-bit relay output board) are designed for going with the digital input and output connection.

The ACL-6126 uses the state-of-the-art technology and components to design this card. Its compact size PCB board let this card easily fit into any kind of chassis. Also, all the components on the card are SMT type; it improves the reliability and quality of this card.


1.1 Features

The ACL-6126 6-channel D/A Output Card provides the following advanced features:




1.2 Applications


1.3 Specifications



2. Installation

This chapter describes how to install the ACL-6126. At first, the contents in the package and unpacking information that you should be careful are described. The jumpers and switches setting for the ACL-6126's base address and voltage source are also specified.


2.1 What You Have

In addition to this User's Manual, the package includes the following items:

If any of these items is missing or damaged, contact the dealer from whom you purchased the product. Save the shipping materials and carton in case you want to ship or store the product in the future.


2.2 Unpacking

Your ACL-6126 card contains sensitive electronic components that can be easily damaged by static electricity.

The card should be done on a grounded anti-static mat. The operator should be wearing an anti-static wristband, grounded at the same point as the anti-static mat.

Inspect the card module carton for obvious damage. Shipping and handling may cause damage to your module. Be sure there are no shipping and handing damages on the module before processing.

After opening the card module carton, extract the system module and place it only on a grounded anti-static surface component side up.

Again inspect the module for damage. Press down on all the socketed IC's to make sure that they are properly seated. Do this only with the module place on a firm flat surface.

Note : DO NOT APPLY POWER TO THE CARD IF IT HAS BEEN DAMAGED.

You are now ready to install your ACL-6126.


2.3 ACL-6126's Layout


Figure 2.1 ACL-6126`s Layout


2.4 Jumper and DIP Switch Description

You can configure the output of each channel and base address by setting jumpers and DIP switches on the ACL-6126. The card's jumpers and switches are preset at the factory. Under normal circumstances, you should not need to change the jumper settings.

A jumper switch is closed (sometimes referred to as "shorted") with the plastic cap inserted over two pins of the jumper. A jumper is open with the plastic cap inserted over one or no pin(s) of the jumper.


2.5 Base Address Setting

The ACL-6126 requires 16 consecutive address locations in I/O address space. The base address of the ACL-6126 is restricted by the following conditions.

1. The base address must be within the range 200hex to 3F0hex.

2. The base address should not conflict with any PC reserved I/O address. see Appendix A.

The ACL-6126's I/O port base address is selectable by an 8 position DIP switch SW1 ( refer to Table 2.1). The address settings for I/O port from Hex 200 to Hex 3F0 is described in Table 2.2 below. The default base address of your ACL-6126 is set to hex 2C0 in the factory( see Figure 2.1).


Figure 2.2 Default Base Address Setting

I/O port
address(hex)
fixed
A9
1
A8
2
A7
3
A6
4
A5
5
A4
200-20F OFF
(1)
ON
(0)
ON
(0)
ON
(0)
ON
(0)
ON
(0)
210-21F OFF
(1)
ON
(0)
ON
(0)
ON
(0)
ON
(0)
OFF
(1)
: : : : : : :
(*) 2C0-2CF OFF
(1)
ON
(0)
OFF
(1)
OFF
(1)
ON
(0)
ON
(0)
: : : : : : :
300-30F OFF
(1)
OFF
(1)
ON
(0)
ON
(0)
ON
(0)
ON
(0)
: : : : : : :
3F0-3FF OFF
(1)
OFF
(1)
OFF
(1)
OFF
(1)
OFF
(1)
OFF
(1)

(*) : default setting ON : 0
X : don't care OFF : 1
Note : A4, ..., A9 correspond to PC bus address lines.
Table 2.1


2.6 IRQ Level Setting

A hardware interrupt can be triggered by the external Interrupt signal which is from pin 17 of P1 connector. Its correspond interrupt IRQ levels can be selected by jumper J1. The jumper setting is specified as below:

Note : Be aware that there is no other add-on card shares the same interrupt level at the same system.


Note : External trigger source is from Pin-17 of P1
Figure 2.3 IRQ Setting


2.7 D/A Output Configuration

The ACL-6126`s output channels can be configured as different analog output styles, and they are depended on D/A converter's reference voltage source and output mode( Bipolar or Unipolar). The reference voltage can be internal generated or by external reference voltage from the Reference Voltage Input ( REF.IN) of connector P1. Each output channel and its corresponding jumper are listed as follow.

CHANNEL NO. Corresponding Jumper
CH0 JP7
CH1 JP9
CH2 JP11
CH3 JP18
CH4 JP17
CH5 JP16

The jumper settings for each output channel are illustrated as below Figure 2.4 . The internal -5V is set as default reference voltage.

Reference
Voltage
Source
External Ref. -10V Ref. -5V Ref.
( default )
Jumper
Setting

Figure 2.4 Reference Voltage Source

Besides, each output channel can be set as Bipolar or Unipolar output. Each output channel and its corresponding jumpers for mode setup are listed as follow.

CHANNEL NO. Corresponding Jumper
for output mode
CH0 JP1, JP8
CH1 JP2, JP10
CH2 JP3, JP12
CH3 JP4, JP13
CH4 JP5, JP14
CH5 JP6, JP15

The jumper settings for output channel CH0 are illustrated as below Figure 2.5. The Unipolar mode is default setting.

Output Mode Unipolar
( default )
Bipolar
CH0

Figure 2.5 Output Mode Setting for CH0

The different output ranges of output CH0 are shown as the following table. The settings for reminder channels(CH1 ~ CH5) should follow the same rules as CH0.

Output Range JP7 JP1 & JP8
0 to +5V
Unipolar
(Default)
0V to +10V
Unipolar
-5V to +5V
Bipolar
-10V to +10V
Bipolar
4 mA to 20 mA
External Ref.



2.8 Connector Pin Assignment

The ACL-6126 comes equipped with one 37-pin D-sub (P1) and two 20-pin insulation displacement connectors (CN3 and CN4). The P1 is located at the rear plate; the CN3 and CN4 are located on board.

P1 is used for analog outputs and reference voltage input, CN3 for digital inputs, CN4 digital outputs. Each connector's pin assignment is specified as follows:

Legend :
V.OUT : Analog Voltage Output
I.OUT : Analog Current Output
A.GND : Analog Ground
D/A : Analog Output
D.GND : Digital Ground
REF.OUT : Reference Voltage Output
REF.IN : Reference Voltage Input
EXT TRG : External Interrupt Trigger
DO : Digital Output
DI : Digital Input
NC : No Connection

· CN 3 : DIGITAL OUTPUT

· CN 4 : DIGITAL INPUT




2.9 Signal Connection

A correct signal connection is quite important to send data accuracy. In this section, a helpful information for how to make proper signal connection when the ACL-6126 is used.

2.9.1 Voltage Output Connection

2.9.2 Current Sink Connection

Note : For 4-20mA current sink mode, the output range should be set as Internal Reference with -5V and Unipolar mode.

The voltage bias of current sink mode should be within 8V ~ 36V. A 12V or 24V DC power supply is the best choice for power source.


2.10 Software Installation

The ACL-6126's Utility Diskette includes a utility software and some demonstration programs which can help you to reduce your application programming work and support the calibration of analog outputs.

Note : We recommend to make a copy of the original software disk and keep it in a safe place before install the utility.

2.10.1 Installation

You will need to manually copy the contents of diskette to your hard disk. The procedures should be followed as :

  1. Turn your PC's power switch on
  2. Put the " ACL-6126 Utility" diskette in to your floppy drive A: or B:
  3. Make a directory in your hard disk and change to this directory
    C> mkdir 6216
    C> cd 6216
  4. Copy the content from drive A: or B: to C:
    C> xcopy a:*.* c: /s
  5. Make sure the contents of the diskette are copied correctly. C> dir
    You will find the following files in the "6126" directory:
    LIB <DIR>
    UTIL <DIR>
    SAMPLES <DIR>
    README.DOC


2.10.2 Running Utility

After finishing the installation, you can execute the utility by typing as follows :
C> 6126UTIL

the following diagram will be displayed on you screen, there are seven utilities can be used in this program, they are

  1. ACL-6126's base address setting
  2. Calibration
  3. D/A Channel's Output Range Setup
  4. D/A Outputs
  5. Digital Inputs
  6. Digital Outputs
  7. Dos Shell

All the operations in the utility are menu driven, so you can easily execute all the functions and just follow the instructions on the screen step by step.

2.10.3 C Language Programming

Three example programs in C language are supported in the directory <SAMPLES>, you can refer these samples and modify them for your own application. For more detailed description of the function library, please refer to the README.DOC file in the diskette.



3. Programming





3.1 I/O Port Address

The ACL-6126 requires 16 consecutive addresses in the PC`s I/O address space. The starting address (Base) is selected on the DIP switch SW1 ( see Section 2.5). The following table (Table 4.1) shows the location of each register and its description.

Location Mode Description
Base + 0 Write D/A #1 high byte data
Base + 1 Write D/A #1 low byte data
Base + 2 Write D/A #2 high byte data
Base + 3 Write D/A #2 low byte data
Base + 4 Write D/A #3 high byte data
Base + 5 Write D/A #3 low byte data
Base + 6 Write D/A #4 high byte data
Base + 7 Write D/A #4 low byte data
Base + 8 Write D/A #5 high byte data
Base + 9 Write D/A #5 low byte data
Base + 10 Write D/A #6 high byte data
Base + 11 Write D/A #6 low byte data
Base + 12 Write D/O Bit 8-15
Base + 13 Write D/O Bit 0-7
Base + 14 Read D/I Bit 8-15
Base + 15 Read D/I Bit 0-7

Table 4.1


3.2 D/A Data Register

The D/A converter expect digital input data to be in binary right-justified form, as shown in Figure 3.1.

X X X X D11 D10 D9 D8 D7 D6 D5 D4 D3 D2 D1 D0

The base address from Base+0 to Base+11 are used for D/A conversion. The analog output channels and its corresponding registers are specified by table 4.2, and the details is described as table 4.3 and 4.3.

CH. No. #1 #2 #3 #4 #5 #6
High byte Base+0 Base+2 Base+4 Base+6 Base+8 Base+10
Low byte Base+1 Base+3 Base+5 Base+7 Base+9 Base+11

Table 4.2

Data Format :

D/A High byte data : (Base + 0, + 2, +4, +6, +8, +10)

Bit 7 6 5 4 3 2 1 0
- X X X X D11 D10 D9 D8

Table 4.3

D/A Low byte data : (Base + 1, +3, +5, +7, +9, +11)

Bit 7 6 5 4 3 2 1 0
- D7 D6 D5 D4 D3 D2 D1 D0

Table 4.4

AD11 .. AD0 : Analog to digital data. AD0 is Least Significant Bit, and AD11 is Most Significant Bit.
X : Don't care

Two analog output range alternatives are provided by the ACL-6126 : Unipolar and Bipolar. The numbering of the converted data with have different presentation for different output range.

3.2.1 Unipolar Numbering

Example :

Converted Data = 2047
Binary Code = 0111 1111 1111
Vref = -5V
V.OUT = -(-5 V) * ( 2047/ 4096) = 2.498 V

3.2.2 Bipolar Numbering

Example :

Converted Data = 500
Binary Code = 1001 1111 0100
Vref = -5V
V.OUT = -(-5 V) * ( 500/ 2048) = 1.220 V


3.3 Digital I/O Register

There are 16 digital input channels and 16 digital output channels are provided by ACL-6126. These I/O channels use the address Base + 12 and Base + 13 for output channels, and the address Base + 14 and Base + 15 for input channels. The data format is shown as follows:

Data Format :

Digital I/O : (Base + 12, Base + 13, Base + 14, and Base + 15)

Bit 7 6 5 4 3 2 1 0
Base + 12
( Write,
Output )
DO15 DO14 DO13 DO12 DO11 DO10 DO9 DO8
Base + 13
( Write,
Output )
DO7 DO6 DO5 DO4 DO3 DO2 DO1 DO0
Base + 14
( Read,
Input )
DI15 DI14 DI13 DI12 DI11 DI10 DI9 DI8
Base + 15
( Read,
Input )
DI7 DI6 DI5 DI4 DI3 DI2 DI1 DI0

Table 4.5


3.4 Demonstration Programs

Some demonstration programs and a very simple Analog output and Digital I/O library source are included in the Utility Diskette. The description of each files for demonstration is listed as following table :

6126.H : a head file which should be included in your program when you use any function in the library 6126LIB.C.

DA_DEMO.C : analog output demonstration program

DI_DEMO.C : digital input demonstration program

DO_DEMO.C : digital output demonstration program

We provide source code of all above programs, you can refer to these demonstrate programs and library to speed up your own application development.



Appendix A . I/O Port Address Map


I/O Address Device
000-01F DMA controller 1
020-03F interrupt controller
040-05F Timer
060-06F Keyboard
070-07F Real-time clock
080-09F DMA page register
0A0-0BF interrupt controller 2
0C0-0DF DMA controller
0F0-0FF Math coprocessor
100-1EF not usable
1F0-1F8 Fixed disk
200-207 Game I/O
278-27F Parallel printer port 2 ( LPT2: )
2F8-2FF Serial Port 2 ( COM2: )
300-31F Prototype card
360-36F Reserved
378-37F Parallel printer port 1 ( LPT1: )
3B0-3BF Monochrome display
3C0-3CF Reserved
3D0-3DF Color graphics display
3F0-3F7 Diskette controller
3F8-3FF Serial port 1 ( COM 1: )




Product Warranty/Service

Seller warrants that equipment furnished will be free form defects in material and workmanship for a period of one year from the confirmed date of purchase of the original buyer and that upon written notice of any such defect, Seller will, at its option, repair or replace the defective item under the terms of this warranty, subject to the provisions and specific exclusions listed herein.

This warranty shall not apply to equipment that has been previously repaired or altered outside our plant in any way as to, in the judgment of the manufacturer, affect its reliability. Nor will it apply if the equipment has been used in a manner exceeding its specifications or if the serial number has been removed.

Seller does not assume any liability for consequential damages as a result from our products uses, and in any event our liability shall not exceed the original selling price of the equipment.

The equipment warranty shall constitute the sole and exclusive remedy of any Buyer of Seller? equipment and the sole and exclusive liability of the Seller, its successors or assigns, in connection with equipment purchased and in lieu of all other warranties expressed implied or statutory, including, but not limited to, any implied warranty of merchant ability or fitness and all other obligations or liabilities of seller, its successors or assigns.

The equipment must be returned postage-prepaid. Package it securely and insure it. You will be charged for parts and labor if you lack proof of date of purchase, or if the warranty period is expired.






©1995 Circuit Specialists, Inc.