CO1 Counter Add-On
ADwin
24
ADwin-Gold
USB / ENET, manual version 3.8, October 2005
You can calculate:
1. the
period duration
of the input signal at CLR/LATCH from the values
in latch A or latch B.
2. the
pulse width
and
pause time
from the values in latch A and latch B
The counters are controlled by
ADbasic
instructions via a control register
(instructions, see table in chapter 8.2).
At the inputs A/CLK, B/DIR and CLR/LATCH TTL-alike signals are necessary.
More details and limit values can be found in the "Technical Data".
Fig. 17 – Pin assignment of the CO1 add-on
In any case you have to set the input operation mode with the instruction
CNT_SE_DIFF
. This is done in pairs, i.e. the counters 1 and 2 together and the
counters 3 and 4 together (see also
ADbasic
manual).
With Rev. B2 differential operation mode can be set only, TTL operation mode
(single ended) is available from Rev. B3.
Although all inputs for the
CO1
add-on have a pull-down resistor, not-con-
nected inputs can cause errors in an environment which is not protected
against interferences. If you do not use a counter input, connect for safety rea-
sons both lines of the (differential) input to a specified potential: Connect the
positive input to +5V and the negative input to GND.
Counter inputs with TTL operation mode for Gold / Gold-D
(single-ended; mode not available with Rev. B2)
with Gold only
with Gold-D only
Counter inputs with differential operation mode
CONN. 1
(male)
13
12
11
10
9
8
7
6
5
4
3
2
1
25
24
23
22
21
20
19
18
17
16
15
14
DI
O
-0
DI
O
-2
DI
O
-4
DI
O
-6
DI
O
-8
DI
O
-1
0
DI
O
-1
2
DI
O
-1
4
**
C
NT
R
#1 A
/
CLK
**CN
T
R #
1 CL
R / L
A
T
C
H
**
C
NT
R
#2 B
/
DIR
EV
ENT
GN
D
DIO-1
DIO-3
DIO-5
DIO-7
DIO-9
DI
O-
11
DI
O-
13
DI
O-
15
**C
NT
R
#
1
B
/ DI
R
**C
NT
R
#
2
A
/ CL
K
**
CN
T
R
#
2 CL
R
/
L
A
T
C
H
GND
DIO 00-15
CONN. 2
(female)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
GN
D
+5
V
(
outpu
t,
m
ax. 0.1A
)
**
C
NT
R
#4 B
/
DIR
**CN
T
R #
3 CL
R / L
A
T
C
H
**
C
NT
R
#3 A
/
CLK
DI
O
-3
0
DI
O
-2
8
DI
O
-2
6
DI
O
-2
4
DI
O
-2
2
DI
O
-2
0
DI
O
-1
8
DI
O
-1
6
GND
**
CN
T
R
#
4 CL
R
/
L
A
T
C
H
**C
NT
R
#
4
A
/ CL
K
**C
NT
R
#
3
B
/ DI
R
DI
O-
31
DI
O-
29
DI
O-
27
DI
O-
25
DI
O-
23
DI
O-
21
DI
O-
19
DI
O-
17
DIO 16-31
CONN. 3
(Stecker)
13
12
11
10
9
8
7
6
5
4
3
2
1
25
24
23
22
21
20
19
18
17
16
15
14
/C
LR,
/LA
T
CH
CL
R,
L
A
T
C
H
/B
, /
D
IR
B, DI
R
/A
, /
C
LK
A, CL
K
/C
LR,
/LA
T
CH
CL
R,
L
A
T
C
H
/B
, /
D
IR
B, DI
R
/A
, /
C
LK
A, CL
K
GND
/C
LR,
/LA
T
C
H
CLR,
LA
T
C
H
/B
, /D
IR
B, DI
R
/A
, /C
L
K
A, CL
K
/C
LR,
/LA
T
C
H
CLR,
LA
T
C
H
/B
, /D
IR
B, DI
R
/A
, /C
L
K
A, CL
K
CN
T
R
#1
**
CN
T
R
#4
**
CN
T
R
#2
**
CN
T
R
#3
**
8
7
6
5
4
3
2
1
15
14
13
12
11
10
9
*SSI, CLK (-)
*SSI, CLK (+)
RESERVED
CLR/LATCH (-)
V2
OUT
(-)
CLR/LATCH (+)
V2
OUT
(+)
*SSI, DATA (-)
B/DIR (-)
B/DIR (+)
*SSI, DATA (+)
A/CLK/PWM (-)
A/CLK/PWM (+)
V1
OUT
(-)
V1
OUT
(+)
CO1, ... , CO4
(male)