Analog Inputs and Outputs
Wait_EOC
ADwin
74
ADwin-Gold II
, Manual February 2013
Wait_EOC
Wait_EOC
waits for the end of the conversion cycle of a specified A/D-conver-
ter.
Syntax
#INCLUDE
ADwinGoldII.inc / GoldIITiCo.inc
Wait_EOC
(
pattern
)
Parameters
Notes
- / -
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
val
As
Long
Event:
Set_Mux2
(
001b
)
'Set MUX 2 to channel 4
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
(
10b
)
'Start A/D-conversion ADC2
Wait_EOC
(
10b
)
'Wait for end of conversion at
''ADC2
val
=
Read_ADC
(
2
)
'Read out value
Multiplexer settling time and conversion time are given on
The conversion time of the ADC is 2µs.
T11 TiCo
pattern
Bit pattern that specifies which converters are to
be waited for (only bits 0…4 can be used).
LONG
Bit no.
1
0
ADC1
–
x
ADC2
x
–