Digital-to-analog converter (DAC)
ï‚· __IO uint32_t DAC_TypeDef::DOR1
ï€ DAC channel1 data output register, Address offset: 0x2C
ï‚· __IO uint32_t DAC_TypeDef::DOR2
ï€ DAC channel2 data output register, Address offset: 0x30
ï‚· __IO uint32_t DAC_TypeDef::SR
ï€ DAC status register, Address offset: 0x34
7.1.2 DAC_InitTypeDef
DAC_InitTypeDef is defined in the stm32f30x_dac.h
Data Fields
ï‚· uint32_t DAC_Trigger
ï‚· uint32_t DAC_WaveGeneration
ï‚· uint32_t DAC_LFSRUnmask_TriangleAmplitude
ï‚· uint32_t DAC_OutputBuffer
Field Documentation
ï‚· uint32_t DAC_InitTypeDef::DAC_Trigger
ï€ Specifies the external trigger for the selected DAC channel. This parameter can
be a value of DAC_trigger_selection
ï‚· uint32_t DAC_InitTypeDef::DAC_WaveGeneration
ï€ Specifies whether DAC channel noise waves or triangle waves are generated, or
whether no wave is generated. This parameter can be a value of
DAC_wave_generation
ï‚· uint32_t DAC_InitTypeDef::DAC_LFSRUnmask_TriangleAmplitude
ï€ Specifies the LFSR mask for noise wave generation or the maximum amplitude
triangle generation for the DAC channel. This parameter can be a value of
DAC_lfsrunmask_triangleamplitude
ï‚· uint32_t DAC_InitTypeDef::DAC_OutputBuffer
ï€ Specifies whether the DAC channel output buffer is enabled or disabled. This
parameter can be a value of DAC_output_buffer
7.2 DAC Firmware driver API description
The following section lists the various functions of the DAC library.
7.2.1 DAC Peripheral features
The device integrates two 12-bit Digital Analog Converters that can be used independently
or simultaneously (dual mode):
1. DAC channel1 with DAC_OUT1 as output
2. DAC channel2 with DAC_OUT2 as output