GD32F403xx User Manual
219
Figure 13-1. DAC block diagram
SWTRx
TIMER6_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
TIMER3_TRGO
V
R
E
F
+
TIMER5_TRGO
TIMER2_TRGO
D
W
B
W
x
[3
:0
]
D
W
M
x
[1
:0
]
Table 13-1. DAC I/O description
Name
Description
Signal type
V
DDA
Analog power supply
Power
V
SSA
Ground for analog power supply
Power
V
REF+
reference voltage
Analog Input
DAC_OUTx
DACx analog output
Analog output
The GPIO pins (PA4 for DAC0, PA5 for DAC1) should be configured to analog mode before
enable the DAC module.
13.3.
Function description
13.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.
13.3.2.
DAC output buffer
For reducing output impedance and driving external loads, an output buffer is integrated
inside each DAC module.
The output buffer, which is turned on by default, can be turned off by setting the DBOFFx bits