EasyManuals Logo

ST STM32WL5 Series User Manual

ST STM32WL5 Series
1461 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #600 background imageLoading...
Page #600 background image
Digital-to-analog converter (DAC) RM0453
600/1461 RM0453 Rev 1
Figure 90. DAC conversion (SW trigger enabled) with LFSR wave generation
Note: The DAC trigger must be enabled for noise generation by setting the TEN1 bit in the
DAC_CR register.
19.4.10 Triangle-wave generation
It is possible to add a small-amplitude triangular waveform on a DC or slowly varying signal.
DAC triangle-wave generation is selected by setting WAVE1[1:0] to 10”. The amplitude is
configured through the MAMP1[3:0] bits in the DAC_CR register. An internal triangle
counter is incremented three dac_pclk clock cycles after each trigger event. The value of
this counter is then added to the DAC_DHR1 register without overflow and the sum is
transferred into the DAC_DOR1 register. The triangle counter is incremented as long as it is
less than the maximum amplitude defined by the MAMP1[3:0] bits. Once the configured
amplitude is reached, the counter is decremented down to 0, then incremented again and so
on.
It is possible to reset triangle wave generation by resetting the WAVE1[1:0] bits.
Figure 91. DAC triangle wave generation
dac_pclk
0x00
0xAAA
DHR
DOR
MS45320V1
0xD55
SWTRIG
MSv61371V1
MAMP1[3:0] max amplitude+
DAC_DHR1 base value
DAC_DHR1 base value
Incrementati
on
Decrementation
0

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32WL5 Series Specifications

General IconGeneral
BrandST
ModelSTM32WL5 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals