
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
504 of 808
NXP Semiconductors
UM10360
Chapter 25: LPC17xx Motor Control PWM
7.4 MCPWM Count Control register
7.4.1 MCPWM Count Control read address (MCCNTCON - 0x400B 805C)
The MCCNTCON register controls whether the MCPWM channels are in timer or counter
mode, and in counter mode whether the counter advances on rising and/or falling edges
on any or all of the three MCI inputs. If timer mode is selected, the counter advances
based on the PCLK clock.
This address is read-only. To set or clear the register bits, write ones to the
MCCNTCON_SET or MCCNTCON_CLR address.
Table 451. MCPWM Count Control read address (MCCNTCON - 0x400B 805C) bit description
Bit
Symbol
Value Description
Reset
Value
0
TC0MCI0_RE
1
If MODE0 is 1, counter 0 advances on a rising edge
on MCI0.
0
0
A rising edge on MCI0 does not affect counter 0.
1
TC0MCI0_FE
1
If MODE0 is 1, counter 0 advances on a falling edge
on MCI0.
0
0
A falling edge on MCI0 does not affect counter 0.
2
TC0MCI1_RE
1
If MODE0 is 1, counter 0 advances on a rising edge
on MCI1.
0
0
A rising edge on MCI1 does not affect counter 0.
3
TC0MCI1_FE
1
If MODE0 is 1, counter 0 advances on a falling edge
on MCI1.
0
0
A falling edge on MCI1 does not affect counter 0.
4
TC0MCI2_RE
1
If MODE0 is 1, counter 0 advances on a rising edge
on MCI2.
0
0
A rising edge on MCI0 does not affect counter 0.
5
TC0MCI2_FE
1
If MODE0 is 1, counter 0 advances on a falling edge
on MCI2.
0
0
A falling edge on MCI0 does not affect counter 0.
6
TC1MCI0_RE
1
If MODE1 is 1, counter 1 advances on a rising edge
on MCI0.
0
0
A rising edge on MCI0 does not affect counter 1.
7
TC1MCI0_FE
1
If MODE1 is 1, counter 1 advances on a falling edge
on MCI0.
0
0
A falling edge on MCI0 does not affect counter 1.
8
TC1MCI1_RE
1
If MODE1 is 1, counter 1 advances on a rising edge
on MCI1.
0
0
A rising edge on MCI1 does not affect counter 1.
9
TC1MCI1_FE
1
If MODE1 is 1, counter 1 advances on a falling edge
on MCI1.
0
0
A falling edge on MCI0 does not affect counter 1.
10
TC1MCI2_RE
1
If MODE1 is 1, counter 1 advances on a rising edge
on MCI2.
0
0
A rising edge on MCI2 does not affect counter 1.