UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2012. All rights reserved.
User manual
Rev. 1.3 — 6 July 2012
863 of 1269
30.1 How to read this chapter
The Motor control PWM is available on all LPC43xx parts.
30.2 Basic configuration
The PWM is configured as follows:
•
See
for clocking and power control.
•
The PWM is reset by the MOTOCONPWM_RST (reset #38).
•
The PWM interrupt is connected to slot #16 in the NVIC.
30.3 Introduction
The Motor Control PWM (MCPWM) is optimized for three-phase AC and DC motor control
applications, but can be used in many other applications that need timing, counting,
capture, and comparison.
30.4 Features
The MCPWM contains three independent channels, each including:
•
a 32-bit Timer/Counter (TC)
•
a 32-bit Limit register (LIM)
•
a 32-bit Match register (MAT)
•
a 10-bit dead-time register (DT) and an associated 10-bit dead-time counter
•
a 32-bit capture register (CAP)
•
two modulated outputs (MCOA and MCOB) with opposite polarities
•
a period interrupt, a pulse-width interrupt, and a capture interrupt
Input pins MCI0-2 can trigger TC capture or increment a channel’s TC. A global Abort
input can force all of the channels into “A passive” state and cause an interrupt.
30.5 General description
includes detailed descriptions of the various modes of MCPWM operation,
but a quick preview here will provide background for the register descriptions below.
UM10503
Chapter 30: LPC43xx Motor Control PWM (MOTOCONPWM)
Rev. 1.3 — 6 July 2012
User manual
Table 696. PWM clocking and power control
Base clock
Branch clock
Operating
frequency
Clock to the PWM Motor control block and
PWM Motocon peripheral clock.
BASE_APB1_
CLK
CLK_APB1_
MOTOCON
up to
204 MHz