GD32W51x User Manual
344
When this bit is asserted, the DMA transfer is started. This bit is automaticly
cleared w hen one of the follow ing situations occurs:
When the transfer of channel is fully finished.
When a w rong FIFO configuration or a transfer access error is detec ted.
After a softw are clear operation, this bit is still read as 1 to indicate that there are
memory or peripheral transfers still active until hardw are has terminated all
activity, at w hich point this bit is read as 0. Softw are can therefore poll this bit to
determine w hen this channel is free for a new DMA transfer.
12.6.6.
Channel x counter register (DMA_CHxCNT)
x = 0...7, where x is a channel number
Address offset: 0x14 + 0x18 × x
Reset value: 0x0000 0000
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
Reserved
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
CNT[15:0]
rw
Bits
Fields
Descriptions
31:16
Reserved
Must be kept at reset value.
15:0
CNT[15:0]
Transfer counter
These bits can NOT be w ritten w hen CHEN in the DMA_CHxCTL register is ‘1’.
These bits are related to PWIDTH. During the transmission, These bits signify the
number of remaining data to be transferred. After each DMA peripheral transfer,
CNT is decreamented by 1. If CMEN or SBMEN in the DMA_CHxCTL register is
configured to ‘1’, CNT can be reloaded automatically to the original value at the
end of transfer.
12.6.7.
Channel x peripheral base address register (DMA_CHxPADDR)
x = 0...7, where x is a channel number
Address offset: 0x18 + 0x18 × x
Reset value: 0x0000 0000