UM10850
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2016. All rights reserved.
User manual
Rev. 2.4 — 13 September 2016
189 of 464
NXP Semiconductors
UM10850
Chapter 13: LPC5410x SCTimer/PWM (SCT0)
13.6.18 SCT conflict interrupt enable register
This register enables the no-change conflict events specified in the SCT conflict resolution
register to generate an interrupt request.
13.6.19 SCT conflict flag register
This register records a no-change conflict occurrence and provides details of a bus error.
Writing ones to the NCFLAG bits clears the corresponding read bits and negates the SCT
interrupt request if all enabled Flag bits are zero.
13.6.20 SCT match registers 0 to 12 (REGMODEn bit = 0)
Match registers are compared to the counters to help create events. When the UNIFY bit
is 0, the L and H registers are independently compared to the L and H counters. When
UNIFY is 1, the combined L and H registers hold a 32-bit value that is compared to the
unified counter. A Match can only occur in a clock in which the counter is running (STOP
and HALT are both 0).
Match registers can be read at any time. Writing to the MATCH_L, MATCH_H, or unified
register is only allowed when the corresponding counter is halted (HALT bits are set to 1 in
the CTRL register). Match events occur in the SCT clock in which the counter is (or would
be) incremented to the next value. When a Match event limits its counter as described in
, the value in the Match register is the last value of the counter before it is
cleared to zero (or decremented if BIDIR is 1).
There is no “write-through” from Reload registers to Match registers. Before starting a
counter, software can write one value to the Match register used in the first cycle of the
counter and a different value to the corresponding Match Reload register used in the
second cycle.
Table 227. SCT conflict interrupt enable register (CONEN, address 0x5000 40F8) bit description
Bit
Symbol
Description
Reset value
15:0
NCEN
The SCT requests an interrupt when bit n of this register and the SCT conflict flag register
are both one (output 0 = bit 0, output 1 = bit 1, …). The number of bits = number of outputs
in this SCT.
0
31:16
-
Reserved
Table 228. SCT conflict flag register (CONFLAG, address 0x5000 40FC) bit description
Bit
Symbol
Description
Reset value
15:0
NCFLAG
Bit n is one if a no-change conflict event occurred on output n since reset or a 1 was last
written to this bit (output 0 = bit 0, output 1 = bit 1, …). The number of bits = number of
outputs in this SCT.
0
29:16
-
Reserved.
-
30
BUSERRL
The most recent bus error from this SCT involved writing CTR L/Unified, STATE
L/Unified, MATCH L/Unified, or the Output register when the L/U counter was not
halted. A word write to certain L and H registers can be half successful and half
unsuccessful.
0
31
BUSERRH
The most recent bus error from this SCT involved writing CTR H, STATE H, MATCH H,
or the Output register when the H counter was not halted.
0