Quadrature Decoder (Q-Decoder)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
465
IDX_EN
RSVD
IDX_AU
TO_EN
IDX_INV
POS_RST_EN
RSVD
POS_RS
T_PHA
POS_RS
T_PHB
R/W
R/W
R/W
R/W
R/W
R/W
Bit
Name
Access
Default
Description
31
IDX_EN
R/W
0
Enable the index pulse detection
0: Disable. The index pulse signal detection is disabled, all index pulse signal related
configurations should be ignored.
1: Enable.
30:7
RSVD
N/A
--
Reserved
6
IDX_AUTO_EN
R/W
0
Auto-index mechanism
0: Disable.
1: Enable. When enable this function, ignore the setting pos_rst_mode,
pos_rst_pha, and pos_rst_phb.
5
IDX_INV
R/W
0
Inverse the index pulse input signal
0: No inverse
1: Inverse the index pulse signal input
4:3
POS_RST_EN
R/W
0
Enable the accumulation position counter to be reset by the Index pulse signal with a
given phase_A and/or phase_B state.
00: Disabled, no position counter reset on the index pulse signal
01: Reset the position counter on the 1st index pulse signal only
10: Reset the position counter on every index pulse signal
11: Reserved
2
RSVD
N/A
--
Reserved
1
POS_RST_PHA
R/W
0
To assign the state of the phase_A signal for the accumulation position counter reseting.
When cnt_sc is 1, the reset is only according to pos_rst_pha.
0
POS_RST_PHB
R/W
0
To assign the state of the phase_B signal for the accumulation position counter reseting.
When cnt_sc is 1, this setting is invalid.
The accumulation position counter will be reset when the index pulse, phase_A and
phase_B state matching occured.
Reset when phase_A signal is 0 & phase_B signal is 0.
Reset when phase_A signal is 0 & phase_B signal is 1.
Reset when phase_A signal is 1 & phase_B signal is 1.
Reset when phase_A signal is 1 & phase_B signal is 0.
21.3.3
Velocity Measurement Registers
21.3.3.1
REG_VCTRL
Name
: Q-Decoder Velocity Control Register
Size
: 32 bits
Address offset
: 0x0018
Read/write access
: read/write
31
30
29
28
27
26
25
24
RSVD
23
22
21
20
19
18
17
16
VT_DIV
R/W
15
14
13
12
11
10
9
8
RSVD
VMUC_MODE
RSVD
R/W
7
6
5
4
3
2
1
0
VUPLMT_INT_EN
VLOWLMT_INT_EN
RSVD
VCCAP_INT_EN
RSVD
VMUC_RST
RSVD
VMUC_EN
R/W
R/W
R/W
R/W
R/W
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03