![NXP Semiconductors LPC84x Скачать руководство пользователя страница 402](http://html.mh-extra.com/html/nxp-semiconductors/lpc84x/lpc84x_user-manual_1721742402.webp)
UM11029
All information provided in this document is subject to legal disclaimers.
© NXP Semiconductors N.V. 2017. All rights reserved.
User manual
Rev. 1.0 — 16 June 2017
402 of 515
NXP Semiconductors
UM11029
Chapter 21: LPC84x SCTimer/PWM
21.6.26 SCTimer/PWM output set registers 0 to 6
Each SCT output can be set on the occurrence of one or more specified events.
There is one output set register for each SCTimer/PWM output which selects which
events can set that output. Each bit of an output set register is associated with a different
event (bit 0 with event 0, etc.).
11:10 IOCOND
Selects the I/O condition for event n. (The detection of edges on outputs lag the
conditions that switch the outputs by one SCTimer/PWM clock). In order to guarantee
proper edge/state detection, an input must have a minimum pulse width of at least
one SCTimer/PWM clock period .
0
0x0
LOW
0x1
Rise
0x2
Fall
0x3
HIGH
13:12 COMBMODE
Selects how the specified match and I/O condition are used and combined.
0
0x0
OR. The event occurs when either the specified match or I/O condition occurs.
0x1
MATCH. Uses the specified match only.
0x2
IO. Uses the specified I/O condition only.
0x3
AND. The event occurs when the specified match and I/O condition occur
simultaneously.
14
STATELD
This bit controls how the STATEV value modifies the state selected by HEVENT when
this event is the highest-numbered event occurring for that state.
0
0
STATEV value is added into STATE (the carry-out is ignored).
1
STATEV value is loaded into STATE.
19:15 STATEV
-
This value is loaded into or added to the state selected by HEVENT, depending on
STATELD, when this event is the highest-numbered event occurring for that state. If
STATELD and STATEV are both zero, there is no change to the STATE value.
0
20
MATCHMEM -
If this bit is one and the COMBMODE field specifies a match component to the
triggering of this event, then a match is considered to be active whenever the counter
value is GREATER THAN OR EQUAL TO the value specified in the match register
when counting up, LESS THEN OR EQUAL TO the match value when counting down.
If this bit is zero, a match is only be active during the cycle when the counter is equal
to the match value.
0
22:21 DIRECTION
Direction qualifier for event generation. This field only applies when the counters are
operating in BIDIR mode. If BIDIR = 0, the SCTimer/PWM ignores this field. Value 0x3
is reserved.
0
0x0
Direction independent. This event is triggered regardless of the count direction.
0x1
Counting up. This event is triggered only during up-counting when BIDIR = 1.
0x2
Counting down. This event is triggered only during down-counting when BIDIR = 1.
31:23 -
-
Reserved
-
Table 410. SCTimer/PWM event control register 0 to 7 (EV[0:7]_CTRL, offset 0x304 (EV0_CTRL) to 0x33C
(EV7_CTRL)) bit description
Bit
Symbol
Value Description
Reset
value