EasyManuals Logo

ST STM32L4 5 Series User Manual

ST STM32L4 5 Series
1830 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 #617 background imageLoading...
Page #617 background image
DocID024597 Rev 5 617/1830
RM0351 Digital-to-analog converter (DAC)
647
The DAC includes up to two separate output channels. Each output channel can be
connected to on-chip peripherals such as COMP, OPAMP and ADC. In this case, the DAC
output channel can be disconnected from the DAC_OUTx output pin and the corresponding
GPIO can be used for another purpose.
The DAC output can be buffered or not. The sample and hold block and its associated
registers can run in Stop mode using the LSI clock source.
19.3.2 DAC channel enable
Each DAC channel can be powered on by setting its corresponding ENx bit in the DAC_CR
register. The DAC channel is then enabled after a startup time t
WAKEUP
.
Note: The ENx bit enables the analog DAC Channelx only. The DAC Channelx digital interface is
enabled even if the ENx bit is reset.
19.3.3 DAC data format
Depending on the selected configuration mode, the data have to be written into the specified
register as described below:
Single DAC channelx, there are three possibilities:
8-bit right alignment: the software has to load data into the DAC_DHR8Rx [7:0]
bits (stored into the DHRx[11:4] bits)
12-bit left alignment: the software has to load data into the DAC_DHR12Lx [15:4]
bits (stored into the DHRx[11:0] bits)
12-bit right alignment: the software has to load data into the DAC_DHR12Rx [11:0]
bits (stored into the DHRx[11:0] bits)
Depending on the loaded DAC_DHRyyyx register, the data written by the user is shifted and
stored into the corresponding DHRx (data holding registerx, which are internal non-memory-
mapped registers). The DHRx register is then loaded into the DORx register either
automatically, by software trigger or by an external event trigger.
Table 121. DAC pins
Name Signal type Remarks
V
REF+
Input, analog reference
positive
The higher/positive reference voltage for the DAC,
V
DDAmin
V
REF+
V
DDA
(refer to datasheet)
V
DDA
Input, analog supply Analog power supply
V
SSA
Input, analog supply ground Ground for analog power supply
DAC_OUTx Analog output signal DAC channelx analog output

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the ST STM32L4 5 Series and is the answer not in the manual?

ST STM32L4 5 Series Specifications

General IconGeneral
BrandST
ModelSTM32L4 5 Series
CategoryMicrocontrollers
LanguageEnglish

Related product manuals