UM10360 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2013. All rights reserved.
User manual Rev. 3 — 19 December 2013 552 of 841
NXP Semiconductors
UM10360
Chapter 26: LPC176x/5x Quadrature Encoder Interface (QEI)
26.6.3 Position, index and timer registers
26.6.3.1 QEI Position register (QEIPOS - 0x400B C00C)
This register contains the current value of the encoder position. Increments or decrements
when encoder counts occur, depending on the direction of rotation.
26.6.3.2 QEI Maximum Position register (QEIMAXPOS - 0x400B C010)
This register contains the maximum value of the encoder position. In forward rotation the
position register resets to zero when the position register exceeds this value. In reverse
rotation the position register resets to this value when the position register decrements
from zero.
26.6.3.3 QEI Position Compare register 0 (CMPOS0 - 0x400B C014)
This register contains a position compare value. This value is compared against the
current value of the position register. Interrupts can be enabled to interrupt when the
compare value is equal to the current value of the position register.
26.6.3.4 QEI Position Compare register 1 (CMPOS1 - 0x400B C018)
This register contains a position compare value. This value is compared against the
current value of the position register. Interrupts can be enabled to interrupt when the
compare value is equal to the current value of the position register.
Table 487: QEI Position register (QEIPOS - address 0x400B C00C) bit description
Bit Symbol Description Reset
value
31:0 - Current position value. 0
Table 488: QEI Maximum Position register (QEIMAXPOS - address 0x400B C010) bit description
Bit Symbol Description Reset
value
31:0 - Current maximum position value. 0
Table 489: QEI Position Compare register 0 (CMPOS0 - address 0x400B C014) bit description
Bit Symbol Description Reset
value
31:0 - Position compare value 0. 0
Table 490: QEI Position Compare register 1 (CMPOS1 - address 0x400B C018) bit description
Bit Symbol Description Reset
value
31:0 - Position compare value 1. 0