Quadrature Decoder (Q-Decoder)
User Manual All information provided in this document is subject to legal disclaimers. © REALTEK 2019. All rights reserved.
457
For some encoder, index output high in idle states. In this case, software can configure IDX_INV to suite different encoder. Fig 21-10 illustrates
inverse index pulse case.
+1
+1
+1
+1
199
+1
1
+1
+1
+1
+1
+1
+1
+1
+1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
2
3
4
5
6
7
8
198
197
196
7
6
5
4
3
2
1
0
199
198 197
196
PHA
PHB
IDX
PC
Index pulse
detection
RC
6
+1
-1
5
Direction
0
195
195
Fig 21-9 IDX_INV = 0, position counter reset on (PHA, PHB) = (1, 0)
+1
+1
+1
+1
199
+1
1
+1
+1
+1
+1
+1
+1
+1
+1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
-1
2
3
4
5
6
7
8
198
197
196
7
6
5
4
3
2
1
0
199
198 197
196
PHA
PHB
IDX
PC
Index pulse
detection
RC
5
6
+1
-1
5
Direction
0
195
195
Fig 21-10 IDX_INV = 1, position counter reset on (PHA, PHB) = (1, 0)
Ameba-D also supports auto-index mechanism, which means it can directly execute the index functions without any setting. This auto-index
mechanism is related with index phase. When the default phase is low, the index pulse detection is the rising edge in the positive direction. The
index pulse detection is the falling edge in the negative direction. When the default phase is high, the index pulse detection is the falling edge
in the positive direction. The index pulse detection is the rising edge in the negative direction.
Realtek confidential files
The document authorized to
SZ99iot
2019-05-15 10:08:03