7 i/o address map & register functions, 1control registers – Measurement Computing PCM-DAS16D/12 User Manual
Page 26

7 I/O ADDRESS MAP & REGISTER FUNCTIONS
A base address register controls the beginning, or 'Base Address' of the I/O
addresses occupied by the control registers of the PCM-DAS16x/12. In all,
16 addresses are occupied. The base address is assigned by PCMCIA Card
and Socket Services (CSS), read by InstaCal and stored in the CB.CFG file
installed in your computer. Please read about installing and using InstaCal.
7.1CONTROL REGISTERS
Once CSS is installed and a base address has been established, the PCM-
DAS16x/12 may be controlled by writing to and reading from the control reg-
isters. While it is possible to write your own control routines for the
PCM-DAS16x/12, routines have been written and are available in Computer-
Boards' Universal Library for DOS and Windows programming languages.
NOTE ON REGISTER PROGRAMMING SUPPORT
While the complete register map is summarized here, only very limited sup-
port for assembly language or direct register programming is available. Reg-
ister level programming should only be attempted by experienced
programmers. We support the use of the PCM-DAS16x/12 through high
level languages using Universal Library and the example programs provided.
Major functions of the control registers
:
I/O ADDRESS
PCM-DAS16x/12 FUNCTION R | W
BASE + 0
A/D Data & Channel | Start A/D
BASE + 2
Digital In|Out & Channel Scan Limits
BASE + 4
Interrupt Control & Status
BASE + 6
Input Range and Trigger Method
BASE + 8
Counter 0 Read | Load
BASE + A
Counter 1 Read | Load
22