
ADwin-Gold II
, Manual February 2013
73
Analog Inputs and Outputs
Start_Conv
ADwin
Start_Conv
Start_Conv
can start the conversion of one or more A/D converters.
Syntax
#INCLUDE
ADwinGoldII.inc / GoldIITiCo.inc
Start_Conv
(
pattern
)
Parameters
Notes
It is preferable to use a binary code (suffix "b") for the bit pattern. This
will make it easier to display the bit pattern than if you use a decimal or
hexadecimal representation although it is still possible to use these.
See also
,
,
,
,
Valid for
Gold II
Example
Rem Please select the appropriate include for ADbasic /
TiCoBasic
#Include
ADwinGoldII.inc
'for ADbasic
Rem #Include GoldIITiCo.inc 'for TiCoBasic
Dim
val1
As
Long
Event:
Set_Mux1
(
0
)
'Set multiplexer 1 to channel 1
Rem interrupt IO access for MUX settling time
IO_Sleep
(
200
)
Rem use waiting time, except for access to IOs or external
memory
Rem …
Start_Conv
(
1
)
'Start ADC1 A/D-conversion
Wait_EOC
(
1
)
'Wait for end of conversion
val1
=
Read_ADC
(
1
)
'Read out value
Multiplexer settling time and conversion time are given on
T11 TiCo
pattern
Bit pattern that specifies which converters should
be started (only bits 0…2 can be used):
1: start conversion.
0: do not start conversion.
LONG
Bit no.
1
0
ADC1
–
x
ADC2
x
–