TC QDEC Interrupt Status Register
Bit | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | |
Access | |||||||||
Reset |
Bit | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | |
Access | |||||||||
Reset |
Bit | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | |
DIR | |||||||||
Access | R | ||||||||
Reset | 0 |
Bit | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | |
MPE | QERR | DIRCHG | IDX | ||||||
Access | R | R | R | R | |||||
Reset | 0 | 0 | 0 | 0 |
Index
Value | Description |
---|---|
0 | No Index input change since the last read of TC_QISR. |
1 | The IDX input has changed since the last read of TC_QISR. |
Direction Change
Value | Description |
---|---|
0 | No change on rotation direction since the last read of TC_QISR. |
1 | The rotation direction changed since the last read of TC_QISR. |
Quadrature Error
Value | Description |
---|---|
0 | No quadrature error since the last read of TC_QISR. |
1 | A quadrature error occurred since the last read of TC_QISR. |
Consecutive Missing Pulse Error
Value | Description |
---|---|
0 | The number of consecutive missing pulses has not reached the maximum value specified in MAXCMP since the last read of TC_QISR. |
1 | An occurrence of MAXCMP consecutive missing pulses has been detected since the last read of TC_QISR. |
Direction
Returns an image of the current rotation direction.