251
/
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-6 DAC conversion with LFSR waveform generation (enable software trigger)
Note: The DAC is configured to trigger to generate noise.
10.3.9
Triangular wave generation
The DAC can generate a triangle wave. The triangle wave function can be turned on by configuring
DAC_CTRL.WxEN[1:0] as "10", and the amplitude of the triangle wave can be selected by configuring
DAC_CTRL.MAxSEL[3:0]. The value of the internal triangle wave counter is added to the value of the DAC
alignment data holding register and written to the DAC_DATOx register (overflow bits are discarded).The value of
the triangular wave counter is updated 3 APB1 cycles after the trigger event occurs, the triangular wave counter will
accumulate to the maximum amplitude value set, and then decrement to 0, and so on.
Figure 10-7 Triangle wave generation of DAC
APB1_CLK
DACCHxD
DATOx
0x00
0xAAA
0xD55
SWTRIG
increase
DAC aligned
data holding
register
reference
ADC_CTRL.MAx
SEL[3:0]+DAC
aligned data
holding register
reference
0
decrease