stm32 /stm32h7rs /STM32H7R /HPDMA /HPDMA_C1TR1

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 HPDMA_C1TR1

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)SDW_LOG2 0 (B_0x0)SINC 0SBL_10 (B_0x0_PAM_1)PAM0 (B_0x0)SBX 0 (B_0x0)SAP 0 (B_0x0)DDW_LOG2 0 (B_0x0)DINC 0DBL_10 (B_0x0)DBX 0 (B_0x0)DHX 0 (B_0x0)DWX 0 (B_0x0)DAP

DAP=B_0x0, DHX=B_0x0, SAP=B_0x0, DINC=B_0x0, SBX=B_0x0, DWX=B_0x0, DBX=B_0x0, PAM=B_0x0_PAM_1, DDW_LOG2=B_0x0, SINC=B_0x0, SDW_LOG2=B_0x0

Description

HPDMA channel 1 transfer register 1

Fields

SDW_LOG2

binary logarithm of the source data width of a burst in bytes if SAP = 1, user setting error reported and no transfer issued Note: A burst with a double-word data width must be allocated to the AXI master port, else a user setting error is reported and none transfer is issued. A source block size must be a multiple of the source data width (HPDMA_CxBR1.BNDT[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and no transfer is issued. Note: A source burst transfer must have an aligned address with its data width (start address HPDMA_CxSAR[2:0] versus SDW_LOG2[1:0]). Otherwise, a user setting error is reported and none transfer is issued.

0 (B_0x0): byte

1 (B_0x1): half-word (2 bytes)

2 (B_0x2): word (4 bytes)

3 (B_0x3): If SAP = 0 (AXI), double-word (8 bytes)

SINC

source incrementing burst The source address, pointed by HPDMA_CxSAR, is kept constant after a burst beat/single transfer or is incremented by the offset value corresponding to a contiguous data after a burst beat/single transfer.

0 (B_0x0): fixed burst

1 (B_0x1): contiguously incremented burst

SBL_1

source burst length minus 1, between 0 and 63 The burst length unit is one data named beat within a burst. If SBL_1[5:0] =0 , the burst can be named as single. Each data/beat has a width defined by the destination data width SDW_LOG2[1:0]. Note: If a burst transfer crossed a 1- or 4-Kbyte address boundary on respectively an AHB or an AXI transfer, the HPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the AHB protocol. Note: If the burst length exceeds 16 on a AHB transfer, or if the burst on a AXI transfer is both with fixed addressing (SINC=0) and with a burst length which exceeds 16, the HPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the FIFO size. Transfer performance is lower, with HPDMA re-arbitration between effective and lower singles/bursts, but the data integrity is guaranteed.

PAM

padding/alignment mode If DDW_LOG2[1:0] = SDW_LOG2[1:0]: if the data width of a burst destination transfer is equal to the data width of a burst source transfer, these bits are ignored. Else, in the following enumerated values, the condition PAM_1 is when destination data width is higher that source data width, and the condition PAM_2 is when destination data width is higher than source data width. Note: If the transfer from the source peripheral is configured with peripheral flow-control mode (SWREQ = 0 and PFREQ = 1 and DREQ = 0), and if the destination data width > the source data width, packing is not supported.

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

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

2 (B_0x2_PAM_1): successive source data are FIFO queued and packed at the destination data width, in a left (LSB) to right (MSB) order (named little endian), before a destination transfer

3 (B_0x3_PAM_1): successive source data are FIFO queued and packed at the destination data width, in a left (LSB) to right (MSB) order (named little endian), before a destination transfer

SBX

source byte exchange within the unaligned half-word of each source word If the source data width is shorter than a word, this bit is ignored. If the source data width is a word or a double-word, and if source bus is AXI (SAP = 0):

0 (B_0x0): no byte-based exchange within the unaligned half-word of each source word

1 (B_0x1): the two consecutive bytes within the unaligned half-word of each source word are exchanged.

SAP

source allocated port This bit is used to allocate the master port for the source transfer Note: This bit must be written when EN = 0. This bit is read-only when EN = 1.

0 (B_0x0): port 0 (AXI) allocated

1 (B_0x1): port 1 (AHB) allocated

DDW_LOG2

binary logarithm of the destination data width of a burst, in bytes if DAP = 1, user setting error reported and no transfer issued Note: A burst with a double-word data width must be allocated to the AXI master port, else a user setting error is reported and none transfer is issued. Note: A destination burst transfer must have an aligned address with its data width (start address HPDMA_CxDAR[2:0] and address offset HPDMA_CxTR3.DAO[2:0], versus DDW_LOG2[1:0]). Otherwise a user setting error is reported and no transfer is issued. Note: When configured in packing mode (PAM[1] = 1 and destination data width different from source data width), a source block size must be a multiple of the destination data width (see HPDMA_CxBR1.BNDT[2:0] vs DDW_LOG2[1:0]). Else a user setting error is reported and none transfer is issued.

0 (B_0x0): byte

1 (B_0x1): half-word (2 bytes)

2 (B_0x2): word (4 bytes)

3 (B_0x3): If DAP = 0 (AXI), double-word (8 bytes)

DINC

destination incrementing burst The destination address, pointed by HPDMA_CxDAR, is kept constant after a burst beat/single transfer, or is incremented by the offset value corresponding to a contiguous data after a burst beat/single transfer.

0 (B_0x0): fixed burst

1 (B_0x1): contiguously incremented burst

DBL_1

destination burst length minus 1, between 0 and 63 The burst length unit is one data named beat within a burst. If DBL_1[5:0] =0 , the burst can be named as single. Each data/beat has a width defined by the destination data width DDW_LOG2[1:0]. Note: If a burst transfer crossed a 1- or 4-Kbyte address boundary on respectively an AHB or AXI transfer, the HPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the AHB/AXI protocol. Note: If the burst length exceeds 16 on an AHB transfer, or if the burst on an AXI transfer is both with fixed addressing (DINC = 0) and with a burst length which exceeds 16, the HPDMA modifies and shortens the programmed burst into bursts of lower length, to be compliant with the AHB or AXI protocol. Note: If a burst transfer is of length greater than the FIFO size of the channel x, the HPDMA modifies and shortens the programmed burst into singles or bursts of lower length, to be compliant with the FIFO size. Transfer performance is lower, with HPDMA re-arbitration between effective and lower singles/bursts, but the data integrity is guaranteed.

DBX

destination byte exchange If the destination data size is a byte, this bit is ignored. If the destination data size is not a byte:

0 (B_0x0): no byte-based exchange within half-word

1 (B_0x1): the two consecutive (post PAM) bytes are exchanged in each destination half-word.

DHX

destination half-word exchange If the destination data size is shorter than a word, this bit is ignored. If the destination data size is a word or double-word and if destination bus is AXI (DAP = 0):

0 (B_0x0): no half-word-based exchanged within word

1 (B_0x1): the two consecutive (post PAM) half-words are exchanged in each destination word.

DWX

destination word exchange If the destination data size is not a double-word, this bit is ignored. If the destination data size is a double-word and if destination bus is AXI (DAP = 0):

0 (B_0x0): no word-based exchanged within double-word

1 (B_0x1): the two consecutive (post PAM) words are exchanged in each destination double-word.

DAP

destination allocated port This bit is used to allocate the master port for the destination transfer Note: This bit must be written when EN = 0. This bit is read-only when EN = 1.

0 (B_0x0): port 0 (AXI) allocated

1 (B_0x1): port 1 (AHB) allocated

Links

()