EasyManua.ls Logo

ST STM32F31xx

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
Loading...
UM1581
Digital-to-analog converter (DAC)
DocID023800 Rev 1
163/584
DAC APB clock must be enabled to get write access to DAC registers using
RCC_APB1PeriphClockCmd(RCC_APB1Periph_DAC, ENABLE);
Configure DAC_OUTx (DAC_OUT1: PA4, DAC_OUT2: PA5) in analog mode.
Configure the DAC channel using DAC_Init();
Enable the DAC channel using DAC_Cmd();
7.2.3 DAC channels configuration: trigger, output buffer, data format
DAC_DeInit()
DAC_Init()
DAC_StructInit()
DAC_Cmd()
DAC_SoftwareTriggerCmd()
DAC_DualSoftwareTriggerCmd()
DAC_WaveGenerationCmd()
DAC_SetChannel1Data()
DAC_SetChannel2Data()
DAC_SetDualChannelData()
DAC_GetDataOutputValue()
7.2.4 DMA management functions
DAC_DMACmd()
7.2.5 Interrupts and flags management functions
DAC_ITConfig()
DAC_GetFlagStatus()
DAC_ClearFlag()
DAC_GetITStatus()
DAC_ClearITPendingBit()
7.2.6 DAC channels configuration
7.2.6.1 DAC_DeInit
Function Name
void DAC_DeInit ( void )
Function Description
Deinitializes the DAC peripheral registers to their default reset
values.
Parameters
None.
Return values
None.
Notes
None.

Table of Contents

Related product manuals