UM10360 All information provided in this document is subject to legal disclaimers. © NXP B.V. 2013. All rights reserved.
User manual Rev. 3 — 20 December 2013 833 of 841
continued >>
NXP Semiconductors
UM10360
Chapter 35: Supplementary information
25.7.6 MCPWM Limit 0-2 registers (MCLIM0-2 -
0x400B 8024, 0x400B 8028, 0x400B 802C) 534
25.7.6.1 Match and Limit write and operating registers 534
25.7.7 MCPWM Match 0-2 registers (MCMAT0-2 -
0x400B 8030, 0x400B 8034, 0x400B 8038). 535
25.7.7.1 Match register in Edge-Aligned mode. . . . . . 535
25.7.7.2 Match register in Center-Aligned mode . . . . 535
25.7.7.3 0 and 100% duty cycle . . . . . . . . . . . . . . . . . 535
25.7.8 MCPWM Dead-time register (MCDT -
0x400B 803C). . . . . . . . . . . . . . . . . . . . . . . . 536
25.7.9 MCPWM Commutation Pattern register (MCCP -
0x400B 8040) . . . . . . . . . . . . . . . . . . . . . . . . 536
25.7.10 MCPWM Capture Registers . . . . . . . . . . . . . 537
25.7.10.1 MCPWM Capture read addresses (MCCAP0-2 -
0x400B 8044, 0x400B 8048, 0x400B 804C) 537
25.7.10.2 MCPWM Capture clear address (MCCAP_CLR -
0x400B 8074). . . . . . . . . . . . . . . . . . . . . . . . 537
25.8 PWM operation . . . . . . . . . . . . . . . . . . . . . . . 538
25.8.1 Pulse-width modulation . . . . . . . . . . . . . . . . 538
Edge-aligned PWM without dead-time. . . . . . 538
Center-aligned PWM without dead-time . . . . 538
Dead-time counter . . . . . . . . . . . . . . . . . . . . . 539
25.8.2 Shadow registers and simultaneous updates 540
25.8.3 Fast Abort (ABORT). . . . . . . . . . . . . . . . . . . 540
25.8.4 Capture events. . . . . . . . . . . . . . . . . . . . . . . 540
25.8.5 External event counting (Counter mode) . . . 541
25.8.6 Three-phase DC mode . . . . . . . . . . . . . . . . 541
25.8.7 Three phase AC mode. . . . . . . . . . . . . . . . . 542
25.8.8 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . 543
Chapter 26: LPC176x/5x Quadrature Encoder Interface (QEI)
26.1 Basic configuration . . . . . . . . . . . . . . . . . . . . 544
26.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 544
26.3 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 544
26.4 Functional description . . . . . . . . . . . . . . . . . 546
26.4.1 Input signals . . . . . . . . . . . . . . . . . . . . . . . . . 546
26.4.1.1 Quadrature input signals . . . . . . . . . . . . . . . 546
26.4.1.2 Digital input filtering . . . . . . . . . . . . . . . . . . . 547
26.4.2 Position capture . . . . . . . . . . . . . . . . . . . . . . 547
26.4.3 Velocity capture . . . . . . . . . . . . . . . . . . . . . . 547
26.4.4 Velocity compare . . . . . . . . . . . . . . . . . . . . . 548
26.5 Pin description. . . . . . . . . . . . . . . . . . . . . . . . 549
26.6 Register description . . . . . . . . . . . . . . . . . . . 550
26.6.1 Register summary . . . . . . . . . . . . . . . . . . . . 550
26.6.2 Control registers . . . . . . . . . . . . . . . . . . . . . . 551
26.6.2.1 QEI Control register (QEICON - 0x400B
C000) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551
26.6.2.2 QEI Configuration register (QEICONF - 0x400B
C008) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551
26.6.2.3 QEI Status register (QEISTAT - 0x400B
C004) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 551
26.6.3 Position, index and timer registers . . . . . . . . 552
26.6.3.1 QEI Position register (QEIPOS - 0x400B
C00C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 552
26.6.3.2 QEI Maximum Position register (QEIMAXPOS -
0x400B C010). . . . . . . . . . . . . . . . . . . . . . . . 552
26.6.3.3 QEI Position Compare register 0 (CMPOS0 -
0x400B C014). . . . . . . . . . . . . . . . . . . . . . . . 552
26.6.3.4 QEI Position Compare register 1 (CMPOS1 -
0x400B C018). . . . . . . . . . . . . . . . . . . . . . . . 552
26.6.3.5 QEI Position Compare register 2 (CMPOS2 -
0x400B C01C) . . . . . . . . . . . . . . . . . . . . . . . 553
26.6.3.6 QEI Index Count register (INXCNT - 0x400B
C020) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553
26.6.3.7 QEI Index Compare register (INXCMP - 0x400B
C024) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553
26.6.3.8 QEI Timer Reload register (QEILOAD - 0x400B
C028) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553
26.6.3.9 QEI Timer register (QEITIME - 0x400B
C02C). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 553
26.6.3.10 QEI Velocity register (QEIVEL - 0x400B
C030) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
26.6.3.11 QEI Velocity Capture register (QEICAP - 0x400B
C034) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
26.6.3.12 QEI Velocity Compare register (VELCOMP -
0x400B C038) . . . . . . . . . . . . . . . . . . . . . . . 554
26.6.3.13 QEI Digital Filter register (FILTER - 0x400B
C03C). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 554
26.6.4 Interrupt registers. . . . . . . . . . . . . . . . . . . . . 555
26.6.4.1 QEI Interrupt Status register (QEIINTSTAT) 555
26.6.4.2 QEI Interrupt Set register (QEISET - 0x400B
CFEC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 555
26.6.4.3 QEI Interrupt Clear register (QEICLR - 0x400B
CFE8). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
26.6.4.4 QEI Interrupt Enable register (QEIIE - 0x400B
CFE4). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 556
26.6.4.5 QEI Interrupt Enable Set register (QEIIES -
0x400B CFDC). . . . . . . . . . . . . . . . . . . . . . . 557
26.6.4.6 QEI Interrupt Enable Clear register (QEIIEC -
0x400B CFD8) . . . . . . . . . . . . . . . . . . . . . . . 558