ADwin-Gold II
, Manual February 2013
123
Counters
Cnt_Read_Int_Register
ADwin
Cnt_Read_Int_
Register
Cnt_Read_Int_Register
returns the content of a counter register.
Syntax
#Include
ADwinGoldII.inc / GoldIITiCo.inc
ret_val
=
Cnt_Read_Int_Register
(
counter_no
,
reg_no
)
Parameters
Notes
- / -
See also
Valid for
Gold II-CNT
Example
see
T11 TiCo
c o u n t e r _
no
Counter number: 1…4.
LONG
reg_no
Key number (0…15) for a counter register, see
below.
LONG
ret_val
Content of the counter register.
LONG
reg_no
Register
0
Latch 1 for positive edges.
1
Latch 2 for positive edges.
2
Latch 3 for positive edges.
3
Latch 1 for negative edges.
4
Latch 2 for negative edges.
5
Latch 3 for negative edges.
6
Software latch for VR counter.
7
Software latch for PWM counter.
8
Shadow register for Latch 1, positive edges.
9
Shadow register for Latch 2, positive edges.
10
Shadow register for Latch 3, positive edges.
11
Shadow register for Latch 1, negative
edges.
12
Shadow register for Latch 2, negative
edges.
13
Shadow register for Latch 3, negative
edges.
14
Shadow register for software latch, VR
counter.
15
Counter status.