background image

Introduction        5-3

PCI-AOB8/12 (16/12) User’s Guide

Pr

ogr
am

m

ing

ä

ä

ä

ä

Introduction

The PCI-AOB8/12 (16/12) DACs, timers, and digital I/O  use 40 consecutive I/O addresses. 
Programming the PCI-AOB8/12 (16/12) is very straightforward as there are only three operating 
modes, three range-selection switches per channel, and one unique addition. The basic 
operation of a digital-to-analog card is to write a 12-bit value to a digital to analog converter 
(DAC) pre-load (outer) register where it is buffered and loaded by an update command to a DAC 
(inner) register. Outputs of that register control a "ladder" network which produces the analog 
output. The output voltage range is defined by settings of the range-selection switches for that 
channel. In C:

outport(BASE+(CH*2),

(Volts*4096/10)-2048);

would output "Volts" volts to channel "ch", assuming a bipolar 5V range. For other bipolar 
ranges, substitute the appropriate voltage span in place of "10" in the equation. For unipolar 
ranges, also remove the "-2048".

Upon power-up, or hardware reset, the DAC registers are restricted to a safe value and the card is 
set in Simultaneous Update mode. Since the pre-load register is not cleared upon power-up, but 
left at an undefined value, a known value must be written to the preload registers before using a 
"Clear Restrict-Output-Voltage" command.

ä

ä

ä

ä

Simultaneous Update Mode

Simultaneous Update Mode is the power-up or default mode of operation for the DAC card. When 
a value is written to a DAC address, the output does not change until an output update is 
commanded via a read from Base 8. (Alternatively, a read of Base A will update 
the DAC registers and switch the board to Automatic Update Mode.) While in Simultaneous 
Update Mode, a single read will load all DAC registers with the value waiting in the pre-load 
registers, causing all outputs to be updated and changed simultaneously.

ä

ä

ä

ä

Automatic Update Mode

Automatic Update Mode is the configuration that changes a DAC output immediately after the 
high-byte of the new value is  written to the DAC address. If the card is in Simultaneous Update 
Mode, a read of Base 2 will change the card back to Automatic Update Mode without 
updating the outputs. A read of Base A will update all outputs simultaneously and then 
place the card in Automatic Update Mode.

Summary of Contents for PCI-AOB16/12

Page 1: ...www kontron com PCI AOB8 12 16 12 User s Guide Manual PN 00650 151 2A May 2002...

Page 2: ...y copyrights or patents and does not convey any license under the patent rights of Kontron nor the rights of others Kontron is a registered trademark of Kontron All trademarks registered trademarks an...

Page 3: ...Statements xxi Guarantee and Warranty Policy xxiii Guarantee xxiii Limited Warranty xxiii Return Procedure xxiv Limitation of Liability xxv Chapter 1 Introduction Features 1 3 Description 1 3 Specifi...

Page 4: ...ter Map 5 4 Table 5 2 I O Address Map for Digital I O Counter Timers 5 6 Programming the Digital I O Circuit 5 8 Table 5 3 I O Address Table for Digital 5 8 Table 5 4 Control Register Bit Assignments...

Page 5: ...CI AOB8 12 16 12 User s Guide Chapter 9 Connector Pin Assignments Introduction 9 3 Table 9 1 DAC Pin Assignments DB37M 9 3 Table 9 2 Pin Assignments 40 Pin Header 9 5 Table 9 3 Pin Assignments DF37F 9...

Page 6: ...vi PCI AOB8 12 16 12 User s Guide This page intentionally left blank...

Page 7: ...vii PCI AOB8 12 16 12 User s Guide Figures Figure 1 1 PCI AOB8 12 16 12 Block Diagram 1 10 Figure 3 1 PCI AOB8 12 16 12 Option Selection Map 3 5...

Page 8: ...viii PCI AOB8 12 16 12 User s Guide This page intentionally left blank...

Page 9: ...Safety Instructions Contents Before You Begin xi When Working Inside a Computer xii Preventing Electrostatic Discharge xiii...

Page 10: ...x PCI AOB8 12 16 12 User s Guide This page intentionally left blank...

Page 11: ...authorized electronics service personnel should access the interior of the computer The power supplies produce high voltages and energy hazards which can cause bodily harm J Use extreme caution when...

Page 12: ...avoid possible damage to system boards wait five seconds after turning off the computer before removing a component removing a system board or disconnecting a peripheral device from the computer J Wh...

Page 13: ...ady to install the component in a computer Just before unwrapping the antistatic packaging be sure you are at an ESD workstation or grounded This will discharge any static electricity that may have bu...

Page 14: ...xiv PCI AOB8 12 16 12 User s Guide This page intentionally left blank...

Page 15: ...Guide xvii Customer Comments xviii Advisory Conventions xix Unpacking xx Regulatory Compliance Statements xxi Guarantee and Warranty Policy xxiii Guarantee xxiii Limited Warranty xxiii Return Procedur...

Page 16: ...xvi PCI AOB8 12 16 12 User s Guide This page intentionally left blank...

Page 17: ...Chapter 4 Address Selection describes how I O address spaces are used by the board and how to determine the board s base address and IRQ level assigned by the BIOS or operating system J J J J Chapter...

Page 18: ...using the online form under Contact Us on our web site www kontron com under Technical Support Detail any errors you find We will correct the errors or problems as soon as possible and post the revis...

Page 19: ...y electrical component Disclaimer We have tried to identify all situations that may pose a warning or caution condition in this user s guide However Kontron does not claim to have covered all situatio...

Page 20: ...aterial for possible future shipment 2 Remove all items from the box If any items listed on the purchase order are missing notify Kontron customer service immediately 3 Inspect the product for damage...

Page 21: ...ontron offers accessories the customer must ensure that these products are installed with proper shielding to maintain CE compliance Kontron does not offer engineering services for designing cabling s...

Page 22: ...xxii PCI AOB8 12 16 12 User s Guide This page intentionally left blank...

Page 23: ...software cables etc within 30 days of receipt and in an as new and resalable condition The Return Procedure must be followed to assure a prompt refund Restocking Charges Product returned after 30 day...

Page 24: ...All product s returned to Kontron for service or credit must be accompanied by a Return Material Authorization RMA Number Freight on all returned items must be prepaid by the customer who is responsib...

Page 25: ...uct furnished hereunder Kontron s liability shall in no event exceed the purchase price of the product purchased hereunder The foregoing limitation of liability shall be equally applicable to any serv...

Page 26: ...r 1 Introduction Contents Features 1 3 Description 1 3 Specifications 1 5 Analog Outputs 1 5 AD7237 D A Converter Double Buffered Simultaneous Update 1 6 Digital I O 1 7 Counter Timer 1 7 Environmenta...

Page 27: ...ng PCI slot of PC AT class computers They contain either eight or sixteen double buffered digital to analog converters DACs that provide independent analog output channels of 12 bit resolution Each an...

Page 28: ...utputs on three 8 bit ports designated Ports A B and C Port C can be further divided into two 4 bit nibbles Each I O line is buffered by a type 74LS245 tristate buffer transceiver capable of sourcing...

Page 29: ...fications Analog Outputs Resolution 12 binary bits 0 to 4095 decimal Channels 16 or 8 voltage output or current sink channels Current Range 4 to 20mA with excitation voltage 8 36VDC Voltage ranges 5mA...

Page 30: ...te Relative Accuracy LSB Monotonicity 12 bits over operating temperature range Settling Time 8 usec to one LSB for full scale step input Linearity LSB integral non linearity over rated temperature ran...

Page 31: ...polar outputs Digital I O Output 0 to 24 Channels Logic High 2 5VDC min source 15mA Logic Low 0 5VDC max sink 24mA 64mA optional Input 0 to 24 Channels Logic High 2 0 to 5 0VDC Input Load 20 A Logic L...

Page 32: ...ve Count Edge Negative edge Timer Range 32 bits Event Counter Range 16 bits Minimum Clock Pulse Width 30 nsec high 50nsec low Environmental Operating Temperature Range 0 to 60 C Storage Temperature Ra...

Page 33: ...2 16 12 User s Guide Introduction 5V Source output 0 to 500mA fused resetting Size 12 2 long 310 mm Power Required 12VDC at 310mA max 16 channels 12VDC at 150mA max 5VDC at 662mA typical with all digi...

Page 34: ...LECT RANGE SELECT UPDATE DACS 12 BIT DAC 0 12 BIT DAC 15 DAC OUTPUT DAC OUTPUT OUTER DATA REGISTER INNER DATA REGISTER OUTER DATA REGISTER INNER DATA REGISTER PPI GROUP 0 GATE GATE GATE OUT OUT 5V 1MH...

Page 35: ...Chapter 2 Installation Contents Software Installation 2 3 CD Installation 2 3 Directories Created on the Hard Disk 2 4 System Installation 2 7...

Page 36: ...vely in the examples below CD Installation DOS WIN3 x 1 Place the CD into your CD ROM drive 2 Type d and press Enter to change the active drive to the CD ROM drive 3 Type install and press Enter to ru...

Page 37: ...o help you configure jumpers and calibrate the card DOS PSAMPLES A subdirectory of CARDNAME that contains Pascal samples DOS CSAMPLES A subdirectory of CARDNAME that contains C samples Win32 language...

Page 38: ...ier much easier but also one source file can be used for both Windows 95 98 2000 and WindowsNT One executable can run under both operating systems and still have full access to the hardware registers...

Page 39: ...N32IRQ This directory provides a generic interface for IRQ handling in Windows 95 98 2000 NT Source code is provided for the driver greatly simplifying the creation of custom drivers for specific need...

Page 40: ...can be installed in a five volt PCI slot of an IBM or compatible computer Before installing the card carefully read Chapter 3 Option Selection and configure the card according to your requirements Fi...

Page 41: ...am 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 should set the CMOS option to...

Page 42: ...Chapter 3 Option Selection Contents Introduction 3 3 Output Ranges 3 3 Analog Output Update 3 4...

Page 43: ...AC channel to make voltage range selection switches S1 Channel 0 through S16 Channel 15 A silk screen diagram on the card defines switch positions to use for each range In addition to the switch one j...

Page 44: ...taneous updating for all outputs preloading the low and high bytes of each DAC and then initiating a simultaneous update by software command J Timer Update The counter timer can initiate updates First...

Page 45: ...Analog Output Update 3 5 PCI AOB8 12 16 12 User s Guide Option Selection Figure 3 1 PCI AOB8 12 16 12 Option Selection Map...

Page 46: ...Chapter 4 Address Selection...

Page 47: ...ll of the Kontron cards detected on the PCI bus the addresses assigned to each function on each of the cards and the respective IRQs Alternatively some operating systems Windows 9x and NT 2000 can be...

Page 48: ...troduction 5 3 Table 5 1 Register Map 5 4 Table 5 2 I O Address Map for Digital I O Counter Timers 5 6 Programming the Digital I O Circuit 5 8 Table 5 3 I O Address Table for Digital 5 8 Table 5 4 Con...

Page 49: ...fe value and the card is set in Simultaneous Update mode Since the pre load register is not cleared upon power up but left at an undefined value a known value must be written to the preload registers...

Page 50: ...put Voltage Limits the output of all DAC channels This is done by reading Base Address E The previous outputs will be restored when a Clear Restrict Output Voltage command is issued by a read of Base...

Page 51: ...Base D DAC 6 High Byte Base E DAC 7 Low Byte Restrict output voltage limits outputs to 15 of full scale range Base F DAC 7 High Byte Clear restrict output voltage allows full operating output voltage...

Page 52: ...A Input Base 21 Digital I O Port B Output Digital I O Port B Input Base 22 Digital I O Port C Output Digital I O Port C Input Base 23 Digital I O Control Byte Base 24 Counter Timer 0 Counter Timer 0...

Page 53: ...s data are in true binary form XXXX 0000 0000 0000 Zero XXXX 1000 0000 0000 1 2 Scale XXXX 1111 1111 1111 Full Scale MSB or B11 B0 or LSB For Bipolar ranges For Bipolar ranges data are in offset binar...

Page 54: ...tailed description of the PPI Table 5 3 I O Address Table for Digital The circuit is designed to use the PPI in mode 0 wherein J There are two 8 bit ports A and B and two 4 bit ports C Hi and C Lo J A...

Page 55: ...ple hex 80 is sent to Base Address 23 the group 0 PPI will be configured in mode 0 with ports A B and C as outputs Bit Assignment Function D0 Port C Lo C0 C3 1 Input 0 Output D1 Port B 1 Input 0 Outpu...

Page 56: ...are to be set as outputs you may set the values of the respective port with the outputs still in tristate condition Lastly to enable the ports a control byte of hex 00 must be sent to Base Address 23...

Page 57: ...Chapter 6 8245 Counter Timer Contents Introduction 6 3 Operational Modes 6 3 Programming the 8254 6 5 Reading and Loading the Counters 6 7 8254 Driver 6 9...

Page 58: ...ivalent manufacturers data sheets The following conventions apply for use in describing operation of the 8254 Clock A positive pulse into the counter s clock input Trigger A rising edge input to the c...

Page 59: ...nts and low for N 1 2 counts Periodic triggering or frequency synthesis are two possible applications for this mode Note that in this mode to achieve the square wave the counter decrements by two for...

Page 60: ...ers are programmed by writing a control byte into a counter control register at Base Address 27 The control byte specifies the counter to be programmed the counter mode the type of read write operatio...

Page 61: ...set the operational mode of the selected counter BCD Set the selected counter to count in binary BCD 0 or BCD BCD 1 RW1 RW0 Counter Read Write Function 0 0 Counter Latch Command 0 1 Read Write LS Byte...

Page 62: ...ommand to be discussed later A subsequent read operation on the selected counter returns the held value Latching is the best way to read a counter on the fly without disturbing the counting process Yo...

Page 63: ...cted Until the count is loaded into the counter it cannot be read RW1 RW0 Read Write command M2 M1 M0 Counter mode BCD BCD 0 is binary mode otherwise counter is in BCD mode If both STA and CNT bits in...

Page 64: ...ess of the card as well as an additional parameter The additional parameter identifies which features should be implemented on this call to the function Each feature can be identified by its unique in...

Page 65: ...e read on the CLOCK OUT pin of the card void generatefrequency unsigned BaseAddress unsigned long frequency Pulse Width The Pulse Width function will measure the width of an applied event from its ris...

Page 66: ...Chapter 7 Software...

Page 67: ...log value with 12 bit resolution a corresponding decimal number N between 0 and 4095 is calculated 212 4096 N 4096 V out V full scale Next the data is written to the selected analog output channel See...

Page 68: ...Chapter 8 Calibration...

Page 69: ...noisy locations or with a noisy calibration setup The calibration program stores various data to the card to facilitate calibrating the data output in a run time environment The data collected during...

Page 70: ...ble of data to be reconfigured If this data is incorrect calibration is not guaranteed Word Address Range Offset b in formula Span a in formula Base 00h to Base 1Eh 0 to 5 V DAC 0 to DAC 15 DAC 0 to D...

Page 71: ...g the calibration program provided is generally the easiest method of ensuring the table remains accurate Word Address Channel Value Range Base F0h Channel 0 0 0 5 V Base F1h Channel 1 Base F2h Channe...

Page 72: ...Chapter 9 Connector Pin Assignments Contents Introduction 9 3 Table 9 1 DAC Pin Assignments DB37M 9 3 Table 9 2 Pin Assignments 40 Pin Header 9 5 Table 9 3 Pin Assignments DF37F 9 6...

Page 73: ...DAC 4 Output 6 D A 5 Out Analog DAC 5 Output 7 D A 6 Out Analog DAC 6 Output 8 D A 7 Out Analog DAC 7 Output 9 D A 8 Out Analog DAC 8 Output 10 D A 9 Out Analog DAC 9 Output 11 D A 10 Out Analog DAC...

Page 74: ...log Ground 27 Return GND Return Analog Ground 28 Return GND Return Analog Ground 29 Return GND Return Analog Ground 30 Return GND Return Analog Ground 31 Return GND Return Analog Ground 32 Return GND...

Page 75: ...ort A Bit 3 24 Digital I O Port C Bit 3 5 Digital I O Port A Bit 4 25 Return Ground 6 Digital I O Port A Bit 5 26 Return Ground 7 Digital I O Port A Bit 6 27 Digital I O Port C Bit 4 8 Digital I O Por...

Page 76: ...gital I O Port A Bit 5 32 Return Ground 4 Digital I O Port A Bit 6 14 Digital I O Port C Bit 4 23 Digital I O Port A Bit 7 33 Digital I O Port C Bit 5 5 Return Ground 15 Digital I O Port C Bit 6 24 Re...

Page 77: ...n Note The figure below shows how pins are numbered on D type connectors 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ___________________________________________ ___________________________________...

Page 78: ...t The technical documentation required to demonstrate this product meets the requirements of the EMC Directive and the Low Voltage Directive has been compiled by Kontron and is available for inspectio...

Reviews: