GD32VF103 User Manual
316
corresponding to the last capture event. And this bit-filed is read-only.
When channel 3 is configured in output mode, this bit-filed contains value to be
compared to the counter. When the corresponding shadow register is enabled, the
shadow register updates every update event.
DMA configuration register (TIMERx_DMACFG)
Address offset: 0x48
Reset value: 0x0000
This register can be accessed by half-word (16-bit) or word (32-bit)
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
Reserved
DMATC[4:0]
Reserved
DMATA [4:0]
rw
rw
Bits
Fields
Descriptions
15:14
Reserved
Must be kept at reset value.
12:8
DMATC [4:0]
DMA transfer count
This filed is defined the number of DMA will access(R/W) the register of
TIMERx_DMATB
5’b0_0000: 1 time transfer
5’b0_0001: 2 times transfer
…
5’b1_0001: 18 times transfer
7:5
Reserved
Must be kept at reset value.
4:0
DMATA [4:0]
DMA transfer access start address
This filed define the first address for the DMA access the TIMERx_DMATB. When
access is done through the TIMERx_DMA address first time, this bit-field specifies
the address you just access. And then the second access to the TIMERx_DMATB,
you will access the address of start a 0x4.
5’b0_0000: TIMERx_CTL0
5’b0_0001: TIMERx_CTL1
…
5’b1_0010: TIMERx_DMACFG
In a word: Start Address = TIMER DMATA*4
DMA transfer buffer register (TIMERx_DMATB)
Address offset: 0x4C
Reset value: 0x0000
This register can be accessed by half-word (16-bit) or word (32-bit)