Dac Channels Configuration: Trigger, Output Buffer, Data Format; Dma Management Functions; Interrupts And Flags Management Functions; Dac Channels Configuration - ST STM32F31xx User Manual

Table of Contents

Advertisement

UM1581
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
Function Description
Parameters
Return values
Notes
void DAC_DeInit ( void )
Deinitializes the DAC peripheral registers to their default reset
values.
None.
None.
None.
DocID023800 Rev 1
Digital-to-analog converter (DAC)
163/584

Advertisement

Table of Contents
loading
Need help?

Need help?

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Stm32f30xx

Table of Contents