![ARTERY AT32F435 Series Reference Manual Download Page 392](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592392.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 392
Rev 2.03
0110: Unmask LSFR bit[6: 0] /Triangle amplitude is equal
to 127
0111: Unmask LSFR bit[7: 0] /Triangle amplitude is equal
to 255
1000: Unmask LSFR bit[8: 0] /Triangle amplitude is equal
to 511
1001: Unmask LSFR bit[9: 0] /Triangle amplitude is equal
to 1023
1010: Unmask LSFR bit[10:0] /Triangle amplitude is
equal to 2047
≥1011: Unmask LSFR bit[11: 0] /Triangle amplitude is
equal to 4095
Bit 23: 22 D2NM
0x0
rw
DAC2 noise mode
00: Wave generation disabled
01: Noise wave generation enabled
1x: Triangular wave generation enabled
Bit 21: 19 D2TRGSEL
0x0
rw
DAC2 trigger select
000: TMR6 TRGOUT event
001: TMR8 TRGOUT event
010: TMR7 TRGOUT event
011: TMR5 TRGOUT event
100: TMR2 TRGOUT event
101: TMR4 TRGOUT event
110: External interrupt line 9
111: Software trigger
Note: These bits can be valid only when D2TRGEN = 1.
Bit 18
D2TRGEN
0x0
rw
DAC2 trigger enable
0: DAC2 trigger disabled
1: DAC2 trigger enabled
Note:
When the DAC2 trigger is disabled, the data written into
the DAC_D2DTHx register is transferred into the
DAC_D2ODT register after one APB1 clock cycle.
When the DAC2 trigger is enabled, the data written into the
DAC_D2DTHx register is transferred into the DAC_
D2ODT register after three APB1 clock cycles.
If the software trigger is selected, it takes one APB1 clock
cycle to have the data written into the DAC_D2DTHx
register transferred into the DAC_D2ODT register.
Bit 17
D2OBDIS
0x0
rw
DAC2 output buffer disable
0: DAC2 output buffer enabled
1: DAC2 output buffer disabled
Bit 16
D2EN
0x0
rw
DAC2 enable
0: DAC2 disabled
1: DAC2 enabled
Bit 15: 14 Reserved
0x0
resd
Kept at its default value
Bit 13
D1DMAUDRIEN
0x0
rw
DAC1 DMA transfer underrun interrupt enable
This bit is set and cleared by software.
0: DAC1 DMA transfer underrun interrupt disabled
1: DAC1 DMA transfer underrun interrupt enabled
Bit 12
D1DMAEN
0x0
rw
DAC1 DMA transfer enable
0: DAC1 DMA transfer disabled
1: DAC1 DMA transfer enabled
Bit 11: 8
D1NBSEL
0x0
rw
DAC1 noise bit select
These bits are used to select the mark bit in noise
generation mode or amplitude in triangular-wave
generation mode.
0000: Unmask LSFR bit0/Triangle amplitude is equal to 1
0001: Unmask LSFR bit[1:0]/Triangle amplitude is equal
to 3
0010: Unmask LSFR bit[2: 0]/Triangle amplitude is equal
to 7
0011: Unmask LSFR bit[3: 0]/Triangle amplitude is equal
to 15