Jäger ADwin-Gold-USB Manual page 21

Hide thumbs Also See for ADwin-Gold-USB:
Table of Contents

Advertisement

ADwin
5.3.2 Digital Inputs and Outputs
After power-up of the device all 4 connection groups are configured as inputs;
this corresponds to the instruction CONF_DIO(0). The following table shows
how the inputs and outputs (IN, OUT) are configured when you use the value
of the first column as instruction argument.
DIO31:24
CONF_DIO()
0
IN
1
IN
2
IN
3
IN
4
IN
5
IN
6
IN
7
IN
8
OUT
9
OUT
19
OUT
11
OUT
12
OUT
13
OUT
14
OUT
15
OUT
Applicable
DIGOUT_WORD, CLEAR_DIGOUT,
instructions:
Instruction is
applicable for
Configuration "OUT"
DIOnn, at
Fig. 13 – Overview of the configuration with CONF_DIO
Please pay attention to the following restriction:
Only if the inputs/outputs are configured with CONF_DIO(12) (see pin assign-
menton page 14) will you be able to fully access the inputs/outputs with the
instructions
DIGOUT_WORD, SET_DIGOUT, CLEAR_DIGOUT, DIGIN_WORD, DIGIN.
For any other configuration you have to read out or write into the corresponding
hardware register (see instructions PEEK and POKE in the ADbasic manual).
Address
Function
[HEX]
Configure DIO07:00
Configure DIO15:08
204001E0
Configure DIO23:16
Configure DIO31:24
204000B0 Input registers DIO15:00
204001B0 Input registers DIO31:16
204001C0 Output registers DIO15:00
204000C0 Output registers DIO31:16
Fig. 14 – Hardware addresses of the control and data registers for the digital inputs / outputs
ADwin-Gold USB / ENET, manual version 3.8, October 2005
DIO23:16
IN
IN
IN
IN
OUT
OUT
OUT
OUT
IN
IN
IN
IN
OUT
OUT
OUT
OUT
SET_DIGOUT
At configuration "OUT" the register
31:16 15:10 9 8 7 6 5 4 3 2 1 0
0
0
0
0
-
-
-
-
DIO15:08
DIO07:00
IN
IN
IN
OUT
OUT
IN
OUT
OUT
IN
IN
IN
OUT
OUT
IN
OUT
OUT
IN
IN
IN
OUT
OUT
IN
OUT
OUT
IN
IN
IN
OUT
OUT
IN
OUT
OUT
DIGIN_WORD, DIGIN
Configuration "IN"
contents of this byte is returned
Bit
0
0 0 0 0 0 0
0
0 0 0 0 0 0
0
0 0 0 0 0 0
0
0 0 0 0 0 0 c
x
x x x x x x x x x x
x
x x x x x x x x x x
x
x x x x x x x x x x
x
x x x x x x x x x x
Inputs and Outputs
Commentary
-
-
-
c
-
-
c
-
c = 0 : inputs
c = 1 : outputs
-
c
-
-
-
-
-
x : digital value read in
x : digital value to be output
17

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adwin-gold-enet

Table of Contents