STMicroelectronics /STM32U585 /LPDMA1 /LPDMA_C1CR

Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text

Interpret as LPDMA_C1CR

31 2827 2423 2019 1615 1211 87 43 0 0 0 0 0 0 0 0 00 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 (B_0x0)EN 0 (B_0x0)RESET 0 (B_0x0)SUSP 0 (B_0x0)TCIE 0 (B_0x0)HTIE 0 (B_0x0)DTEIE 0 (B_0x0)ULEIE 0 (B_0x0)USEIE 0 (B_0x0)SUSPIE 0 (B_0x0)TOIE 0 (B_0x0)LSM 0 (B_0x0)PRIO

PRIO=B_0x0, USEIE=B_0x0, HTIE=B_0x0, SUSP=B_0x0, ULEIE=B_0x0, DTEIE=B_0x0, TCIE=B_0x0, RESET=B_0x0, EN=B_0x0, LSM=B_0x0, SUSPIE=B_0x0, TOIE=B_0x0

Description

LPDMA channel 1 control register

Fields

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, e.g. 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 (B_0x0): write: ignored, read: channel disabled

1 (B_0x1): write: enable channel, read: channel enabled

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:

  • active channel in suspended state (LPDMA_CxSR.SUSPF = 1 and LPDMA_CxSR.IDLEF = LPDMA_CxCR.EN = 1)
  • channel in disabled state (LPDMA_CxSR.IDLEF = 1 and LPDMA_CxCR.EN = 0). 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 ).

0 (B_0x0): no channel reset

1 (B_0x1): channel reset

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 i.e. a channel with an on-going DMA transfer over its master ports. The software must write 0 in order to resume a suspended channel, following the programming sequence detailed in sequence.

0 (B_0x0): write: resume channel, read: channel not suspended

1 (B_0x1): write: suspend channel, read: channel suspended.

TCIE

transfer complete interrupt enable

0 (B_0x0): interrupt disabled

1 (B_0x1): interrupt enabled

HTIE

half transfer complete interrupt enable

0 (B_0x0): interrupt disabled

1 (B_0x1): interrupt enabled

DTEIE

data transfer error interrupt enable

0 (B_0x0): interrupt disabled

1 (B_0x1): interrupt enabled

ULEIE

update link transfer error interrupt enable

0 (B_0x0): interrupt disabled

1 (B_0x1): interrupt enabled

USEIE

user setting error interrupt enable

0 (B_0x0): interrupt disabled

1 (B_0x1): interrupt enabled

SUSPIE

completed suspension interrupt enable

0 (B_0x0): interrupt disabled

1 (B_0x1): interrupt enabled

TOIE

trigger overrun interrupt enable

0 (B_0x0): interrupt disabled

1 (B_0x1): interrupt enabled

LSM

Link step mode First the block transfer is executed as defined by the current internal register file until LPDMA_CxBR1.BNDT[15:0 ] =0). Secondly the next linked-list data structure is conditionally uploaded from memory as defined by LPDMA_CxLLR. Then channel execution is completed. Note: This bit must be written when EN=0. This bit is read-only when EN=1.

0 (B_0x0): channel executed for the full linked-list and completed at the end of the last LLI (LPDMA_CxLLR = 0). The 16 low-significant bits of the link address are null (LA[15:0] = 0) and all the update bits are null (UT1 =UB1 = UT2 = USA = UDA = ULL = 0). Then LPDMA_CxBR1.BNDT[15:0] = 0.

1 (B_0x1): channel executed once for the current LLI

PRIO

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.

0 (B_0x0): low priority, low weight

1 (B_0x1): low priority, mid weight

2 (B_0x2): low priority, high weight

3 (B_0x3): high priority

Links

()