Download Print this page

ST STM32L4+ Series Reference Manual page 731

Hide thumbs Also See for STM32L4+ Series:

Advertisement

RM0432
22.4.6
DAC trigger selection
If the TENx control bit is set, the conversion can then be triggered by an external event (timer
counter, external interrupt line). The TSELx[3:0] control bits determine which out of 16 pos-
sible events triggers the conversion as shown in TSELx[3:0] bits of the DAC_CR register.
These events can be either the software trigger or hardware triggers. Refer to
DAC trigger
Each time a DAC interface detects a rising edge on the selected trigger source (refer to the
table below), the last data stored into the DAC_DHRx register are transferred into the
DAC_DORx register. The DAC_DORx register is updated three APB1 cycles after the
trigger occurs.
If the software trigger is selected, the conversion starts once the SWTRIG bit is set.
SWTRIG is reset by hardware once the DAC_DORx register has been loaded with the
DAC_DHRx register contents.
Note:
TSELx[3:0] bit cannot be changed when the ENx bit is set.
When software trigger is selected, the transfer from the DAC_DHRx register to the
DAC_DORx register takes only one APB1 clock cycle.
SWTRIG
TIM1_TRGO
TIM2_TRGO
TIM4_TRGO
TIM5_TRGO
TIM6_TRGO
TIM7_TRGO
TIM8_TRGO
TIM15_TRGO
Reserved
Reserved
LPTIM1_OUT
LPTIM2_OUT
EXTI9
Reserved
Reserved
selection.
Table 146. DAC trigger selection
Source
RM0432 Rev 6
Digital-to-analog converter (DAC)
Type
Software control bit
Internal signal from on-chip timers
Internal signal from on-chip timers
Internal signal from on-chip timers
Internal signal from on-chip timers
Internal signal from on-chip timers
Internal signal from on-chip timers
Internal signal from on-chip timers
Internal signal from on-chip timers
-
-
Internal signal from on-chip timers
Internal signal from on-chip timers
External pin
-
-
Table 146:
TSELx[3:0]
0000
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
731/2301
762

Advertisement

loading
Need help?

Need help?

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