GD32F10x User Manual
236
12.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
in the DAC_CTL register.
12.3.3.
DAC data configuration
The 12-bit DAC holding data (DACx_DH) can be configured by writing any one of these
registers (DACx_R12DH, DACx_L12DH or DACx_R8DH). When the data is loaded into
DACx_R8DH register, only the MSB 8 bits are configurable, the LSB 4 bits are forced to 0.
12.3.4.
DAC trigger
The DAC external trigger is enabled by setting the DTENx bits in the DAC_CTL register. The
DAC external triggers are selected by the DTSELx bits in the DAC_CTL register, which is
shown as
Table 12-2. External triggers of DAC.
Table 12-2. External triggers of DAC
DTSELx[2:0]
Trigger Source
Trigger Type
3b’000
TIMER5_TRGO
Hardware trigger
3b’001
TIMER2_TRGO in connectivity line devices;
TIMER7_TRGO in other type devices
3b’010
TIMER6_TRGO
3b’011
TIMER4_TRGO
3b’100
TIMER1_TRGO
3b’101
TIMER3_TRGO
3b’110
EXTI9
3b’111
SWTRIG
Software trigger
The TIMERx_TRGO signals are generated from the timers, while the software trigger can be
generated by setting the SWTRx bits in the DAC_SWT register.
12.3.5.
DAC workflow
If the external trigger is enabled by setting the DTENx bit in DAC_CTL register, the DAC
holding data is transferred to the DAC output data (DACx_DO) register when the selected
trigger event happened. When the external trigger is disabled, the transfer is performed
automatically.
When the DAC holding data (DACx_DH) is loaded into the DACx_DO register, after the time
t
SETTLING
, the analog output is valid, and the value of t
SETTLING
is related to the power supply
voltage and the analog output load.
Содержание GD32F10 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32F10x Arm Cortex M3 32 bit MCU User Manual Revision 2 6 Jun 2022 ...
Страница 63: ...GD32F10x User Manual 63 programmed during the chip production ...
Страница 117: ...GD32F10x User Manual 117 010 1 0 011 0 9 ...
Страница 416: ...GD32F10x User Manual 416 shadow register updates every update event ...
Страница 427: ...GD32F10x User Manual 427 value ...
Страница 518: ...GD32F10x User Manual 518 These bits are not used in SPI mode ...