EasyManuals Logo

ST STM32F31xx User Manual

ST STM32F31xx
584 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 #166 background image
Digital-to-analog converter (DAC)
UM1581
166/584
DocID023800 Rev 1
7.2.6.7 DAC_WaveGenerationCmd
Function Name
void DAC_WaveGenerationCmd ( uint32_t DAC_Channel,
uint32_t DAC_Wave, FunctionalState NewState)
Function Description
Enables or disables the selected DAC channel wave generation.
Parameters
ï‚· DAC_Channel : The selected DAC channel. This parameter
can be:
 DAC_Channel_1 : DAC Channel1 selected
 DAC_Channel_2 : DAC Channel2 selected
ï‚· DAC_Wave : specifies the wave type to enable or disable.
This parameter can be:
 DAC_Wave_Noise : noise wave generation
 DAC_Wave_Triangle : triangle wave generation
ï‚· NewState : new state of the selected DAC channel wave
generation. This parameter can be: ENABLE or DISABLE.
Return values
ï‚· None.
Notes
ï‚· None.
7.2.6.8 DAC_SetChannel1Data
Function Name
void DAC_SetChannel1Data ( uint32_t DAC_Align, uint16_t
Data)
Function Description
Sets the specified data holding register value for DAC channel1.
Parameters
ï‚· DAC_Align : Specifies the data alignment for DAC channel1.
This parameter can be:
 DAC_Align_8b_R : 8bit right data alignment selected
 DAC_Align_12b_L : 12bit left data alignment selected
 DAC_Align_12b_R : 12bit right data alignment selected
ï‚· Data : Data to be loaded in the selected data holding
register.
Return values
ï‚· None.
Notes
ï‚· None.

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

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

ST STM32F31xx Specifications

General IconGeneral
BrandST
ModelSTM32F31xx
CategoryMicrocontrollers
LanguageEnglish

Related product manuals