background image

Manual PCIe-DA16-6 

12 

Chapter 5: Programming

 

  

The cards’ DACs and Digital I/O use 18 I/O addresses. Programming these cards is very 

straightforward as there are only two operating modes and four range-selection switches 

per channel. The basic operation of a Digital-to-Analog card is to write a 16-bit value to a 

Digital to Analog Converter (DAC) where it is buffered and loaded by an update 

command to a DAC active 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. For example: 

 

double spanVolts = 10.0;  // for ±5V; use "20.0" for ±10 

double offsetVolts = spanVolts / 2; //use "0.0" for all unipolar ranges.  

double targetVolts = 1.3; // change to any desired output voltage 

counts = (targe offsetVolts) / spanVolts * 65536.0; 

RelOutport(DeviceIndex, DAC * 2, counts); 

 

Upon power-up, or hardware reset, the DAC registers are restricted to a safe value and 

the card is set in 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. In other words, the outputs of all D/As may be 

updated simultaneously by first enabling simultaneous updating for all outputs, 

preloading the low and high bytes of each DAC, and then initiating a simultaneous 

update by software command or external update falling edge. 

  

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.  

(Each channel is updated individually when new data are written to the related high-byte 

base 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. 

 

Restrict-Output-Voltage

 limits the output of all DAC channels to 0V and is active at 

power-up. Since the pre-load register defaults to its min-scale value, known values can 

be written to the preload registers before using a "Clear Restrict-Output-Voltage" 

command. Those written values will then be output to the connector when a "Clear 

Restrict-Output-Voltage" command is issued by a read of Base AF. 

 

External Trigger Update Mode 

allows a negative level at pin 25 of the I/O connector to 

cause the DACs to be updated. A read of Base A5 will enable this mode, a read 

of Base A6 will disable it. Note that this pin is shared with the External Interrupt 

signal. 

Содержание PCIe-DA16-6

Страница 1: ...10623 Roselle Street San Diego CA 92121 858 550 9559 FAX 858 550 7322 contactus accesio com www accesio com MODEL PCIe DA16 6 Analog Output Multifunction Board USER MANUAL FILE PCIe DA16 6 A3a...

Страница 2: ...nd does not convey any license under the patent rights of ACCES nor the rights of others Copyright by ACCES I O Products Inc 10623 Roselle Street San Diego CA 92121 All rights reserved WARNING ALWAYS...

Страница 3: ...parts not excluded by warranty Warranty commences with equipment shipment Following Years Throughout your equipment s lifetime ACCES stands ready to provide on site or in plant service at reasonable...

Страница 4: ...ange Switches and Codes 10 Figure 3 1 Option Selection Map 10 Chapter 4 Address Selection 11 Chapter 5 Programming 12 Table 5 1 Register Map 13 Table 5 2 DAC Data Format 13 Programming the Digital I O...

Страница 5: ...CI Express slot They contain either six four or two double buffered digital to analog converters DACs that provide independent analog output channels of 12 or 16 bit resolution Each analog output chan...

Страница 6: ...VCCIO or 24mA w 3 3V VCCIO Pull ups on the card assure that there are no erroneous outputs at power up The lines initialize in the input mode Figure 1 1 Block Diagram Ordering Guide PCIe DA16 6 Six 1...

Страница 7: ...ponents are included with your shipment Please take time now to ensure that no items are damaged or missing PCIe DA1x x Board Optional Accessories ADAP37F MINI Direct Plug Spring Cage Terminal Adaptor...

Страница 8: ...Software Package from the Manuals Software tab 3 Run the Install program and follow the on screen prompts to install the software for this board Linux 1 Please visit https github com accesio for infor...

Страница 9: ...ewed into place and that there is a positive chassis ground 7 Install an I O cable or an ADAP37F MINI onto the card s bracket mounted male connector 8 Replace the computer cover and turn ON the comput...

Страница 10: ...with each individual position slide notated with 1 2 3 or 4 Each four position slide switch is associated with each DAC channel to make voltage range selection switches S1 Channel 0 through S6 Channel...

Страница 11: ...on each of the cards and the respective IRQs Alternatively some operating systems can be queried to determine which resources were assigned In these operating systems you can use either AIOWDMFind or...

Страница 12: ...ll load all DAC registers with the value waiting in the pre load registers causing all outputs to be updated and changed simultaneously In other words the outputs of all D As may be updated simultaneo...

Страница 13: ...ard in Simultaneous Mode Base 9 DAC 4 High Byte Base A DAC 5 Low Byte Update all outputs and release card from Simultaneous Mode Base B DAC 5 High Byte Base E Restrict Output Voltage Disables voltage...

Страница 14: ...all I O lines are set as inputs Each GROUP should be configured during initialization by writing to the control registers even if the ports are going to be used as inputs The DIO Direction control re...

Страница 15: ...use 20 0 for 10 double offsetVolts spanVolts 2 use 0 0 for unipolar double targetVolts 1 3 change to any desired output voltage counts targetVolts offsetVolts spanVolts 65536 0 Next the data are writt...

Страница 16: ...se iCard 3 pCalBase function The EEPROM contains two values per channel per range The LowAdjust and HighAdjust calibration constants are stored for each channel at each range code 0 6 These constants...

Страница 17: ...me Byte Address Channel Value Range Base F0h Channel 0 0 0 5V Base F1h Channel 1 1 0 2 5V Base F2h Channel 2 2 0 10V Base F3h Channel 3 3 5 5V Base F4h Channel 4 4 2 5 2 5V Base F5h Channel 5 5 10 10V...

Страница 18: ...gital I O Port B Bit 3 26 VCCIO fused 8 Digital I O Port B Bit 2 27 12V fused 9 Digital I O Port B Bit 1 28 No connection 10 Digital I O Port B Bit 0 29 No connection 11 Ground 30 Digital I O Port A B...

Страница 19: ...Manual PCIe DA16 6 19 Figure 8 1 Field Wiring Diagrams Caution Do not connect current loops in a DAC that is set to voltage mode The loop supply can destroy the DAC...

Страница 20: ...tive Accuracy 1 LSB max LSB typical Diff Linearity LSB integral non linearity Monotonicity 16 bits over operating temp Settle time 5 sec to and to scale to 2 LSB Digital I O Lines 16 Ports A and B Log...

Страница 21: ...Manual PCIe DA16 6 21 Environmental Operating Temp 0 to 70 C Storage Temp 55 to 150 C Humidity 5 to 95 w o condensation Length 6 6 168 mm long...

Страница 22: ...anual or just want to give us some feedback please email us at manuals accesio com Please detail any errors you find and include your mailing address so that we can send you any manual updates 10623 R...

Отзывы: