GD32VF103 User Manual
192
12.3.7.
DAC output voltage
The analog output voltage on the DAC pin is determined by the following equation:
DAC
output
=V
REF+
*DAC_DO/4096 (12-1)
The digital input is linearly converted to an analog output voltage, its range is 0 to V
REF+
.
12.3.8.
DMA request
When the external trigger is enabled, the DMA request is enabled by setting the DDMAENx
bits of the DAC_CTL register. A DAC DMA request will be generated when an external
hardware trigger (not a software trigger) occurs.
12.3.9.
DAC concurrent conversion
When the two DACs work at the same time, for maximum bus bandwidth utilization in specific
applications, two DACs can be configured in concurrent mode. In concurrent mode, two DACs
data transfer (DACx_DH to DACx_DO) will be at the same time.
There are three concurrent registers that can be used to load the DACx_DH value:
DACC_R8DH, DACC_R12DH and DACC_L12DH. You just need to access a unique register
to realize driving both DACs at the same time.
When external trigger is enabled, both DTENx bits should be set. DTSEL0 and DTSEL1 bits
should be configured with the same value.
When DMA is enabled, only one of the DDMAENx bits should be set.
The noise mode and noise bit width can be configured either the same or different, depending
on the usage.