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
177 of 464
NXP Semiconductors
UM10850
Chapter 13: LPC5410x SCTimer/PWM (SCT0)
13.6.1.5 Event select registers for setting or clearing the outputs
This group contains the registers that select the events which affect the level of each SCT
output. Also included are registers to manage conflicts that occur when events try to set or
clear the same output. This register group includes the following registers:
•
One OUTn_SET register for each output to select the events which set the output.
•
One OUTn_CLR register for each output to select the events which clear the output.
•
The conflict resolution register which defines an action when more than one event try
to control an output at the same time.
•
The conflict flag and conflict interrupt enable registers that monitor interrupts arising
from output set and clear conflicts.
•
The output direction control register that interchanges the set and clear output
operation caused by an event in bi-directional mode.
The OUTn_SET and OUTn_CLR registers each contain one bit per event that selects
whether the event changes the state a given output n.
In the dual-counter mode, the events can be selected independently for each output.
13.6.1.6 Event select registers for capturing a counter value
This group contains registers that select events which capture the counter value and store
it in one of the CAP registers. Each capture register m has one associated CAPCTRLm
register which in turn selects the events to capture the counter value.
13.6.1.7 Event select register for initiating DMA transfers
One register is provided for each of the two DMA requests to select the events that can
trigger a DMA request.
The DMAREQn register contain one bit for each event that selects whether this event
triggers a DMA request. An additional bit enables the DMA trigger when the match
registers are reloaded.
13.6.1.8 Interrupt handling registers
The following registers provide flags that are set by events and select the events that
when they occur request an interrupt.
•
The event flag register provides one flag for each event that is set when the event
occurs.
•
The event flag interrupt enable register provides one bit for each event to be enabled
for the SCT interrupt.
13.6.1.9 Registers for controlling SCT inputs and outputs by software
Two registers are provided that allow software (as opposed to events) to set input and
outputs of the SCT:
•
The SCT input register to read the state of any of the SCT inputs.
•
The SCT output register to set or clear any of the SCT outputs or to read the state of
the outputs.