Ameba-D User Manual
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
464
31:12
RSVD
N/A
--
Reserved
11:0
RCC
R/W
0
The value to be compared with the rotation counter. If the rotation counter is equal to this
value then the corresponding interrupt is asserted.
21.3.2.3
REG_PC
Name
: Q-Decoder Position Counter Register
Size
: 32 bits
Address offset
: 0x0010
Read/write access
: read
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
RC
STA
ALS
DIR
R
R
R
R
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PC
R
Bit
Name
Access
Default
Description
31:20
RC
R
0
The rotation counter
If the index pulse signal is enabled (depending on IDX_EN) and the rotation counter
mode is 0 (depending on RC_MOD), this rotation counter increases or decreases
(depending on the direction, DIR) by 1 on every index pulse.
If the index pulse signal is disabled (depending on IDX_EN) or the rotation counter
mode is 1 (depending on RC_MOD), this rotation counter increases or decreases by 1
for every position counter overflow (+1) or underflow (-1) occurred.
When the rotation counter overflow or underflow occurs, a corresponding interrupt is
asserted.
19:18
STA
R
0
The Q-decoder phase state, current state of (A, B) phase.
17
ALS
R
0
The status of auto load to set initial phase
1: Auto load done
0: Auto load on-going
If the initial phase auto load is disabled, the value of this bit should be ignored.
16
DIR
R
0
The movement direction
0: decrease
1: increase
15:0
PC
R
0
The position accumulation counter
Step is +1, -1 or to be reset to 0.
This position counter increases or decreases (depending on the direction) by one for every 1
or 2 (depending on CNT_SC) phase state changes.
If this position counter is equal to maximum position counter (MPC) and the
movement direction is forward, itis reset to 0 on the next counter increment.
If this position counter is equal to 0 and the movement direction is backward, it is reset
to the maximum position counter (MPC) on the next counter decrement.
If the position counter reset on index pulse is enabled (depending on POS_RST_EN), this
position counter is reset to 0 on the index pulse signal.
21.3.2.4
REG_ISC
Name
: Q-Decoder Index Signal Configuration Register
Size
: 32 bits
Address offset
: 0x0014
Read/write access
: read/write
31
30
29
28
…
9
8
7
6
5
4
3
2
1
0
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03