![GigaDevice Semiconductor GD32A50 Series Скачать руководство пользователя страница 296](http://html.mh-extra.com/html/gigadevice-semiconductor/gd32a50-series/gd32a50-series_user-manual_2225782296.webp)
GD32A50x User Manual
296
Table 15-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_OUT
DAC analog output
Analog output
Note:
The GPIO pins (PA7 for DAC_OUT) should be configured to analog mode before
enable the DAC module.
15.3.
Function overview
15.3.1.
DAC enable
The DAC can be powered on by setting the DEN 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 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 DBOFF bits
in the DAC_CTL register.
Note:
In high temperature environments, it is recommended to turn on the output buffer by
setting the DBOFF bit to 0.
15.3.3.
DAC data configuration
The 12-bit DAC holding data can be configured by writing any one of the OUT_R12DH,
OUT_L12DH and OUT_R8DH registers. When the data is loaded by OUT_R8DH register,
only the MSB 8 bits are configurable, the LSB 4 bits are fored to 0.
15.3.4.
DAC trigger
The DAC external trigger is enabled by TRIGSEL module. The DAC external trigger source
are selected by the INSEL0 in the TRIGSEL_DAC register. The external trigger can not select
PA7 as trigger to DAC because PA7 is for DAC OUTPUT.
Software trigger is enabled by SWTR in the DAC_SWT register.The type of DAC trigger is
selected by setting the DTSEL[1:0] bits in the DAC_CTL register.