Digital Inputs and Outputs
Conf_DIO
ADwin
88
ADwin-Gold II
, Manual February 2013
Conf_DIO
Conf_DIO
configures the 32 digital channels in groups of 8 as inputs or out-
puts.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Conf_DIO
(
pattern
)
Parameterss
Notes
The digital channels system are initially configured as inputs after pow-
er-up (and cannot be used as outputs). They can only be configured in
groups of 8 as inputs or outputs.
We recommend the use of the configuration
Conf_DIO
(
1100b
)
, which
specifies DIO00…DIO15 as inputs and DIO16…DIO31 as outputs (see
also
).
It is recommended that you use the binary representation (suffix "
b
"). It
shows the allocation of bits to channel groups more clearly than decimal
or hexadecimal representations which can still be used if desired.
See also
,
,
,
,
,
Valid for
Gold II
Example
Rem Please select the appropriate include for ADbasic / TiCoBasic
#Include
ADwinGoldII.inc / GoldIITiCo.inc
Init:
'Configure DIO00…DIO15 as inputs
'and DIO16…DIO31 as outputs
Conf_DIO
(
1100b
)
T11 TiCo
pattern
Bit pattern that configures the digital channels as
inputs or outputs:
Bit=0: Channels as inputs.
Bit=1: Channels as outputs.
LONG
B i t n o . i n
pattern
15…4
3
2
1
0
Channels
–
DIO31
…
DIO24
DIO23
…
DIO16
DIO15
…
DIO08
DIO07
…
DIO00