![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 997](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827997.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
997 of 1441
NXP Semiconductors
UM10503
Chapter 31: LPC43xx/LPC43Sxx State Configurable Timer (SCT) with
•
set and clear outputs
•
limit, stop, and start the counter
•
cause interrupts and DMA requests
•
modify the state variable
The value of a state variable is completely under the control of the application. If an
application does not use states, the value of the state variable remains zero, which is the
default value.
A state variable can be used to track and control multiple cycles of the associated counter
in any desired operational sequence. The state variable is logically associated with a state
machine diagram which represents the SCT configuration. See
and
for more about the relationship between states and events.
The STATELD/STADEV fields in the event control registers of all defined events set all
possible values for the state variable. The change of the state variable during multiple
counter cycles reflects how the associated state machine moves from one state to the
next.
31.3.10 SCT input register
Software can read the state of the SCT inputs in this read-only register in two slightly
different forms. The only situation in which these values are different is if CLKMODE = 2 in
the CONFIG register.
Table 755. SCT state register (STATE, address 0x4000 0044) bit description
Bit
Symbol
Description
Reset
value
4:0
STATE_L
State variable.
0
15:5
-
Reserved.
-
20:16
STATE_H
State variable.
0
31:21
-
Reserved.
Table 756. SCT input register (INPUT, address 0x4000 0048) bit description
Bit
Symbol
Description
Reset
value
0
AIN0
Real-time status of input 0.
pin
1
AIN1
Real-time status of input 1.
pin
2
AIN2
Real-time status of input 2.
pin
3
AIN3
Real-time status of input 3.
pin
4
AIN4
Real-time status of input 4.
pin
5
AIN5
Real-time status of input 5.
pin
6
AIN6
Real-time status of input 6.
pin
7
AIN7
Real-time status of input 7.
pin
15:8
-
Reserved.
-
16
SIN0
Input 0 state synchronized to the SCT clock.
-
17
SIN1
Input 1 state synchronized to the SCT clock.
-
18
SIN2
Input 2 state synchronized to the SCT clock.
-