![ARTERY AT32F435 Series Reference Manual Download Page 391](http://html1.mh-extra.com/html/artery/at32f435-series/at32f435-series_reference-manual_2977592391.webp)
AT32F435/437
Series Reference Manual
2022.11.11
Page 391
Rev 2.03
8-bit right alignment: load data into the DAC_DDTH8R [7: 0] and DAC_DDTH8R [15: 8]
12-bit left alignment: load data into the DAC_DDTH12L [15: 4] and DAC_DDTH12L [31: 20]
12-bit right alignment: load data into the DAC_DDTH12R [11: 0] and DAC_DDTH12R [27:16]
The loaded 8-bit data corresponds to the DHRx[11:4] and the loaded 12-bit data corresponds to the
DHRx[11: 0]
19.5 DAC registers
These peripheral registers must be accessed by word (32 bits).
Table 19-2
DAC register m ap and reset values
Register name
Offset
Reset value
DAC_CTRL
000h
0x0000 0000
DAC_SWTRG
004h
0x0000 0000
DAC_D1DTH12R
008h
0x0000 0000
DAC_D1DTH12L
00Ch
0x0000 0000
DAC_D1DTH8R
010h
0x0000 0000
DAC_D2DTH12R
014h
0x0000 0000
DAC_D2DTH12L
018h
0x0000 0000
DAC_D2DTH8R
01Ch
0x0000 0000
DAC_DDTH12R
020h
0x0000 0000
DAC_DDTH12L
024h
0x0000 0000
DAC_DDTH8R
028h
0x0000 0000
DAC_D1ODT
02Ch
0x0000 0000
DAC_D2ODT
030h
0x0000 0000
DAC_STS
034h
0x0000 0000
19.5.1 DAC control register (DAC_CTRL)
Bit
Register
Reset value
Type
Description
Bit 31: 30 Reserved
0x0
resd
Kept at its default value
Bit 29
D2DMAUDRIEN
0x0
rw
DAC2 DMA transfer underrun interrupt enable
This bit is set and cleared by software.
0: DAC2 DMA transfer underrun interrupt disabled
1: DAC2 DMA transfer underrun interrupt enabled
Bit 28
D2DMAEN
0x0
rw
DAC2 DMA transfer enable
This bit is set and cleared by software.
0: DAC2 DMA mode disabled
1: DAC2 DMA mode enabled
Bit 27: 24 D2NBSEL
0x0
rw
DAC2 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
0100: Unmask LSFR bit[4: 0] /Triangle amplitude is equal
to 31
0101: Unmask LSFR bit[5: 0] /Triangle amplitude is equal
to 63