
GD32L23x User Manual
234
Figure 14-1. DAC block diagram
12-
bit
12-bit
12-bit
SWTRIG
TIMER1_TRG O
T
ri
g
g
e
r
se
le
ct
o
rx
DAC control register
DTSEL[2: 0]
D
M
A
r
e
q
u
e
st
D
T
E
N
DAC
Control
logic
V
D
D
A
V
S
S
A
DBOFF
Buff
M
U
X
2
X
1
D
D
M
A
E
N
DAC_O UT
EXTI9
TIMER2_TRG O
V
R
E
F
+
TIMER6_TRG O
D
W
B
W
[3
:0
]
D
W
M
[1
:0
]
OUT_DH
OUT_DO
TIMER5_TRG O
Table 14-1. DAC pins
Name
Description
Signal type
V
DDA
Analog power supply
Input, analog supply
V
SSA
Ground for analog power supply
Input, analog supply ground
V
REF+
Positive reference voltage for the DAC,
2.6 V ≤ V
REF+
≤ V
DDA
Input, analog positive reference
DAC_OUT
DAC analog output
Analog output signal
Note:
The GPIO pins (PA4 for DAC_OUT) should be configured to analog mode before
enable the DAC module.
14.3.
Function description
14.3.1.
DAC enable
The DAC can be powered on by setting the DEN bit in the DAC_CTL0 register. A t
WAKEUP
time
is needed to startup the analog DAC submodule.
14.3.2.
DAC output buffer
For reducing output impedance and driving external loads without an external operational
amplifier, an output buffer is integrated inside each DAC module.