46.6.1.2 QEI I/O Control Register
Name: | QEIIOC |
Offset: | 0x10 |
Reset: | 0x00000000 |
Property: | RW |
Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
Access | |||||||||
Reset |
Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
HCAPEN | |||||||||
Access | R/W | ||||||||
Reset | 0 |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
QCAPEN | FLTREN | QFDIV[2:0] | OUTFNC[1:0] | SWPAB | |||||
Access | R/W | R/W | R/W | R/W | R/W | R/W | R/W | R/W | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
HOMPOL | IDXPOL | QEBPOL | QEAPOL | HOME | INDEX | QEB | QEA | ||
Access | R/W | R/W | R/W | R/W | R | R | R | R | |
Reset | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Bit 16 – HCAPEN Position Counter Input Capture by Home Event Enable bit
Value | Description |
---|---|
1 | HOMEx input event (positive edge) triggers a position capture event |
0 | HOMEx input event (positive edge) does not trigger a position capture event |
Bit 15 – QCAPEN Position Counter Input Capture Enable bit
Value | Description |
---|---|
1 | Positive edge detect of Home input triggers position capture function |
0 | Home input event (positive edge) does not trigger a capture even |
Bit 14 – FLTREN QEA/QEB/INDX/HOMEx Digital Filter Enable bit
Value | Description |
---|---|
1 | Input pin digital filter is enabled |
0 | Input pin digital filter is disabled (bypassed) |
Bits 13:11 – QFDIV[2:0] QEA/QEB/INDX/HOMEx Digital Input Filter Clock Divide Select bits
Value | Description |
---|---|
111 | 1:128 clock divide |
110 | 1:64 clock divide |
101 | 1:32 clock divide |
100 | 1:16 clock divide |
011 | 1:8 clock divide |
010 | 1:4 clock divide |
001 | 1:2 clock divide |
000 | 1:1 clock divide |
Bits 10:9 – OUTFNC[1:0] QEI Module Output Function Mode Select bits
Value | Description |
---|---|
11 | The CNTCMPx pin goes high when POSxCNT ≤ QEIxCMPL or POSxCNT ≥ QEIxICCH |
10 | The CNTCMPx pin goes high when POSxCNT ≤ QEIxCMPL |
01 | The CNTCMPx pin goes high when POSxCNT ≥ QEIxICCH |
00 | Output is disabled |
Bit 8 – SWPAB Swap QEA and QEB Inputs bit
Value | Description |
---|---|
1 | QEAx and QEBx are swapped prior to quadrature decoder logic |
0 | QEAx and QEBx are not swapped |
Bit 7 – HOMPOL HOME Input Polarity Select bit
Value | Description |
---|---|
1 | Input is inverted |
0 | Input is not inverted |
Bit 6 – IDXPOL INDX Input Polarity Select bit
Value | Description |
---|---|
1 | Input is inverted |
0 | Input is not inverted |
Bit 5 – QEBPOL QEB Input Polarity Select bit
Value | Description |
---|---|
1 | Input is inverted |
0 | Input is not inverted |
Bit 4 – QEAPOL QEA Input Polarity Select bit
Value | Description |
---|---|
1 | Input is inverted |
0 | Input is not inverted |
Bit 3 – HOME Status of HOME Input Pin After Polarity Control bit (read-only)
Value | Description |
---|---|
1 |
Pin is at logic ‘ Pin is at logic ‘ |
0 |
Pin is at logic ‘ Pin is at logic ‘ |
Bit 2 – INDEX Status of INDX Input Pin After Polarity Control bit (read-only)
Value | Description |
---|---|
1 |
Pin is at logic ‘ Pin is at logic ‘ |
0 |
Pin is at logic ‘ Pin is at logic ‘ |
Bit 1 – QEB Status of QEB Input Pin After Polarity Control and SWPAB Pin Swapping bit (read-only)
Value | Description |
---|---|
1 |
Physical pin QEBx is at logic ‘ Physical pin QEBx is at logic ‘ Physical pin QEAx is at logic ‘ Physical pin QEAx is at logic ‘ |
0 |
Physical pin QEBx is at logic ‘ Physical pin QEBx is at logic ‘ Physical pin QEAx is at logic ‘ Physical pin QEAx is at logic ‘ |
Bit 0 – QEA Status of QEA Input Pin After Polarity Control and SWPAB Pin Swapping bit (read-only)
Value | Description |
---|---|
1 |
Physical pin QEAx is at logic ‘ Physical pin QEAx is at logic ‘ Physical pin QEBx is at logic ‘ Physical pin QEBx is at logic ‘ |
0 |
Physical pin QEAx is at logic ‘ Physical pin QEAx is at logic ‘ Physical pin QEBx is at logic ‘ Physical pin QEBx is at logic ‘ |