Inputs and Outputs
ADwin
18
ADwin-light-16
, manual version 2.2, December 2004
Address
Function
Bit n
o
Comment
[HEX]
31:16
15:6
5 4 3 2 1 0
20 40 02 04 contents of latch A, counter #1
x
x
x x x x x x x : latched counter value
20 40 02 14 contents of latch A, counter #2
x
x
x x x x x x x : latched counter value
20 40 03 00 enable/disable counter (=
CNT_ENABLE()
)
-
-
-
-
-
-
0 0 counter disabled
-
-
-
-
-
-
1 1 counter enabled
20 40 03 10 clear counter(=
CNT_CLEAR()
)
-
-
-
-
-
-
0 0 no effect
-
-
-
-
-
-
1 1 clear counter *
20 40 03 20 latch counter (=
CNT_LATCH()
)
-
-
-
-
-
-
0 0 no effect
-
-
-
-
-
-
1 1 latch counter value into latch A *
* The bits are reset after the function has been executed. All other functions are reset by the opposing function.
Fig. 16 – Counter hardware addresses of the control and data registers