Quadrature Decoder (Q-Decoder)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
467
This velocity counter increases or decreases (depending on the direction) by one for every 1
or 2 (depending on CNT_SC) phase state changes.
For example,
Case: VMUC_MODE = 0
decode value: +1, +1, +1. vcnt = 3
decode value: +1, |-1|, +1. vcnt = 3
decode value: +1, |-1|, +1, |-1|, |-1|, |-1|. vcnt = 6
Case: VMUC_MODE = 1
decode value: +1, +1, +1. vcnt = 3
decode value: +1, -1, +1. vcnt = 2
decode value: +1, -1, +1, -1, -1, -1. vcnt = 2
21.3.3.3
REG_VCCAP
Name
: Q-Decoder Velocity Counter Capture Register
Size
: 32 bits
Address offset
: 0x0020
Read/write access
: read
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
RSVD
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
VC_CAP
R
Bit
Name
Access
Default
Description
31:16
RSVD
N/A
--
Reserved
15:0
VC_CAP
R
0
When the velocity timer reaches zero, the velocity counter register is captured in the
velocity counter capture register.
21.3.3.4
REG_PCCAP
Name
: Q-Decoder Position Counter Capture Register
Size
: 32 bits
Address offset
: 0x0024
Read/write access
: read
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
RSVD
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PC_CAP
R
Bit
Name
Access
Default
Description
31:16
RSVD
N/A
--
Reserved
15:0
PC_CAP
R
0
When the velocity timer reaches zero, the position counter register is captured in the
position counter capture register.
21.3.3.5
REG_VTRLD
Name
: Q-Decoder Velocity Time Reload Register
Size
: 32 bits
Address offset
: 0x0028
Read/write access
: read/write
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03