253
/
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
Configure DAC_CTRL.T1SEL[2:0] and DAC_CTRL.T2SEL[2:0] as different values to select different trigger
sources.
Configure DAC_CTRL.W1EN[1:0] and DAC_CTRL.W2EN[1:0] as “01” to select noise generation enable.
Configure DAC_CTRL.MA1SEL3:0] and DAC_CTRL.MA2SEL3:0] to the same value to get the same LFSR
register mask bit.
Put the data to be converted into the corresponding alignment data holding register.
When the DAC1 trigger event occurs, the counter value of the LFSR register 1 is added to the value of the
corresponding data holding register. The added value is transferred to the register DAC_DATO1 after a delay of 3
APB1 clock cycles, and the counter value of the LFSR register 1 will be updated at this time. When the DAC2 trigger
event occurs, the counter value of the LFSR register 2 is added to the value of the corresponding data holding register.
The added value is transferred to the register DAC_DATO2 after a delay of 3 APB1 clock cycles, and the counter
value of the LFSR register 2 will be updated at this time.
10.4.3
Independent triggers that generate different noises
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.
Configure DAC_CTRL.W1EN[1:0] and DAC_CTRL.W2EN[1:0] as “01” to select noise generation enable.
Configure DAC_CTRL.MA1SEL3:0] and DAC_CTRL.MA2SEL3:0] as different values to get different LFSR
register mask bits.
Put the data to be converted into the corresponding alignment data holding register.
When the DAC1 trigger event occurs, the counter value of the LFSR register 1 is added to the value of the
corresponding data holding register. The added value is transferred to the register DAC_DATO1 after a delay of 3
APB1 clock cycles, and the counter value of the LFSR register 1 will be updated at this time. When the DAC2 trigger
event occurs, the counter value of the LFSR register 2 is added to the value of the corresponding data holding register.
The added value is transferred to the register DAC_DATO2 after a delay of 3 APB1 clock cycles, and the counter
value of the LFSR register 2 will be updated at this time.
10.4.4
Independent triggers that generate the same triangle wave
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.
Configure DAC_CTRL.W1EN[1:0] and DAC_CTRL.W2EN[1:0] as “1x” to select the triangle wave generation
enable.