252
/
838
Nations Technologies Inc.
Tel
:
+86-755-86309900
:
Address: Nations Tower, #109 Baoshen Road, Hi-tech Park North.
Nanshan District, Shenzhen, 518057, P.R.China
Figure 10-8 DAC conversion with trigonometry generation (enable software trigger)
Note: 1. Only when the DAC is configured to trigger can the triangle wave be generated
2. DAC_CTRL.MAxSEL[3:0] cannot be set after DAC is enabled.
DAC dual-channel conversion
The two channels of the DAC can work independently or at the same time. In this mode, a total of 3 registers,
DAC_DR12DCH, DAC_DL12DCH and DAC_DR8DCH, can be used, which can efficiently utilize the bus
bandwidth, and each register can operate on 2 DACs at the same time.
The dual DAC channels turn on the conversion at the same time. There are 11 modes in total. When only one DAC
is used for conversion, the other DAC can still operate independently. For details, please refer to the following chapter
description.
10.4.1
Independent trigger without waveform generator
The configuration process is as follows:
Configure DAC_CTRL.T1EN and DAC_CTRL.T2EN to enable trigger enable of DAC1 and DAC2.
Configure DAC_CTRL.T1SEL[2:0] and DAC_CTRL.T2SEL[2:0] as different values to select different trigger
sources.
Put the data to be converted into the corresponding alignment data holding register.
When the DAC1 trigger event occurs, the value of the aligned data holding register will be transferred to the register
DAC_DATO1 after a delay of 3 APB1 clock cycles. When the DAC2 trigger event occurs, the value of the aligned
data holding register will be transferred to the register DAC_DATO2 after a delay of 3 APB1 clock cycles.
10.4.2
Independent triggers producing the same noise
The configuration process is as follows:
Configure DAC_CTRL.T1EN and DAC_CTRL.T2EN to enable trigger enable of DAC1 and DAC2.
APB1_CLK
SWTRIG
DATOx
0xABE
0xABF
0xAC0
DACCHxD
0xABE