RM0453
19.4.3
DAC channel enable
The DAC channel can be powered on by setting its corresponding EN1 bit in the DAC_CR
register. The DAC channel is then enabled after a t
Note:
The EN1 bit enables the analog DAC channel1 only. The DAC channel1 digital interface is
enabled even if the EN1 bit is reset.
19.4.4
DAC data format
Depending on the selected configuration mode, the data have to be written into the specified
register as described below:
•
Single DAC channel
There are three possibilities:
–
–
–
Depending on the loaded DAC_DHRyyyx register, the data written by the user is shifted and
stored into the corresponding DHR1 (data holding registerx, which are internal non-
memory-mapped registers). The DHR1 register is then loaded into the DOR1 register either
automatically, by software trigger or by an external event trigger.
Table 114. DAC interconnection (continued)
Signal name
dac_ch1_trg2
dac_ch1_trg11
dac_ch1_trg12
dac_ch1_trg13
dac_ch1_trg14
8-bit right alignment: the software has to load data into the DAC_DHR8R1[7:0] bits
(stored into the DHR1[11:4] bits)
12-bit left alignment: the software has to load data into the DAC_DHR12L1 [15:4]
bits (stored into the DHR1[11:0] bits)
12-bit right alignment: the software has to load data into the DAC_DHR12R1 [11:0]
bits (stored into the DHR1[11:0] bits)
Figure 87. Data registers in single DAC channel mode
31
24
Source
tim2_trgo
lptim1_out
lptim2_out
lptim3_out
exti9
WAKEUP
15
7
RM0453 Rev 5
Digital-to-analog converter (DAC)
Source type
Internal signal from on-chip
timers TIM2_TGO_CKTIM
Internal signal from on-chip
timers LPTIM1_OUT
Internal signal from on-chip
timers LPTIM2_OUT
Internal signal from on-chip
timers LPTIM3_OUT
External pin EXTI[9]
startup time.
0
8-bit right aligned
12-bit left aligned
12-bit right aligned
ai14710b
595/1450
616
Need help?
Do you have a question about the STM32WL5 Series and is the answer not in the manual?