GD32F20x User Manual
292
Figure 15-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
EXTI_9
TIMER2_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 15-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.
15.3.
Function overview
15.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.
15.3.2.
DAC output buffer
For the concern of reducing output impedance, and driving external loads without an external
Summary of Contents for GD32F20 Series
Page 191: ...GD32F20x User Manual 191 Bits Fields Descriptions 31 0 TRNDATA 31 0 32 Bit Random data ...
Page 290: ...GD32F20x User Manual 290 conversion is ongoing ...
Page 325: ...GD32F20x User Manual 325 15 0 ALRM 15 0 RTC alarm value low ...
Page 385: ...GD32F20x User Manual 385 ...
Page 523: ...GD32F20x User Manual 523 clears AERR bit by writing 0 to it ...