![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 1009](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_17218271009.webp)
UM10503
All information provided in this document is subject to legal disclaimers.
© NXP B.V. 2015. All rights reserved.
User manual
Rev. 2.1 — 10 December 2015
1009 of 1441
NXP Semiconductors
UM10503
Chapter 31: LPC43xx/LPC43Sxx State Configurable Timer (SCT) with
In simple applications that do not use states, write 0x01 to this register to enable an event.
Since the state always remains at its reset value of 0, writing 0x01 effectively permanently
state-enables this event.
31.3.27 SCT event control registers 0 to 15
This register defines the conditions for event n to occur, other than the state variable
which is defined by the state mask register. Most events are associated with a particular
counter (high, low, or unified), in which case the event can depend on a match to that
register. The other possible ingredient of an event is a selected input or output signal.
When the UNIFY bit is 0, each event is associated with a particular counter by the
HEVENT bit in its event control register. An event cannot occur when its related counter is
halted nor when the current state is not enabled to cause the event as specified in its
event mask register. An event is permanently disabled when its event state mask register
contains all zeros.
An enabled event can be programmed to occur based on a selected input or output edge
or level and/or based on its counter value matching a selected match register. In BIDR
mode, events can also be enabled based on the count direction.
Each event can modify its counter STATE value. If more than one event associated with
the same counter occurs in a given clock cycle, only the state change specified for the
highest-numbered event among them takes place. Other actions dictated by any
simultaneously occurring events all take place.
Table 773. SCT event state mask registers 0 to 15 (EV[0:15]_STATE, addresses 0x4000 0300
(EV0_STATE) to 0x4000 0378 (EV15_STATE)) bit description
Bit
Symbol
Description
Reset
value
31:0
STATEMSK
If bit m is one, event n (n= 0 to 15) happens in state m of the
counter selected by the HEVENT bit (m = state number; state 0 =
bit 0, state 1= bit 1,..., state 31 = bit 31).
0
Table 774. SCT event control register 0 to 15 (EV[0:15]_CTRL, address 0x4000 0304 (EV0_CTRL) to 0x4000 037C
(EV15_CTRL)) bit description
Bit
Symbol
Value Description
Reset
value
3:0
MATCHSEL
-
Selects the Match register associated with this event (if any). A match can occur only
when the counter selected by the HEVENT bit is running.
0
4
HEVENT
Select L/H counter. Do not set this bit if UNIFY = 1.
0
0
L state. Selects the L state and the L match register selected by MATCHSEL.
1
H state. Selects the H state and the H match register selected by MATCHSEL.
5
OUTSEL
Input/output select
0
0
Input. Selects the input selected by IOSEL.
1
Output. Selects the output selected by IOSEL.
9:6
IOSEL
-
Selects the input or output signal associated with this event (if any). Do not select an
input in this register, if CKMODE is 1x. In this case the clock input is an implicit
ingredient of every event.
0