Dac Registers; Dac Control Register (Dac_Cr) - ST STM32F100 Series Reference Manual

Advanced arm-based 32-bit mcus
Hide thumbs Also See for STM32F100 Series:
Table of Contents

Advertisement

Digital-to-analog converter (DAC)
11.5

DAC registers

Refer to
used in register descriptions.
The peripheral registers have to be accessed by words (32 bits).
11.5.1

DAC control register (DAC_CR)

Address offset: 0x00
Reset value: 0x0000 0000
31
30
29
28
DMAU
DMA
DRIE2
EN2
Reserved
rw
rw
15
14
13
12
DMAU
DMA
DRIE1
EN1
Reserved
rw
rw
Bits 31:30 Reserved, must be kept at reset value.
Bits 29 DMAUDRIE2: DAC channel2 DMA underrun interrupt enable
Bit 28 DMAEN2: DAC channel2 DMA enable
Bits 27:24 MAMP2[3:0]: DAC channel2 mask/amplitude selector
Bits 23:22 WAVE2[1:0]: DAC channel2 noise/triangle wave generation enable
Note: Only used if bit TEN2 = 1 (DAC channel2 trigger enabled)
202/709
Section 1.1: List of abbreviations for registers
27
26
25
MAMP2[3:0]
rw
rw
rw
11
10
9
MAMP1[3:0]
rw
rw
rw
This bit is set and cleared by software.
0: DAC channel2 DMA underrun interrupt disabled
1: DAC channel2 DMA underrun interrupt enabled
This bit is set and cleared by software.
0: DAC channel2 DMA mode disabled
1: DAC channel2 DMA mode enabled
These bits are written by software to select mask in wave generation mode or amplitude in
triangle generation mode.
0000: Unmask bit0 of LFSR/ triangle amplitude equal to 1
0001: Unmask bits[1:0] of LFSR/ triangle amplitude equal to 3
0010: Unmask bits[2:0] of LFSR/ triangle amplitude equal to 7
0011: Unmask bits[3:0] of LFSR/ triangle amplitude equal to 15
0100: Unmask bits[4:0] of LFSR/ triangle amplitude equal to 31
0101: Unmask bits[5:0] of LFSR/ triangle amplitude equal to 63
0110: Unmask bits[6:0] of LFSR/ triangle amplitude equal to 127
0111: Unmask bits[7:0] of LFSR/ triangle amplitude equal to 255
1000: Unmask bits[8:0] of LFSR/ triangle amplitude equal to 511
1001: Unmask bits[9:0] of LFSR/ triangle amplitude equal to 1023
1010: Unmask bits[10:0] of LFSR/ triangle amplitude equal to 2047
≥ 1011: Unmask bits[11:0] of LFSR/ triangle amplitude equal to 4095
These bits are set/reset by software.
00: wave generation disabled
01: Noise wave generation enabled
1x: Triangle wave generation enabled
24
23
22
WAVE2[1:0]
rw
rw
rw
8
7
6
WAVE1[1:0]
rw
rw
rw
RM0041 Rev 6
for registers for a list of abbreviations
21
20
19
18
TSEL2[2:0]
TEN2
rw
rw
rw
rw
5
4
3
2
TSEL1[2:0]
TEN1
rw
rw
rw
rw
RM0041
17
16
BOFF2
EN2
rw
rw
1
0
BOFF1
EN1
rw
rw

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F100 Series and is the answer not in the manual?

Questions and answers

Table of Contents