20.3.2 QEI I/O Control Register

Table 20-4. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Gray cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
CWrite to clearSSoftware settable bitxChannel number
Name: QEI1IOC
Offset: 0x1A04

Bit 3130292827262524 
          
Access  
Reset  
Bit 2322212019181716 
        HCAPEN 
Access R/W 
Reset 0 
Bit 15141312111098 
 QCAPENFLTRENQFDIV[2:0]OUTFNC[1:0]SWPAB 
Access R/WR/WR/WR/WR/WR/WR/WR/W 
Reset 00000000 
Bit 76543210 
 HOMPOLIDXPOLQEBPOLQEAPOLHOMEINDEXQEBQEA 
Access R/WR/WR/WR/WRRRR 
Reset 0000xxxx 

Bit 16 – HCAPEN Position Counter Input Capture by Home Event Enable bit

ValueDescription
1HOMEx input event (positive edge) triggers a position capture event (QCAPEN must be cleared)
0HOMEx input event (positive edge) does not trigger a position capture event

Bit 15 – QCAPEN QEI Position Counter Input Capture by Index Match Event Enable bit

ValueDescription
1Index match event (positive edge) triggers a position capture event (HCAPEN must be cleared)
0Index match event (positive edge) does not trigger a position capture event

Bit 14 – FLTREN QEAx/QEBx/INDXx/HOMEx Digital Filter Enable bit

ValueDescription
1Input pin digital filter is enabled
0Input pin digital filter is disabled (bypassed)

Bits 13:11 – QFDIV[2:0] QEAx/QEBx/INDXx/HOMEx Digital Input Filter Clock Divide Select bits

ValueDescription
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

ValueDescription
11

The CNTCMPx pin goes high when POSxCNT ≤ QEIxLEC or POSxCNT ≥ QEIxGEC

10

The CNTCMPx pin goes high when POSxCNT ≤ QEIxLEC

01

The CNTCMPx pin goes high when POSxCNT ≥ QEIxGEC

00

Output is disabled

Bit 8 – SWPAB Swap QEAx and QEBx Inputs bit

ValueDescription
1QEAx and QEBx are swapped prior to Quadrature Decoder logic
0QEAx and QEBx are not swapped

Bit 7 – HOMPOL HOMEx Input Polarity Select bit

ValueDescription
1

Input is inverted

0

Input is not inverted

Bit 6 – IDXPOL INDXx Input Polarity Select bit

ValueDescription
1Input is inverted
0Input is not inverted

Bit 5 – QEBPOL QEBx Input Polarity Select bit

ValueDescription
1Input is inverted
0Input is not inverted

Bit 4 – QEAPOL QEAx Input Polarity Select bit

ValueDescription
1Input is inverted
0Input is not inverted

Bit 3 – HOME Status of HOMEx Input Pin After Polarity Control bit (read-only)

ValueDescription
1

Pin is at logic ‘1’ if HOMPOL bit is set to ‘0’;

Pin is at logic ‘0’ if HOMPOL bit is set to ‘1

0

Pin is at logic ‘0’ if HOMPOL bit is set to ‘0’;

Pin is at logic ‘1’ if HOMPOL bit is set to ‘1

Bit 2 – INDEX Status of INDXx Input Pin After Polarity Control bit (read-only)

ValueDescription
1

Pin is at logic ‘1’ if the IDXPOL bit is set to ‘0’;

Pin is at logic ‘0’ if the IDXPOL bit is set to ‘1

0

Pin is at logic ‘0’ if the IDXPOL bit is set to ‘0’;

Pin is at logic ‘1’ if the IDXPOL bit is set to ‘1

Bit 1 – QEB Status of QEBx Input Pin After Polarity Control and SWPAB Pin Swapping bit (read-only)

ValueDescription
1

Physical pin, QEBx, is at logic ‘1’ if QEBPOL bit is set to ‘0’ and SWPAB bit is set to ‘0’;

physical pin, QEBx, is at logic ‘0’ if QEBPOL bit is set to ‘1’ and SWPAB bit is set to ‘0’;

physical pin, QEAx, is at logic ‘1’ if QEBPOL bit is set to ‘0’ and SWPAB bit is set to ‘1’;

physical pin, QEAx, is at logic ‘0’ if QEBPOL bit is set to ‘1’ and SWPAB bit is set to ‘1

0

Physical pin, QEBx, is at logic ‘0’ if QEBPOL bit is set to ‘0’ and SWPAB bit is set to ‘0’;

physical pin, QEBx, is at logic ‘1’ if QEBPOL bit is set to ‘1’ and SWPAB bit is set to ‘0’;

physical pin, QEAx, is at logic ‘0’ if QEBPOL bit is set to ‘0’ and SWPAB bit is set to ‘1’;

physical pin, QEAx, is at logic ‘1’ if QEBPOL bit is set to ‘1’ and SWPAB bit is set to ‘1

Bit 0 – QEA Status of QEAx Input Pin After Polarity Control and SWPAB Pin Swapping bit (read-only)

ValueDescription
1

Physical pin, QEAx, is at logic ‘1’ if QEAPOL bit is set to ‘0’ and SWPAB bit is set to ‘0’;

physical pin, QEAx, is at logic ‘0’ if QEAPOL bit is set to ‘1’ and SWPAB bit is set to ‘0’;

physical pin, QEBx, is at logic ‘1’ if QEAPOL bit is set to ‘0’ and SWPAB bit is set to ‘1’;

physical pin, QEBx, is at logic ‘0’ if QEAPOL bit is set to ‘1’ and SWPAB bit is set to ‘1

0

Physical pin, QEAx, is at logic ‘0’ if QEAPOL bit is set to ‘0’ and SWPAB bit is set to ‘0’;

physical pin, QEAx, is at logic ‘1’ if QEAPOL bit is set to ‘1’ and SWPAB bit is set to ‘0’;

physical pin, QEBx, is at logic ‘0’ if QEAPOL bit is set to ‘0’ and SWPAB bit is set to ‘1’;

physical pin, QEBx, is at logic ‘1’ if QEAPOL bit is set to ‘1’ and SWPAB bit is set to ‘1