![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 1013](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_17218271013.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
1013 of 1441
NXP Semiconductors
UM10503
Chapter 31: LPC43xx/LPC43Sxx State Configurable Timer (SCT) with
31.5 SCT Example
shows a simple application of the SCT using two sets of match events (EV0/1
and EV3/4) to set/clear SCT output 0. The timer is automatically reset whenever it
reaches the MAT0 match value.
In the initial state 0, match event EV0 sets output 0 to HIGH and match event EV1 clears
output 0. The SCT input 0 is monitored: If input0 is found LOW by the next time the timer
is reset(EV2), the state is changed to state 1, and EV3/4 are enabled, which create the
same output but triggered by different match values. If input 0 is found HIGH by the next
time the timer is reset, the associated event (EV5) causes the state to change back to
state 0where the events EV0 and EV1 are enabled.
The example uses the following SCT configuration:
•
1 input
•
1 output
•
5 match registers
•
6 events and match 0 used with autolimit function
•
2 states
Table 778. Alternate address map for DMA halfword access
Match register
Capture register
Standard offset
DMA halfword offset
MATCH0_L
CAP0_L
0x100
0x180
MATCH0_H
CAP0_H
0x102
0x1C0
MATCH1_L
CAP1_L
0x104
0x182
MATCH1_H
CAP1_H
0x106
0x1C2
...
...
...
...
MATCHREL0_L
CAPCTRL0_L
0x200
0x280
MATCHREL0_H
CAPCTRL0_H
0x202
0x2C0
MATCHREL1_L
CAPCTRL1_L
0x204
0x282
MATCHREL1_H
CAPCTRL1_H
0x206
0x2C2
...
...
...
...
FRACMAT0_L
-
0x140
0x1A0
FRACMAT0_H
-
0x142
0x1E0
FRACMAT1_L
-
0x144
0x1A2
FRACMAT1_H
-
0x146
0x1E2
...
-
...
...
RELFRAC0_L
-
0x240
0x2A0
RELFRAC0_H
-
0x242
0x2E0
RELFRAC1_L
-
0x244
0x2A2
RELFRAC1_H
-
0x246
0x2E2
...
-
...
...