3 digital i/o register, 4 demonstration programs – ADLINK ACL-6126 User Manual

Page 26

Advertising
background image

20 Registers Format

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 are included in the Utility Software. The description of
each file for demonstration is listed as following table :

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 programs above, you can refer to these
demonstrate programs and library to speed up your own application
development.

Advertising