Jäger ADwin-Gold-USB Manual page 35

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

Advertisement

ADwin
8.4.3 Hardware addresses (CO1-add-on)
A process can be executed very quickly if you access directly the control and
data register (see chapter 5.3 and ADbasic manual). The hardware addresses
of the CO1 add-on can be found in the following table (see command index
table in chapter 8.2).
Address
Function
[HEX]
20400204 Read out Latch A: Counter 1
20400208 Read out Latch B: Counter 1
20400214 Read out Latch A: Counter 2
20400218 Read out Latch B: Counter 2
20400224 Read out Latch A: Counter 3
20400238 Read out Latch B: Counter 3
20400234 Read out Latch A: Counter 4
20400238 Read out Latch B: Counter 4
20400300 Enable counter
Set counter inputs to TTL or
20400304
differential mode
(in pairs only)
20400310 Clear counter
20400320 Latch counter
20400330 Input: CLR or LATCH
Impulse/event counter or
20400340
impulse/pause duration mea-
surement
4 edge evaluation/CLK+DIR
20400350
or 20/5MHz reference clock
20400370 Counter: Error register
a. You have to reset this register manually!
Fig. 25 – Hardware addresses of the CO1 counter add-on
ADwin-Gold USB / ENET, manual version 3.8, October 2005
Bit
Commentary
31:04 3 2 1 0
x
x x x x
x
x x x x
x
x x x x
x
x x x x
x : Contents of the latch
x
x x x x
x
x x x x
x
x x x x
x
x x x x
x = 0 : Disable counter
-
x x x x
x = 1 : Enable counter
x: counter inputs 1+2
y: counter inputs 3+4
-
-
-
y x
x,y = 0: TTL (single-ended)
x,y = 1: differential
x = 0 : No influence
-
x x x x
x = 1 : Clear counter
x = 0 : No influence
-
x x x x
x = 1 : Latch counter
x = 0 : CLR input
-
x x x x
x = 1 : LATCH input
x = 0 : External clock input
-
x x x x
x = 1 : Int. ref. clock(20/5MHz)
CNT_MODE = 0:
x = 0 : 4-Fl.; x = 1 : CLK+DIR
-
x x x x
CNT_MODE = 1:
x = 0 : 20MHz; x = 1 : 5MHz
a
several bits
Error bits, see CNT_GETSTATUS
CO1 Counter Add-On
31

Advertisement

Table of Contents
loading

This manual is also suitable for:

Adwin-gold-enet

Table of Contents