
GD32L23x User Manual
238
14.4.
DAC registers
DAC base address: 0x4000 7400
14.4.1.
Control register 0 (DAC_CTL0)
Address offset: 0x00
Reset value: 0x0000 0000
This register has to be accessed by word (32-bit).
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
Reserved DDISC
DDUDR
IE
DDMA
EN
DWBW[3:0]
DWM[1:0]
DTSEL[2:0]
DTEN
DBOFF
DEN
rw
rw
rw
rw
rw
rw
rw
rw
rw
Bits
Fields
Descriptions
31:15
Reserved
Must be kept at reset value.
14
DDISC
DAC_OUT connect GPIO selection
0: DAC is connected to the external pin and to on chip peripherals (CMP).
1: DAC is connected to on chip peripherals (CMP) independently only if
DAC_OUT output buffer turns off (DBOFF=1). Otherwise DAC is connected to
the external pin and to on chip peripherals (CMP).
13
DDUDRIE
DAC_OUT DMA underrun interrupt enable
0: DAC_OUT DMA underrun interrupt disabled
1: DAC_OUT DMA underrun interrupt enabled
12
DDMAEN
DAC_OUT DMA enable
0: DAC_OUT DMA mode disabled
1: DAC_OUT DMA mode enabled
11:8
DWBW[3:0]
DAC_OUT noise wave bit width
These bits specify bit width of the noise wave signal of DAC_OUT. These bits
indicate that unmask LFSR bit [n-1, 0] in LFSR noise mode or the amplitude of the
triangle is ((2<<(n-1))-1) in triangle noise mode, where n is the bit width of wave.
0000: The bit width of the wave signal is 1
0001: The bit width of the wave signal is 2
0010: The bit width of the wave signal is 3
0011: The bit width of the wave signal is 4
0100: The bit width of the wave signal is 5
0101: The bit width of the wave signal is 6
0110: The bit width of the wave signal is 7