Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
460
PHA
PHB
V-Counter
V-Timer
is Zero
T
T
T
Fig 21-14 Velocity measurement unit timing flow
21.3
Registers
Table 21-1 lists the details of Q-Decoder registers.
Table 21-1 Q-Decoder registers
Name
Address Offset
Access
Description
Global Control Registers
0x0000
R/W
Clock Configuration Register
0x0004
R/W
Q-Decoder Control Register
Position Measurement Registers
0x0008
R/W
Q-Decoder Max Position Counter Register
0x000C
R/W
Q-Decoder Rotation Compare Register
0x0010
RO
Q-Decoder Position Counter Register
0x0014
R/W
Q-Decoder Index Signal Configuration Register
Velocity Measurement Registers
0x0018
R/W
Q-Decoder Velocity Control Register
0x001c
RO
Q-Decoder Velocity Counter Register
0x0020
RO
Q-Decoder Velocity Counter Capture Register
0x0024
RO
Q-Decoder Position Counter Capture Register
0x0028
R/W
Q-Decoder Velocity Time Reload Register
0x002c
R/W
Q-Decoder Velocity Timer Register
0x0030
R/W
Q-Decoder Velocity Compare Register
Interrupt Registers
0x003C
R/W
Q-Decoder Interrupt Mask Register
0x0040
R/W
Q-Decoder Interrupt Status Register
21.3.1
Global Control Registers
21.3.1.1
REG_CLK_SEL
Name
: Clock Configuration Register
Size
: 32 bits
Address offset
: 0x0000
Read/write access
: read/write
31
30
29
…
19
18
17
16
15
14
13
12
11
10
9
..
1
0
RSVD
SMP_DIV
RSVD
DBN_TM
R/W
R/W
The document authorized to
SZ99iot
2019-05-15 10:08:03