
DR
AFT
DR
AFT
DRAFT
DR
D
RAFT
DRAFT
DRA
FT DRAF
D
RAFT DRAFT DRAFT DRAFT DRAFT D
DRAFT
D
RAFT DRA
FT DRAFT DRAFT DRAFT DRA
UM10360_0
© NXP B.V. 2009. All rights reserved.
User manual
Rev. 00.06 — 5 June 2009
508 of 808
NXP Semiconductors
UM10360
Chapter 25: LPC17xx Motor Control PWM
7.7.3 0 and 100% duty cycle
To lock a channel’s MCO outputs at the state “B active, A passive”, simply write its Match
register with a higher value than you write to its Limit register. The match never occurs.
There are two possible ways to lock the channel’s outputs in the opposite state:
1. Write 0 to the Match register (this procedure has to be verified as of Oct. 27 2008)
2. Write MAT higher than LIM as described above, and complement the POLA bit.
7.8 MCPWM Dead-time register (MCDT - 0x400B 803C)
This register holds the dead-time values for the three channels. If a channel’s DTE bit in
MCCON is 1 to enable its dead-time counter, the counter counts down from this value
whenever one its channel’s outputs changes from “active” to “passive” state. When the
dead-time counter reaches 0, the channel changes its other output from “passive” to
“active” state.
The motivation for the dead-time feature is that power transistors, like those driven by the
A and B outputs in a motor-control application, take longer to fully turn off than they take to
start to turn on. If the A and B transistors are ever turned on at the same time, a wasteful
and damaging current will flow between the power rails through the transistors. In such
applications, the dead-time register should be programmed with the number of PCLK
periods that is greater than or equal to the transistors’ maximum turn-off time minus their
minimum turn-on time.
[1]
If ACMODE is 1 selecting AC-mode, this field controls the dead time for all three channels.
[2]
If ACMODE is 0.
7.9 MCPWM Communication Pattern register (MCCP - 0x400B 8040)
This register is used in DC mode only. The internal MCOA0 signal is routed to any or all of
the six output pins under the control of the bits in this register. Like the Match and Limit
registers, this register has “write” and “operational” versions. See
and
for more
about this subject.
Table 457. MCPWM Dead-time register (MCDT - address 0x400B 803C) bit description
Bit
Symbol
Description
Reset
value
9:0
DT0
Dead time for channel 0.
0x3FF
19:10
DT1
Dead time for channel 1.
0x3FF
29:20
DT2
Dead time for channel 2.
0x3FF
31:30
-
reserved
Table 458. MCPWM Communication Pattern register (MCCP - address 0x400B 8040) bit
description
Bit
Symbol
Description
Reset
value
0
CCPA0
0 = MCOA0 passive, 1 = internal MCOA0.
0
1
CCPB0
0 = MCOB0 passive, 1 = MCOB0 tracks internal MCOA0.
0
2
CCPA1
0 = MCOA1 passive, 1 = MCOA1 tracks internal MCOA0.
0
3
CCPB1
0 = MCOB1 passive, 1 = MCOB1 tracks internal MCOA0.
0