GD32W51x User Manual
326
Figure 12-4
. Data packing/unpacking when PWIDTH = ‘00’
read 0xB0[7:0] @0x0 read 0xB8[7:0] @0x8
read 0xB1[7:0] @0x1 read 0xB9[7:0] @0x9
read 0xB2[7:0] @0x2 read 0xB10[7:0] @0xA
read 0xB3[7:0] @0x3 read 0xB11[7:0] @0xB
read 0xB4[7:0] @0x4 read 0xB12[7:0] @0xC
read 0xB5[7:0] @0x5 read 0xB13[7:0] @0xD
read 0xB6[7:0] @0x6 read 0xB14[7:0] @0xE
read 0xB7[7:0] @0x7 read 0xB15[7:0] @0xF
B15
B14
B13
B12
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
write 0xB0[7:0] @0x0 write 0xB8[7:0] @0x8
write 0xB1[7:0] @0x1 write 0xB9[7:0] @0x9
write 0xB2[7:0] @0x2 write 0xB10[7:0] @0xA
write 0xB3[7:0] @0x3 write 0xB11[7:0] @0xB
write 0xB4[7:0] @0x4 write 0xB12[7:0] @0xC
write 0xB5[7:0] @0x5 write 0xB13[7:0] @0xD
write 0xB6[7:0] @0x6 write 0xB14[7:0] @0xE
write 0xB7[7:0] @0x7 write 0xB15[7:0] @0xF
push data
pop data
read 0xB0[7:0] @0x0 read 0xB32[7:0] @0x20
read 0xB4[7:0] @0x4 read 0xB36[7:0] @0x24
read 0xB8[7:0] @0x8 read 0xB40[7:0] @0x28
read 0xB12[7:0] @0xC read 0xB44[7:0] @0x2C
read 0xB16[7:0] @0x10 read 0xB48[7:0] @0x30
read 0xB20[7:0] @0x14 read 0xB52[7:0] @0x34
read 0xB24[7:0] @0x18 read 0xB56[7:0] @0x38
read 0xB28[7:0] @0x1C read 0xB60[7:0] @0x3C
write 0xB4B0[15:0] @0x0
write 0xB12B8[15:0] @0x2
write 0xB20B16[15:0] @0x4
write 0xB28B24[15:0] @0x6
write 0xB36B32[15:0] @0x8
write 0xB44B40[15:0] @0xA
write 0xB52B48[15:0] @0xC
write 0xB60B56[15:0] @0xE
push data
pop data
read 0xB0[7:0] @0x0 read 0xB8[7:0] @0x8
read 0xB1[7:0] @0x1 read 0xB9[7:0] @0x9
read 0xB2[7:0] @0x2 read 0xB10[7:0] @0xA
read 0xB3[7:0] @0x3 read 0xB11[7:0] @0xB
read 0xB4[7:0] @0x4 read 0xB12[7:0] @0xC
read 0xB5[7:0] @0x5 read 0xB13[7:0] @0xD
read 0xB6[7:0] @0x6 read 0xB14[7:0] @0xE
read 0xB7[7:0] @0x7 read 0xB15[7:0] @0xF
write 0xB3B2B1B0[31:0] @0x0
write 0xB7B6B5B4[31:0] @0x4
write 0xB11B10B9B8[31:0] @0x8
write 0xB15B14B13B12[31:0] @0xC
push data
pop data
word 4
word 3
word 2
word 1
B60
B56
B52
B48
B44
B40
B36
B32
B28
B24
B20
B16
B12
B8
B4
B0
word 4
word 3
word 2
word 1
B15
B14
B13
B12
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
word 4
word 3
word 2
word 1
PAIF = 0, MWIDTH = 8-bit
PAIF = 1, MWIDTH = 16-bit
PAIF = 0, MWIDTH = 32-bit
Suppose the CNT bits are 8, the PWIDTH bits are equal to ‘01’, and both PNAGA and
MNAGA are set. The DMA transfer operations for different MWIDTH are shown in the
. Data packing/unpacking when PWIDTH = ‘01’
.
Figure 12-5
. Data packing/unpacking when PWIDTH = ‘01’
read 0xB1B0[15:0] @0x0
read 0xB5B4[15:0] @0x4
read 0xB9B8[15:0] @0x8
read 0xB13B12[15:0] @0xC
read 0xB17B16[15:0] @0x10
read 0xB21B20[15:0] @0x14
read 0xB25B24[15:0] @0x18
read 0xB29B28[15:0] @0x1C
write 0xB0[7:0] @0x0 write 0xB8[7:0] @0x8
write 0xB1[7:0] @0x1 write 0xB9[7:0] @0x9
write 0xB2[7:0] @0x2 write 0xB10[7:0] @0xA
write 0xB3[7:0] @0x3 write 0xB11[7:0] @0xB
write 0xB4[7:0] @0x4 write 0xB12[7:0] @0xC
write 0xB5[7:0] @0x5 write 0xB13[7:0] @0xD
write 0xB6[7:0] @0x6 write 0xB14[7:0] @0xE
write 0xB7[7:0] @0x7 write 0xB15[7:0] @0xF
push data
pop data
read 0xB1B0[15:0] @0x0
read 0xB3B2[15:0] @0x2
read 0xB5B4[15:0] @0x4
read 0xB7B6[15:0] @0x6
read 0xB9B8[15:0] @0x8
read 0xB11B10[15:0] @0xA
read 0xB13B12[15:0] @0xC
read 0xB15B14[15:0] @0xE
write 0xB1B0[15:0] @0x0
write 0xB3B2[15:0] @0x2
write 0xB5B4[15:0] @0x4
write 0xB7B6[15:0] @0x6
write 0xB9B8[15:0] @0x8
write 0xB11B10[15:0] @0xA
write 0xB13B12[15:0] @0xC
write 0xB15B14[15:0] @0xE
push data
pop data
read 0xB1B0[15:0] @0x0
read 0xB3B2[15:0] @0x2
read 0xB5B4[15:0] @0x4
read 0xB7B6[15:0] @0x6
read 0xB9B8[15:0] @0x8
read 0xB11B10[15:0] @0xA
read 0xB13B12[15:0] @0xC
read 0xB15B14[15:0] @0xE
write 0xB5B4B1B0[31:0] @0x0
write 0xB13B12B9B8[31:0] @0x4
write 0xB21B20B17B16[31:0] @0x8
write 0xB29B28B25B24[31:0] @0xC
push data
pop data
PAIF = 0, MWIDTH = 8-bit
PAIF = 0, MWIDTH = 16-bit
PAIF = 1, MWIDTH = 32-bit
B15
B14
B13
B12
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
word 4
word 3
word 2
word 1
B29
B28
B25
B24
B21
B20
B17
B16
B13
B12
B9
B8
B5
B4
B1
B0
word 4
word 3
word 2
word 1
B15
B14
B13
B12
B11
B10
B9
B8
B7
B6
B5
B4
B3
B2
B1
B0
word 4
word 3
word 2
word 1
Suppose DMA_CHxCNT is 4, the PWIDTH bits are equal to ‘10’, and both PNAGA and
MNAGA are set. The DMA transfer operations for different MWIDTH are shown in the
. Data packing/unpacking when PWIDTH = ‘10’
.