English
Language : 

UM10562 Datasheet, PDF (938/942 Pages) NXP Semiconductors – LPC408x/407x User manual
NXP Semiconductors
UM10562
Chapter 41: Supplementary information
Chapter 27: LPC408x/407x Motor control PWM
27.1 Basic configuration . . . . . . . . . . . . . . . . . . . . 720
27.2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 720
27.3 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . 720
27.4 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 721
27.5 Block diagram . . . . . . . . . . . . . . . . . . . . . . . . 722
27.6 Configuring other modules for MCPWM use 723
27.7 General operation . . . . . . . . . . . . . . . . . . . . . 723
27.8 Register description . . . . . . . . . . . . . . . . . . . 724
27.8.1 MCPWM Control register . . . . . . . . . . . . . . . 725
27.8.1.1 MCPWM Control read address . . . . . . . . . . 725
27.8.1.2 MCPWM Control set address . . . . . . . . . . . 726
27.8.1.3 MCPWM Control clear address . . . . . . . . . . 727
27.8.2 PWM Capture Control register . . . . . . . . . . . 728
27.8.2.1 MCPWM Capture Control read address . . . 728
27.8.2.2 MCPWM Capture Control set address . . . . 729
27.8.2.3 MCPWM Capture control clear address . . . 729
27.8.3 MCPWM Timer/Counter 0-2 registers . . . . . 730
27.8.4 MCPWM Limit 0-2 registers . . . . . . . . . . . . . 731
27.8.5 MCPWM Match 0-2 registers . . . . . . . . . . . . 731
27.8.5.1 Match register in Edge-Aligned mode. . . . . . 732
27.8.5.2 Match register in Center-Aligned mode . . . . 732
27.8.5.3 0 and 100% duty cycle . . . . . . . . . . . . . . . . . 732
27.8.6 MCPWM Dead-time register . . . . . . . . . . . . 732
27.8.7 MCPWM Communication Pattern register . . 733
27.8.8 MCPWM Capture read addresses . . . . . . . . 733
27.8.9 MCPWM Interrupt registers . . . . . . . . . . . . . 734
8.9.1 MCPWM Interrupt Enable read address . . . 734
27.8.9.2 MCPWM Interrupt Enable set address . . . . 735
27.8.9.3 MCPWM Interrupt Enable clear address . . 735
27.8.10 MCPWM Count Control register . . . . . . . . . 736
27.8.10.1 MCPWM Count Control read address . . . . 736
27.8.10.2 MCPWM Count Control set address . . . . . . 738
27.8.10.3 MCPWM Count Control clear address . . . . 739
27.8.11 MCPWM Interrupt flag registers. . . . . . . . . . 739
27.8.11.1 MCPWM Interrupt Flags read address . . . . 739
27.8.11.2 MCPWM Interrupt Flags set address . . . . . 741
27.8.11.3 MCPWM Interrupt Flags clear address . . . . 741
27.8.12 MCPWM Capture clear address . . . . . . . . . 742
27.9 PWM operation . . . . . . . . . . . . . . . . . . . . . . . 743
27.9.1 Pulse-width modulation . . . . . . . . . . . . . . . . 743
Edge-aligned PWM without dead-time. . . . . . 743
Center-aligned PWM without dead-time . . . . 743
Dead-time counter . . . . . . . . . . . . . . . . . . . . . 744
27.9.2
27.9.3
27.9.4
27.9.5
27.9.6
Shadow registers and simultaneous updates 745
Fast Abort (ABORT). . . . . . . . . . . . . . . . . . . 745
Capture events. . . . . . . . . . . . . . . . . . . . . . . 745
External event counting (Counter mode) . . . 746
Three-phase DC mode . . . . . . . . . . . . . . . . 746
27.9.7 Three phase AC mode. . . . . . . . . . . . . . . . . 747
27.9.8 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . 748
Chapter 28: LPC408x/407x Quadrature Encoder Interface (QEI)
28.1 How to read this chapter . . . . . . . . . . . . . . . . 749
28.2 Basic configuration . . . . . . . . . . . . . . . . . . . . 749
28.3 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 749
28.4 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . 750
28.5 Functional description . . . . . . . . . . . . . . . . . 751
28.5.1 Input signals . . . . . . . . . . . . . . . . . . . . . . . . . 751
28.5.1.1 Quadrature input signals . . . . . . . . . . . . . . . 751
28.5.1.2 Digital input filtering . . . . . . . . . . . . . . . . . . . 752
28.5.2 Position capture . . . . . . . . . . . . . . . . . . . . . . 752
28.5.3 Velocity capture . . . . . . . . . . . . . . . . . . . . . . 753
28.5.4 Velocity compare . . . . . . . . . . . . . . . . . . . . . 753
28.6 Pin description . . . . . . . . . . . . . . . . . . . . . . . . 754
28.7 Register description . . . . . . . . . . . . . . . . . . . 755
28.7.1 Register summary . . . . . . . . . . . . . . . . . . . . 755
28.7.2 Control registers . . . . . . . . . . . . . . . . . . . . . . 756
28.7.2.1 QEI Control register . . . . . . . . . . . . . . . . . . . 756
28.7.2.2 QEI Configuration register . . . . . . . . . . . . . . 756
28.7.2.3 QEI Status register . . . . . . . . . . . . . . . . . . . . 756
28.7.3 Position, index and timer registers . . . . . . . . 757
28.7.3.1 QEI Position register . . . . . . . . . . . . . . . . . . 757
28.7.3.2 QEI Maximum Position register . . . . . . . . . . 757
28.7.3.3 QEI Position Compare register 0 . . . . . . . . . 757
28.7.3.4 QEI Position Compare register 1 . . . . . . . . 757
28.7.3.5 QEI Position Compare register 2 . . . . . . . . 758
28.7.3.6 QEI Index Count register . . . . . . . . . . . . . . 758
28.7.3.7 QEI Index Compare register 0 . . . . . . . . . . 758
28.7.3.8 QEI Velocity Timer Reload register . . . . . . . 758
28.7.3.9 QEI Velocity Timer register . . . . . . . . . . . . . 758
28.7.3.10 QEI Velocity register . . . . . . . . . . . . . . . . . . 759
28.7.3.11 QEI Velocity Capture register . . . . . . . . . . . 759
28.7.3.12 QEI Velocity Compare register. . . . . . . . . . . 759
28.7.3.13 QEI Digital Filter on PHA . . . . . . . . . . . . . . 759
28.7.3.14 QEI Digital Filter on PHB . . . . . . . . . . . . . . 759
28.7.3.15 QEI Digital Filter on INX . . . . . . . . . . . . . . . 760
28.7.3.16 QEI index acceptance Window . . . . . . . . . . 760
28.7.3.17 QEI Index Compare register 1 . . . . . . . . . . 760
28.7.3.18 QEI Index Compare register 2 . . . . . . . . . . . 760
28.7.4 Interrupt registers. . . . . . . . . . . . . . . . . . . . . 761
28.7.4.1 QEI Interrupt Status register . . . . . . . . . . . . 761
28.7.4.2 QEI Interrupt Set register . . . . . . . . . . . . . . 762
28.7.4.3 QEI Interrupt Clear register . . . . . . . . . . . . . 763
28.7.4.4 QEI Interrupt Enable register . . . . . . . . . . . 764
28.7.4.5 QEI Interrupt Enable Set register. . . . . . . . . 765
28.7.4.6 QEI Interrupt Enable Clear register . . . . . . . 766
Chapter 29: LPC408x/407x Real Time Clock (RTC)
29.1 Basic configuration . . . . . . . . . . . . . . . . . . . . 767 29.2 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 767
UM10562
User manual
All information provided in this document is subject to legal disclaimers.
Rev. 1 — 13 September 2012
© NXP B.V. 2012. All rights reserved.
938 of 942