EasyManuals Logo

ST STM32F102 series User Manual

ST STM32F102 series
690 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 #190 background imageLoading...
Page #190 background image
Digital-to-analog converter (DAC) RM0008
190/690
Figure 44. DAC conversion (SW trigger enabled) with LFSR wave generation
Note: DAC trigger must be enabled for noise generation, by setting the TENx bit in the DAC_CR
register.
11.3.9 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 WAVEx[1:0] to “10”. The amplitude is
configured through the MAMPx[3:0] bits in the DAC_CR register. An internal triangle counter
is incremented three APB1 clock cycles after each trigger event. The value of this counter is
then added to the DAC_DHRx register without overflow and the sum is stored into the
DAC_DORx register. The triangle counter is incremented while the value transferred into the
DAC_DORx register is less then the maximum amplitude defined by the MAMPx[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 WAVEx[1:0] bits.
Figure 45. DAC triangle wave generation
APB1_CLK
0x00
0xAAA
DHR
DOR
ai14714
0xD55
SWTRIG
MAMPx[3:0] max amplitude
DAC_DHRx base value
Incrementation
ai14715b
Decrementation

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32F102 series and is the answer not in the manual?

ST STM32F102 series Specifications

General IconGeneral
BrandST
ModelSTM32F102 series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals