![NXP Semiconductors LPC43Sxx Скачать руководство пользователя страница 979](http://html1.mh-extra.com/html/nxp-semiconductors/lpc43sxx/lpc43sxx_user-manual_1721827979.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
979 of 1441
NXP Semiconductors
UM10503
Chapter 30: LPC43xx/LPC43Sxx State Configurable Timer (SCT)
Remark:
The SCT can also be used to launch timed or other event-determined transfers
among other peripherals or between other peripherals and memory. It is not necessary to
transfer data in and out of the SCT in response to a DMA request.
DMA access to more than one Reload or Capture register requires that they be
consecutive registers. (Nothing else in the SCT constrains how these registers are
assigned and used.)
An event can set a DMA request or set when a counter Match registers are loaded from its
Reload registers, as described in
. The two requests of the SCT can be
used to do the same register access for both counters when UNIFY is 0. Alternatively, one
request can be used for writing Reload registers and the other for reading Capture
registers.
The SCT does not know how many transfers are done for each request, so it cannot
control its DMA requests accordingly.
The two DMA requests are connected to DMABREQ7 and DMABREQ8. Write the number
of registers to be transferred for each request to the TransferSize field in the Channel
Control Register of the DMA channel to which the request is connected. If the Linked List
feature is used, there is a TransferSize value in each Linked List entry. The GPDMA
asserts the DMACCLR signal when that number of transfers has been completed, which
makes the SCT clear the request.
30.7.9 Alternate addressing for match/capture registers
The Match, Reload, Capture, and Capture Control registers are arranged as consecutive
words, with the standard division of each word into two halfwords. When the UNIFY bit is
zero, these two halfwords are related to the L and H counters. Software has the option of
writing words initially to set up both halves of a SCT simultaneously, or writing halfwords to
set up each half separately.
Applications can use a DMA controller to write Reload registers or to read Capture
registers. However, when UNIFY is 0, the addressing of the halfword registers is not
compatible with the requirement of many DMA controllers to use consecutive addresses
for sequential address operation.
shows how the second half of the range
occupied by each type of register contains an alternate address map for halfword
accesses to the same registers, which is compatible with DMA that use sequential
address operation. When UNIFY is 1, perform DMA word accesses using standard
offsets.
Table 745. 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