GD32VF103 User Manual
189
Figure 12-1. DAC block diagram
SWTRx
TIMER5_TRGO
TIMER1_TRGO
T
ri
g
g
e
r
s
e
le
c
to
rx
DAC control register
DTSELx[2:0]
D
M
A
r
e
q
u
e
s
tx
D
T
E
N
x
DHx
12-bit
DOx
12-bit
DAC
Control
logic
V
D
D
A
V
S
S
A
DBOFFx
Buff
M
U
X
2
X
1
D
D
M
A
E
N
x
DAC_OUTx
12-bit
EXTI9
TIMER7_TRGO
TIMER3_TRGO
V
R
E
F
+
TIMER6_TRGO
TIMER4_TRGO
D
W
B
W
x
[3
:0
]
D
W
M
x
[1
:0
]
Table 12-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.4
V ≤ V
REF+
≤ V
DDA
Input, analog positive reference
DAC_OUTx
DACx analog output
Analog output signal
The GPIO pins (PA4 for DAC0, PA5 for DAC1) should be configured to analog mode before
enable the DAC module.
12.3.
Function overview
12.3.1.
DAC enable
The DACs can be powered on by setting the DENx bit in the DAC_CTL register. A t
WAKEUP
time is needed to startup the analog DAC submodule.