6
REGISTER ARCHITECTURE
6.1
INTRODUCTION
There are three ways to generate software for CIO-DAS1400 series boards. These are:
Writing custom software using our Universal Library package.
Using a fully integrated software package (e.g. SoftWire).
Doing direct register-level programming.
CUSTOM SOFTWARE UTILIZING THE UNIVERSAL LIBRARY
Most customers write custom software using Measurement Computing’s Universal Library. The Universal Library takes care of all the
board I/O commands and lets you concentrate on the application part of the software. For additional information regarding using the
Universal Library, please refer to the documentation supplied with the Universal Library
FULLY INTEGRATED SOFTWARE PACKAGES (e.g. SoftWire)
Many customers also take advantage of the power and simplicity offered by one of the high-level data acquisition packages. Please
refer to the package’s documentation for setup and usage details.
DIRECT REGISTER-LEVEL PROGRAMMING
Though uncommon, some applications may not allow the use of our Universal Library and a high-level package may not be available.
For this case, a detailed register mapping for experienced programmers follows.
6.2
CONTROL & DATA REGISTERS
The CIO-DAS1400 is controlled and monitored by reading and writing 24 I/O addresses. The first address is referred to as the BASE
ADDRESS (BADR) and is set by a bank of switches on the board. All other addresses are located at the BASE ADDRESS plus a
specified offset. In particular, the main analog I/O functions are controlled by the I/O addressees from BADR to BADR +F hex and
BADR +404 hex through BADR +407 hex. Although registers are easy to read and write to, unless there is a specific reason to write
your program at the register lever, we highly recommend you use our Universal Library.
The method of programming required to set/read bits from bytes is beyond the scope of this manual. The remainder of this chapter is
included for those experienced programmers who wish to write their own registe level programs.
-12-
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com