14. Low-power direct memory access controller (LPDMA)

14.1 LPDMA introduction

The low-power direct memory access (LPDMA) controller is a bus master and system peripheral.

The LPDMA is used to perform programmable data transfers between memory-mapped peripherals and/or memories via linked-lists, upon the control of an off-loaded CPU.

14.2 LPDMA main features

14.3 LPDMA implementation

14.3.1 LPDMA instances

The number of available channels per instance are given in Table 86: LPDMA1/2 channels implementation. Section 14.8: LPDMA registers reflects the LPDMA registers, with x = 0 to 7 for the channel number.

LPDMA instances have the same registers, excepted for those with x = 4 to 7.

Any LPDMA instance is connected to the same requests and triggers.

Table 86.LPDMA1/2 channels implementation

LPDMA instanceSTM32C53xxx/542xxSTM32C55xxx/562xxSTM32C59xxx/5A3xx
LPDMA1x = 0 to 3x = 0 to 7x = 0 to 7
LPDMA2x = 0 to 3x = 0 to 3x = 0 to 7

14.3.2 LPDMA channels

A given LPDMA channel x is implemented with the hardware parameters as per the table below.

Table 87.LPDMA1 channels implementation

Channel
x
Hardware parametersFeatures
dma_fifo_size[x]dma_addressing[x]
x = 0 to 700Channel x (x = 0 to 7) is implemented with:
  • – no FIFO. Only a single source transfer cell is internally registered.
  • – fixed/contiguously incremented addressing

Table 88. LPDMA2 channels implementation

Channel
x
Hardware parametersFeatures
dma_fifo_size[x]dma_addressing[x]
x = 0 to 700Channel x (x = 0 to 7) is implemented with:
– no FIFO. Only a single source transfer cell is internally registered.
– fixed/contiguously incremented addressing

14.3.3 LPDMA in low-power modes

The LPDMA wake-up feature is implemented in the device low-power modes as per the table below.

Table 89. LPDMA1/2 autonomous mode and wake-up in low-power modes

FeatureLow-power modes
Wake-upLPDMA1/2 in Sleep mode

14.3.4 LPDMA requests

A LPDMA request from a peripheral can be assigned to a LPDMA channel x, via the REQSEL[6:0] field in the LPDMA channel x transfer register 2 (LPDMA_CxTR2), provided that SWREQ = 0.

The LPDMA requests mapping is specified in the table below.

Table 90. Programmed LPDMA1/2 request

LPDMA_CxTR2.REQSEL[6:0]Selected LPDMA request
0adc1_dma
1adc2_dma
2tim6_upd_dma
3tim7_upd_dma
4spi1_rx_dma
5spi1_tx_dma
6spi2_rx_dma
7spi2_tx_dma
8spi3_rx_dma
9spi3_tx_dma
10i2c1_rx_dma
11i2c1_tx_dma
12usart1_rx_dma
13usart1_tx_dma

Table 90. Programmed LPDMA1/2 request (continued)

LPDMA_CxTR2.REQSEL[6:0]Selected LPDMA request
14usart2_rx_dma
15usart2_tx_dma
16usart3_rx_dma
17usart3_tx_dma
18uart4_rx_dma
19uart4_tx_dma
20uart5_rx_dma
21uart5_tx_dma
22lpuart1_rx_dma
23lpuart1_tx_dma
24tim1_cc1_dma
25tim1_cc2_dma
26tim1_cc3_dma
27tim1_cc4_dma
28tim1_upd_dma
29tim1_trig_dma
30tim1_com_dma
31tim2_cc1_dma
32tim2_cc2_dma
33tim2_cc3_dma
34tim2_cc4_dma
35tim2_upd_dma
36tim2_trig_dma
37tim5_cc1_dma
38tim5_cc2_dma
39tim5_cc3_dma
40tim5_cc4_dma
41tim5_upd_dma
42tim5_trig_dma
43tim15_cc1_dma
44tim15_cc2_dma
45tim15_upd_dma
46tim15_trig_dma
47tim15_com_dma
48tim16_cc1_dma

Table 90. Programmed LPDMA1/2 request (continued)

LPDMA_CxTR2.REQSEL[6:0]Selected LPDMA request
49tim16_upd_dma
50tim17_cc1_dma
51tim17_upd_dma
52lptim1_ic1_dma
53lptim1_ic2_dma
54lptim1_ue_dma
55cordic_rd_dma
56cordic_wr_dma
57i3c1_rx_dma
58i3c1_tx_dma
59i3c1_tc_dma
60i3c1_rs_dma
61aes_out_dma
62aes_in_dma
63hash_in_dma
64i2c2_rx_dma
65i2c2_tx_dma
66tim8_cc1_dma
67tim8_cc2_dma
68tim8_cc3_dma
69tim8_cc4_dma
70tim8_upd_dma
71tim8_trig_dma
72tim8_com_dma
73dac1_ch1_dma
74dac1_ch2_dma
75usart6_rx_dma
76usart6_tx_dma
77uart7_tx_dma
78uart7_rx_dma
79adc3_dma
80tim3_cc1_dma
81tim3_cc2_dma
82tim3_cc3_dma
83tim3_cc4_dma
Table 90. Programmed LPDMA1/2 request (continued)
LPDMA_CxTR2.REQSEL[6:0]Selected LPDMA request
84tim3_upd_dma
85tim3_trgi_dma
86tim4_cc1_dma
87tim4_cc2_dma
88tim4_cc3_dma
89tim4_cc4_dma
90tim4_upd_dma
91tim4_trgi_dma
92saes_out_dma
93saes_in_dma
94xspi1_dma

14.3.5 LPDMA block requests

Some LPDMA requests must be programmed as a block request, and not as a single request. Then the BREQ bit in LPDMA channel x transfer register 2 (LPDMA_CxTR2) must be set for a correct LPDMA execution of the requested peripheral transfer at the hardware level.

The LPDMA block requests are listed in the table below.

Table 91. Programmed LPDMA1/2 request as a block request
LPDMA block requests
lptim1_ue_dma

14.3.6 LPDMA channels with peripheral early termination

A LPDMA channel, if implemented with this feature, can support the early termination of the data transfer from the peripheral which does also support this feature.

Table 92. LPDMA1/2 channel with peripheral early termination
LPDMA channel x with peripheral early termination
LPDMA1: x = 0 and x = 7
LPDMA2: x = 0 and x = 7

This LPDMA support is activated when the channel x is programmed with LPDMA_CxTR2.PFREQ = 1. Then, the peripheral itself can initiate and request a data transfer completion, before the LPDMA has transferred the whole block (see Section 14.4.14 for more details).

Table 93. Programmed LPDMA1/2 request with peripheral early termination

Programmed LPDMA channel x request with peripheral early termination
i3c1_rx_dma

14.3.7 LPDMA triggers

A LPDMA trigger can be assigned to a LPDMA channel x, via the TRIGSEL[5:0] field in the LPDMA channel x transfer register 2 (LPDMA_CxTR2), provided that TRIGPOL[1:0] defines a rising or a falling edge of the selected trigger (TRIGPOL[1:0] = 01 or TRIGPOL[1:0] = 10).

The LPDMA triggers mapping is specified in the table below.

Table 94. Programmed LPDMA1/2 trigger

LPDMA_CxTR2.TRIGSEL[5:0]Selected LPDMA trigger
0exti0
1exti1
2exti2
3exti3
4exti4
5exti5
6exti6
7exti7
8tamp_trg1
9tamp_trg2
10tamp_trg3
11lptim1_ch1
12lptim1_ch2
13rtc_alra_trg
14rtc_alrb_trg
15rtc_wut_trg
16tim2_trgo
17tim15_trgo
18comp1_out_dma
19eventout
20lpdma1_ch0_tc
21lpdma1_ch1_tc
22lpdma1_ch2_tc
23lpdma1_ch3_tc
24lpdma1_ch4_tc

Table 94. Programmed LPDMA1/2 trigger (continued)

LPDMA_CxTR2.TRIGSEL[5:0]Selected LPDMA trigger
25lpdma1_ch5_tc
26lpdma1_ch6_tc
27lpdma1_ch7_tc
28lpdma2_ch0_tc
29lpdma2_ch1_tc
30lpdma2_ch2_tc
31lpdma2_ch3_tc
32lpdma2_ch4_tc
33lpdma2_ch5_tc
34lpdma2_ch6_tc
35lpdma2_ch7_tc

14.4 LPDMA functional description

14.4.1 LPDMA block diagram

The LPDMA block diagram is illustrated in the figure below.

Figure 40. LPDMA block diagram

Block diagram of the LPDMA showing internal components like Channel datapath, Arbitration, Transfer output control, DMA channel registers, and AHB interfaces, along with external signals like DMA requests, clock, and AHB bus connections.

The diagram illustrates the LPDMA architecture. It is divided into two main sections: the top section handles data transfer control and the bottom section handles channel management and AHB slave interface.

(1) Refer to the device implementation table for the number of channels.

MSv74293V1

Block diagram of the LPDMA showing internal components like Channel datapath, Arbitration, Transfer output control, DMA channel registers, and AHB interfaces, along with external signals like DMA requests, clock, and AHB bus connections.

14.4.2 LPDMA channel state and direct programming without any linked-list

After a LPDMA reset, a LPDMA channel x is in idle state. When the software writes 1 into the in LPDMA_CxCR.EN enable control bit, the channel takes into account the value of the different channel configuration registers (LPDMA_CxXXX), switches to the active/non-idle state and starts to execute the corresponding requested data transfers.

After enabling/starting a LPDMA channel transfer by writing 1 into the LPDMA_CxCR.EN bit, a LPDMA channel interrupt on a complete transfer notifies the software that the LPDMA channel is back in idle state (EN is then de-asserted by hardware) and that the channel is ready to be reconfigured then enabled again.

The figure below illustrates this LPDMA direct programming without any linked-list (LPDMA_CxLLR = 0).

Figure 41. LPDMA channel direct programming without linked-list (LPDMA_CxLLR = 0)

Flowchart of LPDMA channel direct programming without linked-list (LPDMA_CxLLR = 0).
graph TD
    subgraph IdleState [Channel state = Idle]
        Init[Initialize DMA channel
(keeping DMA_CxLLR[31:0] = 0)] Reconfig[Reconfigure DMA channel
(keeping DMA_CxLLR[31:0] = 0)] Enable[Enable DMA channel] Init --> Enable Reconfig --> Enable end subgraph ActiveState [Channel state = Active] ValidUser{Valid user
setting ?} Execute[Executing the data transfer
from the register file] NoError{No transfer
error ?} SetTCF[Setting TCF = 1
Disabling DMA channel] SetDTEF[Setting DTEF = 1
Disabling DMA channel] SetUSEF[Setting USEF = 1
Disabling DMA channel] Enable --> ValidUser ValidUser -- Y --> Execute ValidUser -- N --> SetUSEF Execute --> NoError NoError -- Y --> SetTCF NoError -- N --> SetDTEF end SetTCF --> End[/End/] SetDTEF --> End SetUSEF --> End

The flowchart illustrates the LPDMA channel direct programming process without a linked-list (LPDMA_CxLLR = 0). It starts in the 'Channel state = Idle' state, where the DMA channel is initialized or reconfigured (keeping DMA_CxLLR[31:0] = 0) and then enabled. Once enabled, the channel enters the 'Channel state = Active' state. In this state, the system checks for a valid user setting. If the setting is invalid (N), it sets USEF = 1 and disables the channel. If the setting is valid (Y), it proceeds to execute data transfer from the register file. After execution, it checks for any transfer errors. If an error occurs (N), it sets DTEF = 1 and disables the channel. If no error occurs (Y), it sets TCF = 1 and disables the channel. All disable paths lead to the 'End' state.

Flowchart of LPDMA channel direct programming without linked-list (LPDMA_CxLLR = 0).

MSv62626V1

14.4.3 LPDMA channel suspend and resume

The software can suspend on its own a channel still active, with the following sequence:

  1. 1. The software writes 1 into the LPDMA_CxCR.SUSP bit.
  2. 2. The software polls the suspended flag LPDMA_CxSR.SUSPF until SUSPF = 1, or waits for an interrupt previously enabled by writing 1 to LPDMA_CxCR.SUSPIE. Wait for the channel to be effectively in suspended state means wait for the completion of

any ongoing LPDMA transfer over its master port. Then the software can observe, in a steady state, any read register or register field that is hardware modifiable.

Note that an ongoing LPDMA transfer can be a data transfer (a read-followed-by-write single transfer) or a link transfer for the internal update of the linked-list register file from the next linked-list item.

  1. The software safely resumes the suspended channel by writing 0 to LPDMA_CxCR.SUSP.

The suspend and resume sequence is illustrated in the figure below.

Figure 42. LPDMA channel suspend and resume sequence

Flowchart illustrating the LPDMA channel suspend and resume sequence. The process starts with 'Channel state = Active'. The software suspends the DMA channel by writing 1 to CxCR.SUSP. An 'or' condition leads to a decision diamond 'SUSPF=1?'. If 'N' (No), it loops back to the suspension step. If 'Y' (Yes), it transitions to 'Channel state = Suspended and Idle'. From here, the software can either receive a suspended interrupt or directly resume the DMA channel by writing 0 to CxCR.SUSP. Both paths lead to 'Channel state = Active'.
graph TD
    Start(( )) --> Active1[Channel state = Active]
    Active1 --> Suspend[Suspend the DMA channel
(write 1 to CxCR.SUSP)] Suspend -- or --> Decision{SUSPF=1?} Decision -- N --> Suspend Decision -- Y --> Suspended[Channel state = Suspended and Idle] Suspended --> Interrupt[Receiving suspended interrupt] Interrupt --> Resume[Resume the DMA channel
(write 0 to CxCR.SUSP)] Suspended --> Resume Resume --> Active2[Channel state = Active] Active2 --> End(( ))

MSv62627V1

Flowchart illustrating the LPDMA channel suspend and resume sequence. The process starts with 'Channel state = Active'. The software suspends the DMA channel by writing 1 to CxCR.SUSP. An 'or' condition leads to a decision diamond 'SUSPF=1?'. If 'N' (No), it loops back to the suspension step. If 'Y' (Yes), it transitions to 'Channel state = Suspended and Idle'. From here, the software can either receive a suspended interrupt or directly resume the DMA channel by writing 0 to CxCR.SUSP. Both paths lead to 'Channel state = Active'.

Note: A suspend and resume sequence does not impact the LPDMA_CxCR.EN bit. Suspending a channel (transfer) does not suspend a started trigger detection.

14.4.4 LPDMA channel abort and restart

Alternatively, like for aborting a continuous LPDMA transfer with a circular buffering or a double buffering, the software can abort, on its own, a still active channel with the following sequence:

  1. The software writes 1 into the LPDMA_CxCR.SUSP bit.
  2. The software polls suspended flag LPDMA_CxSR.SUSPF until SUSPF = 1, or waits for an interrupt previously enabled by writing 1 to LPDMA_CxCR.SUSPIE. Wait for the channel to be effectively in suspended state means wait for the completion of any ongoing LPDMA transfer over its master port.
  3. The software resets the channel by writing 1 to LPDMA_CxCR.RESET. This causes the reset of the channel internal state, the reset of the LPDMA_CxCR.EN bit, and the reset of the LPDMA_CxCR.SUSP bit.
  1. 4. The software safely reconfigures the channel. The software must reprogram the hardware-modified LPDMA_CxBR1, LPDMA_CxSAR, and LPDMA_CxDAR registers.
  2. 5. In order to restart the aborted then reprogrammed channel, the software enables it again by writing 1 to the LPDMA_CxCR.EN bit.

The abort and restart sequence is illustrated in the figure below.

Figure 43. LPDMA channel abort and restart sequence

Flowchart illustrating the LPDMA channel abort and restart sequence. The process starts with 'Channel state = Active', followed by 'Suspend the DMA channel (write 1 to CxCR.SUSP)'. A decision diamond 'SUSPF=1?' follows. If 'N' (No), it loops back to the suspension step. If 'Y' (Yes), it proceeds to 'Channel state = Suspended (and Idle)', which involves 'Receiving suspended interrupt'. This is followed by 'Reset the DMA channel (write 1 to CxCR.RESET)', leading to 'Channel state = Idle'. From 'Idle', the process goes to 'Reconfigure the DMA channel', then 'Enable the DMA channel', and finally returns to 'Channel state = Active'.
graph TD
    Start((Channel state = Active)) --> Suspend[Suspend the DMA channel
(write 1 to CxCR.SUSP)] Suspend --> Decision{SUSPF=1?} Decision -- N --> Suspend Decision -- Y --> Suspended((Channel state = Suspended
(and Idle))) Suspended --> Interrupt[Receiving
suspended
interrupt] Interrupt --> Reset[Reset the DMA channel
(write 1 to CxCR.RESET)] Reset --> Idle((Channel state = Idle)) Idle --> Reconfigure[Reconfigure the DMA channel] Reconfigure --> Enable[Enable the DMA channel] Enable --> Active((Channel state = Active))

MSv62628V1

Flowchart illustrating the LPDMA channel abort and restart sequence. The process starts with 'Channel state = Active', followed by 'Suspend the DMA channel (write 1 to CxCR.SUSP)'. A decision diamond 'SUSPF=1?' follows. If 'N' (No), it loops back to the suspension step. If 'Y' (Yes), it proceeds to 'Channel state = Suspended (and Idle)', which involves 'Receiving suspended interrupt'. This is followed by 'Reset the DMA channel (write 1 to CxCR.RESET)', leading to 'Channel state = Idle'. From 'Idle', the process goes to 'Reconfigure the DMA channel', then 'Enable the DMA channel', and finally returns to 'Channel state = Active'.

14.4.5 LPDMA linked-list data structure

Alternatively to the direct programming mode, a channel can be programmed by a list of transfers, known as a list of linked-list items (LLI). Each LLI is defined by its data structure.

The base address in memory of the data structure of a next \(LLI_{n+1}\) of a channel x is the sum of the following:

The data structure for each LLI may be specific.

A linked-list data structure is addressed following the value of the UT1, UT2, UB1, USA, UDA and ULL bits of the LPDMA_CxLLR register.

In linked-list mode, each LPDMA linked-list register (LPDMA_CxTR1, LPDMA_CxTR2, LPDMA_CxBR1, LPDMA_CxSAR, LPDMA_CxDAR or LPDMA_CxLLR) is conditionally and automatically updated from the next linked-list data structure in the memory, following the current value of the LPDMA_CxLLR register that was conditionally updated from the linked-list data structure of the previous LLI.

Caution: The user must program the pointer to the next linked-list data structure (LPDMA_CxLLR[15:0]) not to exceed the 64-Kbyte addressable space defined by the link base address register (LPDMA_CxLBAR). The complete linked-list data structure must be included in the 64-Kbyte addressable space.

Static linked-list data structure

For example, when the update bits (UT1, UT2, UB1, USA, UDA and ULL) of the LPDMA_CxLLR register are all asserted, the linked-list data structure in memory is maximal with six contiguous 32-bit locations, including LPDMA_CxTR1, LPDMA_CxTR2, LPDMA_CxBR1, LPDMA_CxSAR, LPDMA_CxDAR and LPDMA_CxLLR (see the figure below) and including the first linked-list register file (LLI0) and the next LLIs (LLI1, LLI2,...) in the memory.

Figure 44. Static linked-list data structure (all Uxx = 1) of channel x

Diagram illustrating the static linked-list data structure of channel x. It shows the DMA register file and the memory from link base address DMA_CxLBAR. The DMA register file contains the Channel x linked-list register file (LLI0) with registers DMA_CxTR1, DMA_CxTR2, DMA_CxBR1, DMA_CxSAR, DMA_CxDAR, and DMA_CxLLR. The memory from link base address DMA_CxLBAR contains LLI1 and LLI2, each with the same set of registers. Arrows indicate that the DMA_CxLLR register in LLI0 points to LLI1, and the DMA_CxLLR register in LLI1 points to LLI2. The label 'All Uxx=1' is shown next to the arrows, indicating that all update bits are asserted.

The diagram illustrates the static linked-list data structure of channel x. It shows the DMA register file and the memory from link base address DMA_CxLBAR. The DMA register file contains the Channel x linked-list register file (LLI0) with registers DMA_CxTR1, DMA_CxTR2, DMA_CxBR1, DMA_CxSAR, DMA_CxDAR, and DMA_CxLLR. The memory from link base address DMA_CxLBAR contains LLI1 and LLI2, each with the same set of registers. Arrows indicate that the DMA_CxLLR register in LLI0 points to LLI1, and the DMA_CxLLR register in LLI1 points to LLI2. The label 'All Uxx=1' is shown next to the arrows, indicating that all update bits are asserted.

Diagram illustrating the static linked-list data structure of channel x. It shows the DMA register file and the memory from link base address DMA_CxLBAR. The DMA register file contains the Channel x linked-list register file (LLI0) with registers DMA_CxTR1, DMA_CxTR2, DMA_CxBR1, DMA_CxSAR, DMA_CxDAR, and DMA_CxLLR. The memory from link base address DMA_CxLBAR contains LLI1 and LLI2, each with the same set of registers. Arrows indicate that the DMA_CxLLR register in LLI0 points to LLI1, and the DMA_CxLLR register in LLI1 points to LLI2. The label 'All Uxx=1' is shown next to the arrows, indicating that all update bits are asserted.

Dynamic linked-list data structure

Alternatively, the memory organization for the full list of LLIs can be compacted with specific data structure for each LLI.

If UT1 = 0 and UT2 = 1, the link address offset of the register LPDMA_CxLLR is pointing to the updated value of the LPDMA_CxTR2 instead of the LPDMA_CxTR1 which is not to be modified.

Example: if UT1 = UB1 = USA = 0, and if UT2 = UDA = ULL = 1, the next LLI does not contain an updated value for LPDMA_CxTR1, nor LPDMA_CxBR1, nor LPDMA_CxSAR. The next LLI contains an updated value for LPDMA_CxTR2, LPDMA_CxDAR, and LPDMA_CxLLR, as shown in the figure below.

Figure 45. LPDMA dynamic linked-list data structure of an addressing channel x

Diagram of LPDMA dynamic linked-list data structure showing LLI_n and LLI_{n+1} structures and their linking.

The diagram illustrates the dynamic linked-list data structure for an addressing channel x. It shows two linked-list items (LLI) in memory: \(LLI_n\) and \(LLI_{n+1}\).

MSv62630V1

Diagram of LPDMA dynamic linked-list data structure showing LLI_n and LLI_{n+1} structures and their linking.

14.4.6 Linked-list item transfer execution

A \(LLI_n\) transfer is the sequence of:

  1. 1. a data transfer: LPDMA executes the data transfer as described by the LPDMA internal register file (this data transfer can be void/null for LLI₀)
  2. 2. a conditional link transfer: LPDMA automatically and conditionally updates its internal register file by the data structure of the next \(LLI_{n+1}\), as defined by the LPDMA_CxLLR value of the \(LLI_n\).

Note: The initial data transfer as defined by the internal register file (LLI₀) can be null (LPDMA_CxBR1.BNDT[15:0] = 0 and LPDMA_CxTR2.PFREQ = 0) provided that the conditional update bit UB1 in LPDMA_CxLLR is set (meaning there is a non-null data transfer described by the next LLI₁ in the memory to be executed).

Depending on the intended LPDMA usage, a LPDMA channel x can be executed as described by the full linked-list (run-to-completion mode, LPDMA_CxCR.LSM = 0) or a LPDMA channel x can be programmed for a single execution of a LLI (link step mode, LPDMA_CxCR.LSM = 1), as described in the next paragraphs.

14.4.7 LPDMA channel state and linked-list programming in run-to-completion mode

When LPDMA_CxCR.LSM = 0, a LPDMA channel x is initially programmed, started by writing 1 to LPDMA_CxCR.EN, and after (possibly) completed at channel level. The channel transfer is:

LPDMA_CxLLR[31:0] = 0 is the condition of a linked-list based channel completion and means the following:

The channel may never be completed when LPDMA_CxLLR.LSM = 0:

In the regular data transfer completion at a block level, LPDMA_CxBR1.BNDT[15:0] = 0. Alternatively, a block transfer may be early completed by a peripheral (such as an I3C in Rx mode), and then BNDT[15:0] is not null (see Section 14.4.14 for more details).

In the typical run-to-completion mode, the allocation of a LPDMA channel, including its fine programming, is done once during the LPDMA initialization. In order to have a reserved data communication link and LPDMA service during run-time, for continuously repeated transfers (from/to a peripheral respectively to/from memory or for memory-to-memory transfers). This reserved data communication link can consist of a channel, or the channel can be shared and a repeated transfer consists of a sequence of LLIs.

Figure 46 depicts the LPDMA channel execution and its registers programming in run-to-completion mode.

Note: Figure 46 is not intended to illustrate how often a TCEF can be raised, depending on the programmed value of TCEM[1:0] in LPDMA_CxTR2. It can be raised at (each) block completion, at (each) 2D block completion, at (each) LLI completion, or only at channel completion. In run-to-completion mode, whatever is the value of TCEM[1:0], at the channel completion, the hardware always set TCEF = 1 and disables the channel.

In Figure 46, BNDT ? 0 is the typical condition for starting the first data transfer. This condition becomes (BNDT ? 0 and PFREQ = 1) if the peripheral requests a data transfer with early termination (see Section 14.3.6).

Figure 46. LPDMA channel execution and linked-list programming in run-to-completion mode (LPDMA_CxCR.LSM = 0)

Flowchart showing LPDMA channel execution and linked-list programming in run-to-completion mode. It details the states (Idle, Active) and decision points for user settings, BNDT, transfer errors, LLR, and TCF, leading to actions like 'Executing once the data transfer', 'Loading next LLI', or 'Disabling DMA channel'.
graph TD
    subgraph IdleState [Channel state = Idle]
        Init[Initialize DMA channel]
        Enable[Enable DMA channel]
        Reconfig[Reconfigure DMA channel]
        Enable --> ActiveState
        Reconfig --> Enable
    end

    subgraph ActiveState [Channel state = Active]
        ValidUser1{Valid user setting?}
        BNDT{BNDT ≠ 0?}
        Exec[Executing once the data transfer from the register file]
        NoError1{No transfer error?}
        LLR{LLR ≠ 0?}
        LoadLLI[Loading next LLI into the register file]
        NoError2{No transfer error?}
        ValidUser2{Valid user setting?}
        SetTCF[Setting TCF = 1
Disabling DMA channel] SetUSEF1_1[Setting USEF = 1
Disabling DMA channel] SetDTEF[Setting DTEF = 1
Disabling DMA channel] SetULEF[Setting ULEF = 1
Disabling DMA channel] SetUSEF1_2[Setting USEF = 1
Disabling DMA channel] ValidUser1 -- Y --> BNDT ValidUser1 -- N --> SetUSEF1_1 BNDT -- Y --> Exec BNDT -- N --> SetDTEF Exec --> NoError1 NoError1 -- Y --> LLR NoError1 -- N --> SetDTEF LLR -- Y --> LoadLLI LLR -- N --> SetTCF LoadLLI --> NoError2 NoError2 -- Y --> ValidUser2 NoError2 -- N --> SetULEF ValidUser2 -- Y --> SetTCF ValidUser2 -- N --> SetUSEF1_2 SetTCF --> End SetUSEF1_1 --> End SetDTEF --> End SetULEF --> End SetUSEF1_2 --> End end End((End))

The flowchart is divided into two main sections: 'Channel state = Idle' and 'Channel state = Active'.

MSv62631V1

Flowchart showing LPDMA channel execution and linked-list programming in run-to-completion mode. It details the states (Idle, Active) and decision points for user settings, BNDT, transfer errors, LLR, and TCF, leading to actions like 'Executing once the data transfer', 'Loading next LLI', or 'Disabling DMA channel'.

Run-time inserting a LLIn via an auxiliary channel, in run-to-completion mode

The start of the link transfer of the LLIn-1 (start of the LLIn loading) can be conditioned by the occurrence of a trigger, when programming the following fields of the LPDMA_CxTR2 in the data structure of the LLIn-1:

Another auxiliary channel y can be used to store the channel x LLIn in the memory and to generate a transfer complete event lpdma_chy_tc. By selecting this event as the input trigger of the link transfer of the LLIn-1 of the channel x, the software can pause the primary channel x after its LLIn-1 data transfer, until it is indeed written the LLIn.

Figure 47 depicts such a dynamic elaboration of a linked-list of a primary channel x, via another auxiliary channel y.

Caution: This use case is restricted to an application with a LLIn-1 data transfer that does not need a trigger. The triggering mode of this LLIn-1 is used to load the next LLIn.

Figure 47. Inserting a LLIn with an auxiliary LPDMA channel y

Sequence diagram showing the interaction between DMA primary channel x, DMA auxiliary channel y, and CPU for inserting a new LLI. It details the execution of LLI data transfers, loading of new LLI, and the role of the CPU in building and configuring the new LLI upon a transfer complete interrupt.

The diagram illustrates the process of inserting a new Link List Item (LLIn) into a DMA chain using an auxiliary LPDMA channel y. It involves three main entities: DMA primary channel x, DMA auxiliary channel y, and the CPU.

LLIn-1 transfer (DMA primary channel x):

LLIn transfer (DMA primary channel x):

LLIn+1 transfer (DMA primary channel x):

CPU actions:

MSv62632V2

Sequence diagram showing the interaction between DMA primary channel x, DMA auxiliary channel y, and CPU for inserting a new LLI. It details the execution of LLI data transfers, loading of new LLI, and the role of the CPU in building and configuring the new LLI upon a transfer complete interrupt.

14.4.8 LPDMA channel state and linked-list programming in link step mode

When LPDMA_CxCR.LSM = 1, a channel transfer is executed and completed after each single execution of a LLI, including its (conditional) data transfer and its (conditional) link transfer.

A LPDMA channel transfer can be programmed at LLI level, started by writing 1 into LPDMA_CxCR.EN, and after completed at LLI level:

Note: If a LLI is recursive (pointing to itself as a next LLI, either LPDMA_CxLLR.ULL = 1 and LPDMA_CxLLR.LA[15:2] is updated with the same value, or LPDMA_CxLLR.ULL = 0), a channel in link step mode is completed after each repeated single execution of this LLI.

In the regular data transfer completion at a block level, LPDMA_CxBR1.BNDT[15:0] = 0. Alternatively, a block transfer may be early completed by a peripheral (such as an I3C in Rx mode), and then BNDT[15:0] is not null (see Section 14.4.14 for more details).

Figure 48 depicts the LPDMA channel execution mode, and its programming in link step mode.

Note: Figure 48 is not intended to illustrate how often a TCEF can be raised, depending on the programmed value of TCEM[1:0] in LPDMA_CxTR2. It can be raised at (each) block completion, at (each) 2D block completion, at (each) LLI completion, or only at the last LLI data transfer completion. In link step mode, the channel is disabled after each single execution of a LLI, and depending on the value of TCEM[1:0] a TCEF is raised or not.

In Figure 48, BNDT ? 0 is the typical condition for starting the first data transfer. This condition becomes (BNDT ? 0 and PFREQ = 1) if the peripheral requests a data transfer with early termination (see Section 14.3.6).

Figure 48. LPDMA channel execution and linked-list programming in link step mode (LPDMA_CxCR.LSM = 1)

Flowchart showing LPDMA channel execution and linked-list programming in link step mode. It details the states (Idle, Active), initialization, data transfer execution, error handling, and linked-list loading logic, including decisions for user settings and transfer errors.
graph TD
    subgraph IdleState [Channel state = Idle]
        Init[Initialize DMA channel]
        Enable[Enable DMA channel]
        Reconfig[Reconfigure DMA channel]
        Enable --> ActiveState
        Reconfig --> Enable
    end

    subgraph ActiveState [Channel state = Active]
        ValidUser1{Valid user setting?}
        BNDT{BNDT ≠ 0?}
        Exec[Executing once the data transfer from the register file]
        NoError1{No transfer error?}
        LLR{LLR ≠ 0?}
        LoadLLI[Loading next LLI into the register file]
        NoError2{No transfer error?}
        ValidUser2{Valid user setting?}
        SetTCF[Setting TCF = 1
Disabling DMA channel] SetUSEF1[Setting USEF = 1
Disabling DMA channel] SetDTEF[Setting DTEF = 1
Disabling DMA channel] SetULEF[Setting ULEF = 1
Disabling DMA channel] ValidUser1 -- Y --> BNDT ValidUser1 -- N --> SetUSEF1 BNDT -- Y --> Exec BNDT -- N --> SetDTEF Exec --> NoError1 NoError1 -- Y --> LLR NoError1 -- N --> SetDTEF LLR -- Y --> LoadLLI LLR -- N --> SetTCF LoadLLI --> NoError2 NoError2 -- Y --> ValidUser2 NoError2 -- N --> SetULEF ValidUser2 -- Y --> SetTCF ValidUser2 -- N --> SetUSEF1 SetTCF --> End SetUSEF1 --> End SetDTEF --> End SetULEF --> End end End((End))

The flowchart is divided into two main sections: 'Channel state = Idle' and 'Channel state = Active'.

All disabling paths (USEF, DTEF, ULEF, TCF) lead to the 'End' state.

Flowchart showing LPDMA channel execution and linked-list programming in link step mode. It details the states (Idle, Active), initialization, data transfer execution, error handling, and linked-list loading logic, including decisions for user settings and transfer errors.

MSv62633V1

The link step mode can be used to elaborate dynamically LLIs in memory during run-time. The software can be facilitated by using a static data structure for any LLIn (all update bits of LPDMA_CxLLR have a static value, LLIn.LLR.LA = LLIn-1.LLR.LA + constant).

During run-time, the software can defer the elaboration of the LLIn+1 (and next LLIs), until/after LPDMA executed the transfer from the LLIn-1 and loaded the LLIn from the memory, as shown in the figure below.

Figure 49. Building LLIn+1: LPDMA dynamic linked-lists in link step mode

Flowchart showing the interaction between DMA Channel and CPU for building LLI<sub>n+1</sub> in link step mode. It includes steps like 'LLI<sub>n-2</sub> transfer', 'Transfer complete interrupt', 'Executing LLI<sub>n-1</sub> data transfer', 'Loading LLI<sub>n</sub>', 'Build and store LLI<sub>n+1</sub>', and 'LLI<sub>n</sub> transfer'.

The diagram illustrates the process of building LLIn+1 in link step mode. It is divided into two main sections: DMA Channel and CPU.

At the top, a box states: 'LSM = 1 with 2-stage linked-list programming: DMA executes LLIn-1 and loads LLIn while CPU builds LLIn+1'.

Reference: MSv62634V1

Flowchart showing the interaction between DMA Channel and CPU for building LLIn+1 in link step mode. It includes steps like 'LLIn-2 transfer', 'Transfer complete interrupt', 'Executing LLIn-1 data transfer', 'Loading LLIn', 'Build and store LLIn+1', and 'LLIn transfer'.

In this link step mode, during run-time, the software can build and insert a new LLIn', after LPDMA executed the transfer from the LLIn-1 and loaded a formerly elaborated LLIn from the memory by overwriting directly the linked-list register file with the new LLIn', as shown in Figure 50.

Figure 50. Replace with a new LLIn' in register file in link step mode

Flowchart showing the process of replacing a linked list entry (LLI) in the register file during link step mode. It details the interaction between the DMA channel and the CPU across three stages: executing LLI_{n-1} data transfer, loading LLI_n, and then building and enabling the next LLI_n'.

LSM = 1 with 1-stage linked-list programming:
Overwriting the (pre)loaded LLIn linked-list register file with
a new LLIn' directly in linked-list register file.
DMA executes LLIn-1 and load LLIn, then CPU builds and overwrites LLIn'

    graph TD
        subgraph DMA_Channel [DMA channel]
            D1[Executing LLIn-1 data transfer] --> D2[Loading LLIn]
            D2 --> TC1[Transfer complete interrupt]
            subgraph LLI_n_transfer [LLIn-1 transfer]
                D1
                D2
            end
        end

        subgraph CPU
            C1[Build LLIn' and overwrite linked-list register file]
            C2[Enable DMA channel]
            C3[Build LLIn+1' and overwrite linked-list register file]
            C4[Enable DMA channel]
        end

        TC1 --> C1
        C1 --> C2
        C2 --> D3[Executing LLIn' data transfer]
        D3 --> D4[Loading LLIn+1']
        D4 --> TC2[Transfer complete interrupt]
        subgraph LLI_n_prime_transfer [LLIn' transfer]
            D3
            D4
        end
        TC2 --> C3
        C3 --> C4
        C4 --> D5[LLIn+1'' transfer]
        D5 --> TC3[Transfer complete interrupt]
    

MSv62635V1

Flowchart showing the process of replacing a linked list entry (LLI) in the register file during link step mode. It details the interaction between the DMA channel and the CPU across three stages: executing LLI_{n-1} data transfer, loading LLI_n, and then building and enabling the next LLI_n'.

The software can build and insert a new LLIn' and LLIn+1' in the memory, after LPDMA executed the transfer from the LLIn-1 and loaded a formerly elaborated LLIn from the memory, by overwriting partly the linked-list register file (LPDMA_CxBR1.BNDT[15:0] to be null and LPDMA_CxLLR to point to new LLIn') as shown in Figure 51.

Figure 51. Replace with a new LLIn' and LLIn+1' in memory in link step mode (option 1)

Figure 51 illustrates the sequence between DMA Channel and CPU when LSM = 1 with 1-stage linked-list programming. DMA executes LLIn-1 transfer, loads LLIn, triggers a transfer complete interrupt, CPU builds LLIn' and LLIn+1' in memory, writes DMA_CxBR1.BNDT = 0 and DMA_CxLLR to point to LLIn', enables DMA channel, which then loads LLIn', signals interrupt, CPU enables DMA channel again, and DMA executes LLIn+1' data transfer and loads LLIn+1'.

LSM = 1 with 1-stage linked-list programming:
Overwriting the (pre)loaded LLIn linked-list register file with a new LLIn' and LLIn+1' in memory and overwrite partly linked-list register file
(DMA_CxBR1.BNDT = 0 and DMA_CxLLR to point to new LLIn')
DMA executes LLIn-1 and load LLIn then CPU builds (LLIn' and LLIn+1') and overwrite (BR1 and LLR)

graph TD; subgraph DMA_Channel [DMA Channel]; DMA_Exec1[Executing LLI_n-1 data transfer] --> DMA_Load1[Loading LLI_n]; DMA_Load2[Loading LLI_n'] ; DMA_Exec2[Executing LLI_n+1' data transfer] --> DMA_Load3[Loading LLI_n+1']; end; subgraph CPU [CPU]; CPU_Build[Build LLI_n' and LLI_n+1' in memory] --> CPU_Write[Write DMA_CxBR1.BNDT = 0<br>Write DMA_CxLLR to point to new LLI_n'] --> CPU_En1[Enable DMA channel]; CPU_En2[Enable DMA channel]; end; DMA_Load1 -- Transfer complete interrupt --> CPU_Build; CPU_En1 --> DMA_Load2; DMA_Load2 -- Transfer complete interrupt --> CPU_En2; CPU_En2 --> DMA_Exec2; DMA_Load3 -- Transfer complete interrupt --> CPU_End(( ));

MSv62636V1

Figure 51 illustrates the sequence between DMA Channel and CPU when LSM = 1 with 1-stage linked-list programming. DMA executes LLIn-1 transfer, loads LLIn, triggers a transfer complete interrupt, CPU builds LLIn' and LLIn+1' in memory, writes DMA_CxBR1.BNDT = 0 and DMA_CxLLR to point to LLIn', enables DMA channel, which then loads LLIn', signals interrupt, CPU enables DMA channel again, and DMA executes LLIn+1' data transfer and loads LLIn+1'.

Other software implementations exist. Meanwhile LPDMA executes the transfer from the LLIn-1 and loads a formerly elaborated LLIn from the memory (or even earlier), the software can do the following:

  1. 1. Disable the NVIC for not being interrupted by the interrupt handling.
  2. 2. Build a new LLIn' and a new LLIn+1'.
  3. 3. Enable again the NVIC for the channel interrupt (transfer complete) notification.

The software in the interrupt handler for LLIn-1 is then restricted to overwrite LPDMA_CxBR1.BNDT[15:0] to be null and LPDMA_CxLLR to point to new LLIn', as shown in Figure 52.

Figure 52. Replace with a new LLIn' and LLIn+1' in memory in link step mode (option 2)

Flowchart showing the process of replacing LLI entries in memory while the DMA is executing. It details the interaction between the DMA channel and the CPU across three stages: LLI_{n-1} transfer, LLI_n' transfer, and LLI_{n+1'} transfer. The CPU disables interrupts, builds new LLI entries, enables interrupts, and updates the BNDT and CxLLR registers as the DMA progresses.

LSM = 1 with 1-stage linked-list programming:
Overwriting the (pre)loaded LLIn linked-list register file by building new LLIn' and LLIn+1' in memory while disabling (temporary) channel interrupt at NVIC level, and overwriting DMA_CxBR1.BNDT = 0 and DMA_CxLLR to point to new LLIn'
DMA executes LLIn-1 and loading LLIn while CPU builds (LLIn' and LLIn+1'), then CPU overwrites (BR1 and LLR)

    graph TD
        subgraph DMA_channel [DMA channel]
            D1[Executing LLI_{n-1} data transfer] --> D2[Loading LLI_n]
            D2 -- "Transfer complete interrupt" --> C2[Enable DMA channel]
            D3[Loading LLI_{n'}] --> D4[Executing LLI_{n+1'} data transfer]
            D4 --> D5[Loading LLI_{n+1'}]
            D5 -- "Transfer complete interrupt" --> C5[ ]
        end

        subgraph CPU [CPU]
            C1[Disable NVIC DMA irq channel] --> C2[Build LLI_{n'} & LLI_{n+1'} in memory]
            C2 --> C3[Enable NVIC DMA irq channel]
            C3 --> C4[Write DMA_CxBR1.BNDT = 0
Write DMA_CxLLR to point to new LLI_{n'}] C4 --> C5[Enable DMA channel] C5 --> C6[ ] end D2 -- "Transfer complete interrupt" --> C4 D3 -- "Transfer complete interrupt" --> C6

MSv62637V1

Flowchart showing the process of replacing LLI entries in memory while the DMA is executing. It details the interaction between the DMA channel and the CPU across three stages: LLI_{n-1} transfer, LLI_n' transfer, and LLI_{n+1'} transfer. The CPU disables interrupts, builds new LLI entries, enables interrupts, and updates the BNDT and CxLLR registers as the DMA progresses.

14.4.9 LPDMA channel state and linked-list programming

The software can reconfigure a channel when the channel is disabled (LPDMA_CxCR.EN = 0) and update the execution mode (LPDMA_CxCR.LSM) to change from/to run-to-completion mode to/from link step mode.

In any execution mode, the software can:

In link step mode, the software can clear LSM after each a single execution of any LLI, during \(LLI_{n-1}\).

Figure 53 shows the overall and unified LPDMA linked-list programming, whatever is the execution mode.

Note: Figure 53 is not intended to illustrate how often a TCEF can be raised, depending on the programmed value of TCEM[1:0] in LPDMA_CxTR2. It can be raised at (each) block completion, at (each) 2D block completion, at (each) LLI completion, or only at the last LLI data transfer completion. In run-to-completion mode, whatever is the value of TCEM[1:0], at the channel completion the hardware always set TCEF = 1 and disables the channel. In link step mode, the channel is disabled after each single execution of a LLI, and depending on the value of TCEM[1:0] a TCEF is raised or not.

In Figure 53, BNDT ≠ 0 is the typical condition for starting the first data transfer. This condition becomes (BNDT ≠ 0 and PFREQ = 1) if the peripheral requests a data transfer with early termination (see Section 14.3.6).

Figure 53. LPDMA channel execution and linked-list programming

Flowchart showing LPDMA channel execution and linked-list programming. It starts with 'Channel state = Idle', proceeds to 'Initialize DMA channel' and 'Enable DMA channel'. Then it enters 'Channel state = Active' where it checks 'Valid user setting?'. If 'N', it sets USEF=1 and disables the channel. If 'Y', it checks 'BNDT ≠ 0?'. If 'N', it sets DTEF=1 and disables the channel. If 'Y', it executes data transfer, checks for errors, and loads the next LLI. The process continues through various error checks (No transfer error, Valid user setting, LSM=1) and disables the channel if any condition is met, or loops back to execute the next transfer.
graph TD; subgraph Idle ["Channel state = Idle"]; Init[Initialize DMA channel]; Enable[Enable DMA channel]; Reconfig[Reconfigure DMA channel]; EndIdle(( )); Init --> Enable; Enable --> Active; Reconfig --> Enable; end; subgraph Active ["Channel state = Active"]; ValidUser{Valid user setting?}; BNDT{BNDT ≠ 0?}; Execute[Executing once the data transfer from the register file]; NoError1{No transfer error?}; LLR{LLR ≠ 0?}; LoadLLI[Loading next LLI into the register file]; NoError2{No transfer error?}; ValidUser2{Valid user setting?}; LSM{LSM = 1?}; SetUSEF1_1[Setting USEF = 1
Disabling DMA channel]; SetDTEF1[Setting DTEF = 1
Disabling DMA channel]; SetULEF1[Setting ULEF = 1
Disabling DMA channel]; SetUSEF1_2[Setting USEF = 1
Disabling DMA channel]; SetTCF1[Setting TCF = 1
Disabling DMA channel]; EndActive(( )); ValidUser -- Y --> BNDT; ValidUser -- N --> SetUSEF1_1; BNDT -- Y --> Execute; BNDT -- N --> SetDTEF1; Execute --> NoError1; NoError1 -- Y --> LLR; NoError1 -- N --> SetDTEF1; LLR -- Y --> LoadLLI; LLR -- N --> SetTCF1; LoadLLI --> NoError2; NoError2 -- Y --> ValidUser2; NoError2 -- N --> SetULEF1; ValidUser2 -- Y --> LSM; ValidUser2 -- N --> SetUSEF1_2; LSM -- Y --> SetTCF1; LSM -- N --> Execute; SetTCF1 --> EndActive; SetDTEF1 --> EndActive; SetULEF1 --> EndActive; SetUSEF1_1 --> EndActive; SetUSEF1_2 --> EndActive; end; EndIdle --> Reconfig; EndActive --> EndIdle;
Flowchart showing LPDMA channel execution and linked-list programming. It starts with 'Channel state = Idle', proceeds to 'Initialize DMA channel' and 'Enable DMA channel'. Then it enters 'Channel state = Active' where it checks 'Valid user setting?'. If 'N', it sets USEF=1 and disables the channel. If 'Y', it checks 'BNDT ≠ 0?'. If 'N', it sets DTEF=1 and disables the channel. If 'Y', it executes data transfer, checks for errors, and loads the next LLI. The process continues through various error checks (No transfer error, Valid user setting, LSM=1) and disables the channel if any condition is met, or loops back to execute the next transfer.

MSv62638V1

14.4.10 LPDMA direct transfers

There is a single transfer operation mode called the direct mode. Any LPDMA channel is used in direct mode. Any channel is implemented without any FIFO (for every channel x, dma_fifo_size[x] = 0).

LPDMA single

A programmed transfer at the lowest level is called a LPDMA single.

A LPDMA single data width is 1, 2 or 4 bytes, as defined by the SDW_LOG2[1:0] and DDW_LOG2[1:0] fields of LPDMA_CxTR1(respectively for source and destination).

Note: The user must not assign a 8-byte data width (SDW_LOG2[1:0] = 0b11 or DDW_LOG2[1:0] = 0b11) else a user setting is reported and no transfer is issued.

The addressing mode after each data of a LPDMA single is defined by the SINC and DINC bits of LPDMA_CxTR1(respectively for source and destination): either a fixed addressing or an incremented addressing with contiguous data.

The start and next addresses of a LPDMA source/destination single (defined by LPDMA_CxSAR and LPDMA_CxDAR) must be aligned with the respective data width.

The table below lists the main characteristics of a LPDMA single.

The next single address in the table is the next source/destination address, pointed by LPDMA_CxSAR and LPDMA_CxDAR, once the programmed source/destination single is completed.

Table 95. Programmed LPDMA source/destination single

Programmed LPDMA source/destination singleSDW_LOG2[1:0]
DDW_LOG2[1:0]
Data width (bytes)SINC/
DINC
Addressing modeSAR/DAR next single addressAddress alignment
Fixed byte single0010Fixed+01
Fixed half-word single0122
Fixed word single1044
Incremented byte single0011Incremented+11
Incremented half-word single012+22
Incremented word single104+44
Forbidden11Causes USEF generation and none single to be issued.

In direct mode, a LPDMA single is an AHB single transfer.

LPDMA data handling: byte-based padding/truncation, sign extension and left/right alignment

The user can configure some data manipulation between a transferred data from the source and its transfer to the destination. Data handling is controlled by the LPDMA_CxTR1 register:

There is no data manipulation between two distinct transferred data from the source, before the generation of the destination transfer.

The table below lists possible data handling from the source to the destination.

Table 96. Programmed data handling

RM0522 register: • • – – SDW_ Source LOG2[1:0] dataSource data stream(1)column_3DDW_ LOG2[1:0]column_5Destination datacolumn_7PAM[0]column_9Destination data stream(1)column_11column_12column_13column_14column_15column_16column_17column_18
00BytexB7,B6,B5,B4,B3,B2,B1,B0
0 (RA, 0P)(2)(3)0B3,0B2,0B1,0B0
00 ByteB7,B6,B5,B4, B3,B2,B1,B01 (RA, SE)(2)(4)SB3,SB2,SB1,SB0
0 (RA, 0P)000B1,000B0
1 (RA, SE)SSSB1,SSSB0
0 (RA, LT)(2)B6,B4,B2,B0
1 (LA, RT)(2)B7,B5,B3,B1
01 Half-wordB7B6,B5B4,
01Half-wordxxB7B6,B5B4,B3B2,B1B0
0 (RA, 0P)00B3B2,00B1B0
1 (RA, SE)SSB3B2,SSB1B0
0 (RA, LT)B12,B8,B4,B0
1 (LA, RT)B15,B11,B7,B3
10 WordB7B6B5B4,
Half-word0 (RA, LT)B5B4,B1B0
B3B2B1B0 B3B2B1B001
1 (LA, RT)B7B6,B3B2 B7B6,B3B2
10xxB7B6B5B4,B3B2B1B0
  1. 1. Data stream is timely ordered starting from the byte with the lowest index a.k.a B0.
  2. 2. RA = right aligned. LA = left aligned. RT= right truncated. LT = left truncated.
  3. 3. 0P = zero bit padding up to the destination data width.
  4. 4. SE = sign bit extended up to the destination data width.

14.4.11 LPDMA transfer request and arbitration

LPDMA transfer request

As defined by LPDMA_CxTR2, a programmed LPDMA data transfer is requested with one of the following:

Caution: The user must not assign a same input hardware peripheral LPDMA request via LPDMA_CxTR.REQSEL[6:0] to two different channel if at a given time this request is asserted by the peripheral and each channel is ready to execute this requested data transfer. There is no user setting error reporting.

LPDMA transfer request for arbitration

For a given channel, a LPDMA requested data transfer from the source address to the destination address is arbitrated versus simultaneous requested LPDMA transfers from other channels, in order to be scheduled over the AHB master port. A LPDMA data transfer is atomic to the LPDMA arbitration: it consists of an AHB read single, immediately followed by an AHB write single. It is granted by the arbiter once for both AHB transfers, based on the channel priority defined by LPDMA_CxCR.PRIO[1:0].

An arbitrated LPDMA requested link transfer consists of one 32-bit read from the linked-list data structure in the memory to one of the linked-list registers (LPDMA_CxTR1, LPDMA_CxTR2, LPDMA_CxBR1, LPDMA_CxSAR, LPDMA_CxDAR or LPDMA_CxLLR). Each 32-bit read from the memory is arbitrated with the same channel priority as for data transfers, in order to be scheduled over the master port.

The re arbitration occurs after each granted single transfer:

When the requested data transfer is programmed with a hardware request from a peripheral (LPDMA_CxTR2.SWREQ = 0), the first memory read of a block is gated by the occurrence of the corresponding and selected hardware request, whatever the peripheral is source or destination of the transfer. This first read request to the memory is not taken into account earlier by the arbiter (not as soon as the block transfer is enabled and executable).

LPDMA arbitration

The LPDMA arbitration is directed from the 4-grade assigned channel priority (LPDMA_CxCR.PRIO[1:0]). The arbitration policy, as illustrated in Figure 54, is defined by:

Each requested single transfer within this class is round-robin arbitrated, with a weight that is monotonically driven from the programmed priority:

Figure 54. LPDMA arbitration policy

Block diagram of LPDMA arbitration policy showing request paths from channels with priorities 0, 1, 2, and 3 into queues 0, 1, 2, and 3 respectively. Queues 0, 1, and 2 feed into a Round-Robin Arbitration (RRA) block, which then feeds into a Fixed-Priority Arbitration (FPA) block. Queue 3 also feeds into the FPA block. The FPA block outputs a 'Granted request'.

The diagram illustrates the LPDMA arbitration policy. On the left, four input paths represent requests from any channel x assigned with LPDMA_CxCR.PRIO = 0, 1, 2, and 3. These paths lead to four queues: Queue 0, Queue 1, Queue 2, and Queue 3. Queues 0, 1, and 2 are connected to a Round-Robin Arbitration (RRA) block. The output of the RRA block is connected to a Fixed-Priority Arbitration (FPA) block. Queue 3 is also connected directly to the FPA block. The FPA block outputs a 'Granted request'. A legend at the bottom left states: RRA = round-robin arbitration, FPA = fixed-priority arbitration. The diagram is labeled 'LPDMA arbitration' and has a version number 'MSv62639V1' at the bottom right.

Block diagram of LPDMA arbitration policy showing request paths from channels with priorities 0, 1, 2, and 3 into queues 0, 1, 2, and 3 respectively. Queues 0, 1, and 2 feed into a Round-Robin Arbitration (RRA) block, which then feeds into a Fixed-Priority Arbitration (FPA) block. Queue 3 also feeds into the FPA block. The FPA block outputs a 'Granted request'.
  1. 1. RRA: round-robin arbitration
  2. 2. FPA: fixed-priority arbitration

LPDMA arbitration and bandwidth

With this arbitration policy, the following is guaranteed:

The two following examples highlight that the weighted round-robin arbitration is driven by the programmed priorities:

\[B_{req0} = B_{req1} = 1/2 * (1 - B_{Q3})\]

\[B_{req0} = B_{P0} = 1/2 * 1/2 * (1 - B_{Q3}) = 1/4 * (1 - B_{Q3})\]

\[B_{req1} = B_{P1} = (1/2 + 1) * 1/2 * (1 - B_{Q3}) = 3/4 * (1 - B_{Q3})\]

\[B_{req0} = B_{P0} = 1/2 * 1/3 * (1 - B_{Q3}) = 1/6 * (1 - B_{Q3})\]

\[B_{req1} = B_{P2} = (1/2 + 1 + 1) * 1/3 * (1 - B_{Q3}) = 5/6 * (1 - B_{Q3})\]

The above computed bandwidth calculation is based on a theoretical input request, always active for any LPDMA clock cycle. This computed bandwidth from the arbiter must be weighted by the frequency of the request given by the application, that cannot be always active and may be quite much variable from one LPDMA client (example I2C at 400 kHz) to another one (PWM at 1 kHz) than the above x3 and x5 ratios.

\[B_{P0} = 1/3 * 1/3 * (1 - B_{Q3}) = 1/9 * (1 - B_{Q3})\]

\[B_{P1} = (1/3 + 1/2) * 1/3 * (1 - B_{Q3}) = 5/18 * (1 - B_{Q3})\]

\[B_{P2} = (1/3 + 1/2 + 1) * 1/3 * (1 - B_{Q3}) = 11/18 * (1 - B_{Q3})\]

\[B_{n, P0} = 1/N * 1/9 * (1 - B_{Q3})\]

\[B_{n, P1} = 1/N * 5/18 * (1 - B_{Q3})\]

\[B_{n, P2} = 1/N * 11/18 * (1 - B_{Q3})\]

In this example, when the master port bus bandwidth is not totally consumed by the time-sensitive queue 3, the residual bandwidth is such that 2.5 times less bandwidth is allocated to any request of priority 0 versus priority 1, and 5.5 times less bandwidth is allocated to any request of priority 0 versus priority 2.

More generally, assume that the following requests are present:

As \(B_{Q3}\) is the reserved bandwidth to time-sensitive requests, the bandwidth for each request L with priority 3 is:

The bandwidth for each non-time sensitive queue is:

The bandwidth for the set of requests with priority 0 is:

The bandwidth for each request i with priority 0 is:

The bandwidth for the set of requests with priority 1 and routed to queue 0 is:

The bandwidth for the set of requests with priority 1 and routed to queue 1 is:

The total bandwidth for the set of requests with priority 1 is:

The bandwidth for each request j with priority 1 is:

The bandwidth for the set of requests with priority 2 and routed to queue 0 is:

The bandwidth for the set of requests with priority 2 and routed to queue 1 is:

The bandwidth for the set of requests with priority 2 and routed to queue 2 is:

The total bandwidth for the set of requests with priority 2 is:

The bandwidth for each request k with priority 2 is:

Thus finally the maximum allocated residual bandwidths for any i,j,k non-time sensitive request are:

Consequently, the LPDMA arbiter can be used as a programmable weighted bandwidth limiter, for each queue and more generally for each request/channel. The different weights are monotonically resulting from the programmed channel priorities.

14.4.12 LPDMA triggered transfer

A programmed LPDMA transfer can be triggered by a rising/falling edge of a selected input trigger event, as defined by LPDMA_CxTR2.TRIGPOL[1:0] and LPDMA_CxTR2.TRIGSEL[5:0] (see Section 14.3.7 for the trigger selection).

The triggered transfer, as defined by the trigger mode in LPDMA_CxTR2.TRIGM[1:0], can be at LLI data transfer level, to condition the first single read of a block, or each programmed single read. The trigger mode can also be programmed to condition the LLI link transfer (see the TRIGM[1:0] description in LPDMA channel x transfer register 2 (LPDMA_CxTR2) for more details).

Trigger hit memorization and trigger overrun flag generation

The LPDMA monitoring of a trigger for a channel x is started when the channel is enabled/loaded with a new active trigger configuration: rising or falling edge on a selected trigger (respectively TRIGPOL[1:0] = 01 or TRIGPOL[1:0] = 10).

The monitoring of this trigger is kept active during the triggered and uncompleted (data or link) transfer. If a new trigger is detected, this hit is internally memorized to grant the next transfer, as long as the defined rising/falling edge and TRIGSEL[5:0] are not modified, and the channel is enabled.

Transferring a next LLIn+1, that updates the LPDMA_CxTR2 with a new value for any of TRIGSEL[5:0] or TRIGPOL[1:0], resets the monitoring, trashing the possible memorized hit of the formerly defined LLIn trigger.

Caution: After a first new trigger hitn+1 is memorized, if another trigger hitn+2 is detected and if the hitn triggered transfer is still not completed, hitn+2 is lost and not memorized. A trigger overrun flag is reported (LPDMA_CxSR.TOF = 1) and an interrupt is generated if enabled (if LPDMA_CxCR.TOIE = 1). The channel is not automatically disabled by hardware due to a trigger overrun.

The figure below illustrates the trigger hit, memorization and overrun in the configuration example with a block-level trigger mode and a rising edge trigger polarity.

Figure 55. Trigger hit, memorization and overrun waveform

Figure 55: Trigger hit, memorization and overrun waveform. This diagram shows the timing relationship between Channel state, Trigger, Peripheral request, DMA transfer, Trigger monitoring state, Trigger monitoring action, and Trigger overrun. The Channel state transitions from IDLE to ACTIVE. The Trigger signal shows four rising edge pulses. The Peripheral request signal shows three bursts of activity. The DMA transfer signal shows three 'block transfer' periods. The Trigger monitoring state shows 'Idle', 'Active (monitoring)', and several 'Active' periods. The Trigger monitoring action shows 'Hit and fire', 'Hit and memorize', 'Fire', 'Hit and memorize', 'Hit and trash', and 'Fire'. The Trigger overrun signal shows a single pulse. A legend at the bottom identifies the colors: pink for 'Hit and trash', green for 'Hit and fire (or fire alone)', and yellow for 'Hit and memorize'. The reference code MSv66923V1 is in the bottom right corner.
Figure 55: Trigger hit, memorization and overrun waveform. This diagram shows the timing relationship between Channel state, Trigger, Peripheral request, DMA transfer, Trigger monitoring state, Trigger monitoring action, and Trigger overrun. The Channel state transitions from IDLE to ACTIVE. The Trigger signal shows four rising edge pulses. The Peripheral request signal shows three bursts of activity. The DMA transfer signal shows three 'block transfer' periods. The Trigger monitoring state shows 'Idle', 'Active (monitoring)', and several 'Active' periods. The Trigger monitoring action shows 'Hit and fire', 'Hit and memorize', 'Fire', 'Hit and memorize', 'Hit and trash', and 'Fire'. The Trigger overrun signal shows a single pulse. A legend at the bottom identifies the colors: pink for 'Hit and trash', green for 'Hit and fire (or fire alone)', and yellow for 'Hit and memorize'. The reference code MSv66923V1 is in the bottom right corner.

Note: The user can assign the same input trigger event to different channels. This can be used to trigger different channels on a broadcast trigger event.

14.4.13 LPDMA circular buffering with linked-list programming

LPDMA circular buffering for memory-to-peripheral and peripheral-to-memory transfers

For a circular buffering, with a continuous memory-to-peripheral (or peripheral-to-memory) transfer, the software must set up a channel with half-transfer and complete transfer events/interrupts generation (LPDMA_CxCR.HTIE = 1 and LPDMA_CxCR.TCIE = 1), in order to enable a concurrent buffer software processing.

LLI0 is configured for the first block transfer. A continuously-executed LLI1 is needed to restore the memory source (or destination) start address, for the memory-to-peripheral transfer (respectively the peripheral-to-memory transfer). LPDMA automatically reloads the initially programmed LPDMA_CxBR1.BNDT[15:0] when a block transfer is completed, and there is no need to restore LPDMA_CxBR1.

The figure below illustrates this programming with a LPDMA channel and a source circular buffer.

Figure 56. LPDMA circular buffer programming: update of the memory start address

Diagram of LPDMA circular buffer programming showing the flow from a Linked-list register file to a Memory block, with control signals and state transitions.

The diagram illustrates the LPDMA circular buffer programming process. At the top, a block labeled 'Channel x' contains two states: 'Init/LLI0' and 'Restore SAR/LLI1'. A 'Reset' signal enters the 'Init/LLI0' state. Two 'Req=PERIPH_TX' signals enter the 'Init/LLI0' state. A transition from 'Init/LLI0' to 'Restore SAR/LLI1' is labeled 'Ht+ tcf'. A transition from 'Restore SAR/LLI1' back to 'Init/LLI0' is also labeled 'Ht+ tcf'. Below this, a 'Linked-list register file' contains a block 'LLI0' with registers: DMA_CxTR1, DMA_CxTR2, DMA_CxBR1, DMA_CxSAR, DMA_CxDAR, and DMA_CxLLR. A 'Memory' block contains a block 'LLI1' with register DMA_CxSAR. A line connects 'DMA_CxLLR' from 'LLI0' to 'LLI1' in 'Memory'. This connection is labeled with conditions: 'CxLBA (LA = 0)', 'USA = 1', and 'others Uxx = 0'. The diagram is labeled 'MSv62640V1' in the bottom right corner.

Diagram of LPDMA circular buffer programming showing the flow from a Linked-list register file to a Memory block, with control signals and state transitions.

If circular buffering must be executed after some other transfers over the shared LPDMA channel x, the before-last LLIN-1 in memory is needed to configure the first block transfer. And the last LLIN restores the memory source (or destination) start address in memory-to-peripheral transfer (respectively in peripheral-to-memory transfer).

The figure below illustrates this programming with a shared LPDMA channel, and a source circular buffer.

Figure 57. Shared LPDMA channel with circular buffering:
update of the memory start address

Diagram illustrating the shared LPDMA channel with circular buffering and update of the memory start address. The diagram shows a sequence of LLI (Link List Item) blocks: Init/LLI0, LLI1, ..., LLI_{N-1}, LLI_N. A 'Reset' input is shown for the Init/LLI0 block. Arrows labeled 'Req=PERIPH_TX' point to LLI_{N-1} and LLI_N. Arrows labeled 'Ht+ tcf' point from LLI_{N-1} and LLI_N to a 'Memory' block. The 'Memory' block contains two LLI blocks: LLI_{N-2} and LLI_{N-1}. LLI_{N-2} contains DMA_Cx..., DMA_Cx..., DMA_Cx..., and DMA_CxLLR. LLI_{N-1} contains DMA_CxTR1, DMA_CxTR2, DMA_CxBR1, DMA_CxSAR, DMA_CxDAR, and DMA_CxLLR. A 'LLI_N' block points to the DMA_CxSAR register in LLI_{N-1}. A note at the bottom right states 'USA = 1, others Uxx = 0 LA+ = 0xC' and 'MSv62641V1'.
Diagram illustrating the shared LPDMA channel with circular buffering and update of the memory start address. The diagram shows a sequence of LLI (Link List Item) blocks: Init/LLI0, LLI1, ..., LLI_{N-1}, LLI_N. A 'Reset' input is shown for the Init/LLI0 block. Arrows labeled 'Req=PERIPH_TX' point to LLI_{N-1} and LLI_N. Arrows labeled 'Ht+ tcf' point from LLI_{N-1} and LLI_N to a 'Memory' block. The 'Memory' block contains two LLI blocks: LLI_{N-2} and LLI_{N-1}. LLI_{N-2} contains DMA_Cx..., DMA_Cx..., DMA_Cx..., and DMA_CxLLR. LLI_{N-1} contains DMA_CxTR1, DMA_CxTR2, DMA_CxBR1, DMA_CxSAR, DMA_CxDAR, and DMA_CxLLR. A 'LLI_N' block points to the DMA_CxSAR register in LLI_{N-1}. A note at the bottom right states 'USA = 1, others Uxx = 0 LA+ = 0xC' and 'MSv62641V1'.

14.4.14 LPDMA transfer in peripheral flow-control mode

A peripheral with the peripheral flow-control mode feature can decide to early terminate an LPDMA block transfer, provided that the allocated channel is implemented with this feature (see Section 14.3.6).

If the related LPDMA channel x is also programmed in peripheral flow-control mode (LPDMA_CxTR2.PFREQ = 1):

14.4.15 LPDMA privileged/unprivileged channel

Any channel x is a privileged or unprivileged hardware resource, as configured by a privileged agent via LPDMA_PRIVCFGR.PRIVx.

When a channel x is configured in a privileged state by a privileged agent, the following access control rules are applied:

When a channel is configured in a privileged (or unprivileged) state, the source and destination data transfers are privileged (respectively unprivileged) transfers over the AHB master port.

When a channel is configured in a privileged (or unprivileged) state and in linked-list mode, the loading of the next linked-list data structure from the LPDMA memory into its register file, is automatically performed with privileged (respectively unprivileged) transfers, via the master port.

LPDMA generates a DMA channel state versus privilege, reflecting LPDMA_PRIVCFGR, to keep the other peripherals informed of the privileged/unprivileged state of each DMA channel x.

Additionally, the LPDMA generates the privileged illegal access pulse signal on an illegal unprivileged access to a privileged LPDMA register. This signal may be used or not, depending on the product (see the system security section for more details).

When the privileged software must switch a channel from a privileged state to an unprivileged state, the privileged software must abort the channel or wait until that the privileged channel is completed before switching. This is needed to dynamically re-allocate a channel to a next unprivileged transfer as an unprivileged software is not allowed to do so, and must have LPDMA_CxCR.EN = 0 before the unprivileged software can reprogram the LPDMA_CxCR for a next transfer. The privileged software may reset not only the channel x (LPDMA_CxCR.RESET = 1) but also the full channel x register file to its reset value.

14.4.16 LPDMA error management

LPDMA is able to manage and report to the user a transfer error, as follows, depending on the root cause.

Data transfer error

On a bus access (as a AHB single) to the source or the destination:

On a tentative update of a LPDMA channel register from the programmed LLI in the memory:

User setting error

On a tentative execution of a LPDMA transfer with an unauthorized user setting:

14.5 LPDMA in debug mode

When the microcontroller enters debug mode (core halted), any channel x can be individually either continued (default) or suspended, depending on the programmable control bit in the DBGMCU module.

Note: In debug mode, LPDMA_CxSR.SUSPF is not altered by a suspension from the programmable control bit in the DBGMCU module. In this case, LPDMA_CxSR.IDLEF can be checked to know the completion status of the channel suspension.

14.6 LPDMA in low-power modes

Table 97. Effect of low-power modes on LPDMA

ModeDescription
SleepNo effect. LPDMA interrupts cause the device to exit Sleep mode.
Stop(1)The content of the LPDMA registers is kept when entering Stop mode.
StandbyThe LPDMA is powered down and must be reinitialized after exiting Standby mode.

1. Refer to Section 14.3.3 to know which Stop mode is supported.

14.7 LPDMA interrupts

There is one LPDMA interrupt line for each channel, and separately for each CPU (if several ones in the devices).

Table 98. LPDMA interrupt requests

Interrupt acronymInterrupt eventInterrupt enableEvent flagEvent clear method
LPDMA_CHxTransfer completeLPDMA_CxCR.TCIELPDMA_CxSR.TCFWrite 1 to LPDMA_CxFCR.TCF
Half transferLPDMA_CxCR.HTIELPDMA_CxSR.HTFWrite 1 to LPDMA_CxFCR.HTF
Data transfer errorLPDMA_CxCR.DTEIELPDMA_CxSR.DTEFWrite 1 to LPDMA_CxFCR.DTEF
Update link errorLPDMA_CxCR.ULEIELPDMA_CxSR.ULEFWrite 1 to LPDMA_CxFCR.ULEF
User setting errorLPDMA_CxCR.USEIELPDMA_CxSR.USEFWrite 1 to LPDMA_CxFCR.USEF
SuspendedLPDMA_CxCR.SUSPIELPDMA_CxSR.SUSPFWrite 1 to LPDMA_CxFCR.SUSPF
Trigger overrunLPDMA_CxCR.TOFIELPDMA_CxSR.TOFWrite 1 to LPDMA_CxFCR.TOF

A LPDMA channel x event may be:

Note: When a channel x transfer complete event occurs, the output signal lpdma_chx_tc is generated as a high pulse of one clock cycle.

An interrupt is generated following any xx event, provided that both:

TCF (transfer complete) and HTF (half transfer) events generation is controlled by LPDMA_CxTR2.TCEM[1:0] as follows:

See LPDMA channel x transfer register 2 (LPDMA_CxTR2) for more details.

A transfer error rises in one of the following situations:

A trigger overrun is described in Trigger hit memorization and trigger overrun flag generation.

14.8 LPDMA registers

The LPDMA registers must be accessed with an aligned 32-bit word data access.

14.8.1 LPDMA privileged configuration register (LPDMA_PRIVCFGR)

Address offset: 0x004

Reset value: 0x0000 0000

A write access to this register must be privileged. A read access can be privileged or unprivileged.

A write access is ignored at bit level if the corresponding channel x is locked (LPDMA_RCFGLOCKR.LOCKx = 1).

This register must be written when LPDMA_CxCR.EN = 0.

This register is read-only when LPDMA_CxCR.EN = 1.

This register must be programmed at a bit level, at the initialization/closure of a LPDMA channel (LPDMA_CxCR.EN = 0), to individually allocate any channel x to the privileged or unprivileged world.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.PRIV7PRIV6PRIV5PRIV4PRIV3PRIV2PRIV1PRIV0
rwrwrwrwrwrwrwrw

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 PRIVx: privileged state of channel x (x = 7 to 0)
0: unprivileged
1: privileged

ST logo
ST logo

14.8.2 LPDMA configuration lock register (LPDMA_RCFGLOCKR)

Address offset: 0x008

Reset value: 0x0000 0000

This register can be written by a software agent with privileged attribute in order to individually lock, for example at boot time, the privileged attributes of any DMA channel/resource (to lock the setting of LPDMA_PRIVCFGR for any channel x, for example at boot time).

A read access may be privileged or unprivileged.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.LOCK7LOCK6LOCK5LOCK4LOCK3LOCK2LOCK1LOCK0
rsrsrsrsrsrsrsrs

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 LOCKx: lock the configuration of LPDMA_PRIVCFGR.PRIVx until a global DMA reset (x = 7 to 0)

This bit is cleared after reset and, once set, it cannot be reset until a global DMA reset.

0: privilege configuration of the channel x is writable.

1: privilege configuration of the channel x is not writable.

14.8.3 LPDMA masked interrupt status register (LPDMA_MISR)

Address offset: 0x00C

Reset value: 0x0000 0000

This is a read register.

A masked interrupt status bit MISx is asserted by hardware for each channel x. It is a logical OR of all the LPDMA_CxSR flags, each source flag being enabled by the corresponding LPDMA_CxCR interrupt enable bit.

Every bit is de-asserted by hardware when writing 1 to the corresponding LPDMA_CxFCR flag clear bit.

This register can mix privileged and unprivileged information, depending on the privileged state of each channel LPDMA_PRIVCFGR.PRIVx. A privileged software can read the full interrupt status. An unprivileged software is restricted to read the status of unprivileged channels, other privileged bit fields returning zero.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.MIS7MIS6MIS5MIS4MIS3MIS2MIS1MIS0
rrrrrrrr

Bits 31:8 Reserved, must be kept at reset value.

Bits 7:0 MISx: masked interrupt status of channel x (x = 7 to 0)

0: no interrupt occurred on channel x

1: an interrupt occurred on channel x

14.8.4 LPDMA channel x linked-list base address register (LPDMA_CxLBAR)

Address offset: 0x050+0x80*x (x = 0 to 7)

Reset value: 0x0000 0000

This register must be written by a privileged software. It is either privileged readable or not, depending on the privileged state of the channel x LPDMA_PRIVCFGR.PRIVx.

This register must be written when LPDMA_CxCR.EN = 0.

This register is read-only when LPDMA_CxCR.EN = 1.

This channel-based register is the linked-list base address of the memory region, for a given channel x, from which the LLIs describing the programmed sequence of the LPDMA transfers, are conditionally and automatically updated.

This 64-Kbyte aligned channel x linked-list base address is offset by the 16-bit LPDMA_CxLLR register that defines the word-aligned address offset for each LLI.

31302928272625242322212019181716
LBA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.

Bits 31:16 LBA[31:16]: linked-list base address of LPDMA channel x

Bits 15:0 Reserved, must be kept at reset value.

14.8.5 LPDMA channel x flag clear register (LPDMA_CxFCR)

Address offset: 0x05C+0x80*x (x = 0 to 7)

Reset value: 0x0000 0000

This is a write register privileged or unprivileged, depending on the privileged state of the channel x (LPDMA_PRIVCFGR.PRIVx).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.TOFSUSPFUSEFULEFDTEFHTFTCFRes.Res.Res.Res.Res.Res.Res.Res.
wwwwwww

Bits 31:15 Reserved, must be kept at reset value.

14.8.6 LPDMA channel x status register (LPDMA_CxSR)

Address offset: 0x060+0x80*x (x = 0 to 7)

Reset value: 0x0000 0001

This is a read register, reporting the channel status.

This register is privileged or unprivileged, depending on the privileged state of the channel (LPDMA_PRIVCFGR.PRIVx).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.TOFSUSPFUSEFULEFDTEFHTFTCFRes.Res.Res.Res.Res.Res.Res.IDLEF
rrrrrrrr

Bits 31:15 Reserved, must be kept at reset value.

14.8.7 LPDMA channel x control register (LPDMA_CxCR)

Address offset: 0x64+0x80*x (x = 0 to 7)

Reset value: 0x0000 0000

This register is privileged or unprivileged, depending on the privileged state of the channel x (LPDMA_PRIVCFGR.PRIVx).

This register is used to control a channel (activate, suspend, abort or disable it).

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.PRIO[1:0]Res.Res.Res.Res.Res.LSM
rwrwrw
1514131211109876543210
Res.TOIESUSPIEUSEIEULEIEDTEIEHTIETCIERes.Res.Res.Res.Res.SUSPRESETEN
rwrwrwrwrwrwrwrwwrw

Bits 31:24 Reserved, must be kept at reset value.

Bits 23:22 PRIO[1:0]: priority level of the channel x LPDMA transfer versus others

Note: This bit must be written when EN = 0. This bit is read-only when EN = 1.

Bits 21:17 Reserved, must be kept at reset value.

Bit 16 LSM: Link step mode

Note: This bit must be written when EN = 0. This bit is read-only when EN = 1.

Bit 15 Reserved, must be kept at reset value.

Bit 14 TOIE: trigger overrun interrupt enable

Bit 13 SUSPIE: completed suspension interrupt enable

Bit 12 USEIE: user setting error interrupt enable

Bit 11 ULEIE: update link transfer error interrupt enable

Bit 10 DTEIE: data transfer error interrupt enable

Bit 9 HTIE: half-transfer complete interrupt enable

Bit 8 TCIE: transfer complete interrupt enable

Bits 7:3 Reserved, must be kept at reset value.

Bit 2 SUSP: suspend

Writing 1 into the field RESET (bit 1) causes the hardware to de-assert this bit, whatever is written into this bit 2. Else:

Software must write 1 in order to suspend an active channel (with an ongoing DMA transfer over its master ports).

The software must write 0 in order to resume a suspended channel, following the programming sequence detailed in Figure 42.

0: write: resume channel, read: channel not suspended

1: write: suspend channel, read: channel suspended.

Bit 1 RESET: reset

This bit is write only. Writing 0 has no impact. Writing 1 implies the reset of the following: the channel internal state, SUSP and EN bits (whatever is written receptively in bit 2 and bit 0).

The reset is effective when the channel is in steady state, meaning one of the following:

After writing a RESET, to continue using this channel, the user must explicitly reconfigure the channel including the hardware-modified configuration registers (LPDMA_CxBR1, LPDMA_CxSAR and LPDMA_CxDAR) before enabling again the channel (see the programming sequence in Figure 43).

0: no channel reset

1: channel reset

Bit 0 EN: enable

Writing 1 into the field RESET (bit 1) causes the hardware to de-assert this bit, whatever is written into this bit 0. Else:

this bit is de-asserted by hardware when there is a transfer error (master bus error or user setting error) or when there is a channel transfer complete (channel ready to be configured, for example: if LSM = 1 at the end of a single execution of the LLI).

Else, this bit can be asserted by software.

Writing 0 into this EN bit is ignored.

0: write: ignored, read: channel disabled

1: write: enable channel, read: channel enabled

14.8.8 LPDMA channel x transfer register 1 (LPDMA_CxTR1)

Address offset: 0x090+0x80*x (x = 0 to 7)

Reset value: 0x0000 0000

This register is privileged or unprivileged, depending on the privileged state of the channel x in LPDMA_PRIVCFGR.PRIVx.

This register controls the transfer of a channel x.

This register must be written when LPDMA_CxCR.EN = 0.

This register is read-only when LPDMA_CxCR.EN = 1.

This register must be written when the channel is completed. Then the hardware has deasserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block or LLI or full linked-list.

In linked-list mode, during the link transfer, this register is automatically updated by LPDMA from the memory if LPDMA_CxLLR.UT1 = 1.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DINCRes.DDW_LOG2[1:0]
rwrwrw
1514131211109876543210
Res.Res.Res.Res.PAMRes.Res.Res.Res.Res.Res.Res.SINCRes.SDW_LOG2[1:0]
rwrwrwrw

Bit 31 Reserved, must be kept at reset value.

Bits 30:20 Reserved, must be kept at reset value.

Bit 19 DINC: destination incrementing single

0: fixed single

1: contiguously incremented single

The destination address, pointed by LPDMA_CxDAR, is kept constant after a single transfer, or is incremented by the offset value corresponding to a contiguous data after a single transfer.

Bit 18 Reserved, must be kept at reset value.

Bits 17:16 DDW_LOG2[1:0]: binary logarithm of the destination data width of a single in bytes

00: byte

01: half-word (2 bytes)

10: word (4 bytes)

11: user setting error reported and no transfer issued

Note: Setting a 8-byte data width causes a user setting error to be reported and none transfer is issued.

A destination single transfer must have an aligned address with its data width (start address LPDMA_CxDAR[2:0] versus DDW_LOG2[1:0]). Otherwise a user setting error is reported and none transfer is issued.

Bits 15:12 Reserved, must be kept at reset value.

Bit 11 PAM: padding/alignment mode

If DDW_LOG2[1:0] = SDW_LOG2[1:0]: if the data width of a single destination transfer is equal to the data width of a single source transfer, this bit is ignored.

Else, in the following enumerated values, the condition PAM_1 is when destination data width is higher than source data width, and the condition PAM_2 is when destination data width is higher than source data width.

Condition: PAM_1

0: source data is transferred as right aligned, padded with 0s up to the destination data width

1: source data is transferred as right aligned, sign extended up to the destination data width

Condition: PAM_2

0: source data is transferred as right aligned, left-truncated down to the destination data width

1: source data is transferred as left-aligned, right-truncated down to the destination data width

Bits 10:4 Reserved, must be kept at reset value.

Bit 3 SINC: source incrementing single

0: fixed single

1: contiguously incremented single

The source address, pointed by LPDMA_CxSAR, is kept constant after a single transfer or is incremented by the offset value corresponding to a contiguous data after a single transfer.

Bit 2 Reserved, must be kept at reset value.

Bits 1:0 SDW_LOG2[1:0]: binary logarithm of the source data width of a single in bytes

00: byte

01: half-word (2 bytes)

10: word (4 bytes)

11: user setting error reported and no transfer issued

Note: Setting a 8-byte data width causes a user setting error to be reported and none transfer is issued.

a source block size must be a multiple of the source data width

(LPDMA_CxBR1.BNDT[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and no transfer is issued.

A source single transfer must have an aligned address with its data width (start address LPDMA_CxSAR[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and none transfer is issued.

14.8.9 LPDMA channel x transfer register 2 (LPDMA_CxTR2)

Address offset: 0x094 + 0x80 * x (x = 0 to 7)

Reset value: 0x0000 0000

This register is privileged or unprivileged, depending on the privileged state of channel x (LPDMA_PRIVCFGR.PRIVx).

This register controls the transfer of a channel x.

This register must be written when LPDMA_CxCR.EN = 0.

This register is read-only when LPDMA_CxCR.EN = 1.

This register must be written when the channel is completed (the hardware de-asserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block or LLI or full linked-list.

In linked-list mode, during the link transfer, this register is automatically updated by LPDMA from the memory, if LPDMA_CxLLR.UT2 = 1.

31302928272625242322212019181716
TCEM[1:0]Res.Res.Res.Res.TRIGPOL[1:0]Res.Res.TRIGSEL[5:0]
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
TRIGM[1:0]Res.PFREQBREQRes.SWREQRes.Res.REQSEL[6:0]
rwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 TCEM[1:0]: transfer complete event mode

These bits define the transfer granularity for the transfer complete and half-transfer complete events generation.

00: at block level (when LPDMA_CxBR1.BNDT[15:0] = 0): the complete (and the half) transfer event is generated at the (respectively half of the) end of a block.

Note: If the initial LLI0 data transfer is null/void (directly programmed by the internal register file with LPDMA_CxBR1.BNDT[15:0] = 0), then neither the complete transfer event nor the half-transfer event is generated.

01: same as 00

10: at LLI level: the complete transfer event is generated at the end of the LLI transfer, including the update of the LLI if any. The half-transfer event is generated at the half of the LLI data transfer (the LLI data transfer being a block transfer), if any data transfer.

Note: If the initial LLI0 data transfer is null/void (i.e. directly programmed by the internal register file with LPDMA_CxBR1.BNDT[15:0] = 0), then the half-transfer event is not generated, and the transfer complete event is generated when is completed the loading of the LLI1.

11: at channel level: the complete transfer event is generated at the end of the last LLI transfer. The half-transfer event is generated at the half of the data transfer of the last LLI. The last LLI updates the link address LPDMA_CxLLR.LA[15:2] to zero and clears all the LPDMA_CxLLR update bits (UT1, UT2, UB1, USA, UDA and ULL). If the channel transfer is continuous/infinite, no event is generated.

Bits 29:26 Reserved, must be kept at reset value.

Bit 11 BREQ: block hardware request

If the channel x is activated (LPDMA_CxCR.EN asserted) with SWREQ = 1 (software request for a memory-to-memory transfer), this bit is ignored. Else:

0: the selected hardware request is driven by a peripheral with a hardware request/acknowledge protocol at a single level.

1: the selected hardware request is driven by a peripheral with a hardware request/acknowledge protocol at a block level (see Section 14.3.5).

Bit 10 Reserved, must be kept at reset value.

Bit 9 SWREQ: software request

This bit is internally taken into account when LPDMA_CxCR.EN is asserted.

0: no software request. The selected hardware request REQSEL[6:0] is taken into account.

1: software request for a memory-to-memory transfer. The default selected hardware request as per REQSEL[6:0] is ignored.

Bits 8:7 Reserved, must be kept at reset value.

Bits 6:0 REQSEL[6:0]: DMA hardware request selection

These bits are ignored if channel x is activated (LPDMA_CxCR.EN asserted) with SWREQ = 1 (software request for a memory-to-memory transfer). Else, the selected hardware request is internally taken into account as per Section 14.3.4.

Caution: The user must not assign a same input hardware request (same REQSEL[6:0] value) to different active DMA channels (LPDMA_CxCR.EN = 1 and LPDMA_CxTR2.SWREQ = 0 for these channels). DMA is not intended to hardware support the case of simultaneous enabled channels incorrectly configured with a same hardware peripheral request signal, and there is no user setting error reporting.

14.8.10 LPDMA channel x block register 1 (LPDMA_CxBR1)

Address offset: 0x098+0x80*x (x = 0 to 7)

Reset value: 0x0000 0000

This register is privileged or unprivileged, depending on the privileged state of channel x (LPDMA_PRIVCFGR.PRIVx).

This register controls the transfer of a channel x at a block level.

This register must be written when LPDMA_CxCR.EN = 0.

This register is read-only when LPDMA_CxCR.EN = 1.

This register must be written when channel x is completed (then the hardware has de-asserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block, or LLI or full linked-list.

In linked-list mode, during the link transfer:

automatically and internally restored with the programmed value for BNDT[15:0] after each execution of this final LLI

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
BNDT[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:16 Reserved, must be kept at reset value.

Bits 15:0 BNDT[15:0]: block number of data bytes to transfer from the source

Block size transferred from the source. When the channel is enabled, this field becomes read-only and is decremented, indicating the remaining number of data items in the current source block to be transferred. BNDT[15:0] is programmed in number of bytes, maximum source block size is 64 Kbytes -1.

Once the last data transfer is completed (BNDT[15:0] = 0):

Note: A non-null source block size must be a multiple of the source data width (BNDT[2:0] versus LPDMA_CxTR1.SDW_LOG2[1:0]). Else a user setting error is reported and none transfer is issued.

14.8.11 LPDMA channel x source address register (LPDMA_CxSAR)

Address offset: 0x09C+0x80*x (x = 0 to 7)

Reset value: 0x0000 0000

This register is privileged or unprivileged, depending on the privileged state of channel x (LPDMA_PRIVCFGR.PRIVx).

This register configures the source start address of a transfer.

This register must be written when LPDMA_CxCR.EN = 0.

This register is read-only when LPDMA_CxCR.EN = 1, and continuously updated by hardware, in order to reflect the address of the next single transfer from the source.

This register must be written when the channel is completed (then the hardware has deasserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block or LLI or full linked-list.

In linked-list mode, during the link transfer, this register is automatically updated by LPDMA from the memory if LPDMA_CxLLR.USA = 1.

31302928272625242322212019181716
SA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SA[31:0]: source address

This field is the pointer to the address from which the next data is read.

During the channel activity, depending on the source addressing mode (LPDMA_CxTR1.SINC), this field is either kept fixed or incremented by the data width (LPDMA_CxTR1.SDW_LOG2[1:0]) after each single source data, reflecting the next address from which data is read.

In linked-list mode, after a LLI data transfer is completed, this register is automatically updated by LPDMA from the memory, provided the LLI is set with LPDMA_CxLLR.USA = 1.

Note: A source address must be aligned with the programmed data width of a source single (SA[32:0] versus LPDMA_CxTR1.SDW_LOG2[1:0]). Else, a user setting error is reported and no transfer is issued.

14.8.12 LPDMA channel x destination address register (LPDMA_CxDAR)

Address offset: 0x0A0 + 0x80 * x (x = 0 to 7)

Reset value: 0x0000 0000

This register is privileged or unprivileged, depending on the privileged state of channel x (LPDMA_PRIVCFGR.PRIVx).

This register configures the destination start address of a transfer.

This register must be written when LPDMA_CxCR.EN = 0.

This register is read-only when LPDMA_CxCR.EN = 1, and continuously updated by hardware, in order to reflect the address of the next single transfer to the destination.

This register must be written when the channel is completed (then the hardware has deasserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block or LLI or full linked-list.

In linked-list mode, during the link transfer, this register is automatically updated by LPDMA from the memory if LPDMA_CxLLR.UDA = 1.

31302928272625242322212019181716
DA[31:16]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DA[15:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 DA[31:0]: destination address

This field is the pointer to the address from which the next data is written.

During the channel activity, depending on the destination addressing mode (LPDMA_CxTR1.DINC), this field is kept fixed or incremented by the data width (LPDMA_CxTR1.DDW_LOG2[1:0]) after each single destination data, reflecting the next address from which data is written.

In linked-list mode, after a LLI data transfer is completed, this register is automatically updated by DMA from the memory, provided the LLI is set with LPDMA_CxLLR.UDA = 1.

Note: A destination address must be aligned with the programmed data width of a destination single (DA[2:0] versus LPDMA_CxTR1.DDW_LOG2[1:0]). Else, a user setting error is reported and no transfer is issued.

14.8.13 LPDMA channel x linked-list address register (LPDMA_CxLLR)

Address offset: 0x0CC + 0x80 * x (x = 0 to 7)

Reset value: 0x0000 0000

This register is privileged or unprivileged, depending on the privileged state of channel x (LPDMA_PRIVCFGR.PRIVx).

This register configures the data structure of the next LLI in the memory and its address pointer. A channel transfer is completed when this register is null.

This register must be written when LPDMA_CxCR.EN = 0.

This register is read-only when LPDMA_CxCR.EN = 1.

This register must be written when the channel is completed (then the hardware has deasserted LPDMA_CxCR.EN). A channel transfer can be completed and programmed at different levels: block or LLI or full linked-list.

In linked-list mode, during the link transfer, this register is automatically updated by LPDMA from the memory if LPDMA_CxLLR.ULL = 1.

31302928272625242322212019181716
UT1UT2UB1USAUDARes.Res.Res.Res.Res.Res.Res.Res.Res.Res.ULL
rwrwrwrwrwrw
1514131211109876543210
LA[15:2]Res.Res.
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 UT1: Update LPDMA_CxTR1 from memory

This bit controls the update of the LPDMA_CxTR1 register from the memory during the link transfer.

0: no LPDMA_CxTR1 update

1: LPDMA_CxTR1 update

Bit 30 UT2: Update LPDMA_CxTR2 from memory

This bit controls the update of the LPDMA_CxTR2 register from the memory during the link transfer.

0: no LPDMA_CxTR2 update

1: LPDMA_CxTR2 update

Bit 29 UB1: Update LPDMA_CxBR1 from memory

This bit controls the update of the LPDMA_CxBR1 register from the memory during the link transfer.

0: no LPDMA_CxBR1 update from memory and internally restored to the previous programmed value

1: LPDMA_CxBR1 update

Bit 28 USA: update LPDMA_CxSAR from memory

This bit controls the update of the LPDMA_CxSAR register from the memory during the link transfer.

0: no LPDMA_CxSAR update

1: LPDMA_CxSAR update

Bit 27 UDA: Update LPDMA_CxDAR register from memory

This bit is used to control the update of the LPDMA_CxDAR register from the memory during the link transfer.

0: no LPDMA_CxDAR update

1: LPDMA_CxDAR update

Bits 26:17 Reserved, must be kept at reset value.

Bit 16 ULL: Update LPDMA_CxLLR register from memory

This bit is used to control the update of the LPDMA_CxLLR register from the memory during the link transfer.

Bits 15:2 LA[15:2]: pointer (16-bit low-significant address) to the next linked-list data structure

If UT1 = UT2 = UB1 = USA = UDA = ULL = 0 and if LA[15:2] = 0, the current LLI is the last one. The channel transfer is completed without any update of the linked-list DMA register file.

Else, this field is the pointer to the memory address offset from which the next linked-list data structure is automatically fetched from, once the data transfer is completed, in order to conditionally update the linked-list DMA internal register file (LPDMA_CxTR1, LPDMA_CxTR2, LPDMA_CxBR1, LPDMA_CxSAR, LPDMA_CxDAR and LPDMA_CxLLR).

Caution: The user must program this pointer not to exceed the 64-Kbyte addressable space defined by the link base address register LPDMA_CxLBAR. The complete linked-list data structure must be included in the 64-Kbyte addressable space.

Note: The user must program the pointer to be 32-bit aligned. The two low-significant bits are write ignored.

Bits 1:0 Reserved, must be kept at reset value.

14.8.14 LPDMA register map

Table 99. LPDMA register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x004LPDMA_PRIVCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRIV7PRIV6PRIV5PRIV4PRIV3PRIV2PRIV1PRIV0
Reset value00000000
0x008LPDMA_RCFGLOCKRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LOCK7LOCK6LOCK5LOCK4LOCK3LOCK2LOCK1LOCK0
Reset value00000000
0x00CLPDMA_MISRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MIS7MIS6MIS5MIS4MIS3MIS2MIS1MIS0
Reset value00000000
0x014 - 0x04CReservedRes.
0x050+
0x080 * x
(x = 0 to 7)
LPDMA_CxLBARLBA[31:16]Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value0000000000000000
0x05C+
0x080 * x
(x = 0 to 7)
LPDMA_CxFCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TOFSUSPFUSEFULEFDTEFHTFTCFRes.Res.Res.Res.Res.Res.Res.
Reset value0000000
0x060+
0x080 * x
(x = 0 to 7)
LPDMA_CxSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.TOFSUSPFUSEFULEFDTEFHTFTCFRes.Res.Res.Res.Res.Res.IDLEF
Reset value00000001
0x064+
0x080 * x
(x = 0 to 7)
LPDMA_CxCRRes.Res.Res.Res.Res.Res.Res.Res.PRIOR[1:0]Res.Res.Res.Res.Res.Res.LSMTOIESUSPIEUSEIEULEIEDTEIEHTIETCIERes.Res.Res.Res.SUSPRESETEN
Reset value0000000000000
ST logo
ST logo

Table 99. LPDMA register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x090+
0x080 * x
(x = 0 to 7)
LPDMA_CxTR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DINCRes.DDW_LOG2
[1:0]
Res.Res.Res.Res.Res.PAMRes.Res.Res.Res.Res.Res.Res.SINCRes.SDW_LOG2[1:0]
Reset value0000000
0x094+
0x080 * x
(x = 0 to 7)
LPDMA_CxTR2TCEM
[1:0]
Res.Res.Res.Res.Res.TRIGPOL
[1:0]
Res.TRIGSEL
[5:0]
Res.Res.TRIGM
[1:0]
Res.Res.Res.PFREQBREQSWREQRes.Res.REQSEL
[6:0]
Reset value0000000000000000000000
0x098+
0x080 * x
(x = 0 to 7)
LPDMA_CxBR1Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.BNDT[15:0]
Reset value00000000000000000
0x09C+
0x080 * x
(x = 0 to 7)
LPDMA_CxSARSA[31:0]
Reset value00000000000000000000000000000000
0x0A0+
0x080 * x
(x = 0 to 7)
LPDMA_CxDARDA[31:0]
Reset value00000000000000000000000000000000
0x0CC+
0x080 * x
(x = 0 to 7)
LPDMA_CxLLRUT1UT2UB1USAUDARes.Res.Res.Res.Res.Res.Res.Res.Res.ULLLA[15:2]Res.Res.
Reset value00000000000000000000

Refer to Section 2.2: Memory organization for the register boundary addresses.